/* =====================================================================
   Sabka Fayda Deals - storefront styles

   Design language: the dense Indian-marketplace layout - a saturated blue
   header bar, a category strip beneath it, white content cards floating on a
   grey page, and warm high-contrast CTAs. Original design, no third-party
   brand assets.
   ===================================================================== */

:root {
  /* Brand */
  --blue:        #0064fe;   /* icon gradient, mid  */
  --blue-dark:   #0243f9;   /* icon gradient, deep */
  --blue-deep:   #06225e;   /* darkened for footer */
  --blue-light:  #018ffe;   /* icon gradient, azure */
  --blue-tint:   #e5f0ff;   /* light wash for active states */
  --blue-wash:   #e3eeff;   /* section panel ground */
  --cta-cart:    #0b6fd6;   /* secondary action - azure, darkened to 4.9:1 */
  --cta-buy:     #0243f9;   /* primary action - icon deep indigo, 6.6:1 */
  --green:       #388e3c;   /* ratings, savings */
  --red:         #ff6161;
  --warn:        #f0891a;   /* warnings only - never a CTA */

  /* Neutrals */
  --page:        #f1f3f6;
  --card:        #ffffff;
  --ink:         #212121;
  --ink-soft:    #565656;
  --muted:       #878787;
  --line:        #e0e0e0;
  --line-soft:   #f0f0f0;

  --radius:      2px;
  --radius-card: 4px;
  --shadow:      0 1px 2px rgba(0, 0, 0, .08);
  --shadow-pop:  0 4px 16px rgba(0, 0, 0, .16);
  --wrap:        1248px;
  --header-h:    56px;
  --font:        'Roboto', 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; font-weight: 600; }
h1 { font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem); }
h2 { font-size: 1.125rem; }
p  { margin: 0 0 1em; }

.wrap { width: min(100% - 1.5rem, var(--wrap)); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue-deep); color: #fff; padding: .75rem 1rem;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* =====================================================================
   Header - white bar, outlined pill search, icon actions on the right
   ===================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; }

.topbar { display: none; }

.header__main {
  background: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
.header__inner {
  width: min(100% - 1.5rem, var(--wrap));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; color: var(--ink); }
.brand__mark {
  width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center;
  background: var(--blue); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: -.02em;
}
.brand__text strong {
  display: block; font-size: 1rem; font-style: italic; font-weight: 700;
  letter-spacing: -.01em; line-height: 1.1; color: var(--ink);
}
.brand__text small {
  display: flex; align-items: center; gap: .25rem;
  font-size: .66rem; font-style: italic; color: var(--muted); line-height: 1.1;
}
.brand__text small::after {
  content: ''; width: 9px; height: 9px; flex: 0 0 auto;
  background: var(--cta-cart); border-radius: 50%;
}

/* --- outlined pill search --- */
.search { position: relative; flex: 1 1 auto; max-width: 880px; display: flex; }
.search input {
  flex: 1; height: 40px; padding: 0 1rem 0 2.9rem; font: inherit; font-size: .88rem;
  border: 1px solid var(--blue); border-radius: 24px; background: #fff; color: var(--ink);
  box-shadow: none; transition: box-shadow .15s ease;
}
.search input::placeholder { color: #79818f; }
.search input:focus { outline: none; box-shadow: 0 0 0 3px rgba(0, 100, 254, .15); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search button {
  position: absolute; left: 0; top: 0; height: 40px; width: 44px;
  border: 0; background: transparent; color: #5c6472; cursor: pointer;
  display: grid; place-items: center; border-radius: 24px 0 0 24px;
}
.search button:hover { color: var(--blue); }

.search__results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border-radius: 8px;
  box-shadow: var(--shadow-pop); overflow: hidden auto; max-height: 65vh; z-index: 150;
}
.search__results a {
  display: flex; gap: .75rem; align-items: center; padding: .5rem .75rem;
  color: var(--ink); border-bottom: 1px solid var(--line-soft);
}
.search__results a:hover, .search__results a:focus,
.search__results a.is-active { background: var(--page); }
.search__results img { width: 34px; height: 34px; object-fit: contain; flex: 0 0 auto; }
.search__results span { font-size: .82rem; line-height: 1.3; }
.search__results b { margin-left: auto; white-space: nowrap; font-size: .82rem; }

/* --- right-hand actions --- */
.header__links { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; flex: 0 0 auto; }
.header__links > a {
  color: var(--ink); font-size: .88rem; font-weight: 500;
  display: flex; align-items: center; gap: .4rem;
}
.header__links > a:hover { color: var(--blue); }
.header__cta { color: var(--ink); font-weight: 500; }
.header__cta:hover { color: var(--blue); }
.header__icon svg { width: 19px; height: 19px; }

/* --- dropdowns --- */
.hdr-item { position: relative; }
.hdr-item__btn {
  background: none; border: 0; padding: .3rem 0; cursor: pointer; font: inherit;
  color: var(--ink); font-size: .88rem; font-weight: 500;
  display: flex; align-items: center; gap: .35rem;
}
.hdr-item__btn:hover { color: var(--blue); }
.hdr-item__btn svg { width: 11px; height: 11px; transition: transform .18s ease; }
.hdr-item:hover .hdr-item__btn svg,
.hdr-item__btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.hdr-menu {
  position: absolute; top: calc(100% + .65rem); right: 0; min-width: 232px;
  background: #fff; border-radius: 6px; box-shadow: var(--shadow-pop);
  padding: .35rem 0; z-index: 160;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.hdr-menu::before {
  content: ''; position: absolute; top: -6px; right: 24px;
  border: 6px solid transparent; border-top: 0; border-bottom-color: #fff;
}
.hdr-item:hover .hdr-menu,
.hdr-item:focus-within .hdr-menu,
.hdr-item.is-open .hdr-menu { opacity: 1; visibility: visible; transform: none; }

.hdr-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem 1rem; color: var(--ink); font-size: .84rem; font-weight: 500;
}
.hdr-menu a:hover { color: var(--blue); background: var(--page); }
.hdr-menu a + a { border-top: 1px solid var(--line-soft); }
.hdr-menu small { color: var(--muted); font-weight: 400; font-size: .72rem; }

.nav-toggle {
  display: none; background: none; border: 0; width: 34px; height: 34px; padding: 7px 6px;
  cursor: pointer; margin-left: auto;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-toggle span + span { margin-top: 4px; }

/* =====================================================================
   Category strip
   ===================================================================== */
.catstrip { background: #fff; box-shadow: var(--shadow); position: relative; z-index: 90; }
.catstrip__inner {
  width: min(100% - 1.5rem, var(--wrap)); margin-inline: auto;
  display: flex; align-items: stretch; gap: .25rem; overflow-x: auto; scrollbar-width: none;
}
.catstrip__inner::-webkit-scrollbar { display: none; }

.catstrip__item { position: relative; flex: 0 0 auto; }
.catstrip__link {
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  padding: .55rem 1rem .5rem; color: var(--ink); min-width: 92px;
}
.catstrip__icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 10px; color: #3f4652; transition: color .15s ease, background .15s ease;
}
.catstrip__icon .cat-icon { width: 28px; height: 28px; }
.catstrip__link:hover .catstrip__icon { color: var(--blue); }
.catstrip__label {
  font-size: .8rem; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: .2rem;
}
.catstrip__item:hover .catstrip__label { color: var(--blue); }
.catstrip__chev { font-size: .55rem; color: var(--muted); }

/* hover mega-menu */
.catstrip__menu {
  position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff;
  box-shadow: var(--shadow-pop); padding: .5rem 0; opacity: 0; visibility: hidden;
  transform: translateY(3px); transition: opacity .12s, transform .12s; z-index: 95;
}
.catstrip__item:hover .catstrip__menu,
.catstrip__item:focus-within .catstrip__menu { opacity: 1; visibility: visible; transform: none; }
.catstrip__menu ul { list-style: none; margin: 0; padding: 0; }
.catstrip__menu > ul > li > a {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: .45rem 1rem; font-size: .82rem; font-weight: 500; color: var(--ink);
}
.catstrip__menu > ul > li > a:hover { color: var(--blue); background: var(--page); }
.catstrip__menu .sub { padding: 0 0 .4rem 1rem !important; }
.catstrip__menu .sub a { display: block; padding: .2rem 1rem; font-size: .78rem; color: var(--ink-soft); }
.catstrip__menu .sub a:hover { color: var(--blue); }
.catstrip__count { color: var(--muted); font-size: .72rem; font-weight: 400; }

/* =====================================================================
   Shared bits
   ===================================================================== */
.flash { margin: .75rem 0 0; padding: .65rem 1rem; border-radius: var(--radius-card); font-size: .85rem; background: #fff; }
.flash--success { border-left: 4px solid var(--green); color: var(--green); }
.flash--error   { border-left: 4px solid var(--red); color: #c62828; }
.flash--warning { border-left: 4px solid var(--warn); color: #a15c00; }

.panel, .surface {
  background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border: 0; border-radius: var(--radius);
  font-family: inherit; font-size: .9rem; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase; cursor: pointer; box-shadow: var(--shadow);
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--buy  { background: var(--cta-buy); color: #fff; }
.btn--buy:hover { background: #0233c4; }
.btn--cart { background: var(--cta-cart); color: #fff; }
.btn--cart:hover { background: #0a5cb0; }
.btn--ghost { background: #fff; color: var(--blue); border: 1px solid var(--line); box-shadow: none; }
.btn--ghost:hover { border-color: var(--blue); }
.btn--small { padding: .45rem .9rem; font-size: .78rem; }

/* rating pill */
.rating {
  display: inline-flex; align-items: center; gap: .18rem;
  background: var(--green); color: #fff; font-size: .72rem; font-weight: 700;
  padding: .1rem .3rem; border-radius: 3px; line-height: 1.4;
}
.rating svg { width: 9px; height: 9px; fill: #fff; }
.rating-count { color: var(--muted); font-size: .75rem; font-weight: 600; }

.off { color: var(--green); font-weight: 600; }

/* =====================================================================
   Breadcrumbs
   ===================================================================== */
.breadcrumbs { background: transparent; }
.breadcrumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0;
  padding: .7rem 0; font-size: .72rem; color: var(--muted); font-weight: 500;
}
.breadcrumbs li { display: flex; gap: .3rem; align-items: center; }
.breadcrumbs li + li::before { content: '>'; color: var(--muted); font-size: .7rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* =====================================================================
   Home
   ===================================================================== */
.hero { background: var(--card); margin: .6rem 0 0; box-shadow: var(--shadow); }
.hero__inner {
  width: min(100% - 1.5rem, var(--wrap)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem;
  padding: 1.75rem 0;
}
.hero__copy h1 { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); margin-bottom: .4rem; }
.hero__copy p { color: var(--ink-soft); font-size: .9rem; max-width: 62ch; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.hero__stat {
  background: linear-gradient(135deg, var(--blue), #4a90ff); color: #fff;
  padding: 1.25rem 1.75rem; border-radius: var(--radius-card); text-align: center;
}
.hero__stat b { display: block; font-size: 1.75rem; line-height: 1.1; }
.hero__stat span { font-size: .75rem; opacity: .9; }

/* section = a white card holding a rail or grid */
.section { background: var(--card); margin: .6rem 0 0; box-shadow: var(--shadow); }
.section__inner { width: min(100% - 1.5rem, var(--wrap)); margin-inline: auto; padding: 1rem 0 1.25rem; }
.section__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-bottom: .75rem;
}
.section__title { margin: 0; font-size: 1.35rem; font-weight: 600; }
.section__subtitle { margin: .1rem 0 0; color: var(--muted); font-size: .8rem; font-weight: 400; }
.section__more {
  background: var(--blue); color: #fff; font-size: .8rem; font-weight: 600;
  padding: .5rem 1.25rem; border-radius: var(--radius); white-space: nowrap;
}
.section__more:hover { background: var(--blue-dark); }

/* horizontal rail on the home page */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(184px, 1fr);
  gap: 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

/* category tiles on the home page */
.cat-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.cat-grid a {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: 1rem .5rem; color: var(--ink); text-align: center;
}
.cat-grid a:hover .cat-grid__name { color: var(--blue); }
.cat-grid img, .cat-grid__ph {
  width: 78px; height: 78px; object-fit: contain; border-radius: 50%; background: var(--page);
}
.cat-grid__ph { display: grid; place-items: center; color: var(--blue); font-weight: 700; font-size: 1.4rem; }
.cat-grid__name { font-weight: 600; font-size: .85rem; }
.cat-grid__count { font-size: .72rem; color: var(--muted); }

/* =====================================================================
   Product card
   ===================================================================== */
.grid {
  display: grid; gap: 0;
  grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
}
.grid > .card { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.card {
  background: var(--card); display: flex; flex-direction: column; position: relative;
  transition: box-shadow .15s ease;
}
.card:hover { box-shadow: var(--shadow-pop); z-index: 2; }
.card__link { display: flex; flex-direction: column; flex: 1; color: inherit; padding: .9rem .75rem 1rem; }

.card__media { position: relative; height: 168px; display: grid; place-items: center; margin-bottom: .75rem; }
.card__media img { max-height: 168px; width: auto; max-width: 100%; object-fit: contain; }
.card__discount {
  position: absolute; top: 0; left: 0; background: var(--green); color: #fff;
  font-size: .68rem; font-weight: 700; padding: .1rem .35rem; border-radius: 2px;
}

.card__body { display: flex; flex-direction: column; gap: .3rem; }
.card__badges { margin: 0; display: flex; gap: .25rem; flex-wrap: wrap; }
.badge {
  font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: var(--cta-cart);
}
.card__title {
  margin: 0; font-size: .85rem; font-weight: 400; color: var(--ink); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.3em;
}
.card:hover .card__title { color: var(--blue); }
.card__rating { margin: 0; display: flex; align-items: center; gap: .35rem; }
.card__price { margin: .1rem 0 0; display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.card__price strong { font-size: 1rem; font-weight: 600; }
.card__price del { color: var(--muted); font-size: .8rem; font-weight: 400; }


/* =====================================================================
   Listing pages (category / collections / search)
   ===================================================================== */
.listing { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: .6rem; align-items: start; padding: .6rem 0 1.5rem; }
.listing--full { grid-template-columns: minmax(0, 1fr); }

.filters-col { background: var(--card); box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + .5rem); }
.filters-col h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; padding: .9rem 1rem; margin: 0; border-bottom: 1px solid var(--line-soft); }
.filter-block { padding: .9rem 1rem; border-bottom: 1px solid var(--line-soft); }
.filter-block h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 .6rem; }
.filter-block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.filter-block li a { color: var(--ink); font-size: .82rem; display: flex; justify-content: space-between; gap: .5rem; }
.filter-block li a:hover { color: var(--blue); }
.filter-block li a span { color: var(--muted); font-size: .72rem; }
.filter-block li a[aria-current] { color: var(--blue); font-weight: 600; }

.price-form { display: flex; gap: .4rem; align-items: center; }
.price-form input {
  width: 100%; min-width: 0; font: inherit; font-size: .8rem; padding: .35rem .5rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--page);
}
.price-form input:focus { outline: none; border-color: var(--blue); background: #fff; }
.filter-block .btn { width: 100%; margin-top: .6rem; }
.filter-clear { display: inline-block; margin-top: .5rem; font-size: .78rem; }

.results-col { min-width: 0; }
.listing__head { background: var(--card); box-shadow: var(--shadow); padding: 1rem 1.25rem; }
.listing__head h1 { font-size: 1.1rem; margin: 0 0 .2rem; }
.listing__count { margin: 0; font-size: .78rem; color: var(--muted); font-weight: 500; }
.listing__intro { margin: .5rem 0 0; font-size: .82rem; color: var(--ink-soft); max-width: 90ch; }

.sortbar {
  background: var(--card); box-shadow: var(--shadow); margin-top: .6rem;
  display: flex; align-items: center; gap: 1.5rem; padding: 0 1.25rem;
  border-bottom: 1px solid var(--line-soft); overflow-x: auto; scrollbar-width: none;
}
.sortbar::-webkit-scrollbar { display: none; }
.sortbar__label { font-size: .82rem; font-weight: 600; padding: .85rem 0; white-space: nowrap; }
.sortbar a {
  padding: .85rem 0; font-size: .82rem; font-weight: 500; color: var(--ink-soft);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.sortbar a:hover { color: var(--blue); }
.sortbar a[aria-current] { color: var(--blue); font-weight: 600; border-bottom-color: var(--blue); }

.results-grid { background: var(--card); box-shadow: var(--shadow); margin-top: .6rem; }
.results-grid .grid > .card:hover { box-shadow: none; }

.chips { display: flex; gap: .5rem; flex-wrap: wrap; padding: .75rem 1.25rem 0; }
.chip {
  display: inline-flex; gap: .35rem; align-items: baseline; padding: .3rem .7rem;
  border: 1px solid var(--line); border-radius: 14px; font-size: .78rem; color: var(--ink-soft); background: #fff;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip small { color: var(--muted); font-size: .7rem; }

.empty { padding: 3rem 1.25rem; color: var(--muted); text-align: center; background: var(--card); }
.listing__copy { background: var(--card); box-shadow: var(--shadow); margin-top: .6rem; padding: 1.25rem; }
.listing__copy h2 { font-size: 1rem; }
.listing__copy p { font-size: .85rem; color: var(--ink-soft); max-width: 90ch; }

/* pagination */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--card); box-shadow: var(--shadow); margin-top: .6rem; padding: 1rem; flex-wrap: wrap;
}
.pagination__pages { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.pagination__pages a, .pagination__pages span {
  display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 .5rem;
  font-size: .82rem; color: var(--ink-soft); border-radius: var(--radius);
}
.pagination__pages a:hover { background: var(--page); color: var(--blue); }
.pagination__pages .is-current { background: var(--blue); color: #fff; font-weight: 600; }
.pagination__gap { display: grid; place-items: center; min-width: 20px; color: var(--muted); }
.pagination__step {
  font-size: .8rem; font-weight: 700; text-transform: uppercase; color: var(--blue);
  padding: .5rem .9rem; border: 1px solid var(--line); border-radius: var(--radius);
}
.pagination__step:hover { border-color: var(--blue); }

/* =====================================================================
   Product detail
   ===================================================================== */
.product {
  display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  gap: 0; background: var(--card); box-shadow: var(--shadow); margin: .6rem 0 0;
}

.product__gallery { display: flex; gap: .75rem; padding: 1rem; position: sticky; top: calc(var(--header-h) + .5rem); align-self: start; }
.gallery__thumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; flex: 0 0 auto; }
.gallery__thumb {
  width: 56px; height: 56px; padding: 2px; cursor: pointer; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb.is-active { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }

.gallery__stage {
  position: relative; background: #fff; border-radius: 3px; overflow: hidden;
}
.gallery__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; scroll-behavior: smooth;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide {
  flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: center;
  height: 420px; display: grid; place-items: center; padding: .5rem;
  overflow: hidden; cursor: zoom-in;
}
.gallery__slide img {
  max-height: 100%; width: auto; max-width: 100%; object-fit: contain;
  transition: transform .25s ease;
}
.gallery__slide.is-zoomed img { transform: scale(2); cursor: zoom-out; }

/* rating pill sits over the artwork, as on the reference */
.gallery__rating {
  position: absolute; left: .75rem; bottom: .75rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .25rem;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: .2rem .45rem; font-size: .78rem; font-weight: 700; color: var(--ink);
  box-shadow: var(--shadow);
}
.gallery__rating svg { width: 11px; height: 11px; fill: var(--green); }
.gallery__rating i {
  font-style: normal; font-weight: 500; color: var(--muted); font-size: .72rem;
  padding-left: .3rem; margin-left: .1rem; border-left: 1px solid var(--line);
}

.gallery__share {
  position: absolute; right: .75rem; top: .75rem; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--ink-soft); display: grid; place-items: center;
  box-shadow: var(--shadow-pop);
}
.gallery__share:hover { color: var(--blue); }
.gallery__share svg { width: 16px; height: 16px; }

.gallery__dots {
  position: absolute; left: 0; right: 0; bottom: .6rem; z-index: 3;
  display: flex; justify-content: center; gap: .3rem;
}
.gallery__dots button {
  width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--line); transition: background .15s ease, width .15s ease;
}
.gallery__dots button[aria-current="true"] { background: var(--blue); width: 16px; border-radius: 3px; }

.gallery__actions { display: flex; gap: .5rem; margin-top: .75rem; }
.gallery__actions .btn { flex: 1; }

.product__info { padding: 1.25rem 1.5rem 2rem; border-left: 1px solid var(--line-soft); }
.product__eyebrow { margin: 0 0 .3rem; font-size: .78rem; color: var(--muted); }
.product__eyebrow a { color: var(--muted); }
.product__eyebrow a:hover { color: var(--blue); }
.product__title { font-size: 1.1rem; font-weight: 400; line-height: 1.4; margin: 0 0 .4rem; }

.product__meta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; font-size: .8rem; color: var(--muted); margin: 0 0 .75rem; }
.stock { font-weight: 600; font-size: .78rem; }
.stock--in  { color: var(--green); }
.stock--out { color: var(--red); }

.product__price { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin: 0 0 .2rem; }
.product__price strong { font-size: 1.75rem; font-weight: 600; }
.product__price del { color: var(--muted); font-size: 1rem; font-weight: 400; }
.save { color: var(--green); font-weight: 600; font-size: 1rem; }
.product__pricenote { font-size: .75rem; color: var(--muted); margin: 0 0 1rem; }

.offers { margin: 0 0 1.25rem; }
.offers h2 { font-size: .95rem; font-weight: 600; margin: 0 0 .5rem; }
.offers ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.offers li { display: flex; gap: .5rem; align-items: flex-start; font-size: .82rem; color: var(--ink-soft); }
.offers li::before { content: '%'; flex: 0 0 auto; width: 16px; height: 16px; margin-top: .1rem;
  background: var(--green); color: #fff; border-radius: 50%; font-size: .6rem; font-weight: 700;
  display: grid; place-items: center; }
.offers strong { color: var(--ink); font-weight: 600; }

.delivery { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: .5rem 1rem; margin: 0 0 1.25rem; font-size: .82rem; }
.delivery dt { color: var(--muted); }
.delivery dd { margin: 0; color: var(--ink-soft); }
.delivery dd strong { color: var(--ink); font-weight: 600; }

.product__history { margin-top: 1rem; font-size: .82rem; }
.product__history summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.product__history ul { list-style: none; margin: .5rem 0 0; padding: 0; max-width: 320px; }
.product__history li { display: flex; justify-content: space-between; padding: .3rem 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); }

/* spec + description blocks */
.pd-block { background: var(--card); box-shadow: var(--shadow); margin-top: .6rem; padding: 1.25rem 1.5rem; }
.pd-block h2 { font-size: 1.1rem; font-weight: 600; margin: 0 0 1rem; }
.prose { color: var(--ink-soft); font-size: .88rem; max-width: 90ch; }
.prose h2 { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: .5rem .65rem; text-align: left; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .85rem; max-width: 760px; }
.spec-table th, .spec-table td { text-align: left; padding: .6rem .9rem; vertical-align: top; }
.spec-table th { width: 32%; color: var(--muted); font-weight: 400; }
.spec-table tr:nth-child(odd) { background: #fafafa; }

.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary { padding: .85rem 0; font-weight: 600; cursor: pointer; font-size: .88rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: '+'; color: var(--blue); font-weight: 700; }
.faq details[open] summary::after { content: '\2212'; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { padding: 0 0 .9rem; margin: 0; color: var(--ink-soft); font-size: .85rem; max-width: 90ch; }

.disclosure { background: var(--card); box-shadow: var(--shadow); margin-top: .6rem; padding: 1rem 1.5rem; font-size: .78rem; color: var(--muted); }
.disclosure p { margin: 0; }

/* CMS page */
.page { background: var(--card); box-shadow: var(--shadow); padding: 1.5rem; margin: .6rem 0 0; max-width: none; }
.page h1 { font-size: 1.4rem; }
.page__updated { font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: .75rem; margin-top: 1.5rem; }

/* all-categories page */
.cat-columns { columns: 3 250px; column-gap: 2rem; background: var(--card); box-shadow: var(--shadow); padding: 1.5rem; margin-top: .6rem; }
.cat-column { break-inside: avoid; margin-bottom: 1.5rem; }
.cat-column h2 { font-size: .92rem; margin-bottom: .3rem; }
.cat-column h2 small { color: var(--muted); font-weight: 400; font-size: .75rem; }
.cat-column ul { list-style: none; margin: 0; padding: 0; }
.cat-column ul ul { padding-left: .85rem; }
.cat-column li a { font-size: .82rem; color: var(--ink-soft); display: block; padding: .12rem 0; }
.cat-column li a:hover { color: var(--blue); }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--blue-deep); color: #fff; margin-top: 1.5rem; }
.footer__grid {
  display: grid; gap: 2rem; padding: 2.5rem 0 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr);
  border-bottom: 1px solid #454d5e;
}
.footer__col h2 {
  color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  font-weight: 500; margin-bottom: .9rem;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer__col a { color: #fff; font-size: .78rem; }
.footer__col a:hover { text-decoration: underline; }
.footer__brand { font-weight: 700; font-style: italic; font-size: 1.05rem; margin: 0 0 .3rem; }
.footer__tagline { color: #cfd3dc; font-size: .8rem; margin-bottom: .8rem; }
.footer__disclosure { font-size: .74rem; color: var(--muted); line-height: 1.6; margin: 0; }
.footer__legal { padding: 1rem 0 1.5rem; }
.footer__legal p { margin: 0; font-size: .74rem; color: var(--muted); }
.footer__legal a { color: #cfd3dc; }

/* =====================================================================
   Error pages
   ===================================================================== */
.error-page { background: var(--card); box-shadow: var(--shadow); padding: 3rem 1.5rem; text-align: center; margin: .6rem 0 0; }
.error-page__code { font-size: 3.5rem; font-weight: 700; color: var(--line); margin: 0; line-height: 1; }
.error-page__lead { color: var(--muted); max-width: 52ch; margin-inline: auto; font-size: .9rem; }
.error-page__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.error-page .grid { text-align: left; margin-top: 2rem; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1000px) {
  .listing { grid-template-columns: minmax(0, 1fr); }
  .filters-col { position: static; }
  .product { grid-template-columns: minmax(0, 1fr); }
  .product__gallery { position: static; }
  .product__info { border-left: 0; border-top: 1px solid var(--line-soft); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-columns { columns: 2 220px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__stat { justify-self: start; }
}

@media (max-width: 720px) {
  .header__inner { flex-wrap: wrap; gap: .5rem; padding: .5rem 0; }
  .brand { order: 1; }
  .nav-toggle { order: 2; display: block; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header__links {
    order: 4; flex-basis: 100%; margin-left: 0; gap: 1rem; display: none;
    padding-bottom: .5rem;
  }
  .header__links.is-open { display: flex; flex-wrap: wrap; }

  .catstrip__link { min-width: 76px; padding: .5rem .6rem; }
  .catstrip__icon { width: 40px; height: 40px; }
  .catstrip__icon .cat-icon { width: 24px; height: 24px; }
  .catstrip__label { font-size: .72rem; }
  .catstrip__menu { display: none; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card__media { height: 132px; }
  .card__media img { max-height: 132px; }
  .rail { grid-auto-columns: minmax(150px, 1fr); }

  .product__gallery { flex-direction: column-reverse; }
  .gallery__thumbs { flex-direction: row; overflow-x: auto; }
  .product__info { padding: 1rem; }

  .footer__grid { grid-template-columns: 1fr; }
  .cat-columns { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Banner carousel (home)
   ===================================================================== */
.banner { background: var(--card); margin: .6rem 0 0; box-shadow: var(--shadow); position: relative; }
.banner__viewport { overflow: hidden; }
.banner__track {
  display: flex; transition: transform .45s cubic-bezier(.25, .8, .25, 1);
  will-change: transform;
}
.banner__slide { flex: 0 0 100%; min-width: 0; }
.banner__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 34px; height: 62px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--ink-soft);
  display: grid; place-items: center; box-shadow: var(--shadow-pop);
}
.banner__nav:hover { color: var(--blue); }
.banner__nav--prev { left: 0; border-radius: 0 4px 4px 0; }
.banner__nav--next { right: 0; border-radius: 4px 0 0 4px; }
.banner__nav svg { width: 16px; height: 16px; }

.banner__dots { position: absolute; bottom: .7rem; left: 0; right: 0; display: flex; justify-content: center; gap: .4rem; z-index: 3; }
.banner__dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .5);
}
.banner__dots button[aria-current="true"] { background: #fff; width: 20px; border-radius: 4px; }

/* =====================================================================
   Rail arrows
   ===================================================================== */
.rail-wrap { position: relative; }
.rail-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 32px; height: 72px; border: 0; cursor: pointer; background: #fff;
  color: var(--ink-soft); display: grid; place-items: center; box-shadow: var(--shadow-pop);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s;
}
.rail-wrap:hover .rail-nav:not([disabled]) { opacity: 1; visibility: visible; }
.rail-nav:hover { color: var(--blue); }
.rail-nav[disabled] { opacity: 0 !important; visibility: hidden !important; }
.rail-nav--prev { left: -6px; border-radius: 0 4px 4px 0; }
.rail-nav--next { right: -6px; border-radius: 4px 0 0 4px; }
.rail-nav svg { width: 15px; height: 15px; }

/* =====================================================================
   Filter sidebar (collapsible, checkbox style)
   ===================================================================== */
.filters-col { max-height: calc(100vh - var(--header-h) - 1rem); overflow-y: auto; }
.filters-col__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1rem; border-bottom: 1px solid var(--line-soft);
}
.filters-col__head h2 { padding: 0; border: 0; margin: 0; }
.filters-col__clear {
  font-size: .74rem; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: .03em;
}

.applied {
  display: flex; flex-wrap: wrap; gap: .4rem; padding: .75rem 1rem;
  border-bottom: 1px solid var(--line-soft); margin: 0;
}
.applied a {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 500;
  background: var(--page); color: var(--ink); border-radius: 2px; padding: .25rem .5rem;
}
.applied a::after { content: "\00D7"; font-size: .9rem; line-height: 1; color: var(--muted); }
.applied a:hover::after { color: var(--red); }

.filter-block--collapsible > h3 {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  cursor: pointer; margin: 0; user-select: none;
}
.filter-block--collapsible > h3::after {
  content: ""; width: 7px; height: 7px; flex: 0 0 auto; margin-right: 2px;
  border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .18s ease;
}
.filter-block--collapsible.is-collapsed > h3::after { transform: rotate(-135deg) translate(-3px, -3px); }
.filter-block--collapsible.is-collapsed > .filter-block__body { display: none; }
.filter-block__body { margin-top: .6rem; }

.facet { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.facet li a {
  display: flex; align-items: center; gap: .5rem; padding: .25rem 0;
  font-size: .82rem; color: var(--ink); position: relative;
}
.facet li a::before {
  content: ""; flex: 0 0 auto; width: 15px; height: 15px; border: 1.5px solid var(--muted);
  border-radius: 2px; background: #fff; box-sizing: border-box;
}
.facet li a:hover { color: var(--blue); }
.facet li a:hover::before { border-color: var(--blue); }
.facet li a[aria-current]::before { background: var(--blue); border-color: var(--blue); }
/* the tick: a rotated L drawn over the filled box */
.facet li a[aria-current]::after {
  content: ""; position: absolute; left: 5px; top: 50%; width: 4px; height: 8px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: translateY(-60%) rotate(45deg); box-sizing: border-box;
}
.facet li a[aria-current] { font-weight: 600; }
.facet__count { margin-left: auto; color: var(--muted); font-size: .72rem; font-weight: 400; }

.facet--plain li a::before,
.facet--plain li a::after { display: none; }
.facet--plain li a { justify-content: space-between; }

.price-selects { display: flex; align-items: center; gap: .4rem; }
.price-selects select {
  flex: 1; min-width: 0; font: inherit; font-size: .78rem; padding: .35rem .4rem;
  border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink);
}
.price-selects select:focus { outline: none; border-color: var(--blue); }
.price-selects span { color: var(--muted); font-size: .78rem; }

.filter-toggle { display: none; width: 100%; margin-top: .6rem; }

/* =====================================================================
   PDP extras - zoom, pincode, sticky buy bar
   ===================================================================== */
.gallery__zoomhint {
  position: absolute; right: .6rem; bottom: .6rem; z-index: 2; font-size: .66rem;
  color: var(--muted); background: rgba(255, 255, 255, .9); padding: .18rem .4rem;
  border-radius: 2px; pointer-events: none;
}
.gallery__stage:has(.is-zoomed) .gallery__zoomhint,
.gallery__stage:has(.gallery__dots) .gallery__zoomhint { display: none; }

.assured {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700;
  color: var(--blue); background: rgba(0, 100, 254, .1); padding: .15rem .45rem; border-radius: 2px;
}
.assured svg { width: 11px; height: 11px; fill: currentColor; }

.pincode { display: flex; gap: .5rem; align-items: center; margin: 0 0 .35rem; max-width: 320px; }
.pincode input {
  flex: 1; min-width: 0; font: inherit; font-size: .82rem; padding: .45rem 0;
  border: 0; border-bottom: 1px solid var(--line); background: transparent;
}
.pincode input:focus { outline: none; border-bottom-color: var(--blue); }
.pincode button {
  background: none; border: 0; color: var(--blue); font: inherit; font-size: .8rem;
  font-weight: 700; cursor: pointer; padding: .45rem 0;
}
.pincode__note { font-size: .78rem; color: var(--green); margin: 0 0 1rem; font-weight: 500; }
.pincode__note--warn { color: #b45309; }

.buybar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  background: #fff;
}

/* =====================================================================
   Mobile bottom navigation
   ===================================================================== */
.botnav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  background: #fff; box-shadow: 0 -1px 6px rgba(0, 0, 0, .12);
  grid-auto-flow: column; grid-auto-columns: 1fr;
}
.botnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  padding: .45rem 0 .5rem; color: var(--ink-soft); font-size: .66rem; font-weight: 500;
}
.botnav a svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.botnav a[aria-current] { color: var(--blue); }

/* =====================================================================
   Back to top
   ===================================================================== */
.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 105;
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--blue-deep); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-pop); opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s;
}
.to-top.is-visible { opacity: .92; visibility: visible; }
.to-top:hover { opacity: 1; }
.to-top svg { width: 17px; height: 17px; }

/* =====================================================================
   Responsive - new components
   ===================================================================== */
@media (max-width: 1000px) {
  .filters-col { max-height: none; }
}

@media (max-width: 720px) {
  .header__links .hdr-item { width: 100%; }
  .header__links .hdr-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; min-width: 0; padding: 0 0 .25rem 1rem; background: transparent;
    display: none;
  }
  .header__links .hdr-item.is-open .hdr-menu { display: block; }
  .header__links .hdr-menu::before { display: none; }
  .header__links .hdr-menu a { color: #fff; padding: .4rem 0; border: 0; }
  .header__links .hdr-menu a:hover { background: transparent; color: #fff; }
  .header__links .hdr-menu small { color: rgba(255, 255, 255, .7); }

  .rail-nav, .banner__nav { display: none; }

  .filters-col { position: static; }
  .filters-col .filters-col__body { display: none; }
  .filters-col.is-open .filters-col__body { display: block; }
  .filter-toggle { display: inline-flex; }

  .buybar { display: flex; }
  .botnav { display: grid; }
  body { padding-bottom: 56px; }
  .to-top { bottom: 66px; }
}

/* A product page already carries its own sticky action bar, so the bottom
   tab bar would stack on top of it. Only one bar is ever shown. */
@media (max-width: 720px) {
  body:has(.buybar) .botnav { display: none; }
}

/* --- footer utility strip --- */
.footer__strip { border-bottom: 1px solid #454d5e; }
.footer__strip-inner {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between; padding: 1rem 0;
}
.footer__badges { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; }
.footer__badges span { font-size: .74rem; color: #cfd3dc; font-weight: 500; }
.footer__strip-links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; }
.footer__strip-links a { font-size: .74rem; color: #fff; }
.footer__strip-links a:hover { text-decoration: underline; }


/* =====================================================================
   Promo carousel - three offer cards per slide
   ===================================================================== */
.promo { position: relative; margin: .6rem 0 0; }
.promo .banner__viewport { overflow: hidden; }
.promo .banner__slide {
  flex: 0 0 100%; min-width: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem; padding: 0 0 1.5rem;
}

.promo-card {
  position: relative; overflow: hidden; border-radius: 14px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: .35rem; align-items: center; min-height: 232px; padding: 1.35rem 0 1.35rem 1.4rem;
  box-shadow: none; transition: box-shadow .18s ease;
}
.promo-card:hover { box-shadow: var(--shadow-pop); }
.promo-card--light { color: #fff; }
.promo-card--dark  { color: #17202e; }

.promo-card__copy { min-width: 0; position: relative; z-index: 2; }
.promo-card__kicker {
  display: block; font-size: .8rem; font-weight: 700; letter-spacing: .01em;
  margin-bottom: .5rem; opacity: .78;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.promo-card__title {
  margin: 0 0 .35rem; font-size: 1.45rem; font-weight: 700; line-height: 1.18;
  letter-spacing: -.01em;
}
.promo-card__sub { margin: 0 0 .9rem; font-size: .85rem; opacity: .8; }
.promo-card__offer {
  display: inline-block; margin: 0; font-size: .68rem; font-weight: 600; line-height: 1.4;
  padding: .38rem .6rem; border-radius: 3px;
}
.promo-card--light .promo-card__offer { background: rgba(255, 255, 255, .16); }
.promo-card--dark  .promo-card__offer { background: rgba(255, 255, 255, .75); }

/* artwork fills the right half and bleeds to the card edge */
.promo-card__art { display: grid; place-items: center; height: 100%; padding-right: .5rem; }
.promo-card__art img {
  max-height: 205px; width: auto; max-width: 100%; object-fit: contain;
}
.promo-card--light .promo-card__art img { filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .35)); }
.promo-card--dark  .promo-card__art img { filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .16)); }

.promo-card__tag {
  position: absolute; right: .6rem; bottom: .6rem;
  font-size: .58rem; font-weight: 700; letter-spacing: .1em;
  padding: .15rem .4rem; border-radius: 2px;
}
.promo-card--light .promo-card__tag { background: rgba(255, 255, 255, .2); color: #fff; }
.promo-card--dark  .promo-card__tag { background: rgba(0, 0, 0, .08); color: #4a5261; }

/* dots sit under the cards rather than over them */
.promo .banner__dots { bottom: .25rem; }
.promo .banner__dots button { background: var(--line); }
.promo .banner__dots button[aria-current="true"] { background: var(--blue); }

/* =====================================================================
   Tinted highlight tiles
   ===================================================================== */
.tiles { margin: .6rem 0 0; }
.tiles__inner {
  width: min(100% - 1.5rem, var(--wrap)); margin-inline: auto;
  background: var(--blue-wash); border-radius: 10px; padding: 1.1rem 1.25rem 1.35rem;
}
.tiles__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: .9rem;
}
.tiles__title { margin: 0; font-size: 1.25rem; font-weight: 700; color: #1a1a2e; }
.tiles__more {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: #16161a; color: #fff; display: grid; place-items: center;
}
.tiles__more:hover { background: var(--blue); }
.tiles__more svg { width: 15px; height: 15px; }

.tiles__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.tile { background: #fff; border-radius: 8px; padding: .85rem .85rem 1rem; color: var(--ink); }
.tile:hover { box-shadow: var(--shadow-pop); }
.tile__media { height: 170px; display: grid; place-items: center; margin-bottom: .7rem; }
.tile__media img { max-height: 170px; width: auto; max-width: 100%; object-fit: contain; }
.tile__ph {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: var(--page); color: var(--blue); font-weight: 700; font-size: 1.8rem;
}
.tile__name { margin: 0 0 .2rem; font-size: .85rem; color: var(--ink-soft); }
.tile__off  { margin: 0; font-size: .92rem; font-weight: 700; color: var(--ink); }

/* =====================================================================
   Category strip - active state and label truncation
   ===================================================================== */
.catstrip__link { position: relative; }

/* the icon sits on a tinted rounded panel while its section is open */
.catstrip__link[aria-current] .catstrip__icon {
  background: var(--blue-tint); color: var(--blue);
}
.catstrip__link[aria-current] .catstrip__label { color: var(--blue); font-weight: 700; }
.catstrip__link[aria-current]::after {
  content: ''; position: absolute; left: .5rem; right: .5rem; bottom: 0; height: 3px;
  background: var(--blue); border-radius: 3px 3px 0 0;
}

/* long category names truncate rather than widening the strip */
.catstrip__label {
  max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: block; text-align: center;
}
.catstrip__chev { display: none; }

@media (max-width: 1000px) {
  .promo .banner__slide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo .banner__slide .promo-card:nth-child(3) { display: none; }
  .tiles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .promo .banner__slide { grid-template-columns: minmax(0, 1fr); }
  .promo .banner__slide .promo-card:nth-child(2),
  .promo .banner__slide .promo-card:nth-child(3) { display: none; }
  .promo-card { min-height: 165px; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  .promo-card__title { font-size: 1.1rem; }
  .promo-card__art img { max-height: 120px; }

  .tiles__inner { border-radius: 0; padding: 1rem .9rem 1.15rem; }
  .tile__media { height: 130px; }
  .tile__media img { max-height: 130px; }
}


/* =====================================================================
   Tinted merchandising sections - the rails and the category grid share
   the same panel treatment as the tile blocks, so the whole home page
   reads as one system rather than two.
   ===================================================================== */
.section--tinted { background: transparent; box-shadow: none; margin: .6rem 0 0; }
.section--tinted > .section__inner {
  background: var(--blue-wash); border-radius: 10px; padding: 1.1rem 1.25rem 1.35rem;
}
.section--tinted .section__head { margin-bottom: .9rem; align-items: center; }
.section--tinted .section__title { font-size: 1.25rem; font-weight: 700; color: #1a1a2e; }
.section--tinted .section__subtitle { color: #56526b; }

/* the rail sits on a white panel inside the tint, matching the tile grid */
.section--tinted .rail-wrap { background: #fff; border-radius: 8px; padding: .5rem; }
.section--tinted .rail { gap: .5rem; }
.section--tinted .rail > .card { border-radius: 6px; }
.section--tinted .cat-grid {
  background: #fff; border-radius: 8px; padding: 1rem .75rem; margin: 0;
}
.section--tinted .rail-nav--prev { left: -2px; }
.section--tinted .rail-nav--next { right: -2px; }

@media (max-width: 720px) {
  .section--tinted > .section__inner { border-radius: 0; padding: 1rem .9rem 1.15rem; }
}

/* =====================================================================
   Two-pane category browser (/category/)
   ===================================================================== */
.catbrowse {
  display: grid; grid-template-columns: 150px minmax(0, 1fr);
  background: var(--card); box-shadow: var(--shadow); margin: .6rem 0 1.5rem;
  align-items: start;
}

.catbrowse__rail {
  background: #f7f7fa; border-right: 1px solid var(--line-soft);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  position: sticky; top: calc(var(--header-h) + .4rem);
}
.catbrowse__tab {
  position: relative; width: 100%; border: 0; cursor: pointer; font: inherit;
  background: transparent; color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: .8rem .35rem; text-align: center;
  border-bottom: 1px solid #ecedf2;
}
.catbrowse__tab:hover { background: #f0f1f6; color: var(--blue); }
.catbrowse__icon {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: inherit;
}
.catbrowse__label {
  font-size: .7rem; font-weight: 500; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.catbrowse__tab[aria-selected="true"] {
  background: #fff; color: var(--blue); font-weight: 700;
}
.catbrowse__tab[aria-selected="true"]::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue);
}
.catbrowse__tab[aria-selected="true"] .catbrowse__icon { background: var(--blue-tint); }

.catbrowse__panes { min-width: 0; padding: .35rem 0 1rem; }
.catbrowse__panehead {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.1rem .6rem;
}
.catbrowse__panehead h2 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.catbrowse__panehead a {
  display: inline-flex; align-items: center; gap: .2rem;
  font-size: .78rem; font-weight: 700; white-space: nowrap;
}
.catbrowse__panehead a svg { width: 11px; height: 11px; }

.catbrowse__group { padding: .35rem 1.1rem 1rem; }
.catbrowse__group h3 { margin: 0 0 .6rem; font-size: .85rem; font-weight: 600; }
.catbrowse__group h3 a { color: var(--ink); }
.catbrowse__group h3 a:hover { color: var(--blue); }

.catbrowse__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(102px, 1fr)); gap: .9rem .6rem;
}
.catbrowse__tile { display: flex; flex-direction: column; align-items: center; gap: .4rem; color: var(--ink); }
.catbrowse__tileimg {
  width: 100%; aspect-ratio: 1; border-radius: 8px; background: #f4f5f7;
  display: grid; place-items: center; overflow: hidden; color: var(--muted);
}
.catbrowse__tileimg img { max-width: 84%; max-height: 84%; width: auto; object-fit: contain; }
.catbrowse__tile:hover .catbrowse__tileimg { background: var(--blue-tint); }
.catbrowse__tilename {
  font-size: .73rem; line-height: 1.3; text-align: center; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.catbrowse__tile:hover .catbrowse__tilename { color: var(--blue); }

@media (max-width: 720px) {
  .catbrowse { grid-template-columns: 76px minmax(0, 1fr); margin: 0 0 1rem; }
  .catbrowse__rail { position: static; max-height: none; }
  .catbrowse__tab { padding: .7rem .2rem; }
  .catbrowse__icon { width: 38px; height: 38px; }
  .catbrowse__label { font-size: .62rem; }
  .catbrowse__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem .5rem; }
  .catbrowse__panehead { padding: .75rem .8rem .5rem; }
  .catbrowse__group { padding: .3rem .8rem .9rem; }
}

/* The sticky buy bar already carries both actions on a phone, so the pair
   under the gallery would be a second identical set. Show one or the other. */
@media (max-width: 720px) {
  .gallery__actions { display: none; }
}

/* cart icon sits inside the button label */
.btn--cart svg { width: 17px; height: 17px; flex: 0 0 auto; }

/* =====================================================================
   Boxy desktop layout
   On a laptop or larger the page widens and squares off: a bigger content
   box, flatter corners, and hairline borders instead of soft shadows, so
   the grid reads as panels rather than floating cards.
   ===================================================================== */
@media (min-width: 1100px) {
  :root { --wrap: 1400px; --radius-card: 4px; }

  .section--tinted > .section__inner,
  .tiles__inner { border-radius: 4px; }

  .promo-card { border-radius: 14px; }   /* the slider stays curved even in the boxy layout */
  .tile,
  .section--tinted .rail-wrap,
  .section--tinted .cat-grid { border-radius: 3px; }

  /* panels get a defined edge rather than a soft float */
  .listing__head,
  .results-grid,
  .filters-col,
  .listing__copy,
  .pd-block,
  .product,
  .page,
  .cat-columns,
  .catbrowse,
  .hero,
  .disclosure {
    border: 1px solid var(--line-soft);
    box-shadow: none;
    border-radius: 3px;
  }

  /* tighter, denser product grid on wide screens */
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .catbrowse { grid-template-columns: 190px minmax(0, 1fr); }
  .tiles__grid { gap: .85rem; }
}

@media (min-width: 1500px) {
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Sticky buy bar: the same two actions as the gallery, nothing more. */
.buybar { gap: .5rem; padding: .6rem .9rem; }
.buybar .btn { flex: 4; padding: .9rem .5rem; }

/* =====================================================================
   Product gallery on a phone - full-bleed, swipeable
   ===================================================================== */
@media (max-width: 720px) {
  .product__gallery { flex-direction: column; padding: 0; gap: 0; }
  .gallery__thumbs { display: none; }
  .gallery__stage { border-radius: 0; }
  .gallery__slide { height: auto; aspect-ratio: 1 / 1; padding: 1rem; cursor: default; }
  .gallery__slide.is-zoomed img { transform: none; }
  .gallery__dots { bottom: .5rem; }
  .gallery__rating { left: .6rem; bottom: .6rem; }
  .gallery__zoomhint { display: none; }
  .product__info { padding: 1rem; }
}

/* =====================================================================
   Customer reviews
   ===================================================================== */
.reviews__head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.reviews__head h2 { margin: 0; }
.reviews__avg { margin: 0; display: flex; align-items: center; gap: .45rem; }
.rating--sm { font-size: .68rem; padding: .08rem .28rem; }

.review-list { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 1rem; }
.review { border-bottom: 1px solid var(--line-soft); padding-bottom: 1rem; }
.review:last-child { border-bottom: 0; }
.review__meta { display: flex; align-items: center; gap: .55rem; margin: 0 0 .35rem; font-size: .8rem; }
.review__meta strong { font-weight: 600; }
.review__meta time { color: var(--muted); }
.review__title { font-size: .92rem; font-weight: 600; margin: 0 0 .25rem; }
.review__body { margin: 0; font-size: .87rem; color: var(--ink-soft); max-width: 80ch; }

.review-form { border-top: 1px solid var(--line); padding-top: 1.25rem; max-width: 720px; }
.review-form h3 { font-size: 1rem; margin: 0 0 .9rem; }
.review-form label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .25rem; }
.review-form input[type="text"],
.review-form input[type="email"],
.review-form textarea {
  width: 100%; font: inherit; font-size: .87rem; padding: .55rem .7rem;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink);
}
.review-form input:focus, .review-form textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 100, 254, .13);
}
.review-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.review-form__actions { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }

/* star picker: radios reversed so the CSS sibling selector can fill left-to-right */
.stars { border: 0; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: row-reverse;
         justify-content: flex-end; gap: .15rem; }
.stars legend { font-size: .8rem; font-weight: 600; margin-bottom: .25rem; float: left; width: 100%; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { cursor: pointer; margin: 0; }
.stars label svg { width: 26px; height: 26px; fill: var(--line); transition: fill .12s ease; }
.stars input:checked ~ label svg,
.stars label:hover svg,
.stars label:hover ~ label svg { fill: #f5a623; }
.stars input:focus-visible + label svg { outline: 2px solid var(--blue); outline-offset: 2px; }

/* honeypot - present for bots, gone for people and screen readers */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 720px) {
  .review-form__grid { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
   Jump from the rating to the reviews
   ===================================================================== */

/* The header is sticky, so an anchor would otherwise land underneath it.
   Header height plus the category strip, with a little air. */
#reviews { scroll-margin-top: calc(var(--header-h) + 90px); }

.rating-jump {
  display: inline-flex; align-items: center; gap: .35rem;
  color: inherit; border-radius: 3px;
}
.rating-jump:hover .rating-count { color: var(--blue); text-decoration: underline; }
.rating-jump--empty { color: var(--blue); font-size: .8rem; font-weight: 600; }
.rating-jump--empty:hover { text-decoration: underline; }

a.gallery__rating { cursor: pointer; }
a.gallery__rating:hover { border-color: var(--blue); color: var(--blue); }

@media (max-width: 720px) {
  /* no sticky category strip down here, so less offset is needed */
  #reviews { scroll-margin-top: calc(var(--header-h) + 12px); }
}

/* footer base line: copyright left, build credit right */
.footer__legal {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .35rem 1.5rem;
}
.footer__legal p { margin: 0; }
.footer__credit { font-size: .74rem; color: var(--muted); }
.footer__credit a { color: #cfd3dc; font-weight: 600; }
.footer__credit a:hover { color: #fff; text-decoration: underline; }
