/* ===== Fonts =====
   Served from fonts/ (no trip to Google). Variable fonts: one file holds
   every weight. Latin letters only — Bengali text uses Baloo Da 2 / Noto
   Sans Bengali where a page declares them (index.html, checkout.html),
   otherwise the device's own Bengali font. */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(../fonts/baloo2-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Design Tokens ===== */
:root {
  --color-primary: #E2921D;
  --color-primary-dark: #B8720F;
  --color-accent: #FFC845;
  --color-coral: #A6431D;
  --color-bg: #FBF6EC;
  --color-surface: #FFFFFF;
  --color-text: #3D2817;
  --color-text-soft: #8A7259;
  --color-border: #EBE0CB;

  --font-display: 'Baloo 2', 'Baloo Da 2', 'Noto Sans Bengali', sans-serif;
  --font-body: 'Inter', 'Noto Sans Bengali', sans-serif;

  --radius-md: 14px;
  --radius-lg: 24px;
  --max-width: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text);
  line-height: 1.15;
}

/* ===== Buttons =====
   One order colour everywhere: brand coral (--color-order) with white
   text, flat with a soft shadow. Ghost = outlined secondary action. */
:root { --color-order: #A6431D; --color-order-dark: #86330F; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary {
  background: var(--color-order);
  color: #FFFFFF;
  box-shadow: 0 10px 22px -12px rgba(166, 67, 29, 0.75);
}
.btn-primary:hover { background: var(--color-order-dark); box-shadow: 0 14px 26px -12px rgba(166, 67, 29, 0.85); }
.btn-ghost {
  background: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}
.btn-ghost:hover { background: var(--color-text); color: white; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}
.logo span { color: var(--color-coral); }
/* logo-clean.png / logo-light.png: transparent, trimmed versions of logo.png
   (the original has a cream box baked in). Clean = header, light (cream
   lettering) = the dark green footer. */
.logo-img { height: 46px; width: auto; }
.footer-logo-img { height: 60px; width: auto; }
.main-nav { display: flex; gap: 32px; align-items: center; }
.main-nav a {
  font-weight: 500;
  color: var(--color-text-soft);
}
.main-nav a:hover { color: var(--color-primary-dark); }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  font-weight: 500;
  color: var(--color-text-soft);
  cursor: pointer;
  user-select: none;
}
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle { color: var(--color-primary-dark); }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 8px;
  min-width: 160px;
  box-shadow: 0 12px 24px rgba(30, 58, 95, 0.12);
  z-index: 60;
  margin-top: 10px;
}
/* Invisible bridge over the 10px gap, so the menu stays open while the
   mouse moves down from "Kids ▾" to the links */
.dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 14px;
}
.dropdown-menu a, .dropdown-menu span {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  white-space: nowrap;
}
.dropdown-menu a:hover, .dropdown-menu span:hover { background: var(--color-bg); }
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu { display: block; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.social-icons { display: flex; align-items: center; gap: 10px; }
.social-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-soft);
  transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.social-icon svg { width: 17px; height: 17px; }
.social-icon:hover { transform: translateY(-2px); }
.social-icon.fb:hover { color: #1877F2; border-color: #1877F2; }
.social-icon.ig:hover { color: #E1306C; border-color: #E1306C; }
.social-icon.wa:hover { color: #25D366; border-color: #25D366; }
.icon-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
}
.cart-count {
  background: var(--color-coral);
  color: white;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.75rem;
  margin-left: 6px;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ===== Hero: full-bleed campaign banner slider =====
   The photo covers the whole hero; a warm dark gradient on the text side
   keeps the white headline readable. --left / --right picks which side
   the text sits on, so it never covers the child. */
.hero { position: relative; overflow: hidden; background: #2A1B0F; }
.hero-slider { position: relative; }
.hero-slide {
  display: none;
  position: relative;
  min-height: clamp(540px, 80vh, 720px);
  align-items: center;
  color: #FFFFFF;
}
.hero-slide.active { display: flex; }
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}
.hero-slide.active .hero-bg { animation: heroZoom 8s ease-out both; }
.hero-slide.active .hero-text { animation: heroFade 0.6s ease both; }
@keyframes heroZoom { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes heroFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-slide--left::after {
  background: linear-gradient(90deg, rgba(42, 27, 15, 0.82) 0%, rgba(42, 27, 15, 0.55) 34%, rgba(42, 27, 15, 0) 62%),
              linear-gradient(0deg, rgba(42, 27, 15, 0.55) 0%, rgba(42, 27, 15, 0) 28%);
}
.hero-slide--right::after {
  background: linear-gradient(270deg, rgba(42, 27, 15, 0.82) 0%, rgba(42, 27, 15, 0.55) 34%, rgba(42, 27, 15, 0) 62%),
              linear-gradient(0deg, rgba(42, 27, 15, 0.55) 0%, rgba(42, 27, 15, 0) 28%);
}

/* .hero-slide prefix: beats the later `.container { padding: 0 … }` media rules */
.hero-slide .hero-content { position: relative; z-index: 2; width: 100%; padding-block: 56px 100px; }
.hero-text { max-width: 540px; min-width: 0; }
.hero-slide--right .hero-text { margin-left: auto; }

.hero-eyebrow {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}
.hero-text h1 {
  color: #FFFFFF;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 16px;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero-text h1 .highlight { color: var(--color-accent); display: inline-block; }
.hero-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 470px;
  margin-bottom: 28px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero buttons: flat, even height, icon + label. Primary is the brand
   honey-yellow (reads clearly on the dark photo overlay); secondary is a
   frosted outline so it never competes with the primary. */
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.hero-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.hero-btn:active { transform: translateY(1px); }
.hero-btn:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }

.hero-btn--primary {
  background: var(--color-accent);
  color: var(--color-text);
  padding-right: 18px;
  box-shadow: 0 8px 18px -10px rgba(255, 200, 69, 0.65);
}
.hero-btn--primary:hover {
  background: #FFD566;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px -10px rgba(255, 200, 69, 0.8);
}
.hero-btn-arrow { transition: transform 0.2s ease; }
.hero-btn--primary:hover .hero-btn-arrow { transform: translateX(3px); }

.hero-btn--glass {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-btn--glass:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--color-text); }
.hero-btn-wa { color: #25D366; }

.hero-controls {
  position: absolute;
  left: 0; right: 0;
  bottom: 26px;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-nav { display: flex; align-items: center; gap: 12px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}
.hero-dot.active { width: 28px; background: var(--color-accent); }
.hero-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: #FFFFFF; color: var(--color-text); }
.hero-arrow:focus-visible, .hero-dot:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* Phones & tablets: photo still fills the hero, text moves to the bottom */
@media (max-width: 900px) {
  .hero-slide { min-height: clamp(560px, 86vh, 680px); align-items: flex-end; }
  .hero-bg { object-position: var(--pos-m, 50% 50%); }
  .hero-slide--left::after, .hero-slide--right::after {
    background: linear-gradient(0deg, rgba(42, 27, 15, 0.92) 0%, rgba(42, 27, 15, 0.7) 38%, rgba(42, 27, 15, 0) 68%);
  }
  .hero-slide .hero-content { padding-block: 40px 92px; }
  .hero-text, .hero-slide--right .hero-text { max-width: 600px; margin: 0 auto; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-controls { bottom: 22px; }
}
@media (max-width: 600px) {
  .hero-text h1 { font-size: 2.1rem; }
  .hero-sub { font-size: 1rem; margin-bottom: 22px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-btn { width: 100%; min-height: 50px; }
  .hero-arrow { display: none; }
  .hero-slide .hero-content { padding-block: 32px 84px; }
}

/* ===== Trust Banner ===== */
/* Four promises in one white band, split by hairlines. Icons sit in a
   honeycomb hexagon (the brand's bee motif); WhatsApp is a real link. */
.trust-banner {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding-block: 28px;
}
.trust-banner-inner {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.trust-item {
  min-width: 0;
  padding: 4px 24px;
  border-left: 1px solid var(--color-border);
}
.trust-item:first-child { border-left: none; padding-left: 0; }
.trust-item:last-child { padding-right: 0; }
.trust-item, .trust-link {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-link { border-radius: 14px; margin: -6px; padding: 6px; transition: background-color 0.2s ease; }
.trust-link:hover { background: #FFF8EA; }
.trust-link:hover strong { color: var(--color-coral); }
.trust-link:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.trust-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF0CC;
  color: var(--color-coral);
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
  transition: background-color 0.2s ease;
}
.trust-link:hover .trust-icon { background: var(--color-accent); }
.trust-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trust-text { min-width: 0; }
.trust-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.25;
  color: var(--color-text);
  transition: color 0.2s ease;
}
.trust-text p { color: var(--color-text-soft); font-size: 0.84rem; line-height: 1.4; margin-top: 2px; }

/* ===== Categories: three tall photo cards =====
   Whole card links to the group page (stretched link); the Summer/Winter
   chips sit above it as their own links. On phones the row becomes a
   swipeable strip so each photo stays big. */
.categories { padding-block: 48px 56px; }
.categories-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 22px;
}
.categories h2 { font-size: 1.7rem; }
.categories-head p { color: var(--color-text-soft); }
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.category-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #F1E4CC;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -18px rgba(61, 40, 23, 0.5);
}
.category-card-img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.category-card:hover .category-card-img { transform: scale(1.05); }
.category-card-body {
  padding: 64px 18px 18px;
  color: #FFFFFF;
  background: linear-gradient(0deg, rgba(42, 27, 15, 0.9) 0%, rgba(42, 27, 15, 0.55) 48%, rgba(42, 27, 15, 0) 100%);
}
.category-card-meta { font-size: 0.78rem; color: rgba(255, 255, 255, 0.86); margin-bottom: 2px; }
.category-card h3 { color: #FFFFFF; font-size: 1.55rem; line-height: 1.1; margin-bottom: 10px; }
.category-card-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.category-card-link:focus-visible { outline: none; }
.category-card:has(.category-card-link:focus-visible) { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.category-card-chips { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.category-card-chips a {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.category-card-chips a:hover { background: #FFFFFF; color: var(--color-text); }
.category-card-chips a:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.category-card-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  pointer-events: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-45deg);
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.category-card-arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.category-card:hover .category-card-arrow { transform: rotate(0deg); background: var(--color-accent); }

/* ===== Products ===== */
/* white behind every product list and the product page, so products look clean */
.products { padding: 64px 0; background: #FFFFFF; }
.product-detail-section { background: #FFFFFF; }
.products.alt { background: #F1EBDD; }
.section-heading { margin-bottom: 32px; }
.section-heading h2 { font-size: 1.7rem; margin-bottom: 6px; }
.section-heading p { color: var(--color-text-soft); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-image {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  flex-shrink: 0;
  overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-image img { transform: scale(1.05); }
/* Name, price right under it, then the buttons. margin-top:auto on the
   buttons keeps them on one line across a row even when a name wraps. */
.product-info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.product-info h4 {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price {
  color: var(--color-primary-dark);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.product-info .card-actions { padding-top: 10px; }
.add-to-cart {
  margin-top: auto;
  background: var(--color-text);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 10px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
}
.add-to-cart:hover { background: var(--color-primary-dark); }

.product-grid { align-items: stretch; }
/* Until the cards are drawn (scripts arrive late on slow phones), hold a
   screen of space so the footer starts off-screen and nothing visible jumps */
.product-grid:empty:not(.is-rendered) { min-height: 100vh; }
.product-detail:empty { min-height: 100vh; } /* same for the product page before its script runs */
.product-grid .product-card { height: 100%; }

.section-view-all {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ===== Category Page Header ===== */
.page-header {
  padding: 44px 0 20px;
}
.breadcrumb {
  color: var(--color-text-soft);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.breadcrumb a, .breadcrumb [data-route] { color: var(--color-primary-dark); font-weight: 600; }
.page-header h1 {
  font-size: 2.1rem;
  margin-bottom: 8px;
}
.page-sub { color: var(--color-text-soft); }

/* ===== Product Detail Page ===== */
.product-detail-section { padding: 44px 0 80px; }
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 20px;
  margin-bottom: 72px;
}
.product-detail-image {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #FDF3E0, #FFF8EA);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  overflow: hidden;
}
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.stock-out-note { background: #FDECEA; color: #B3261E; border-radius: 10px; padding: 10px 14px; font-size: 0.9rem; font-weight: 600; margin: -10px 0 18px; }
.btn.is-disabled, .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.product-detail-category {
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.product-detail-info h1 { font-size: 1.9rem; margin-bottom: 10px; }
.product-detail-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-coral);
  font-weight: 700;
  margin-bottom: 18px;
}
.product-detail-desc { color: var(--color-text-soft); margin-bottom: 26px; max-width: 440px; }
.product-detail-gallery { display: flex; flex-direction: column; gap: 12px; }
.product-thumb-strip { display: flex; gap: 10px; }
.product-thumb {
  width: 64px; height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--color-border);
  padding: 0;
  cursor: pointer;
  background: var(--color-surface);
  flex-shrink: 0;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumb.selected { border-color: var(--color-primary); }
.size-selector { margin-bottom: 22px; }
.size-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-soft);
  margin-bottom: 10px;
}
.size-options { display: flex; gap: 10px; flex-wrap: wrap; }
.size-option {
  min-width: 56px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.size-option:hover { border-color: var(--color-primary); }
.size-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: white;
}
/* each size's own price (only when sizes cost different amounts) */
.size-option small { display: block; margin-top: 2px; font-size: 0.74rem; font-weight: 600; color: var(--color-text-soft); }
.size-option.selected small { color: rgba(255, 255, 255, 0.92); }
.qty-selector {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 20px;
}
.qty-selector button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg);
  font-size: 1.1rem;
  cursor: pointer;
}
.product-detail-info .btn { margin-bottom: 12px; }
.detail-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-secondary .btn { margin-bottom: 0; padding-inline: 14px; font-size: 0.92rem; }
.wish-detail { margin-bottom: 0; }
@media (max-width: 380px) { .detail-secondary { grid-template-columns: 1fr; } }
.product-not-found { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: var(--color-text-soft); }
.product-not-found a { color: var(--color-primary-dark); font-weight: 600; }
/* Shown while live products load, so a live product never flashes "not found" */
.product-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 100vh; /* about the height of the product view it turns into, so the page doesn't jump */
  color: var(--color-text-soft);
  font-weight: 600;
}
.product-loading-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: productSpin 0.8s linear infinite;
}
@keyframes productSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .product-loading-spinner { animation-duration: 2.4s; } }
.related-section h2 { font-size: 1.4rem; margin-bottom: 20px; }

@media (max-width: 700px) {
  .product-detail { grid-template-columns: 1fr; }
}

/* ===== Promo ===== */
.promo {
  background: var(--color-primary);
  color: white;
  padding: 64px 0;
  text-align: center;
}
.promo h2 { color: white; font-size: 1.8rem; margin-bottom: 10px; }
.promo p { margin-bottom: 26px; opacity: 0.92; }
.promo .btn-primary { box-shadow: 0 12px 24px -12px rgba(61, 40, 23, 0.6); }

/* ===== Footer =====
   One plain colour: dark green, square corners, no pattern. Cream links,
   honey headings and hover; uses the light logo (logo-light.png). */
.site-footer {
  margin-top: 24px;
  background: #1F4D3A;
  color: #F5EEDC;
  padding: 64px 0 22px;
}
@media (max-width: 600px) { .site-footer { padding-top: 48px; } }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr 1.4fr;
  gap: 28px;
  padding-bottom: 32px;
}
.footer-col-links { display: flex; flex-direction: column; }
.footer-logo { color: white; }
.footer-logo span { color: var(--color-accent); }
.footer-tag { margin-top: 12px; color: #CFE0D5; font-size: 0.92rem; }
.footer-col h4 { color: var(--color-accent); font-size: 1rem; margin-bottom: 14px; }
.footer-col a { display: block; color: #F5EEDC; margin-bottom: 8px; font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--color-accent); }
.footer-col a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }
.footer-address { font-size: 0.9rem; color: #CFE0D5; line-height: 1.6; }
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
  font-size: 0.82rem;
  color: #A9C4B3;
}

/* ===== Cart Drawer ===== */
.cart-drawer {
  position: fixed;
  top: 0; right: -400px;
  width: 380px; max-width: 90vw;
  height: 100%;
  background: var(--color-surface);
  z-index: 100;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.25s ease;
}
.cart-drawer:not(.open) { box-shadow: none; visibility: hidden; transition: right 0.25s ease, visibility 0s linear 0.25s; }
.cart-drawer.open { right: 0; }
.cart-drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 22px; border-bottom: 1px solid var(--color-border);
}
.cart-drawer-header button { background: none; border: none; font-size: 1.2rem; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px 22px; }
.cart-empty { color: var(--color-text-soft); }
.cart-line { display: flex; gap: 12px; margin-bottom: 16px; align-items: center; }
.cart-line-emoji { font-size: 1.6rem; }
.cart-line-info { flex: 1; }
.cart-line-info h5 { font-size: 0.92rem; }
.cart-line-info p { font-size: 0.82rem; color: var(--color-text-soft); }
.cart-line-remove { background: none; border: none; color: var(--color-coral); cursor: pointer; font-size: 0.85rem; }
.cart-footer { padding: 20px 22px; border-top: 1px solid var(--color-border); }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 16px; font-family: var(--font-display); }
.cart-overlay {
  position: fixed; inset: 0; background: rgba(30,58,95,0.35);
  z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

/* ===== Checkout Page ===== */
.checkout-section { padding: 44px 0 80px; }
.checkout-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}
.checkout-form-wrap h2, .checkout-summary h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.checkout-form-wrap h2:not(:first-child) { margin-top: 28px; }
.form-field { display: block; margin-bottom: 16px; }
.form-field span { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-surface);
}
.form-field select { cursor: pointer; }
.form-field textarea { min-height: 80px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.form-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field-row .form-field { margin-bottom: 16px; }
.form-error {
  background: #FDECEA;
  border: 1px solid #E57373;
  color: #B3261E;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  font-weight: 600;
}
.delivery-note {
  background: #FFF3E0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  margin: -6px 0 16px;
}

.payment-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.payment-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.payment-option:has(input:checked) { border-color: var(--color-primary); background: #FFF8EA; }
.payment-option input { margin-top: 4px; }
.payment-option strong { display: block; font-family: var(--font-display); }
.payment-option p { color: var(--color-text-soft); font-size: 0.85rem; margin-top: 2px; }

.bkash-details {
  background: #FFF3E0;
  border: 1px dashed var(--color-primary);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.bkash-details p { margin-bottom: 10px; font-size: 0.92rem; }
.bkash-gateway-note {
  background: #FFE8B8;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.85rem !important;
  font-weight: 600;
}

.checkout-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.checkout-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.checkout-line:last-of-type { border-bottom: none; }
.checkout-line-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.checkout-line-img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.checkout-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid var(--color-text);
}
.checkout-empty { color: var(--color-text-soft); text-align: center; padding: 40px 0; }
.order-success {
  text-align: center;
  padding: 60px 0;
}
.order-success .big-emoji { font-size: 3.5rem; margin-bottom: 16px; }
.order-id-badge {
  display: inline-block;
  background: #FFF3E0;
  border: 1px dashed var(--color-primary);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* ===== Contact Page ===== */
.contact-section { padding: 44px 0 80px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.contact-card {
  min-width: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(30,58,95,0.1); }
.contact-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-card p { color: var(--color-text-soft); font-size: 0.88rem; overflow-wrap: anywhere; } /* long email can wrap */

@media (max-width: 700px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card { padding: 22px 14px; }
  .form-field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ===== Responsive ===== */

/* Tablets / small laptops */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablets / large phones — mobile nav kicks in here */
@media (max-width: 900px) {
  .site-header { position: sticky; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 8px 24px 16px;
    box-shadow: 0 12px 24px rgba(30, 58, 95, 0.08);
  }
  .main-nav.mobile-open { display: flex; }
  .main-nav a, .main-nav span {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
  }
  .main-nav a:last-child, .main-nav span:last-child { border-bottom: none; }
  .menu-toggle { display: block; }

  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }
  .dropdown-menu {
    display: none;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    margin-top: 0;
    min-width: 0;
  }
  .dropdown-menu::before { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open:hover .dropdown-menu { display: block; }
  .dropdown-menu a, .dropdown-menu span { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
  .dropdown-menu a:last-child, .dropdown-menu span:last-child { border-bottom: none; }


  .trust-banner-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .trust-item { padding: 0 18px; }
  .trust-item:nth-child(odd) { border-left: none; padding-left: 0; }
  .trust-item:nth-child(even) { padding-right: 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .product-detail { grid-template-columns: 1fr; }
}

/* Phones */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .header-inner { padding-top: 14px; padding-bottom: 14px; }
  .logo-img { height: 36px; }
  .header-actions { gap: 10px; }
  .social-icons { gap: 6px; }
  .social-icon { width: 30px; height: 30px; }
  .social-icon svg { width: 15px; height: 15px; }
  .icon-btn { padding: 8px 12px; font-size: 0.85rem; }


  .categories { padding: 32px 0 56px; }
  .categories h2, .section-heading h2, .promo h2 { font-size: 1.5rem; }

  .products { padding: 44px 0; }
  .product-grid { gap: 14px; }
  .product-image { font-size: 2rem; }
  .product-info { padding: 10px 10px 12px; }
  .product-info h4 { font-size: 0.88rem; }
  .product-price { font-size: 1.05rem; }
  .product-info .card-actions { padding-top: 8px; }
  .add-to-cart { font-size: 0.85rem; padding: 9px; }

  /* Kids / Men / Women side by side; logo, contact and address full width */
  .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
  .footer-inner > :first-child, .footer-inner > .footer-col:nth-last-child(-n+2) { grid-column: 1 / -1; }
  .promo { padding: 48px 0; }

  .cart-drawer { width: 100%; max-width: 100vw; }

  .page-header h1 { font-size: 1.6rem; }
  .product-detail-image { font-size: 4rem; }
  .product-detail-info h1 { font-size: 1.5rem; }
  .size-options { gap: 8px; }
  .size-option { min-width: 48px; padding: 8px 10px; font-size: 0.85rem; }
}

/* Small phones (e.g. iPhone SE, older Android) */
@media (max-width: 380px) {
  .trust-banner-inner { grid-template-columns: 1fr; row-gap: 16px; }
  .trust-item, .trust-item:nth-child(even) { border-left: none; padding: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .icon-btn .cart-label { display: none; }
}

/* ===== Home: top contact bar ===== */
/* Same green as the footer, so the page has a matching top and bottom */
.topbar {
  background: #1F4D3A;
  color: #F5EEDC;
  font-size: 0.84rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding-block: 8px;
}
.topbar-note { font-weight: 600; color: var(--color-accent); }
.topbar-contacts { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.topbar-contacts a:hover { color: var(--color-accent); }
.topbar-address { color: #CFE0D5; }

.btn:focus-visible, .category-card:focus-visible, .add-to-cart:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .topbar-inner { justify-content: center; text-align: center; gap: 2px 20px; }
  .topbar-contacts { justify-content: center; gap: 2px 14px; }
  .topbar-address { display: none; }
}
/* Small phones: Call + WhatsApp stay on one line under the note */
@media (max-width: 380px) {
  .topbar { font-size: 0.76rem; }
  .topbar-contacts { gap: 2px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.active .hero-bg, .hero-slide.active .hero-text { animation: none; }
  .hero-btn, .hero-btn-arrow { transition: none; }
  .hero-dot { transition: none; }
  .btn, .category-card, .category-card-img, .category-card-arrow, .category-card-chips a, .contact-card, .social-icon { transition: none; }
}

/* ===== Wishlist ===== */
.wish-btn { display: inline-flex; align-items: center; gap: 6px; }
.wish-btn-icon {
  width: 18px; height: 18px;
  fill: none;
  stroke: var(--color-coral);
  stroke-width: 2;
}
.wish-btn .cart-count { margin-left: 0; }
.wish-btn.bump { animation: wishBump 0.45s ease; }
@keyframes wishBump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.12); } }

/* Heart on product cards */
.product-card { position: relative; }
.wish-heart {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(61, 40, 23, 0.1);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.wish-heart svg {
  width: 19px; height: 19px;
  fill: none;
  stroke: var(--color-text);
  stroke-width: 2;
  transition: fill 0.15s ease, stroke 0.15s ease;
}
.wish-heart:hover { transform: scale(1.08); }
.wish-heart:hover svg { stroke: var(--color-coral); }
.wish-heart.is-wished { background: #FFFFFF; }
.wish-heart.is-wished svg { fill: var(--color-coral); stroke: var(--color-coral); }
.wish-heart:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* Wishlist button on the product page */
.wish-detail { gap: 8px; margin-bottom: 12px; }
.wish-detail svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.wish-detail.is-wished { border-color: var(--color-coral); color: var(--color-coral); }
.wish-detail.is-wished svg { fill: var(--color-coral); stroke: var(--color-coral); }
.wish-detail.is-wished:hover { background: var(--color-coral); color: #FFFFFF; }
.wish-detail.is-wished:hover svg { fill: #FFFFFF; stroke: #FFFFFF; }

/* Wishlist drawer */
.wish-drawer { z-index: 110; }
#wishOverlay { z-index: 105; }
.wish-line {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.wish-line:last-child { border-bottom: none; margin-bottom: 0; }
.wish-line-media {
  width: 64px; height: 64px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #EAF4FB, #FDF3E0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.wish-line-media img { width: 100%; height: 100%; object-fit: cover; }
.wish-line-info { flex: 1; min-width: 0; }
.wish-line-info h5 { font-size: 0.95rem; line-height: 1.35; }
.wish-line-price { font-family: var(--font-display); font-weight: 700; color: var(--color-primary-dark); margin: 2px 0 8px; }
.wish-line-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wish-line-order {
  background: var(--color-text);
  color: #FFFFFF;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
}
.wish-line-order:hover { background: var(--color-primary-dark); }
.wish-line-remove {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  color: var(--color-coral);
  cursor: pointer;
  font-family: var(--font-body);
}
.wish-line-remove:hover { border-color: var(--color-coral); }
.wish-empty { text-align: center; padding: 40px 12px; color: var(--color-text-soft); }
.wish-empty strong { color: var(--color-text); }
.wish-empty p + p { margin-top: 6px; font-size: 0.9rem; }
.wish-empty-icon svg {
  width: 48px; height: 48px;
  fill: none;
  stroke: var(--color-coral);
  stroke-width: 1.6;
  margin: 0 auto 12px;
}

/* "Added to wishlist" toast */
.wish-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--color-text);
  color: #FFFFFF;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(61, 40, 23, 0.25);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.wish-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Keep the header on one line on phones: heart-only wishlist, and the
   social icons step aside on very narrow screens (they're in the footer too) */
@media (max-width: 600px) {
  .wish-label { display: none; }
  .wish-btn { padding: 8px 12px; }
  .wish-heart { width: 34px; height: 34px; top: 8px; right: 8px; }
}
@media (max-width: 440px) {
  .header-actions .social-icons { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wish-btn.bump { animation: none; }
  .wish-heart, .wish-heart svg, .wish-toast { transition: none; }
}

/* ===== Product card actions: quick add to cart + wishlist ===== */
.card-actions { display: flex; gap: 8px; margin-top: auto; align-items: stretch; }
/* "অর্ডার করুন" opens the product page; the cart icon beside it adds
   straight to the cart (size picker first if the product has sizes). */
.order-now {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-order);
  color: #FFFFFF;
  border-radius: 999px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 18px -12px rgba(166, 67, 29, 0.8);
  transition: background-color 0.2s ease;
}
.order-now:hover { background: var(--color-order-dark); }
.order-now:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.card-actions .add-to-cart {
  flex: 0 0 auto;
  width: 46px;
  min-height: 42px;
  margin-top: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.card-actions .add-to-cart:hover { background: #FDF1EA; border-color: var(--color-order); color: var(--color-order); }
.add-to-cart svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-actions .add-to-cart.is-added, .card-actions .add-to-cart.is-added:hover { background: #2E7D4F; border-color: #2E7D4F; color: #FFFFFF; }
.add-to-cart:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.wish-heart.wish-heart--inline {
  position: static;
  width: 42px;
  height: auto;
  min-height: 42px;
  flex-shrink: 0;
  box-shadow: none;
  background: var(--color-surface);
}
.wish-heart.wish-heart--inline:hover { transform: none; border-color: var(--color-coral); }
#cartToggle.bump { animation: wishBump 0.45s ease; }

/* Size picker that covers the card photo */
.card-sizes {
  position: absolute;
  top: 0; left: 0; right: 0;
  aspect-ratio: 1 / 1;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: sizesIn 0.18s ease;
}
.card-sizes[hidden] { display: none; }
@keyframes sizesIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.card-sizes-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-text);
}
.card-sizes-close {
  width: 30px; height: 30px;
  border: none;
  border-radius: 50%;
  background: var(--color-bg);
  cursor: pointer;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.card-sizes-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.card-size {
  min-height: 38px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.card-size:hover { border-color: var(--color-primary); background: #FFF8EA; }
/* price under the size number, shown only when sizes cost different amounts */
.card-size small { display: block; margin-top: 1px; font-size: 0.62rem; font-weight: 600; line-height: 1.1; color: var(--color-text-soft); }
.card-size:focus-visible, .card-sizes-close:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 1px; }

/* Product photo in the cart drawer */
.cart-line-emoji img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }

@media (max-width: 600px) {
  .card-actions { gap: 6px; }
  .order-now { min-height: 38px; padding: 6px 8px; font-size: 0.85rem; }
  .card-actions .add-to-cart { width: 40px; min-height: 38px; }
  .add-to-cart svg { width: 18px; height: 18px; }
  .card-sizes { padding: 8px; gap: 6px; }
  .card-sizes-head { font-size: 0.74rem; }
  .card-sizes-close { width: 24px; height: 24px; font-size: 0.75rem; }
  .card-sizes-list { gap: 4px; }
  .card-size { min-height: 30px; font-size: 0.8rem; border-radius: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .card-sizes, #cartToggle.bump { animation: none; }
  .card-actions .add-to-cart, .card-size { transition: none; }
}

/* ===== Discounts: old price, % badge ===== */
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.product-old-price {
  color: var(--color-text-soft);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  text-decoration-thickness: 1.5px;
}
.discount-badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  background: var(--color-order);
  color: #FFFFFF;
  border-radius: 999px;
  padding: 3px 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 10px rgba(166, 67, 29, 0.3);
  pointer-events: none;
}
.product-detail-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 18px; }
.product-detail-price-row .product-detail-price { margin-bottom: 0; }
.product-detail-old-price { color: var(--color-text-soft); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.detail-save { background: #E8F5E9; color: #2E7D32; border-radius: 999px; padding: 3px 12px; font-size: 0.85rem; font-weight: 700; }

/* ===== Checkout: change quantities in "আপনার অর্ডার" ===== */
.checkout-item-line { align-items: center; flex-wrap: wrap; row-gap: 8px; }
.checkout-line-item { flex: 1 1 180px; }
.checkout-line-text { display: flex; flex-direction: column; min-width: 0; }
.checkout-line-name { font-weight: 600; line-height: 1.3; }
.checkout-line-meta { font-size: 0.8rem; color: var(--color-text-soft); }
.checkout-line-emoji { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; flex-shrink: 0; }
.checkout-line-controls { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.checkout-qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); }
.checkout-qty button { width: 32px; height: 32px; border: none; background: none; font-size: 1.05rem; font-weight: 700; color: var(--color-text); cursor: pointer; border-radius: 50%; }
.checkout-qty button:hover:not(:disabled) { background: var(--color-bg); }
.checkout-qty button:disabled { color: var(--color-border); cursor: not-allowed; }
.checkout-qty-value { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.checkout-remove { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--color-border); background: var(--color-surface); cursor: pointer; font-size: 0.85rem; }
.checkout-remove:hover { border-color: #E57373; background: #FDECEA; }
.checkout-qty button:focus-visible, .checkout-remove:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.checkout-line-total { min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }

/* Phones: order summary above the form, so items/quantities are checked
   before "অর্ডার কনফার্ম করুন" */
@media (max-width: 700px) {
  .checkout-summary { order: -1; }
}

@media (max-width: 600px) {
  .discount-badge { top: 8px; left: 8px; padding: 2px 8px; font-size: 0.74rem; }
  .product-old-price { font-size: 0.8rem; }
}

/* Categories on tablets / phones */
@media (max-width: 900px) {
  .category-grid { gap: 14px; }
  .category-card h3 { font-size: 1.35rem; }
  .category-card-body { padding: 48px 14px 14px; }
  .category-card-chips a { padding: 4px 10px; font-size: 0.76rem; }
  .category-card-arrow { width: 32px; height: 32px; top: 10px; right: 10px; }
}
@media (max-width: 600px) {
  .categories { padding-block: 36px 44px; }
  .categories h2 { font-size: 1.4rem; }
  /* three side by side: photo + name only, the whole card is the link */
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .category-card { aspect-ratio: 3 / 4; border-radius: 14px; }
  .category-card-body { padding: 36px 6px 10px; text-align: center; }
  .category-card-meta, .category-card-chips, .category-card-arrow { display: none; }
  .category-card h3 { font-size: clamp(0.78rem, 3.5vw, 1.05rem); margin-bottom: 0; white-space: nowrap; }
}

/* "View all" buttons fit side by side on phones */
@media (max-width: 600px) {
  .section-view-all { gap: 10px; margin-top: 24px; }
  .section-view-all .btn { padding: 11px 18px; font-size: 0.92rem; }
}

/* Trust banner on phones: tighter 2×2 grid */
@media (max-width: 600px) {
  .trust-banner { padding-block: 20px; }
  .trust-item, .trust-link { gap: 10px; }
  .trust-item { padding: 0 10px; }
  .trust-icon { width: 42px; height: 42px; }
  .trust-icon svg { width: 20px; height: 20px; }
  .trust-text strong { font-size: 0.9rem; }
  .trust-text p { font-size: 0.76rem; }
}
@media (max-width: 380px) {
  .trust-item, .trust-item:nth-child(even) { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .trust-link, .trust-icon, .trust-text strong { transition: none; }
}

/* Larger desktop/laptop screens — cap content width, no changes needed
   beyond the existing max-width: var(--max-width) on .container */
@media (min-width: 1400px) {
  :root { --max-width: 1280px; }
}

/* Checkout robot trap (checkout.html): off-screen, never seen by people */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#confirmOrderBtn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

/* ===== Product page: photo gallery + delivery promises =====
   All photos sit side by side in one strip that snaps a photo at a time
   (swipe on phones). Arrows show on hover; the counter and thumbnails
   follow the strip (product-detail.js). */
.pd-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  border: 1px solid #EFE8DA;
}
.pd-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.pd-track::-webkit-scrollbar { display: none; }
.pd-track:focus-visible { outline: 3px solid var(--color-accent); outline-offset: -3px; }
.pd-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.pd-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-text);
  box-shadow: 0 8px 20px -10px rgba(61, 40, 23, 0.6);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.pd-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pd-prev { left: 12px; }
.pd-next { right: 12px; }
.pd-stage:hover .pd-arrow, .pd-arrow:focus-visible { opacity: 1; }
.pd-arrow:hover { background: var(--color-accent); }
.pd-arrow:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
@media (hover: none) { .pd-arrow { display: none; } } /* touch screens swipe instead */
.pd-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(42, 27, 15, 0.72);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.product-thumb-strip { gap: 10px; }
.product-thumb { width: 74px; height: 74px; border-radius: 12px; opacity: 0.7; transition: opacity 0.15s ease, border-color 0.15s ease; }
.product-thumb:hover, .product-thumb.selected { opacity: 1; }
.product-thumb:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

.pd-trust {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--color-border);
}
.pd-trust li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-soft);
}
.pd-trust svg {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 50%;
  background: #FFF0CC;
  fill: none;
  stroke: var(--color-coral);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (prefers-reduced-motion: reduce) {
  .pd-arrow, .product-thumb { transition: none; }
}

/* ===== Compact phone layout (≤600px) =====
   Every section a notch smaller on phones — less padding, smaller type
   and buttons — so more of the shop fits on each screen. */
@media (max-width: 600px) {
  /* top bar on one line: the delivery note + WhatsApp */
  .topbar { font-size: 0.76rem; }
  .topbar-inner { flex-wrap: nowrap; justify-content: space-between; gap: 10px; padding-block: 6px; }
  .topbar-note { white-space: nowrap; }
  .topbar-contacts { flex-wrap: nowrap; }
  .topbar-contacts .js-call-link { display: none; }
  .topbar-contacts a { white-space: nowrap; }

  .header-inner { padding-top: 10px; padding-bottom: 10px; }
  .logo-img { height: 32px; }
  .icon-btn { padding: 6px 11px; }

  .page-header { padding: 22px 0 6px; }
  .breadcrumb { font-size: 0.82rem; margin-bottom: 6px; }
  .page-header h1 { font-size: 1.4rem; margin-bottom: 2px; }
  .page-sub { font-size: 0.9rem; }
  .products { padding: 22px 0 36px; }

  /* product cards */
  .product-grid { gap: 10px; }
  .product-card { border-radius: 12px; }
  .product-info { padding: 8px 9px 10px; gap: 1px; }
  .product-info h4 { font-size: 0.84rem; line-height: 1.3; }
  .product-price { font-size: 1rem; }
  .product-info .card-actions { padding-top: 6px; }
  .order-now { min-height: 34px; font-size: 0.8rem; }
  .card-actions .add-to-cart { width: 36px; min-height: 34px; }
  .add-to-cart svg { width: 17px; height: 17px; }
  .wish-heart { width: 30px; height: 30px; top: 6px; right: 6px; }
  .wish-heart svg { width: 16px; height: 16px; }
  .discount-badge { top: 6px; left: 6px; }

  /* product page */
  .product-detail-section { padding: 16px 0 40px; }
  .product-detail { gap: 16px; margin-top: 10px; margin-bottom: 36px; }
  .pd-stage { border-radius: 18px; }
  .product-thumb { width: 58px; height: 58px; border-radius: 10px; }
  .product-thumb-strip { gap: 8px; }
  .product-detail-category { font-size: 0.78rem; margin-bottom: 4px; }
  .product-detail-info h1 { font-size: 1.35rem; margin-bottom: 6px; }
  .product-detail-price { font-size: 1.4rem; margin-bottom: 10px; }
  .product-detail-desc { font-size: 0.9rem; margin-bottom: 16px; }
  .size-selector { margin-bottom: 14px; }
  .size-label { margin-bottom: 8px; }
  .size-options { gap: 6px; }
  .size-option { min-width: 0; padding: 7px 9px; font-size: 0.8rem; border-radius: 9px; }
  .qty-selector { padding: 5px 14px; margin-bottom: 14px; }
  .product-detail-info .btn { min-height: 46px; padding-block: 10px; margin-bottom: 8px; }
  .detail-secondary { gap: 8px; }
  .detail-secondary .btn { min-height: 42px; font-size: 0.84rem; padding-inline: 8px; }
  .pd-trust { margin-top: 12px; padding-top: 14px; }
  .pd-trust li { font-size: 0.74rem; }
  .pd-trust svg { width: 34px; height: 34px; padding: 7px; }
  .related-section h2 { font-size: 1.2rem; margin-bottom: 12px; }

  /* footer: small logo, Kids/Men/Women side by side, contact links on one
     or two lines, short address */
  .site-footer { margin-top: 0; padding: 20px 0 10px; }
  .footer-inner { gap: 12px 10px; padding-bottom: 12px; }
  .footer-logo-img { height: 34px; }
  .footer-tag { display: none; }
  .footer-col h4 { font-size: 0.8rem; margin-bottom: 4px; }
  .footer-col a { font-size: 0.78rem; margin-bottom: 2px; }
  .footer-inner > .footer-col:nth-last-child(2) a { display: inline-block; margin: 0 12px 2px 0; }
  .footer-address { font-size: 0.76rem; line-height: 1.45; }
  .footer-bottom { padding-top: 8px; font-size: 0.7rem; }
}

/* Small phones (≤380px, two cards per row): keep "অর্ডার করুন" on one line.
   Last in the file so it beats the ≤600px card rules above. */
@media (max-width: 380px) {
  .card-actions { gap: 5px; }
  .order-now { font-size: 0.76rem; padding: 6px 4px; white-space: nowrap; }
  .card-actions .add-to-cart { width: 34px; }
  .add-to-cart svg { width: 16px; height: 16px; }
}