/* Desktop hover dropdown */
.has-submenu {
  position: relative;
}

.custom-submenu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  min-width: 180px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-radius: 6px;
  padding: 12px;
  z-index: 999;
  list-style: none;
  margin: 0;
  column-count: 2;
  column-gap: 16px;
}

.has-submenu:hover .custom-submenu {
  display: block;
}

.custom-submenu li a {
  display: block;
  padding: 6px 12px;
  white-space: nowrap;
  color: #111;
  text-decoration: none;
  font-size: 14px;
  break-inside: avoid;
}

.custom-submenu li a:hover {
  background: #f5f5f5;
  border-radius: 4px;
}

/* Mobile tap-to-expand dropdown */
.has-submenu-mobile .mobile-dropdown {
  display: none;
  list-style: none;
  padding-inline-start: 16px;
  margin: 4px 0;
  overflow-x: hidden !important;
  width: 100% !important;
}

.has-submenu-mobile.mobile-open .mobile-dropdown {
  display: block;
}

.mobile-dropdown li {
  height: auto !important;
  min-height: 44px !important;
  padding: 10px 16px !important;
  box-sizing: border-box !important;
  --mm-spn-item-height: 44px !important;
  --mm-spn-line-height: 20px !important;
  --mm-spn-item-indent: 0px !important;
}

.mobile-dropdown li a {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
  height: auto !important;
  line-height: 1.4 !important;
  padding: 0 !important;
  position: static !important;
  font-size: 14px;
  color: #333;
  text-decoration: none;
}

.mobile-dropdown li a span {
  color: #333 !important;
  font-size: 14px !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  white-space: normal !important;
  overflow: visible !important;
  max-width: 100% !important;
  position: static !important;
  padding: 0 !important;
  line-height: 1.4 !important;
} 

.product_card_image {
  height: 220px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f7f7f7;
}

.product_card_image img.main-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
/* Equal Product Boxes */
.product-entry {
    height: 100%;
}

.product-entry__inner {
    height: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Make all product images the same size */
.product-entry__inner img {
    width: 100%;
    height: 250px;
    object-fit: contain;
}

/* Keep product information aligned */
.product-entry__inner .product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
/* Equal Size Product Cards */

.product-entry {
    height: 100%;
}

.product-entry__inner {
    height: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Make all product images the same size */
.product-entry__inner img {
    width: 100%;
    height: 250px;
    object-fit: contain;
}

/* Keep product information aligned */
.product-entry__inner .product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
/* =========================================
   SALLA - EQUAL PRODUCT BOX DESIGN
   ========================================= */

/* Product card */
.product-card,
.product-item,
.product-entry,
.s-product-card {
    height: 90% !important;
    min-height: 420px !important;
    border: 1px solid #dddddd !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Product image container */
.product-card__image,
.product-item__image,
.product-entry__image,
.s-product-card-image {
    width: 100% !important;
    height: 260px !important;
    min-height: 260px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

/* Product image */
.product-card img,
.product-item img,
.product-entry img,
.s-product-card img {
    width: 100% !important;
    height: 260px !important;
    max-height: 260px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Product information */
.product-card__content,
.product-item__content,
.product-entry__content,
.s-product-card-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 12px !important;
    box-sizing: border-box !important;
}

/* Product title */
.product-card__title,
.product-item__title,
.product-entry__title,
.s-product-card-content h3 {
    min-height: 45px !important;
    margin: 0 !important;
}

/* Product price */
.product-card__price,
.product-item__price,
.product-entry__price {
    margin-top: auto !important;
}

/* Keep product grid aligned */
.products-grid,
.product-list,
.s-products-list {
    align-items: stretch !important;
}
/* =========================================
   SALLA SILLIA - TRENDING PRODUCTS
   ========================================= */

/* Equal product boxes */
.product-card,
.product-item,
.product-entry,
.s-product-card {
    height: 100% !important;
    min-height: 420px !important;
    border: 1px solid #dddddd !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Equal image area */
.product-card__image,
.product-item__image,
.product-entry__image,
.s-product-card-image {
    width: 100% !important;
    height: 260px !important;
    min-height: 260px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

/* Same image size */
.product-card img,
.product-item img,
.product-entry img,
.s-product-card img {
    width: 100% !important;
    height: 260px !important;
    max-height: 260px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Product information */
.product-card__content,
.product-item__content,
.product-entry__content,
.s-product-card-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 12px !important;
    box-sizing: border-box !important;
}

/* Product title */
.product-card__title,
.product-item__title,
.product-entry__title,
.s-product-card-content h3 {
    min-height: 45px !important;
}

/* Keep prices aligned */
.product-card__price,
.product-item__price,
.product-entry__price {
    margin-top: auto !important;
}
/* =========================================
   SALLA SILLIA - DESKTOP BANNER ZOOM OUT
   ========================================= */

/* Apply only on desktop */
@media (min-width: 1024px) {

    /* Banner image */
    .banner img,
    .banner-item img,
    .swiper-slide img,
    .s-block-banner img {
        object-fit: contain !important;
        object-position: center center !important;
        transform: scale(0.90) !important;
    }
  /* Shoe Size Selector */
.product-options,
.product-variants {
    margin-top: 15px;
}
  /* Product Card Bottom Line - Mobile & Desktop */
.s-product-card-content {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 12px;
}

/* Make the line full width */
.s-product-card {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 12px;
}

/* Mobile */
@media (max-width: 767px) {
    .s-product-card {
        border-bottom: 1px solid #e5e5e5;
        padding-bottom: 10px;
    }
}

/* Laptop / Desktop */
@media (min-width: 768px) {
    .s-product-card {
        border-bottom: 1px solid #e5e5e5;
        padding-bottom: 14px;
    }
}
  /* Desktop / Laptop Only */
@media (min-width: 768px) {

    /* Make product image larger */
    .s-product-card-image {
        height: 380px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .s-product-card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    /* Product separator line */
    .s-product-card {
        border-bottom: 1px solid #e5e5e5 !important;
        padding-bottom: 14px !important;
        margin-bottom: 14px !important;
    }
}