/* =============================================================
   kCareBD Theme — Main CSS
   ============================================================= */

/* --- Design Tokens --- */
:root {
  --color-primary:      #15766b;
  --color-primary-dark: #0a4238;
  --color-secondary:    #e7f1ef;
  --color-accent:       #0a4238;
  --color-accent-dark:  #06302a;
  --color-text:         #333333;
  --color-text-light:   #666666;
  --color-white:        #ffffff;
  --color-border:       #e5e5e5;
  --color-sale:         #e74c3c;
  --color-badge-feat:   #f39c12;
  --font-primary:       'Nunito', sans-serif;
  --font-size-base:     15px;
  --border-radius:      8px;
  --shadow-card:        0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:          0 8px 32px rgba(0,0,0,.12);
  --transition:         0.2s ease;
  --container-max:      1280px;
}

/* --- Reset / Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--font-size-base); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-primary); color: var(--color-text); background: #fff; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4,h5,h6 { margin: 0; line-height: 1.25; }
button, input, select, textarea { font-family: inherit; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden; position: absolute; width: 1px; word-wrap: normal; }
.text-center { text-align: center; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 16px; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.skip-link { position: absolute; top: -999px; left: 0; z-index: 9999; padding: 8px 16px; background: var(--color-primary); color: #fff; font-size: 14px; text-decoration: none; border-radius: 0 0 4px 0; }
.skip-link:focus { top: 0; }

/* =============================================================
   HEADER
   ============================================================= */
.site-header { position: sticky; top: 0; z-index: 900; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* Top Bar */
.top-bar { background: #2d2d2d; color: #fff; font-size: 12px; padding: 6px 0; }
.top-bar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.top-bar__left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.top-bar__item { display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,.85); }
.top-bar__link { color: rgba(255,255,255,.85); text-decoration: none; }
.top-bar__link:hover { color: #fff; text-decoration: underline; }
.top-bar__right { display: flex; gap: 12px; }
.top-bar__social { color: rgba(255,255,255,.8); display: flex; align-items: center; transition: color var(--transition); }
.top-bar__social:hover { color: #fff; }
.top-bar-icon { flex-shrink: 0; }

/* Main Header */
.main-header { padding: 12px 0; background: #fff; }
.main-header__inner { display: flex; align-items: center; gap: 16px; }
.site-logo { flex-shrink: 0; display: flex; align-items: center; text-decoration: none; }
.site-logo img { height: 52px; width: auto; }
.site-logo .custom-logo { height: 52px; width: auto; }

/* Search */
.header-search { flex: 1; max-width: 520px; position: relative; }
.header-search__form { display: flex; border: 2px solid var(--color-primary); border-radius: var(--border-radius); overflow: hidden; transition: box-shadow var(--transition); }
.header-search__form:focus-within { box-shadow: 0 0 0 3px rgba(232,164,184,.25); }
.header-search__input { flex: 1; padding: 10px 14px; border: none; outline: none; font-size: 14px; background: #fff; color: var(--color-text); min-width: 0; }
.header-search__btn { padding: 0 16px; background: var(--color-primary); border: none; cursor: pointer; display: flex; align-items: center; color: #fff; transition: background var(--transition); flex-shrink: 0; }
.header-search__btn:hover { background: var(--color-primary-dark); }

/* Search Dropdown */
.search-results-dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border-radius: var(--border-radius); box-shadow: var(--shadow-lg); z-index: 800; overflow: hidden; max-height: 360px; overflow-y: auto; border: 1px solid var(--color-border); }
.search-results-dropdown[hidden] { display: none; }
.search-result-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; text-decoration: none; color: var(--color-text); transition: background var(--transition); }
.search-result-item:hover, .search-result-item:focus { background: var(--color-secondary); outline: none; }
.search-result-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.search-result-item__info { flex: 1; min-width: 0; }
.search-result-item__name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-item__price { font-size: 13px; color: var(--color-primary-dark); font-weight: 700; }
.search-no-results { padding: 16px; text-align: center; color: var(--color-text-light); font-size: 14px; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-action { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: none; cursor: pointer; padding: 7px 10px; border-radius: 6px; color: var(--color-text); text-decoration: none; font-size: 11px; transition: color var(--transition); position: relative; min-height: 44px; min-width: 44px; justify-content: center; }
.header-action:hover { color: var(--color-primary); }
/* Keep label dark for contrast; tint only the icon green (graphical, 3:1 ok). */
.header-action--whatsapp { color: var(--color-text); }
.header-action--whatsapp svg { color: #128a44; }
.header-action--whatsapp:hover svg { color: #0f7a3b; }
.header-action__label { font-size: 11px; line-height: 1; white-space: nowrap; }
.cart-count { display: inline-flex; align-items: center; justify-content: center; background: var(--color-primary); color: #fff; border-radius: 50%; min-width: 18px; height: 18px; font-size: 10px; font-weight: 700; position: absolute; top: 3px; right: 3px; line-height: 1; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; border-radius: 4px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================
   NAVIGATION
   ============================================================= */
.main-nav { background: var(--color-secondary); border-bottom: 1px solid var(--color-border); }
.main-nav__inner { display: flex; align-items: center; }
.main-nav__list { display: flex; align-items: center; flex-wrap: nowrap; }
.main-nav__item { position: relative; }
.main-nav__link { display: flex; align-items: center; gap: 4px; padding: 14px 16px; font-weight: 600; font-size: 14px; color: var(--color-text); text-decoration: none; white-space: nowrap; transition: color var(--transition); }
.main-nav__link:hover, .main-nav__item:hover > .main-nav__link { color: var(--color-primary-dark); }
.nav-sale { color: var(--color-sale) !important; }
.dropdown-arrow { transition: transform var(--transition); flex-shrink: 0; }
.main-nav__item:hover .dropdown-arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 290px; background: #fff; border-radius: 0 0 var(--border-radius) var(--border-radius); box-shadow: var(--shadow-lg); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s; z-index: 700; border-top: 2px solid var(--color-primary); }
.main-nav__item:hover .dropdown-menu, .main-nav__item:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a { display: block; padding: 9px 20px; font-size: 13.5px; color: var(--color-text); text-decoration: none; transition: background var(--transition), color var(--transition); }
.dropdown-menu li a:hover { background: var(--color-secondary); color: var(--color-primary-dark); padding-left: 24px; }

/* Mega Menu */
.has-mega { position: static; }
.mega-menu { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 2px solid var(--color-primary); box-shadow: var(--shadow-lg); padding: 24px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s; z-index: 700; }
.has-mega:hover .mega-menu, .has-mega:focus-within .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-menu__inner { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.mega-menu__brand { display: block; padding: 8px 12px; font-size: 13px; font-weight: 600; color: var(--color-text); text-decoration: none; border-radius: 6px; transition: background var(--transition), color var(--transition); }
.mega-menu__brand:hover { background: var(--color-secondary); color: var(--color-primary-dark); }

/* Category Bar */
.category-bar { background: #fff; border-top: 1px solid var(--color-border); padding: 10px 0; }
.category-bar__scroll { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.category-bar__scroll::-webkit-scrollbar { display: none; }
.category-bar__item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 14px; text-decoration: none; color: var(--color-text); font-size: 11.5px; font-weight: 600; white-space: nowrap; transition: color var(--transition); flex-shrink: 0; }
.category-bar__item:hover { color: var(--color-primary-dark); }
.category-bar__icon { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--color-secondary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform var(--transition); }
.category-bar__item:hover .category-bar__icon { transform: scale(1.08); }
.category-bar__icon img { width: 100%; height: 100%; object-fit: cover; }

/* Mobile Menu */
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 950; opacity: 0; visibility: hidden; transition: all .25s; }
.mobile-menu-overlay.is-visible { opacity: 1; visibility: visible; }
.mobile-menu { position: fixed; top: 0; left: 0; bottom: 0; width: min(340px, 88vw); background: #fff; z-index: 960; transform: translateX(-100%); transition: transform .3s ease; overflow-y: auto; padding: 0 0 24px; display: flex; flex-direction: column; }
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--color-primary-dark); color: #fff; position: sticky; top: 0; z-index: 2; }
.mobile-menu__brand { font-weight: 800; font-size: 18px; color: #fff; display: flex; align-items: center; }
.mobile-menu__brand img, .mobile-menu__brand .custom-logo { max-height: 36px; width: auto; filter: brightness(0) invert(1); }
.mobile-menu__close { background: rgba(255,255,255,.15); border: none; cursor: pointer; color: #fff; border-radius: 8px; min-width: 40px; min-height: 40px; display: flex; align-items: center; justify-content: center; }
.mobile-menu__close:hover { background: rgba(255,255,255,.28); }
.mobile-menu__quick { display: flex; gap: 8px; padding: 14px 16px; flex-wrap: wrap; background: var(--color-secondary); }
.mobile-menu__chip { flex: 1; text-align: center; min-width: 80px; padding: 10px 8px; background: #fff; border: 1px solid var(--color-border); border-radius: 10px; font-weight: 700; font-size: 13px; color: var(--color-primary-dark); text-decoration: none; transition: all var(--transition); }
.mobile-menu__chip:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.mobile-menu__list { padding: 0; list-style: none; margin: 0; }
.mobile-menu__list li a { display: flex; align-items: center; justify-content: space-between; padding: 15px 22px; font-weight: 600; font-size: 15px; color: var(--color-text); text-decoration: none; border-bottom: 1px solid var(--color-border); transition: background var(--transition); min-height: 50px; }
.mobile-menu__list li a:hover { background: var(--color-secondary); color: var(--color-primary-dark); padding-left: 26px; }
.mobile-menu__list .sub-menu { list-style: none; background: #f7faf9; padding: 0; }
.mobile-menu__list .sub-menu a { padding-left: 38px; font-size: 14px; font-weight: 500; }
.mobile-menu__wa { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px; padding: 13px; background: #25d366; color: #fff; border-radius: 12px; font-weight: 700; text-decoration: none; }
.mobile-menu__wa:hover { background: #1da851; color: #fff; }

/* =============================================================
   HERO SLIDER (image-based, not CSS background)
   ============================================================= */
.hero-slider { position: relative; overflow: hidden; height: 500px; background: #e7f1ef; }
.hero-slider__track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.25,.46,.45,.94); will-change: transform; }
.hero-slide { min-width: 100%; height: 100%; position: relative; display: flex; align-items: center; overflow: hidden; }
.hero-slide__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
.hero-slide__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 50%, transparent 100%); }
.hero-slide__overlay--teal { background: linear-gradient(to right, rgba(10,66,56,.78) 0%, rgba(21,118,107,.35) 50%, transparent 100%); }
.hero-slide .container { position: relative; z-index: 2; width: 100%; }
.hero-slide__content { max-width: 580px; color: #fff; padding: 20px 0; }
.hero-slide__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-slide__sub { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; opacity: .85; }
.hero-slide__title { font-size: clamp(26px,4.5vw,52px); font-weight: 800; line-height: 1.15; margin: 0 0 14px; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.hero-slide__text { font-size: 16px; margin: 0 0 28px; opacity: .9; max-width: 400px; }
.hero-slider__btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(255,255,255,.2); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.4); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--transition); }
.hero-slider__btn:hover { background: rgba(255,255,255,.4); }
.hero-slider__btn--prev { left: 16px; }
.hero-slider__btn--next { right: 16px; }
.hero-slider__dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
/* 28px hit area (touch-target), small visible dot via ::before */
.hero-dot { position: relative; width: 28px; height: 28px; background: transparent; border: none; cursor: pointer; padding: 0; }
.hero-dot::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.7); transition: all var(--transition); }
.hero-dot.active::before { background: #fff; width: 26px; border-radius: 6px; }
.hero-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 8px; }

/* =============================================================
   CATEGORY TILES (10 images horizontal scroll after hero)
   ============================================================= */
.category-tiles { background: #fff; padding: 0; border-bottom: 1px solid var(--color-border); }
.category-tiles__scroll { display: flex; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; gap: 3px; }
.category-tiles__scroll::-webkit-scrollbar { display: none; }
.category-tile { flex-shrink: 0; display: block; width: 180px; max-width: 260px; min-width: 120px; aspect-ratio: 1/1; overflow: hidden; position: relative; text-decoration: none; border-radius: 12px; }
.category-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; display: block; }
.category-tile:hover img { transform: scale(1.05); }
@media (max-width: 768px) {
  .category-tile { width: 140px; }
}
@media (max-width: 480px) {
  .category-tile { width: 120px; min-width: 110px; }
}

/* =============================================================
   SECTIONS
   ============================================================= */
.home-section { padding: 48px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.section-title { font-size: clamp(20px,3vw,28px); font-weight: 800; color: var(--color-text); }
.section-subtitle { font-size: 14px; color: var(--color-text-light); margin: 4px 0 0; }
.section-link { font-size: 14px; font-weight: 600; color: var(--color-primary-dark); text-decoration: none; transition: color var(--transition); white-space: nowrap; }
.section-link:hover { color: var(--color-accent); }
.sale-badge-title { background: var(--color-sale); color: #fff; padding: 2px 10px; border-radius: 4px; margin-right: 8px; font-size: .85em; }

/* =============================================================
   BUTTONS
   ============================================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; border-radius: var(--border-radius); font-weight: 700; font-size: 14px; cursor: pointer; border: 2px solid transparent; text-decoration: none; transition: all var(--transition); font-family: var(--font-primary); line-height: 1; min-height: 44px; }
.btn--primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn--primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; }
.btn--accent { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn--accent:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: #fff; }
.btn--outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--outline-white { border-color: #fff; color: #fff; background: transparent; }
.btn--outline-white:hover { background: #fff; color: var(--color-text); }
.btn--whatsapp { background: #25d366; color: #fff; border-color: #25d366; }
.btn--whatsapp:hover { background: #1da851; border-color: #1da851; color: #fff; }
.btn--lg { padding: 14px 32px; font-size: 16px; }
.btn--sm { padding: 7px 14px; font-size: 13px; min-height: 36px; }
.btn--full { width: 100%; }
.btn--icon { background: none; border: 1px solid var(--color-border); padding: 8px; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--color-text-light); transition: all var(--transition); min-width: 36px; min-height: 36px; }
.btn--icon:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn--disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* =============================================================
   PRODUCT GRID (WC ul.products + our class)
   ============================================================= */

/* Target both our custom class AND WooCommerce's default ul.products */
.products-grid,
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Horizontal scroll row (recently viewed, etc.) */
.products-scroll-row { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; list-style: none; margin: 0; padding-left: 0; }
.products-scroll-row::-webkit-scrollbar { display: none; }
.products-scroll-row .product-card, .products-scroll-row .product { min-width: 220px; flex-shrink: 0; }

/* =============================================================
   PRODUCT CARD (li.product-card)
   ============================================================= */
.product-card,
.woocommerce ul.products li.product {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
  list-style: none;
}
.product-card:hover,
.woocommerce ul.products li.product:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.product-card__badges { position: absolute; top: 10px; left: 10px; z-index: 5; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; line-height: 1.4; }
.badge--sale { background: var(--color-sale); color: #fff; }
.badge--featured { background: var(--color-badge-feat); color: #fff; }
.product-card__image-link { display: block; text-decoration: none; }
.product-card__image-wrap { aspect-ratio: 1/1; overflow: hidden; background: #f8f8f8; }
.product-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-card__img { transform: scale(1.04); }
.product-card__body { padding: 14px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.product-card__brand { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--color-primary-dark); text-decoration: none; }
.product-card__brand:hover { text-decoration: underline; }
.product-card__title { font-size: 14px; font-weight: 600; line-height: 1.4; }
.product-card__title a { color: var(--color-text); text-decoration: none; }
.product-card__title a:hover { color: var(--color-primary-dark); }
.product-card__price { font-size: 15px; font-weight: 700; color: var(--color-primary-dark); margin-top: auto; }
.product-card__actions { display: flex; gap: 6px; margin-top: 8px; }
.product-card__actions .button,
.product-card__actions .add_to_cart_button { flex: 1; min-height: 36px; font-size: 13px; padding: 7px 10px; }
.product-card__actions .quick-view-btn,
.product-card__actions .wishlist-btn { flex-shrink: 0; }

/* =============================================================
   PROMO BANNERS
   ============================================================= */
.promo-banners { background: var(--color-secondary); }
.promo-banners__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promo-banner { display: block; border-radius: var(--border-radius); overflow: hidden; position: relative; min-height: 240px; background-size: cover; background-position: center; text-decoration: none; background-color: var(--color-primary); }
.promo-banner--pink    { background-color: #15766b; background-image: linear-gradient(135deg, #15766b 0%, #0a4238 100%); }
.promo-banner--teal    { background-color: #2c7a6e; background-image: linear-gradient(135deg, #3a9e90 0%, #1e5a50 100%); }
.promo-banner--lavender{ background-color: #7c5cbf; background-image: linear-gradient(135deg, #9b7fd4 0%, #5a3a9e 100%); }
.promo-banner::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.15); transition: background var(--transition); }
.promo-banner:hover::before { background: rgba(0,0,0,.3); }
.promo-banner__content { position: relative; z-index: 1; padding: 32px 24px; color: #fff; display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 240px; justify-content: flex-end; }
.promo-banner__tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; opacity: .85; background: rgba(255,255,255,.2); display: inline-block; padding: 3px 10px; border-radius: 20px; width: fit-content; }
.promo-banner__title { font-size: 20px; font-weight: 800; line-height: 1.2; }
.promo-banner__sub { font-size: 13px; opacity: .85; margin: 0; line-height: 1.5; }

/* =============================================================
   TRUST BADGES
   ============================================================= */
.trust-badges { background: var(--color-secondary); padding: 36px 0; }
.trust-badges__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-badge { display: flex; align-items: flex-start; gap: 16px; }
.trust-badge__icon { width: 56px; height: 56px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--color-accent); box-shadow: var(--shadow-card); }
.trust-badge__text h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.trust-badge__text p { font-size: 12px; color: var(--color-text-light); margin: 0; line-height: 1.5; }

/* =============================================================
   TESTIMONIALS
   ============================================================= */
.testimonials { background: #fafafa; }
.testimonials__slider { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--border-radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-card); }
.testimonial-card__stars { color: #f39c12; font-size: 16px; letter-spacing: 2px; }
.testimonial-card__text { font-size: 14px; color: var(--color-text-light); line-height: 1.65; flex: 1; margin: 0; }
.testimonial-card__author { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--color-border); padding-top: 10px; margin-top: 4px; }
.testimonial-card__author strong { font-size: 14px; font-weight: 700; }
.testimonial-card__author span { font-size: 12px; color: var(--color-text-light); }
.testimonials__footer { text-align: center; margin-top: 32px; }

/* =============================================================
   SHOP / ARCHIVE
   ============================================================= */
.wc-main { padding-bottom: 48px; }
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding-top: 20px; padding-bottom: 48px; align-items: start; }
.shop-sidebar { background: #fff; border-radius: var(--border-radius); box-shadow: var(--shadow-card); padding: 20px; position: sticky; top: 100px; }
.shop-sidebar__close { display: none; background: none; border: none; cursor: pointer; }
.shop-content { min-width: 0; }
.shop-top-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--color-border); }
.shop-top-bar__left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-toggle { display: none; }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 800; opacity: 0; visibility: hidden; transition: all var(--transition); }
.sidebar-overlay.is-visible { opacity: 1; visibility: visible; }

/* =============================================================
   SINGLE PRODUCT — 2-column layout via CSS
   ============================================================= */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 48px; padding: 24px 0 48px; align-items: start; }
.woocommerce div.product .woocommerce-product-gallery { position: sticky; top: 100px; width: 100% !important; float: none !important; margin: 0 !important; }
.woocommerce div.product .woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce div.product .woocommerce-product-gallery__image img { border-radius: 14px; box-shadow: var(--shadow-card); }
.woocommerce div.product .flex-control-thumbs { display: flex; gap: 10px; padding: 0; margin: 12px 0 0; list-style: none; }
.woocommerce div.product .flex-control-thumbs li { width: 72px; }
.woocommerce div.product .flex-control-thumbs img { border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.woocommerce div.product .flex-control-thumbs img.flex-active { border-color: var(--color-primary); }
.woocommerce div.product .summary { min-width: 0; }
/* Tabs / related / upsells span both columns */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .upsells.products,
.woocommerce div.product .related.products { grid-column: 1 / -1; }
.woocommerce div.product p.price,
.woocommerce div.product span.price { font-size: 22px; font-weight: 800; color: var(--color-primary-dark); margin: 10px 0; display: block; }
.woocommerce div.product p.price del { color: #aaa; font-weight: 400; font-size: .8em; margin-right: 6px; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product .product_title { font-size: clamp(20px,3vw,30px); font-weight: 800; margin: 0 0 10px; }
.woocommerce div.product .woocommerce-product-rating { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.woocommerce div.product .woocommerce-review-link { font-size: 13px; color: var(--color-text-light); text-decoration: none; }
.woocommerce div.product .woocommerce-product-details__short-description { font-size: 14px; line-height: 1.7; color: var(--color-text-light); margin: 12px 0 20px; }
.woocommerce div.product .stock { font-size: 13px; font-weight: 600; margin: 0 0 16px; display: flex; align-items: center; gap: 6px; }
.woocommerce div.product .in-stock { color: var(--color-accent); }
.woocommerce div.product .out-of-stock { color: var(--color-sale); }
.woocommerce div.product .product_meta { font-size: 13px; color: var(--color-text-light); margin-top: 16px; border-top: 1px solid var(--color-border); padding-top: 16px; }
.woocommerce div.product .product_meta span.sku, .woocommerce div.product .product_meta .posted_in a, .woocommerce div.product .product_meta .tagged_as a { color: var(--color-text); font-weight: 600; }
.kcarebd-wa-btn { margin-top: 12px; }

/* Single product — after-summary sections span full width */
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; }
.woocommerce div.product .related.products { grid-column: 1 / -1; }
.woocommerce div.product .up-sells.products { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-product-gallery__trigger { display: flex; align-items: center; justify-content: center; }

/* =============================================================
   MINI CART DRAWER
   ============================================================= */
.mini-cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 980; opacity: 0; visibility: hidden; transition: all var(--transition); }
.mini-cart-overlay.is-visible { opacity: 1; visibility: visible; }
.mini-cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 100vw); background: #fff; z-index: 990; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; box-shadow: -4px 0 24px rgba(0,0,0,.12); }
.mini-cart-drawer.is-open { transform: translateX(0); }
.mini-cart-drawer__header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--color-border); flex-shrink: 0; }
.mini-cart-drawer__header h2 { font-size: 18px; font-weight: 700; margin: 0; }
.mini-cart-drawer__close { background: none; border: none; cursor: pointer; color: var(--color-text); padding: 4px; border-radius: 4px; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.mini-cart-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; }
.mini-cart-items { display: flex; flex-direction: column; gap: 12px; }
.mini-cart-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; background: #f9f9f9; border-radius: 6px; }
.mini-cart-item__image { width: 60px; height: 60px; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.mini-cart-item__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-cart-item__details { flex: 1; min-width: 0; }
.mini-cart-item__name { display: block; font-size: 13px; font-weight: 600; color: var(--color-text); text-decoration: none; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-cart-item__name:hover { color: var(--color-primary-dark); }
.mini-cart-item__meta { display: flex; gap: 6px; font-size: 13px; flex-wrap: wrap; }
.mini-cart-item__qty { color: var(--color-text-light); }
.mini-cart-item__price { font-weight: 700; color: var(--color-primary-dark); }
.mini-cart-item__remove { background: none; border: none; cursor: pointer; color: #aaa; padding: 4px; border-radius: 4px; flex-shrink: 0; transition: color var(--transition); min-width: 32px; min-height: 32px; display: flex; align-items: center; justify-content: center; }
.mini-cart-item__remove:hover { color: var(--color-sale); }
.mini-cart-footer { padding: 16px; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.mini-cart-subtotal { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; padding-bottom: 8px; }
.mini-cart-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 20px; text-align: center; color: var(--color-text-light); flex: 1; justify-content: center; }
.mini-cart-empty svg { opacity: .3; }
.mini-cart-empty p { margin: 0; font-size: 15px; }

/* Quick View */
.quick-view-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.quick-view-modal[hidden] { display: none; }
.quick-view-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.quick-view-modal__content { position: relative; z-index: 1; background: #fff; border-radius: var(--border-radius); width: 100%; max-width: 820px; max-height: 90vh; overflow-y: auto; }
.quick-view-modal__close { position: absolute; top: 12px; right: 12px; background: #fff; border: 1px solid var(--color-border); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.quick-view-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.quick-view-gallery { padding: 28px 0 28px 28px; }
.quick-view-gallery img, .quick-view-img { width: 100%; border-radius: 6px; }
.quick-view-summary { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.quick-view-title { font-size: 20px; font-weight: 800; margin: 0; }
.quick-view-price { font-size: 18px; font-weight: 700; color: var(--color-primary-dark); }
.quick-view-desc { font-size: 13px; color: var(--color-text-light); line-height: 1.6; }
.quick-view-full-link { font-size: 13px; color: var(--color-primary-dark); text-decoration: none; font-weight: 600; }
.quick-view-full-link:hover { text-decoration: underline; }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer { background: #1a1a1a; color: #ccc; margin-top: 60px; }
.footer-top { padding: 48px 0; }
.footer-top__grid { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr; gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col__title { font-size: 15px; font-weight: 700; color: #fff; padding-bottom: 8px; border-bottom: 2px solid var(--color-primary); display: inline-block; }
.footer-about { font-size: 13px; line-height: 1.7; color: #aaa; margin: 0; }
.footer-social { display: flex; gap: 12px; }
.footer-social__link { color: #aaa; transition: color var(--transition); display: flex; align-items: center; }
.footer-social__link:hover { color: var(--color-primary); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links li a { color: #aaa; text-decoration: none; font-size: 13.5px; transition: color var(--transition); }
.footer-links li a:hover { color: var(--color-primary); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #aaa; }
.footer-contact li svg { flex-shrink: 0; margin-top: 2px; color: var(--color-primary); }
.footer-contact a { color: #aaa; text-decoration: none; transition: color var(--transition); }
.footer-contact a:hover { color: var(--color-primary); }
.footer-hours { display: flex; flex-direction: column; gap: 10px; }
.footer-hours li { display: flex; justify-content: space-between; font-size: 13px; color: #aaa; gap: 12px; }
.footer-hours .closed { color: var(--color-sale); }
.footer-col__title--mt { margin-top: 16px; }
.footer-social__link--wa { color: #25d366 !important; }
.footer-bottom { background: #111; padding: 14px 0; }
.footer-bottom__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 13px; color: #b4b4b4; margin: 0; }
.footer-bottom__contact a { color: var(--color-primary); text-decoration: none; }
.footer-bottom__contact a:hover { text-decoration: underline; }

/* WhatsApp Float */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 950; width: 56px; height: 56px; background: #25d366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,.4); text-decoration: none; transition: transform var(--transition), box-shadow var(--transition); }
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,.5); color: #fff; }

/* Back to Top */
.back-to-top { position: fixed; bottom: 90px; right: 26px; z-index: 940; width: 44px; height: 44px; background: var(--color-primary); color: #fff; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-card); transition: opacity var(--transition), transform var(--transition); }
.back-to-top:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.back-to-top[hidden] { display: none; }

/* =============================================================
   PAGE / 404
   ============================================================= */
.page-main, .single-main { padding: 40px 0 60px; }
.page-title { font-size: clamp(22px,3vw,34px); font-weight: 800; margin-bottom: 24px; }
.entry-content { font-size: 15px; line-height: 1.8; }
.entry-content p { margin: 0 0 1em; }
.error-404 { padding: 80px 0; text-align: center; }
.error-404__title { font-size: 96px; font-weight: 800; color: var(--color-primary); line-height: 1; margin-bottom: 16px; }
.error-404__text { font-size: 18px; color: var(--color-text-light); margin: 0 0 32px; }

/* Breadcrumb */
.wc-breadcrumb { margin: 16px 0 20px; }
.wc-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--color-text-light); align-items: center; }
.wc-breadcrumb ol li a { color: var(--color-text-light); text-decoration: none; }
.wc-breadcrumb ol li a:hover { color: var(--color-primary-dark); text-decoration: underline; }
.wc-breadcrumb .sep { color: var(--color-border); margin: 0 2px; }

/* =============================================================
   SHOP SIDEBAR — header + filter list
   ============================================================= */
.shop-sidebar__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--color-border); }
.shop-sidebar__title { font-size: 15px; font-weight: 700; color: var(--color-text); }
.shop-sidebar__close { display: none; background: none; border: none; cursor: pointer; color: var(--color-text); min-width: 36px; min-height: 36px; }
.widget-filter { margin-bottom: 24px; }
.filter-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.filter-list__link { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--color-text); text-decoration: none; padding: 6px 10px; border-radius: 6px; transition: all var(--transition); }
.filter-list__link:hover,
.filter-list__link.active { background: var(--color-secondary); color: var(--color-primary-dark); font-weight: 600; }
.filter-list__link .count { font-size: 11px; color: var(--color-text-light); background: #f0f0f0; border-radius: 10px; padding: 1px 7px; }
.filter-list__link--sale { color: var(--color-sale); font-weight: 600; }
.filter-list__link--sale.active { background: #fef2f2; }
.filter-list__link--sale svg { color: var(--color-sale); }

/* Shop layout variants */
.shop-layout--sidebar-right { grid-template-columns: 1fr 260px; }
.shop-layout--sidebar-right .shop-sidebar { order: 2; }
.shop-layout--sidebar-right .shop-content { order: 1; }
.shop-layout--full { grid-template-columns: 1fr; }
.shop-layout--full .shop-sidebar { display: none; }

/* =============================================================
   WISHLIST PAGE
   ============================================================= */
.woocommerce-page.woocommerce-wishlist .site-main,
.woocommerce-page .wishlist_table { padding: 28px 0 60px; }
.wishlist_table table { width: 100%; border-collapse: collapse; }
.wishlist_table table th { padding: 10px 14px; background: #f9f9f9; font-size: 13px; font-weight: 700; border-bottom: 2px solid var(--color-border); text-align: left; }
.wishlist_table table td { padding: 14px; border-bottom: 1px solid var(--color-border); font-size: 14px; vertical-align: middle; }
.wishlist_table .product-thumbnail img { width: 64px; border-radius: 6px; }
.wishlist_table .product-name a { font-weight: 600; color: var(--color-text); text-decoration: none; }
.wishlist_table .product-name a:hover { color: var(--color-primary-dark); }
.wishlist_table .product-remove a { color: var(--color-sale) !important; }
.tinvwl_added_to_cart_notice,.tinvwl_removed_from_cart_notice { background: #ecfdf5; border-left: 4px solid #10b981; padding: 10px 16px; border-radius: 6px; font-size: 14px; color: #065f46; margin-bottom: 16px; }

/* =============================================================
   ORDER RECEIVED / THANK YOU PAGE
   ============================================================= */
.woocommerce-order-received .woocommerce { padding: 32px 0 60px; }
.woocommerce-order { background: #fff; border-radius: var(--border-radius); box-shadow: var(--shadow-card); padding: 32px; margin-bottom: 24px; }
.woocommerce-order p.thankyou-msg,
.woocommerce-thankyou-order-received { background: #ecfdf5; border-radius: var(--border-radius); padding: 20px 24px; font-size: 16px; font-weight: 600; color: #065f46; margin-bottom: 24px; border-left: 4px solid #10b981; }
.woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 0; list-style: none; padding: 0; margin: 0 0 24px; border: 1px solid var(--color-border); border-radius: var(--border-radius); overflow: hidden; }
.woocommerce-order-overview li { flex: 1; min-width: 120px; padding: 16px 20px; border-right: 1px solid var(--color-border); font-size: 13px; color: var(--color-text-light); }
.woocommerce-order-overview li:last-child { border-right: none; }
.woocommerce-order-overview li strong { display: block; font-size: 15px; color: var(--color-text); margin-top: 4px; }
.woocommerce-order-details h2,
.woocommerce-customer-details h2 { font-size: 18px; font-weight: 800; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--color-border); }
.woocommerce-customer-details address { font-style: normal; font-size: 14px; line-height: 1.8; color: var(--color-text-light); }

/* =============================================================
   ACCOUNT PAGES (login, register, lost password)
   ============================================================= */
.woocommerce-account .woocommerce:not(.woocommerce-MyAccount-content) { padding: 32px 0 60px; }
.woocommerce-form-login,
.woocommerce-form-register { background: #fff; border-radius: var(--border-radius); box-shadow: var(--shadow-card); padding: 32px; max-width: 480px; margin: 0 auto; }
.woocommerce-form-login h2,
.woocommerce-form-register h2 { font-size: 22px; font-weight: 800; margin: 0 0 24px; }
.lost_reset_password { max-width: 480px; margin: 0 auto; background: #fff; padding: 32px; border-radius: var(--border-radius); box-shadow: var(--shadow-card); }

/* =============================================================
   CONSISTENT PAGE WRAPPER FOR ALL WC PAGES
   ============================================================= */
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-account .site-main { padding-top: 24px; }
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* Checkout two-column layout */
.woocommerce-checkout-columns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1200px) {
  .footer-top__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .mega-menu__inner { grid-template-columns: repeat(4, 1fr); }
  .products-grid, .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .trust-badges__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .testimonials__slider { grid-template-columns: repeat(2, 1fr); }
  .woocommerce div.product { grid-template-columns: 1fr; }
  .woocommerce div.product .woocommerce-product-gallery { position: static; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr !important; }
  .shop-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 90vw); z-index: 850; transform: translateX(-100%); transition: transform .3s ease; border-radius: 0; overflow-y: auto; padding: 20px; }
  .shop-sidebar.is-open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,.18); }
  .shop-sidebar__close { display: flex; align-items: center; justify-content: center; }
  .filter-toggle { display: flex; }
  .quick-view-inner { grid-template-columns: 1fr; }
  .quick-view-gallery { padding: 20px 20px 0; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .header-search { display: none; }
  .main-nav__list { display: none; }
  .hero-slider { height: 340px; }
  .hero-slide__content { text-align: center; margin: 0 auto; max-width: 100%; }
  .hero-slide__overlay { background: linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.15) 100%); }
  .hero-slide__title { font-size: 26px; margin-bottom: 10px; }
  .hero-slide__text { display: block; font-size: 14px; margin-bottom: 18px; }
  .hero-slide__actions { justify-content: center; }
  .hero-slide__actions .btn { flex: 1; min-width: 130px; }
  .products-grid, .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .promo-banners__grid { grid-template-columns: 1fr; }
  .testimonials__slider { grid-template-columns: repeat(2, 1fr); }
  .footer-top__grid { grid-template-columns: 1fr; gap: 28px; }
  .top-bar__left > .top-bar__item:not(:first-child) { display: none; }
  .home-section { padding: 28px 0; }
  .trust-badges__grid { grid-template-columns: 1fr; }
  /* Checkout: stack columns at mobile */
  .woocommerce-checkout-columns { grid-template-columns: 1fr; }
  /* Single product: stack image + summary */
  .woocommerce div.product { grid-template-columns: 1fr; gap: 24px; }
  .woocommerce div.product .woocommerce-product-gallery { grid-column: 1; position: static; }
  /* Cart + wishlist tables: horizontal scroll */
  .woocommerce-cart-form,
  .shop_table.wishlist_table,
  .woocommerce table.shop_table { overflow-x: auto; display: block; }
  /* Order received overview: stack */
  .woocommerce-order-overview { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .products-grid, .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .testimonials__slider { grid-template-columns: 1fr; }
  .hero-slider { height: 220px; }
  .hero-slide__content { padding: 16px 0; }
  .mega-menu__inner { grid-template-columns: repeat(2, 1fr); }
  .cart-count { width: 16px; height: 16px; font-size: 9px; }
}

/* =============================================================
   ENHANCEMENTS — overflow fix, single product, cart, checkout
   ============================================================= */

/* Footer / horizontal-overflow fix.
   The off-canvas drawers (mini-cart, mobile menu) are position:fixed and
   translated off-screen, which creates a page-wide horizontal scroll —
   making the footer background look narrower than the viewport.
   `overflow-x: clip` on <html> clips that overflow WITHOUT breaking the
   sticky header (unlike `hidden`, `clip` is not a scroll container). */
html { overflow-x: clip; }
#page { overflow-x: clip; }
.site-footer { width: 100%; }

/* ---- Single product: conversion-friendly add-to-cart area ---- */
.woocommerce div.product form.cart { margin-bottom: 14px; }
.woocommerce div.product form.cart .quantity { margin-right: 10px; }
.woocommerce div.product .single_add_to_cart_button {
  background: var(--color-primary); color: #fff; font-weight: 700;
  padding: 12px 26px; border-radius: 8px; font-size: 15px; border: none;
  min-height: 48px; transition: background var(--transition);
}
.woocommerce div.product .single_add_to_cart_button:hover { background: var(--color-primary-dark); }

/* Buy Now button — high-contrast secondary CTA */
.btn--buynow.kcarebd-buynow {
  background: #1a1a1a !important; color: #fff !important; margin-left: 8px;
  border: none; border-radius: 8px; font-weight: 700; padding: 12px 26px;
  min-height: 48px; cursor: pointer; transition: background var(--transition);
}
.btn--buynow.kcarebd-buynow:hover { background: #000 !important; }

/* Extra actions row (wishlist + view cart) */
.single-product-extra-actions {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin: 14px 0 4px; padding-top: 14px; border-top: 1px solid var(--color-border);
}
.single-product-viewcart {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px;
  font-weight: 600; color: var(--color-text); text-decoration: none;
}
.single-product-viewcart:hover { color: var(--color-primary); }
.single-product-extra-actions .yith-wcwl-add-to-wishlist,
.single-product-extra-actions .tinvwl-wishlist { margin: 0; font-size: 13.5px; }

/* Trust signals under add-to-cart */
.single-product-trust {
  list-style: none; margin: 16px 0 0; padding: 16px 0 0;
  border-top: 1px solid var(--color-border); display: flex;
  flex-direction: column; gap: 9px;
}
.single-product-trust li {
  display: flex; align-items: center; gap: 9px; font-size: 13px;
  color: var(--color-text-light);
}
.single-product-trust svg { color: var(--color-accent); flex-shrink: 0; }

/* WhatsApp order button spacing on single product */
.kcarebd-wa-btn { margin-top: 12px; }

/* ============================================================
   MOBILE: bottom nav, menu search, compact category bar
   ============================================================ */
.mobile-menu__search { display: flex; margin: 14px 16px 0; border: 2px solid var(--color-primary); border-radius: 10px; overflow: hidden; }
.mobile-menu__search input { flex: 1; border: none; padding: 11px 14px; font-size: 14px; font-family: var(--font-primary); outline: none; min-width: 0; }
.mobile-menu__search button { background: var(--color-primary); color: #fff; border: none; padding: 0 16px; cursor: pointer; display: flex; align-items: center; }

.mobile-bottom-nav { display: none; }

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 945;
    background: #fff; border-top: 1px solid var(--color-border);
    box-shadow: 0 -2px 12px rgba(0,0,0,.06);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .mbn__item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-height: 56px; font-size: 10.5px; font-weight: 600;
    color: var(--color-text-light); text-decoration: none; background: none; border: none;
    cursor: pointer; font-family: inherit;
  }
  .mbn__item svg { width: 22px; height: 22px; }
  .mbn__item.is-active { color: var(--color-primary-dark); }
  .mbn__cart-wrap { position: relative; display: inline-flex; }
  .mbn__cart-wrap .cart-count { position: absolute; top: -6px; right: -10px; background: var(--color-primary); color: #fff; border-radius: 50%; min-width: 16px; height: 16px; font-size: 9px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
  /* keep content clear of the fixed bar */
  body { padding-bottom: 58px; }
  .whatsapp-float { bottom: 72px; }
  .back-to-top { bottom: 130px; }

  /* Hide the icon category bar on mobile — it bloats the sticky header.
     Categories are reachable via the showcase, the menu drawer and bottom nav. */
  .category-bar { display: none; }
}

/* ============================================================
   AUTOMATED CSS CATEGORY SHOWCASE (image-free, accessible)
   ============================================================ */
.cat-showcase { padding: 44px 0; background: linear-gradient(180deg, #f4faf8 0%, #ffffff 100%); }
.cat-showcase__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.cat-card { margin: 0; }
.cat-card__link { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; height: 100%; padding: 22px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--color-border); text-decoration: none; box-shadow: 0 2px 10px rgba(10,66,56,.05); transition: transform .2s ease, box-shadow .2s ease; }
.cat-card__link:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10,66,56,.16); }
.cat-card__link:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.cat-card__badge { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 10px; text-transform: uppercase; box-shadow: 0 4px 12px rgba(10,66,56,.25); }
.cat-card__name { font-size: 16px; font-weight: 800; color: var(--color-text); line-height: 1.25; }
.cat-card__count { font-size: 12.5px; color: var(--color-text-light); }
.cat-card__cta { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; color: var(--color-primary-dark); }
/* Brand-tinted badge variants */
.cat-card--v1 .cat-card__badge { background: linear-gradient(135deg, #1f8f81, #0a4238); }
.cat-card--v2 .cat-card__badge { background: linear-gradient(135deg, #15766b, #06302a); }
.cat-card--v3 .cat-card__badge { background: linear-gradient(135deg, #2c9a8b, #15766b); }
.cat-card--v4 .cat-card__badge { background: linear-gradient(135deg, #0e5f54, #0a4238); }
.cat-card--v5 .cat-card__badge { background: linear-gradient(135deg, #15766b, #0a4238); }
@media (max-width: 768px) {
  .cat-showcase { padding: 26px 0; }
  /* Horizontal scroll row on mobile so it doesn't take a big vertical block */
  .cat-showcase__grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
  .cat-showcase__grid::-webkit-scrollbar { display: none; }
  .cat-card { scroll-snap-align: start; }
  .cat-card__link { padding: 16px 14px; }
  .cat-card__badge { width: 42px; height: 42px; font-size: 19px; }
  .cat-card__name { font-size: 14px; }
}

/* ---- Back-in-stock notify form ---- */
.kcarebd-stock-notify { margin: 18px 0; padding: 18px 20px; background: var(--color-secondary); border: 1px solid var(--color-border); border-radius: 12px; }
.kcarebd-stock-notify__title { font-weight: 800; font-size: 15px; margin: 0 0 4px; color: var(--color-primary-dark); }
.kcarebd-stock-notify__sub { font-size: 13px; color: var(--color-text-light); margin: 0 0 12px; }
.kcarebd-stock-notify__form { display: flex; gap: 10px; flex-wrap: wrap; }
.kcarebd-stock-notify__form input[type="email"] { flex: 1; min-width: 200px; min-height: 48px; padding: 11px 14px; border: 1px solid var(--color-border); border-radius: 8px; font-size: 14px; font-family: var(--font-primary); }
.kcarebd-stock-notify__form input[type="email"]:focus { border-color: var(--color-primary); outline: none; }
.kcarebd-stock-notify__form .btn { min-height: 48px; }
.kcarebd-stock-notify__ok { color: #065f46; background: #ecfdf5; border-radius: 8px; padding: 12px 16px; font-weight: 600; margin: 0; }
.kcarebd-stock-notify__err { color: #991b1b; font-weight: 600; margin: 0 0 8px; }

/* Render perf: skip rendering work for below-the-fold sections until needed.
   contain-intrinsic-size reserves space to avoid layout shift (CLS). */
.testimonials, .promo-banners, .recently-viewed, .site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

/* ---- Brands grid ([kcarebd_brands]) ---- */
.kcarebd-brands-grid { display: grid; grid-template-columns: repeat(var(--brand-cols, 5), 1fr); gap: 16px; margin: 8px 0 32px; }
.kcarebd-brand-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 22px 14px; background: #fff; border: 1px solid var(--color-border); border-radius: 12px; text-decoration: none; transition: box-shadow var(--transition), transform var(--transition); min-height: 120px; }
.kcarebd-brand-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); border-color: var(--color-primary); }
.kcarebd-brand-card img { max-height: 60px; max-width: 100%; width: auto; object-fit: contain; }
.kcarebd-brand-card__name { font-weight: 700; font-size: 15px; color: var(--color-text); text-align: center; }
.kcarebd-brand-card__count { font-size: 11px; color: var(--color-text-light); }
@media (max-width: 1024px) { .kcarebd-brands-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px)  { .kcarebd-brands-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width: 480px)  { .kcarebd-brands-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Cart page polish ---- */
.woocommerce-cart .shop_table.cart { border-collapse: separate; border-spacing: 0; width: 100%; background: #fff; border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; }
.woocommerce-cart .shop_table.cart thead th { background: var(--color-secondary); padding: 14px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--color-text-light); text-align: left; }
.woocommerce-cart .shop_table.cart td { padding: 16px 12px; vertical-align: middle; border-top: 1px solid var(--color-border); }
.woocommerce-cart .shop_table.cart td.product-thumbnail img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.woocommerce-cart .shop_table.cart td.product-name a { font-weight: 600; color: var(--color-text); text-decoration: none; }
.woocommerce-cart .shop_table.cart td.product-name a:hover { color: var(--color-primary); }
.woocommerce-cart .shop_table.cart .product-remove a.remove { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #f3f3f3; color: #c0392b !important; font-size: 18px; line-height: 1; text-decoration: none; }
.woocommerce-cart .shop_table.cart .product-remove a.remove:hover { background: #c0392b; color: #fff !important; }
.woocommerce-cart td.actions { padding: 16px 12px; }
.woocommerce-cart td.actions .coupon { display: inline-flex; gap: 8px; }
.woocommerce-cart td.actions .button { background: var(--color-primary); color: #fff; border: none; border-radius: 8px; padding: 10px 18px; font-weight: 600; cursor: pointer; min-height: 44px; }
.woocommerce-cart td.actions .coupon .input-text { border: 1px solid var(--color-border); border-radius: 8px; padding: 10px 12px; min-width: 160px; }
.cart-collaterals { display: flex; justify-content: flex-end; margin-top: 24px; }
.cart-collaterals .cart_totals { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--color-border); border-radius: 12px; padding: 20px; }
.cart-collaterals .cart_totals h2 { font-size: 18px; margin: 0 0 14px; }
.cart-collaterals .cart_totals table { width: 100%; }
.cart-collaterals .cart_totals th, .cart-collaterals .cart_totals td { padding: 10px 0; border-top: 1px solid var(--color-border); font-size: 14px; text-align: left; }
.cart-collaterals .wc-proceed-to-checkout { margin-top: 16px; }
.wc-proceed-to-checkout a.checkout-button { display: block; text-align: center; background: var(--color-primary); color: #fff; font-weight: 700; padding: 14px; border-radius: 10px; text-decoration: none; font-size: 16px; transition: background var(--transition); }
.wc-proceed-to-checkout a.checkout-button:hover { background: var(--color-primary-dark); }

/* ---- Checkout page polish ---- */
.woocommerce-checkout #customer_details { background: #fff; border: 1px solid var(--color-border); border-radius: 12px; padding: 22px; }
.woocommerce-checkout #order_review_heading { font-size: 18px; font-weight: 800; margin: 0 0 14px; }
.woocommerce-checkout #order_review { background: var(--color-secondary); border: 1px solid var(--color-border); border-radius: 12px; padding: 22px; position: sticky; top: 100px; }
.woocommerce-checkout .shop_table { width: 100%; }
.woocommerce-checkout .shop_table th, .woocommerce-checkout .shop_table td { padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--color-border); text-align: left; }
.woocommerce-checkout #place_order { width: 100%; background: var(--color-primary); color: #fff; font-weight: 800; font-size: 16px; padding: 15px; border: none; border-radius: 10px; cursor: pointer; margin-top: 10px; transition: background var(--transition); min-height: 52px; }
.woocommerce-checkout #place_order:hover { background: var(--color-primary-dark); }
.woocommerce-checkout .form-row label { font-size: 13.5px; font-weight: 600; margin-bottom: 5px; display: block; }
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row .select2-container,
.woocommerce-checkout .form-row select { width: 100%; border: 1px solid var(--color-border); border-radius: 8px; padding: 11px 12px; font-size: 14px; min-height: 44px; }
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3 { font-size: 17px; margin: 0 0 16px; }

@media (max-width: 768px) {
  .btn--buynow.kcarebd-buynow { margin-left: 0; margin-top: 8px; width: 100%; }
  .woocommerce div.product form.cart .button { width: 100%; }
  .woocommerce-checkout #order_review { position: static; }
  .cart-collaterals .cart_totals { max-width: 100%; }
}
