/* ============================================================
   NaturalOLI — Custom CSS (Salla)
   ============================================================ */

/* Original styles */

.product-card__promotion {
    top: 0 !important;
    left: 5 !important;
    border-radius: 0 0 8px 8px;
    font-size: 0.7rem;
    padding: 6px 8px;
    line-height: 1.4;
}

.product-card--fit-height .product-card__image,
.product-card--vertical .product-card__image {
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto !important;
  overflow: hidden;
  background-color: #f7f8f6;
}

.product-card__image img.main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

custom-salla-product-card.product-card {
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  border: 1px solid #e8ede5;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.product-card__content {
  flex: 1 !important;
  display: flex;
  flex-direction: column;
  padding: 8px 10px 12px !important;
}

.product-card__title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__subtitle {
  white-space: wrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

#wa-selia { display: none !important; }
body:has(.scroll-to-top.fadeInUp) #wa-selia {
  display: flex !important;
  animation: fadeInUp 1s both !important;
}

.s-block--bundle-html-content { margin-top: 0 !important; }
.s-block-html-content { margin-top: 0 !important; }

.s-block--bundle-html-content { position: relative; }

.s-block--bundle-html-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), transparent);
  z-index: 1;
  pointer-events: none;
}

.s-block--bundle-html-content::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 180px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 70%, #ffffff 100%);
}

/* Header icons: white on the homepage (sits over the dark photo),
   dark on every other page so they stay visible */
body.trans_header .store-header .main-menu a,
body.trans_header .store-header .header-btn,
body.trans_header .store-header .header-btn__icon,
body.trans_header .store-header .s-cart-summary-icon {
  color: #fff !important;
}
body:not(.trans_header) .store-header .main-menu a,
body:not(.trans_header) .store-header .header-btn,
body:not(.trans_header) .store-header .header-btn__icon,
body:not(.trans_header) .store-header .s-cart-summary-icon {
  color: #111827 !important;
}

.s-block-html-content > div {
  padding-top: 0 !important;
  height: 58vh !important;
  min-height: 320px !important;
  max-height: 620px !important;
}

@media (max-width: 767px) {
  .s-block-html-content > div {
    height: 62vh !important;
    min-height: 300px !important;
    max-height: none !important;
  }

  .navbar-brand img.logo-normal {
    max-height: 36px !important;
    width: auto !important;
  }
}


/* Add-to-cart button look (color/background set in Salla).
   The odd spelling "enhnaced" is Salla's own — leave it as-is */

.product-card__enhnaced-mini-cart__btn .s-button-element {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  border-top: 2px solid #596150 !important;
  box-shadow: 0 -4px 8px -2px rgba(0,0,0,0.18) !important; /* raised look */
}
.product-card__enhnaced-mini-cart__btn .s-button-element .s-button-text {
  font-size: 0.9rem !important;
}

/* Center the button text and the + together */
.product-card__enhnaced-mini-cart__btn .product-card__enhanced-mini-cart__btn--inner {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
}
.product-card__enhnaced-mini-cart__btn .enhanced-label,
.product-card__enhnaced-mini-cart__btn .enhanced-icon {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Hide the eye (quick view) and heart (wishlist) icons everywhere */
.product-card .wishlist,
.product-card .quickview-btn {
  display: none !important;
}

/* Desktop: show the same full-width button as mobile, sitting flush at
   the bottom edge of every card and lined up across the row.
   Also makes the button bigger (taller + larger text) on desktop only */
@media (min-width: 768px) {
  .product-card--vertical .product-card__content {
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .product-card__enhanced-mini-cart {
    display: block !important;
    margin-top: auto !important;
  }
  .addToCart__btn { display: none !important; }

  .product-card__enhnaced-mini-cart__btn .s-button-element,
  .product-card__enhnaced-mini-cart__btn .s-button-element .s-button-text {
    font-size: 1rem !important;
  }
  .product-card__enhnaced-mini-cart__btn .s-button-element {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  .product-card__enhnaced-mini-cart__btn .enhanced-icon {
    font-size: 18px !important;
  }
}


/* Bigger product text and prices on mobile */
@media (max-width: 767px) {

  .product-card__title a {
    font-size: 1.02rem !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
  }

  .product-card__subtitle {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
  }

  .total-price {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
  }
  .before-price {
    font-size: 0.9rem !important;
  }

  body.product-single h1 {
    font-size: 1.4rem !important;
    line-height: 1.45 !important;
  }
  body.product-single .product-detail__description,
  body.product-single .product-detail__description p {
    font-size: 1rem !important;
    line-height: 1.8 !important;
  }
}


/* Bigger, easier-to-tap header icons on mobile */
@media (max-width: 767px) {

  .store-header .header-btn,
  .store-header .mburger {
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .store-header .header-btn__icon {
    font-size: 22px !important;
  }

  .store-header .mburger i.sicon-menu {
    font-size: 26px !important;
  }

  .store-header .s-cart-summary-icon .s-count,
  .store-header .header-btn .s-count,
  .store-header [class*="cart"] [class*="count"] {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
  }
}


/* Top banner: stop it moving, show one centered line */
.promotion-banner__inner {
  overflow: hidden !important;
}
.promotion-banner__inner ul {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  transform: none !important;
}
.promotion-banner__inner li {
  animation: none !important;
  transform: none !important;
  flex: 0 1 auto !important;
}
.promotion-banner__inner li:not(:first-child) {
  display: none !important;
}
.promotion-banner__inner li a {
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  white-space: normal !important;
  text-align: center;
}
@media (max-width: 767px) {
  .promotion-banner__inner li a { font-size: 0.8rem !important; }
}


/* Bigger search box */
input.s-search-input {
  padding: 0.7rem 2.5rem !important;
  font-size: 1.05rem !important;
  min-height: 48px !important;
}
@media (max-width: 767px) {
  input.s-search-input {
    font-size: 1.1rem !important;
    min-height: 50px !important;
  }
}


/* Bigger + / − quantity buttons on mobile */
@media (max-width: 767px) {
  .s-quantity-input-button {
    min-width: 44px !important;
    min-height: 44px !important;
    font-size: 1.25rem !important;
  }
  .s-quantity-input input,
  .s-quantity-input-container input {
    min-height: 44px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-align: center;
  }
}


/* Hide the blog article link from the top menu on desktop
   (still shown in the footer) */
@media (min-width: 1024px) {
  .store-header .main-menu a[href*="redirect/pages/2056541402"] {
    display: none !important;
  }
}