/* Fallback brand palette; the injected :root rule from lib/branding.ts overrides these. */
:root{--brand-primary:#174D36;--brand-primary-dark:#0F3826;--brand-secondary:#113A28;--brand-lime:#C5D64A;--brand-olive:#A3B23A;--brand-gold:#D5A747;--brand-cream:#F5F1E6}
/* Clone-specific fixes on top of the ported theme CSS. */

/* The original theme parks the shop sidebar off-canvas and reveals it with JS.
   Server-rendered clone keeps it in the grid on desktop. */
@media (min-width: 992px) {
  .shop-sidebar .sticky-sidebar,
  .shop-sidebar .sidebar-content {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
  }
  .shop-sidebar {
    flex: 0 0 310px;
    max-width: 310px;
  }
}

.shop-sidebar .filter-items a {
  color: #333;
}

/* keep ported page-header blocks from collapsing */
.page-header .page-title {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .shop-sidebar .sidebar-content {
    opacity: 1 !important;
  }
}

/* collection / shop sidebar filters */
.shop-sidebar .widget-body label.filter-item-row {
  display: flex !important;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  margin: 0;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #222831 !important;
  text-transform: none !important;
  letter-spacing: normal;
  line-height: 1.4;
  cursor: pointer;
}
.shop-sidebar .filter-item-label {
  font-size: 13.5px;
  color: #333;
}
.shop-sidebar .filter-item-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1px solid #c0c0c0;
  border-radius: 4px;
  background: #fff;
  margin: 0;
  cursor: pointer;
}
.shop-sidebar .filter-item-row input[type="checkbox"]:checked {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  box-shadow: inset 0 0 0 2px #fff;
}

/* shop / collection sidebar: match the source storefront card design */
.shop-sidebar {
  padding: 0 10px;
  box-sizing: border-box;
}
.shop-sidebar .sidebar-content {
  background: #f2f4f8;
  padding: 0 0 20px;
}
.shop-sidebar .widget {
  background: #fff;
  border-radius: 4px;
  padding: 12px;
  margin: 0 0 6px;
}
.shop-sidebar .widget-title {
  padding: 14px 25px 14px 0;
  margin: -1px 0;
  border-bottom: 1px solid #eee;
  font-size: 16px;
}
.shop-sidebar .widget-title label {
  font-size: 16px;
  font-weight: 600;
  color: #222831;
  text-transform: uppercase;
  letter-spacing: 0;
  cursor: pointer;
}

/* sort toolbar */
.shop-top-bar .category-sorting {
  display: flex;
  align-items: center;
  gap: 8px;
}
.shop-top-bar .category-sorting label {
  white-space: nowrap;
  margin: 0;
  font-size: 14px;
  color: #222831;
}
.shop-top-bar .toolbox-sort,
.shop-top-bar .toolbox-show {
  background: #fff;
  border-radius: 4px;
  padding: 0;
}
.shop-top-bar select.form-control {
  min-width: 136px;
  height: 38px;
  border-radius: 4px;
}

/* product cards: equal height, aligned Add To Cart (matches the aligned look of the source grid) */
.product-wrapper .product-item {
  height: 100%;
}
.product-wrapper .product-item > .product {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-wrapper .product-item > .product > div {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.product-wrapper .product-item .product-details {
  flex: 1 1 auto;
}
.product-wrapper .product-item .product-name {
  max-height: 38.4px;
  min-height: 38.4px;
  overflow: hidden;
}
.product-wrapper .product-item .product-card-action {
  margin-top: auto;
  padding-top: 12px;
}

/* "More" dropdown: bridge the 12px gap so hover does not drop while moving to items */
.header-menu-btn {
  position: relative;
}
.header-menu-btn .submenu {
  top: 100% !important;
  padding-top: 12px;
  margin-top: 0;
}

/* hover corridor: keep the More dropdown open while the pointer travels to the items */
.header-menu-btn::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 220px;
  height: 14px;
}

/* checkout: country code sits inside the phone field (storefront keeps this in a page-level style) */
.checkout-area .phone-group {
  position: relative;
}
.checkout-area .phone-group .shipPhoneCode,
.checkout-area .phone-group .billPhoneCode {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  pointer-events: none;
  z-index: 2;
}

/* Charer Bazar brand accents */
/* Lime count bubbles: header cart, mobile bottom-nav cart, floating-cart item count */
.cart-count,
.cart-dropdown .cart-count,
.fixed-add-to-cart .cart-count,
.fixed-add-to-cart.cart-dropdown .cart-count,
.sticky-footer .cart-count,
.sticky-footer.style-1 .cart-dropdown .cart-count {
  background: var(--brand-lime) !important;
  color: var(--brand-primary) !important;
}
/* Lime discount / sale labels on product cards */
.save-label,
.product.style-6 .save-label,
.product-label.label-discount,
.product.style-6 .product-label.label-discount {
  background: var(--brand-gold) !important;
  color: var(--brand-primary) !important;
}

/* Logo: Charer Bazar badge keeps its ratio at 48px tall */
.header .logo img,
.logo img,
.footer-logo img {
  height: 48px !important;
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
}
/* Floating cart shows the count inline ("0 Items"): keep it plain white on green */
.fixed-add-to-cart .cart-count,
.fixed-add-to-cart.cart-dropdown .cart-count {
  background: transparent !important;
  color: #fff !important;
}
@media (max-width: 991px) {
  .header .logo img,
  .logo img { height: 40px !important; }
}
/* Price range slider: brand green bar (vendor default is teal) */
.noUi-connect { background: var(--brand-primary) !important; }

/* Whole header (top bar + menu bar) stays pinned while scrolling */
.header.style-7 {
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
/* Top header bar in brand lime (menu bar stays dark green) */
.header.style-7 .header-middle {
  background: var(--brand-lime) !important;
  border-bottom-color: var(--brand-olive) !important;
}
.header.style-7 .header-middle .header-right .link,
.header.style-7 .header-middle .header-right .link i,
.header.style-7 .header-middle .mobile-menu-toggle {
  color: var(--brand-primary) !important;
}
/* Cart count on lime bar: flip to dark green so it stays visible */
.header.style-7 .header-middle .cart-count {
  background: var(--brand-primary) !important;
  color: #fff !important;
}
/* overflow-x:hidden on body turns it into a scroll container and breaks position:sticky; clip keeps the no-horizontal-scroll effect */
body { overflow-x: clip !important; }

/* Mobile header + bottom bar: the fixed bottom nav (.sticky-footer) is no longer rendered.
   The header cart icon is replaced by a search icon that opens #searchModal;
   the floating cart tab on the right handles cart access. */
@media (max-width: 767px) {
  .header .header-middle .cart-dropdown > .cart-toggle { display: none !important; }
  .mobile-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 22px;
    color: var(--brand-primary) !important;
  }
  .mobile-search-toggle i { color: var(--brand-primary) !important; }
}
/* Mobile-only search icon stays hidden on desktop */
@media (min-width: 768px) { .mobile-search-toggle { display: none !important; } }

/* Safety net: the sticky bottom bar is no longer rendered; hide it if any markup still includes it */
.sticky-footer { display: none !important; }
