/*--------------------------------------------------------------
# General  
--------------------------------------------------------------*/
:root {
  scroll-behavior: smooth;
  /* --primary: #526b85; */
  --primary: #5fbb57;
  --secondary: #603a16;
  --menuText: #494949;

  --lightDarkLrimary: #67b8ff;
  --textColor: #1f2025;
  --backgroundColor: #ffff;
  --lightText: #515151;
  --darkText: #414141;

  --bodyFamily: "Lato", sans-serif;
  --hadingFamily: "Cormorant Garamond", serif;
  --bannerFamily: "Yeseva One", serif;
}

/* AJAX add-to-cart notice: fixed at top so it never breaks product grid layout */
.olilife-ajax-notice-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  padding: 12px 16px;
  pointer-events: none;
}
.olilife-ajax-notice-container .olilife-ajax-notice {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
/* Tick icon and message on same line, vertically centered */
.olilife-ajax-notice-container .olilife-ajax-notice::before {
  position: static;
  left: auto;
  top: auto;
  flex-shrink: 0;
  margin: 0;
}

/* Review upload (Ivole): dropzone + hide duplicate inline error (toast uses same bar as add-to-cart) */
.olilife-cr-upload {
  margin-top: 1rem;
  margin-bottom: 2.25rem;
}
.olilife-cr-upload .olilife-review-dropzone {
  margin-top: 0.75rem;
}
.olilife-cr-upload .olilife-review-dropzone-surface {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 148px;
  padding: 1.25rem 1rem;
  border: 2px dashed rgba(95, 187, 87, 0.55);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(95, 187, 87, 0.06) 0%, rgba(255, 255, 255, 0.96) 100%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.olilife-cr-upload .olilife-review-dropzone.is-dragover .olilife-review-dropzone-surface {
  border-color: var(--primary, #5fbb57);
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(95, 187, 87, 0.2);
  background: rgba(95, 187, 87, 0.1);
}
.olilife-cr-upload .olilife-review-dropzone-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
  pointer-events: none;
  z-index: 0;
}
.olilife-cr-upload .olilife-review-dropzone-icon {
  font-size: 2.25rem;
  line-height: 1;
  color: var(--primary, #5fbb57);
  opacity: 0.9;
}
.olilife-cr-upload .olilife-review-dropzone-title {
  font-family: var(--hadingFamily, "Cormorant Garamond", serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--textColor, #1f2025);
}
.olilife-cr-upload .olilife-review-dropzone-sub {
  font-size: 0.875rem;
  color: var(--lightText, #515151);
}
.olilife-cr-upload #cr_review_image {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 148px;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  font-size: 0;
}
.olilife-cr-upload .cr-upload-images-status {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  margin-top: 0.75rem !important;
  margin-bottom: 0 !important;
  padding: 0.5rem 0.25rem 0 !important;
  text-align: center;
  font-size: 0.875rem !important;
  line-height: 1.4 !important;
  color: var(--lightText, #515151) !important;
  border: none !important;
  background: transparent !important;
  pointer-events: none;
}
.olilife-cr-upload .cr-upload-images-status.cr-upload-images-status-error {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0 !important;
}
.olilife-cr-upload .cr-upload-images-preview {
  margin-bottom: 0.5rem;
}

.shop-page-row,
.olilife-product-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}
/* Prevent .woocommerce rules elsewhere from forcing product grid to column layout */
.olilife-product-row.row,
.shop-page-row.row {
  flex-direction: row !important;
}

/* Header cart: count badge at top of icon */
.olilife-header-cart-icon-wrap {
  position: relative;
  display: inline-flex;
}
/* Cart count – no background, primary color text */
.olilife-header-cart .olilife-cart-count,
body .header_body .olilife-header-cart .olilife-cart-count {
  position: absolute;
  top: -4px;
  left: 100%;
  transform: translate(-2px, 0);
  margin-left: 0;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  background-color: transparent !important;
  color: var(--primary, #5fbb57) !important;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  border-radius: 0;
  box-shadow: none !important;
}
.olilife-header-cart .olilife-header-cart-count-zero {
  display: none;
}

/* Cart icon centered in header button */
.header_body .navbar-utils a.olilife-header-cart {
  text-decoration: none;
}
.header_body .navbar-utils a.olilife-header-cart .olilife-header-cart-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.woocommerce .star-rating {
  float: inherit !important;
}

/* Desktop: equal height product images + equal height cards (buttons align at bottom) */
@media (min-width: 768px) {
  /* Force row to stretch columns so all cards in a row have the same height */
  .shop-page-row.row,
  .row.shop-page-row,
  .olilife-product-row.row {
    align-items: stretch !important;
  }
  .shop-page-row .product-card-wrap,
  .row .product-card-wrap,
  .olilife-product-row .product-card-wrap {
    display: flex !important;
    min-width: 0;
    align-self: stretch !important;
  }
  .product-card-wrap .product-card {
    flex: 1 1 auto;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    width: 100%;
    min-height: 0;
    height: 100%;
  }
  .product-card .olilife-product-card-body {
    flex: 1 1 auto;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0;
  }
  .product-card .olilife-product-card-body .olilife-product-actions {
    margin-top: auto !important;
  }
  /* Sale flash must not affect flex height (WooCommerce often positions it absolute) */
  .product-card .onsale {
    flex-shrink: 0;
  }
  /* Fixed-height image box: same height for every product so cards align */
  .product-card-wrap .product-card a.product_img_link {
    position: relative !important;
    height: 400px !important;
    min-height: 400px !important;
    max-height: 400px !important;
    display: block !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    width: 100% !important;
  }
  /* Force image to fill the box; ignores inline width/height from WordPress */
  .product-card-wrap .product-card a.product_img_link img,
  .product-card-wrap .product-card a.product_img_link .product-img,
  .product-card-wrap .product-card .product_img_link img.product-img {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }
}

.woocommerce-ordering {
  position: relative;
  display: inline-block;
}

.woocommerce-ordering select.orderby {
  padding: 10px 20px 10px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff
    url('data:image/svg+xml;utf8,<svg fill="%23000" height="20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>')
    no-repeat right 10px center;
  background-size: 15px;
  font-size: 15px;
  color: #333;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.woocommerce-ordering select.orderby:hover {
  border-color: #888;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.woocommerce-ordering select.orderby:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
/* ---------- Buy Now (black) + Add to Cart (green), same line, full card width ---------- */
.olilife-product-actions {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  gap: 0;
  align-items: stretch;
  margin-top: 12px;
  width: 100%;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
}
/* Full card width: extend button row to card edges (cancel parent padding) */
.product-card .olilife-product-card-body .olilife-product-actions {
  margin-left: -1rem;
  margin-right: -1rem;
  width: calc(100% + 2rem);
}
/* Allow product cards in grid to shrink on mobile (prevents button row overflow) */
.product-card-wrap {
  min-width: 0;
}

/* ---------- Mobile: col-6 = 2 per row; equal height cards; rating next line; buttons stacked ---------- */
@media (max-width: 767px) {
  /* Equal-height columns on mobile so cards in same row match */
  .shop-page-row.row,
  .row.shop-page-row {
    align-items: stretch !important;
  }
  .shop-page-row .col-6.product-card-wrap,
  .row .col-6.product-card-wrap {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    min-width: 0;
    align-self: stretch !important;
  }
  .shop-page-row .product-card-wrap,
  .row .product-card-wrap {
    min-width: 0;
    display: flex !important;
    align-self: stretch !important;
  }
  .product-card-wrap .product-card {
    margin-top: 0;
    flex: 1 1 auto;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0;
    width: 100%;
    height: 100%;
  }
  .product-card .olilife-product-card-body {
    flex: 1 1 auto;
    display: flex !important;
    flex-direction: column !important;
    padding: 0.5rem 0.75rem 0.75rem !important;
    min-height: 0;
  }
  .product-card .olilife-product-card-body .olilife-product-actions {
    margin-top: auto !important;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    width: calc(100% + 1.5rem);
    padding: 8px;
    flex-direction: column;
    gap: 8px;
    border-radius: 8px;
    overflow: hidden;
  }
  .product-card .olilife-product-card-body .olilife-product-actions .olilife-btn-add-to-cart,
  .product-card .olilife-product-card-body .olilife-product-actions .olilife-btn-buy-now {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    white-space: nowrap;
    position: relative;
  }
  .product-card .olilife-product-card-body .olilife-product-actions .olilife-btn-add-to-cart.loading,
  .product-card .olilife-product-card-body .olilife-product-actions .olilife-btn-buy-now.loading {
    min-height: 44px;
  }
  .product-card .olilife-product-card-body .olilife-product-actions .olilife-btn-text {
    display: inline;
    overflow: visible;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .product-card .olilife-product-card-body .olilife-product-actions .olilife-btn-icon-wrap {
    margin-right: 6px;
  }
  .product-card .olilife-product-card-body .olilife-product-actions .olilife-btn-add-to-cart .olilife-btn-icon {
    margin: 0;
    font-size: 1.25em;
  }
  .product-card .olilife-product-card-body .olilife-product-actions .olilife-btn-buy-now .olilife-btn-icon {
    margin: 0 6px 0 0;
    font-size: 1.25em;
  }
  /* Mobile: normal image height (no fixed box – image keeps aspect ratio) */
  .product-card-wrap .product-card a.product_img_link {
    width: 100% !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  .product-card-wrap .product-card a.product_img_link img,
  .product-card-wrap .product-card a.product_img_link .product-img,
  .product-card-wrap .product-card .product_img_link img.product-img {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: cover !important;
    display: block !important;
    vertical-align: top !important;
  }
  .product-card .product-title,
  .product-card .olilife-product-card-body .product-title {
    font-size: 0.9rem;
    margin-top: 0.5rem !important;
    -webkit-line-clamp: 2;
    line-height: 1.25;
  }
  .product-card .olilife-price-rating-row {
    margin-top: 0.25rem;
    gap: 4px;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
  }
  .product-card .olilife-loop-rating {
    width: 100%;
    margin-top: 2px;
  }
  .product-card .olilife-price-rating-row .price,
  .product-card .olilife-price-rating-row .price .regular-price,
  .product-card .olilife-price-rating-row .price .sale-price {
    font-size: 0.85rem;
  }
  .product-card .olilife-price-rating-row .old-price bdi {
    font-size: 0.75rem;
  }
  .product-card .olilife-loop-rating .star-rating,
  .product-card .olilife-price-rating-row .star-rating {
    width: 5em;
    font-size: 0.85em;
  }
}

@media (max-width: 576px) {
  .product-card .olilife-product-card-body {
    padding: 0.4rem 0.6rem 0.6rem !important;
  }
  .product-card .olilife-product-card-body .olilife-product-actions {
    margin-left: -0.6rem;
    margin-right: -0.6rem;
    width: calc(100% + 1.2rem);
    padding: 6px;
  }
  .product-card .olilife-product-card-body .olilife-product-actions .olilife-btn-add-to-cart,
  .product-card .olilife-product-card-body .olilife-product-actions .olilife-btn-buy-now {
    padding: 8px 6px;
  }
  .product-card .olilife-product-card-body .olilife-product-actions .olilife-btn-add-to-cart .olilife-btn-icon {
    font-size: 1.15em;
  }
  .product-card .olilife-product-card-body .olilife-product-actions .olilife-btn-buy-now .olilife-btn-icon {
    margin-right: 6px;
    font-size: 1.15em;
  }
  .product-card .product-title,
  .product-card .olilife-product-card-body .product-title {
    font-size: 0.8rem;
  }
  .product-card .olilife-price-rating-row .price,
  .product-card .olilife-price-rating-row .price .regular-price,
  .product-card .olilife-price-rating-row .price .sale-price {
    font-size: 0.8rem;
  }
}
.olilife-price-rating-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 0.35rem;
  margin-bottom: 0;
}
.olilife-price-rating-row .price {
  margin: 0;
}
.olilife-loop-rating {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-right: 2px;
}
/* Star rating: ensure it displays on home, shop, related (with or without .woocommerce parent) */
.olilife-loop-rating .star-rating,
.olilife-price-rating-row .star-rating {
  margin: 0;
  float: none;
  display: inline-block;
  overflow: hidden;
  position: relative;
  height: 1em;
  line-height: 1;
  width: 5.85em;
  font-size: 1em;
  font-family: star, WooCommerce, sans-serif;
  letter-spacing: 0.06em;
}
.olilife-loop-rating .star-rating::before,
.olilife-price-rating-row .star-rating::before {
  content: "\73\73\73\73\73";
  color: #ddd;
  float: left;
  left: 0;
  position: absolute;
  top: 0;
}
.olilife-loop-rating .star-rating span,
.olilife-price-rating-row .star-rating span {
  overflow: hidden;
  float: left;
  left: 0;
  position: absolute;
  top: 0;
  padding-top: 1.5em;
}
.olilife-loop-rating .star-rating span::before,
.olilife-price-rating-row .star-rating span::before {
  content: "\53\53\53\53\53";
  color: #f0ad4e;
  float: left;
  left: 0;
  position: absolute;
  top: 0;
}
.olilife-product-actions .olilife-btn-buy-now,
.olilife-product-actions .olilife-btn-add-to-cart {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  overflow: hidden;
}
.olilife-btn-buy-now,
.olilife-btn-add-to-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.olilife-product-actions .olilife-btn-add-to-cart.loading,
.olilife-product-actions .olilife-btn-buy-now.loading {
  min-height: 44px;
}
.olilife-btn-buy-now:hover,
.olilife-btn-add-to-cart:hover {
  color: #fff;
  opacity: 0.92;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}
.olilife-btn-buy-now.loading,
.olilife-btn-add-to-cart.loading { pointer-events: none; opacity: 0.9; }
/* Single product: keep same button background when loading */
.single-product form.cart .olilife-btn-add-to-cart.loading,
.woocommerce div.product form.cart .olilife-btn-add-to-cart.loading {
  opacity: 1;
  background: #5fbb57;
}
.single-product form.cart .olilife-btn-buy-now.loading,
.woocommerce div.product form.cart .olilife-btn-buy-now.loading {
  opacity: 1;
  background: #5e3b17;
}
/* Spinner used on shop/archive only; not on single product */
.olilife-btn-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -10px 0 0 -10px;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: olilife-spin 0.65s linear infinite;
}
@keyframes olilife-spin {
  to { transform: rotate(360deg); }
}
.olilife-btn-buy-now,
.olilife-btn-add-to-cart {
  color: #fff;
}
.olilife-btn-buy-now {
  background: #5e3b17;
}
.olilife-btn-add-to-cart {
  background: #5fbb57;
}

/* Modern quantity stepper – hide any duplicate +/- from hooks/plugins or theme */
.quantity.olilife-quantity-stepper > button.plus,
.quantity.olilife-quantity-stepper > button.minus,
.quantity.olilife-quantity-stepper > .plus,
.quantity.olilife-quantity-stepper > .minus {
  display: none !important;
}
.olilife-quantity-stepper {
  display: inline-flex;
  align-items: stretch;
}
.olilife-quantity-stepper .olilife-quantity-inner {
  display: inline-flex;
  align-items: center;
  border: 2px solid #e2e6e9;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.olilife-quantity-stepper .olilife-quantity-inner:focus-within {
  border-color: #5fbb57;
  box-shadow: 0 0 0 3px rgba(95, 187, 87, 0.2);
}
.olilife-quantity-stepper .olilife-qty-minus,
.olilife-quantity-stepper .olilife-qty-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  min-width: 56px;
  height: 56px;
  padding: 0;
  border: none;
  background: #f5f6f8;
  color: #2d3748;
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.olilife-quantity-stepper .olilife-qty-minus span,
.olilife-quantity-stepper .olilife-qty-plus span {
  display: block;
  line-height: 1;
  user-select: none;
}
.olilife-quantity-stepper .olilife-qty-minus:hover,
.olilife-quantity-stepper .olilife-qty-plus:hover {
  background: #e8eaed;
  color: #1a202c;
}
.olilife-quantity-stepper .olilife-qty-minus:active,
.olilife-quantity-stepper .olilife-qty-plus:active {
  background: #dfe2e6;
}
.olilife-quantity-stepper input.qty {
  width: 64px;
  min-width: 64px;
  margin: 0;
  padding: 0 8px;
  border: none;
  border-left: 1px solid #e2e6e9;
  border-right: 1px solid #e2e6e9;
  background: transparent;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  color: #1a202c;
  -moz-appearance: textfield;
}
.olilife-quantity-stepper input.qty::-webkit-outer-spin-button,
.olilife-quantity-stepper input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.olilife-quantity-stepper input.qty:focus {
  outline: none;
}

/* Cart page: quantity column – same alignment as rest of row (match add to cart row) */
.woocommerce-cart-form th.product-quantity,
.woocommerce-cart-form td.product-quantity {
  text-align: left;
}
.woocommerce-cart-form td.product-quantity .quantity {
  display: inline-flex;
  justify-content: flex-start;
}

/* Single product: align stepper with buttons */
.single-product form.cart .quantity,
.woocommerce div.product form.cart .quantity {
  margin-right: 12px;
  margin-bottom: 0;
}
/* Single product: equal-width Add to Cart & Buy Now, larger size */
.single-product form.cart .olilife-product-actions,
.woocommerce div.product form.cart .olilife-product-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 12px;
  min-width: 280px;
  flex: 0 0 auto;
}
.single-product form.cart .olilife-product-actions .olilife-btn-add-to-cart,
.single-product form.cart .olilife-product-actions .olilife-btn-buy-now,
.woocommerce div.product form.cart .olilife-product-actions .olilife-btn-add-to-cart,
.woocommerce div.product form.cart .olilife-product-actions .olilife-btn-buy-now {
  flex: 1 1 0;
  min-width: 0;
  padding: 16px 20px;
  font-size: 15px;
}
/* Ensure form.cart layout on single product */
.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 0;
}

/* Hide WooCommerce blockUI / second spinner on single product (only our button spinner shows) */
.single-product .blockUI,
.single-product .blockOverlay,
.single-product form.cart .blockUI,
.single-product form.cart .blockOverlay,
.woocommerce div.product .blockUI,
.woocommerce div.product .blockOverlay,
.woocommerce div.product form.cart .blockUI,
.woocommerce div.product form.cart .blockOverlay,
.woocommerce div.product .blockMsg {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Remove WooCommerce default .button.loading::after spinner on single product add-to-cart (we use .olilife-btn-spinner only) */
.single-product form.cart .olilife-btn-add-to-cart.loading::after,
.single-product form.cart .olilife-btn-buy-now.loading::after,
.woocommerce div.product form.cart .olilife-btn-add-to-cart.loading::after,
.woocommerce div.product form.cart .olilife-btn-buy-now.loading::after,
.single-product form.cart .button.loading::after,
.woocommerce div.product form.cart .button.loading::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.olilife-btn-icon-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  margin-right: 8px;
}
.olilife-btn-add-to-cart .olilife-btn-icon-wrap {
  margin-right: 8px;
}
.olilife-btn-buy-now .olilife-btn-icon {
  margin-right: 8px;
}
.olilife-btn-icon {
  font-size: 1.1em;
}
.olilife-btn-text {
  flex-shrink: 0;
  min-width: 0;
}
.olilife-btn-cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.olilife-btn-add-to-cart .olilife-btn-cart-count {
  background: rgba(0, 0, 0, 0.45);
}

/* Mobile: prevent button row from breaking / clipping */
@media (max-width: 576px) {
  .olilife-product-actions .olilife-btn-buy-now,
  .olilife-product-actions .olilife-btn-add-to-cart {
    padding: 10px 8px;
    font-size: 11px;
  }
  .olilife-product-actions .olilife-btn-add-to-cart .olilife-btn-text,
  .olilife-product-actions .olilife-btn-buy-now .olilife-btn-text {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .olilife-product-actions .olilife-btn-add-to-cart,
  .olilife-product-actions .olilife-btn-buy-now {
    white-space: nowrap;
  }
  .product-card .olilife-product-card-body .olilife-product-actions {
    flex-direction: column;
    gap: 8px;
  }
  .product-card .olilife-product-card-body .olilife-product-actions .olilife-btn-add-to-cart,
  .product-card .olilife-product-card-body .olilife-product-actions .olilife-btn-buy-now {
    width: 100%;
    min-height: 42px;
    border-radius: 8px;
  }
  .product-card .olilife-product-card-body .olilife-product-actions .olilife-btn-add-to-cart.loading,
  .product-card .olilife-product-card-body .olilife-product-actions .olilife-btn-buy-now.loading {
    min-height: 42px;
  }
  .olilife-btn-icon-wrap {
    margin-right: 6px;
  }
  .olilife-btn-buy-now .olilife-btn-icon {
    margin-right: 6px;
  }
  .olilife-btn-icon {
    font-size: 1em;
  }
  }

@media (max-width: 380px) {
  .olilife-product-actions .olilife-btn-buy-now,
  .olilife-product-actions .olilife-btn-add-to-cart {
    padding: 8px 5px;
    font-size: 10px;
  }
  .olilife-product-actions { gap: 0; }
  .olilife-btn-icon-wrap {
    margin-right: 4px;
  }
  .olilife-btn-buy-now .olilife-btn-icon {
    margin-right: 4px;
  }
}

.woocommerce-info .woocommerce-Button .wc-forward .button,
.edit,
.woocommerce-Button.button {
  background-color: var(--primary) !important;
  color: white !important;
  padding: 11px 20px !important;
  font-size: 16px !important;
  text-decoration: none;
  border-radius: 10px !important;
  border: none;
  transition: background-color 0.3s ease;
  height: fit-content;
}

/* ==========================================
   WooCommerce My Account – Modern Responsive UI
   ========================================== */

/* Account page wrapper: sidebar + content */
.woocommerce-account .woocommerce,
body.woocommerce-account .woocommerce {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

/* Sidebar Navigation – card style */
.woocommerce-MyAccount-navigation {
  flex: 0 0 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(95, 187, 87, 0.12);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-MyAccount-navigation li {
  border-bottom: 1px solid #f0f0f0;
}

.woocommerce-MyAccount-navigation li:last-child {
  border-bottom: none;
}

.woocommerce-MyAccount-navigation a {
  display: block;
  padding: 14px 20px;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.woocommerce-MyAccount-navigation a:hover {
  background: rgba(95, 187, 87, 0.08);
  color: var(--primary, #5fbb57);
}

.woocommerce-MyAccount-navigation .is-active a {
  background: var(--primary, #5fbb57);
  color: #fff;
  font-weight: 600;
}

/* Content area */
.woocommerce-MyAccount-content {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(95, 187, 87, 0.12);
  padding: 28px 32px;
  min-height: 320px;
}

.woocommerce-MyAccount-content p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.woocommerce-MyAccount-content a:not(.button):not(.olilife-dashboard-card):not(.olilife-dashboard-logout-link) {
  color: var(--primary, #5fbb57);
  font-weight: 600;
  text-decoration: none;
}

.woocommerce-MyAccount-content a:not(.button):not(.olilife-dashboard-card):not(.olilife-dashboard-logout-link):hover {
  text-decoration: underline;
}

/* ========== Dashboard (first screen) – informative cards ========== */
.olilife-dashboard {
  margin: 0;
}

.olilife-dashboard-welcome {
  background: linear-gradient(135deg, rgba(95, 187, 87, 0.08) 0%, rgba(96, 58, 22, 0.05) 100%);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 28px;
  border: 1px solid rgba(95, 187, 87, 0.15);
}

.olilife-dashboard-greeting {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2025;
  margin: 0 0 6px;
  font-family: var(--hadingFamily, "Cormorant Garamond", serif);
}

.olilife-dashboard-name {
  color: var(--primary, #5fbb57);
}

.olilife-dashboard-tagline {
  color: #515151;
  font-size: 0.95rem;
  margin: 0 0 10px;
  line-height: 1.5;
}

.olilife-dashboard-logout {
  margin: 0;
  font-size: 0.9rem;
  color: #777;
}

.olilife-dashboard-logout-link {
  color: var(--primary, #5fbb57) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.olilife-dashboard-logout-link:hover {
  text-decoration: underline !important;
}

.olilife-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.olilife-dashboard-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  text-align: left;
}

.olilife-dashboard-card:hover {
  border-color: rgba(95, 187, 87, 0.35);
  box-shadow: 0 6px 20px rgba(95, 187, 87, 0.12);
  transform: translateY(-2px);
}

.olilife-dashboard-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(95, 187, 87, 0.12);
  color: var(--primary, #5fbb57);
  display: flex;
  align-items: center;
  justify-content: center;
}

.olilife-dashboard-card-body {
  flex: 1;
  min-width: 0;
}

.olilife-dashboard-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2025;
  margin: 0 0 6px;
}

.olilife-dashboard-card-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.45;
  margin: 0;
}

.olilife-dashboard-card-meta {
  font-size: 0.85rem;
  color: var(--primary, #5fbb57);
  font-weight: 600;
  margin: 8px 0 0;
}

.olilife-dashboard-card-arrow {
  flex-shrink: 0;
  color: var(--primary, #5fbb57);
  font-size: 1.25rem;
  font-weight: 600;
  opacity: 0.8;
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  opacity: 0.7;
}

.toggle-password:hover {
  opacity: 1;
}

.toggle-password {
  cursor: pointer;
  user-select: none;
}
.toggle-password::after {
  content: "👁️";
}
.toggle-password.is-visible::after {
  content: "⦸";
  font-size: 1.3rem;
  font-weight: 600;
  position: relative;
  top: -2px;
}

/* Entry Header */
.entry-header {
  /* text-align: center; */
  margin-bottom: 20px;
}

.entry-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  position: relative;
  display: inline-block;
}

.entry-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin-top: 10px;
  border-radius: 2px;
}

/* Footer Edit link */
.entry-footer {
  text-align: center;
  margin-top: 20px;
}
.entry-footer a {
  color: #777;
  font-size: 14px;
  text-decoration: none;
}
.entry-footer a:hover {
  color: var(--primary);
}

/* Tablet & small desktop – stack nav above content */
@media (max-width: 992px) {
  .woocommerce-account .woocommerce,
  body.woocommerce-account .woocommerce {
    flex-direction: column;
    gap: 20px;
    padding: 0 12px;
  }

  .woocommerce-MyAccount-navigation {
    flex: 0 0 auto;
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(95, 187, 87, 0.12);
  }

  .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    -webkit-overflow-scrolling: touch;
  }

  .woocommerce-MyAccount-navigation::-webkit-scrollbar {
    height: 6px;
  }

  .woocommerce-MyAccount-navigation::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
  }

  .woocommerce-MyAccount-navigation li {
    border: none;
    border-bottom: 3px solid transparent;
    flex: 0 0 auto;
    min-width: max-content;
  }

  .woocommerce-MyAccount-navigation a {
    text-align: center;
    padding: 14px 18px;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .woocommerce-MyAccount-navigation .is-active a {
    background: rgba(95, 187, 87, 0.1);
    color: var(--primary);
    border-bottom-color: var(--primary);
  }

  .woocommerce-MyAccount-content {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .olilife-dashboard-cards {
    grid-template-columns: 1fr;
  }

  .olilife-dashboard-welcome {
    padding: 20px 22px;
  }

  .olilife-dashboard-greeting {
    font-size: 1.35rem;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .woocommerce-account .woocommerce,
  body.woocommerce-account .woocommerce {
    padding: 0 10px;
    gap: 16px;
  }

  .woocommerce-MyAccount-navigation a {
    font-size: 0.9rem;
    padding: 12px 14px;
  }

  .woocommerce-MyAccount-content {
    padding: 20px 16px;
    font-size: 0.95rem;
  }

  .olilife-dashboard-welcome {
    padding: 18px 16px;
    margin-bottom: 20px;
  }

  .olilife-dashboard-greeting {
    font-size: 1.25rem;
  }

  .olilife-dashboard-tagline {
    font-size: 0.9rem;
  }

  .olilife-dashboard-card {
    padding: 16px;
    gap: 12px;
  }

  .olilife-dashboard-card-icon {
    width: 44px;
    height: 44px;
  }

  .olilife-dashboard-card-icon svg {
    width: 24px;
    height: 24px;
  }

  .olilife-dashboard-card-title {
    font-size: 1rem;
  }

  .olilife-dashboard-card-desc {
    font-size: 0.85rem;
  }
}
.woocommerce span.onsale {
  top: 0.5em !important;
  left: 0.5em !important;
}

/* Hover elevation */
.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.woocommerce-MyAccount-navigation:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.woocommerce-product-gallery {
  display: flex !important;
  flex-direction: column !important;
}

/* Single product: ensure slider viewport can slide */
.single-product .woocommerce-product-gallery .flex-viewport {
  overflow: hidden !important;
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
}
/* Thumbnail strip: when Owl Carousel is used (no scroll) */
.single-product .product_image_slider .flex-control-nav.product-gallery-thumbs.owl-carousel {
  position: relative;
  overflow: visible;
  display: block;
  padding: 0;
  margin: 0 36px 0 0;
  list-style: none;
}
.single-product .product_image_slider .flex-control-nav.owl-carousel .owl-stage-outer {
  overflow: hidden;
  padding-top: 10px;
}
.single-product .product_image_slider .flex-control-nav.owl-carousel .owl-item {
  padding: 0 1px 0 0;
}
/* Thumb images fill the slot and use minimal spacing to remove big gap */
.single-product .product_image_slider .flex-control-nav.owl-carousel li {
  padding: 0;
  margin: 0;
}
.single-product .product_image_slider .flex-control-nav.owl-carousel img {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  padding: 2px;
  border: 1px solid #ccc;
  margin-top: 0 !important;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 1;
  box-sizing: border-box;
}
.single-product .product_image_slider .flex-control-nav.owl-carousel .flex-active img {
  border-color: var(--primary, #2a9d34);
  border-width: 2px;
}
.single-product .product_image_slider .flex-control-nav.owl-carousel .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  margin: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.single-product .product_image_slider .flex-control-nav.owl-carousel .owl-nav button {
  position: absolute;
  pointer-events: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.single-product .product_image_slider .flex-control-nav.owl-carousel .owl-nav button:hover {
  background: #f5f5f5;
  border-color: var(--primary, #2a9d34);
}
.single-product .product_image_slider .flex-control-nav.owl-carousel .owl-nav .owl-prev {
  left: -8px;
}
.single-product .product_image_slider .flex-control-nav.owl-carousel .owl-nav .owl-next {
  right: -8px;
  left: auto;
}
/* Fallback: if no Owl (single thumb), keep list styling */
.product_image_slider .flex-control-nav li,
.single-product .product_image_slider .flex-control-thumbs li {
  float: none !important;
  width: auto !important;
  margin: 0;
  list-style: none;
}

/* Single product strong_points_sec: text center (desktop + mobile) */
.single-product .strong_points_sec .blog-content,
.single-product .strong_points_sec .blog-title,
.single-product .strong_points_sec .blog-text {
  text-align: center;
}

/* Single product strong_points_sec: mobile only – one-by-one vertical stack; desktop stays Owl slider */
@media (max-width: 767px) {
  .single-product .strong_points_sec.owl-carousel .owl-stage-outer {
    overflow: visible !important;
    height: auto !important;
  }
  .single-product .strong_points_sec.owl-carousel .owl-stage {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    transform: none !important;
    gap: 1.5rem;
  }
  .single-product .strong_points_sec.owl-carousel .owl-item {
    width: 100% !important;
    max-width: 100% !important;
  }
  .single-product .strong_points_sec.owl-carousel .item {
    width: 100%;
    max-width: 100%;
  }
  .single-product .strong_points_sec.owl-carousel .blog-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .single-product .strong_points_sec.owl-carousel .blog-card img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    display: block;
  }
  .single-product .strong_points_sec.owl-carousel .blog-content {
    padding: 1rem 0 0;
    text-align: center;
  }
  .single-product .strong_points_sec.owl-carousel .blog-title {
    margin-bottom: 0.5rem;
    text-align: center;
  }
  .single-product .strong_points_sec.owl-carousel .blog-text {
    margin: 0;
    text-align: center;
  }
}

