/* ==========================================================================
   Kicks & Clothes Temple — storefront styles
   Monochrome, flat, pill buttons, edge-to-edge imagery.
   ========================================================================== */

:root {
  --black: #111111;
  --white: #FFFFFF;
  --snow: #FAFAFA;
  --grey-100: #F5F5F5;
  --grey-200: #E5E5E5;
  --grey-300: #CACACB;
  --grey-400: #9E9EA0;
  --grey-500: #707072;
  --grey-700: #39393B;
  --grey-800: #28282A;
  --grey-900: #1F1F21;
  --red: #D30005;
  --orange: #D33918;
  --green: #007D48;
  --blue: #1151FF;
  --yellow: #FEDF35;
  --focus: rgba(39, 93, 197, 1);

  --font-display: 'Anton', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --pad-x: 48px;
  --max: 1440px;
  --radius-pill: 30px;
  --radius-card: 20px;
  --radius-input: 8px;
  --divider: inset 0 -1px 0 0 var(--grey-200);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--focus); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.container--narrow { max-width: 960px; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: .5px;
}
.h1 { font-size: 32px; }
.h2 { font-size: 24px; }
.muted { color: var(--grey-500); }
.small { font-size: 14px; line-height: 1.5; }
.tiny { font-size: 12px; line-height: 1.5; }
.medium { font-weight: 500; }
.text-link { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--grey-500); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  padding: 10px 16px;
}
.announce a { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  box-shadow: var(--divider);
}
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.logo {
  font-family: var(--font-display);
  font-size: 22px; line-height: 1;
  text-transform: uppercase; letter-spacing: .5px;
  white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
}
.logo img { height: 40px; width: auto; }
.logo small { display: block; font-size: 11px; font-family: var(--font); letter-spacing: 3px; color: var(--grey-500); margin-top: 2px; }
.main-nav { flex: 1; display: flex; justify-content: center; gap: 24px; }
.main-nav a { font-weight: 500; font-size: 16px; line-height: 1.5; padding: 6px 0; white-space: nowrap; }
.main-nav a:hover, .main-nav a.is-active { color: var(--grey-500); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search-form { position: relative; }
.search-form input {
  width: 180px; height: 40px;
  background: var(--grey-100);
  border: 0; border-radius: 24px;
  padding: 0 16px 0 40px;
  transition: background .2s ease, width .2s ease;
}
.search-form input:hover { background: var(--grey-200); }
.search-form input:focus { outline: none; box-shadow: 0 0 0 2px var(--focus); width: 220px; }
.search-form svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 0; background: transparent; cursor: pointer;
  transition: background .2s ease;
}
.icon-btn:hover { background: var(--grey-200); }
.cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  background: var(--black); color: var(--white);
  font-size: 11px; font-weight: 500; line-height: 18px; text-align: center;
}
.cart-count[data-count="0"] { display: none; }
.menu-toggle { display: none; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  background: var(--white);
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: none; }
.mobile-menu__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; box-shadow: var(--divider); }
.mobile-menu nav { display: flex; flex-direction: column; padding: 16px 24px; }
.mobile-menu nav a { font-size: 24px; font-weight: 500; padding: 10px 0; }
.mobile-menu__foot { margin-top: auto; padding: 24px; background: var(--grey-100); font-size: 14px; line-height: 1.8; }
.mobile-menu form { padding: 16px 24px 0; }
.mobile-menu form input { width: 100%; }
body.no-scroll { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  background: var(--black); color: var(--white);
  font-weight: 500; font-size: 16px; line-height: 1.5;
  cursor: pointer; white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--grey-500); }
.btn--light { background: var(--white); color: var(--black); }
.btn--light:hover { background: var(--grey-300); }
.btn--outline { background: transparent; color: var(--black); border-color: var(--grey-300); }
.btn--outline:hover { background: var(--grey-200); border-color: var(--grey-500); }
.btn--outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline-light:hover { background: var(--grey-700); }
.btn--danger { background: var(--red); }
.btn--danger:hover { background: #a80004; }
.btn--sm { min-height: 36px; padding: 6px 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { background: var(--grey-200); color: var(--grey-400); border-color: transparent; cursor: not-allowed; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 18px; height: 18px;
  border: 2px solid currentColor; border-color: var(--white) var(--white) transparent transparent;
  border-radius: 50%; animation: spin .7s linear infinite;
}
.btn--outline.is-loading::after, .btn--light.is-loading::after { border-color: var(--black) var(--black) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--grey-300);
  font-size: 14px; font-weight: 500; line-height: 1.5;
  background: var(--white);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.pill:hover { border-color: var(--grey-500); }
.pill.is-active { background: var(--black); color: var(--white); border-color: var(--black); }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-size: 14px; font-weight: 500; line-height: 1.5; margin-bottom: 6px; }
.field .req { color: var(--red); }
.field .hint { font-size: 12px; color: var(--grey-500); line-height: 1.5; margin-top: 4px; }
.input, .select, .textarea,
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"],
.field input[type="number"], .field input[type="search"], .field input[type="date"], .field input[type="datetime-local"],
.field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--grey-100);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-input);
  font-size: 16px; line-height: 1.5;
  transition: border-color .2s ease, background .2s ease;
  -webkit-appearance: none; appearance: none;
}
.field select, .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.field textarea, .textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus,
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--black); background: var(--white);
  box-shadow: 0 0 0 2px var(--focus);
}
.field.has-error input, .field.has-error select, .input.has-error { border-color: var(--red); }
.field .error { color: var(--red); font-size: 12px; font-weight: 500; margin-top: 4px; }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--grey-500); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--black); }
.inline-form { display: flex; gap: 8px; }
.inline-form .input { flex: 1; }

/* ---------- Alerts ---------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-input);
  font-size: 14px; font-weight: 500; line-height: 1.5;
  margin-bottom: 16px;
  background: var(--grey-100);
  border-left: 3px solid var(--black);
}
.alert--success { border-left-color: var(--green); }
.alert--error { border-left-color: var(--red); color: var(--red); background: #FFF5F5; }
.alert--warning { border-left-color: #FCA600; background: #FFFBE6; }
.flash-wrap { padding-top: 16px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200;
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--black); color: var(--white);
  padding: 12px 20px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 500; line-height: 1.5;
  max-width: calc(100% - 32px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--red); }

/* ---------- Badges ---------- */
.badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 500; line-height: 1.5;
  background: var(--white); color: var(--black);
}
.badge--sale { color: var(--orange); }
.badge--dark { background: var(--black); color: var(--white); }
.tag {
  display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 500; line-height: 1.6;
  background: var(--grey-100); color: var(--black);
}
.tag--green { background: #DFFFB9; color: #003C2A; }
.tag--red { background: #FFE5E5; color: #530300; }
.tag--yellow { background: #FEF087; color: #99470A; }
.tag--blue { background: #D6EEFF; color: #020664; }
.tag--dark { background: var(--black); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 760px);
  display: flex; align-items: flex-end;
  background: var(--grey-900);
  color: var(--white);
  overflow: hidden;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,17,17,0) 30%, rgba(17,17,17,.75) 100%); }
.hero--plain { background: radial-gradient(120% 90% at 80% 10%, #39393B 0%, #111111 60%); }
.hero--plain::after { display: none; }
.hero__content { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 64px; width: 100%; }
.hero__title { font-size: 96px; max-width: 14ch; margin-bottom: 16px; }
.hero__sub { font-size: 18px; line-height: 1.6; max-width: 560px; color: var(--grey-200); font-weight: 500; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--tight { padding: 48px 0; }
.section--grey { background: var(--grey-100); }
.section--dark { background: var(--black); color: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: 24px; }
.section-head .display { font-size: 56px; }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cat-card { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--grey-800); color: var(--white); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,17,17,0) 45%, rgba(17,17,17,.7) 100%); }
.cat-card__body { position: absolute; left: 24px; bottom: 24px; right: 24px; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cat-card__name { font-family: var(--font-display); font-size: 40px; line-height: .9; text-transform: uppercase; }
.cat-card--plain { background: var(--grey-800); }
.cat-card--plain .cat-card__name { font-size: 48px; }
.cat-card:hover img { opacity: .9; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 12px; }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }
.product-card { display: block; }
.product-card__media { position: relative; aspect-ratio: 1 / 1; background: var(--grey-100); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__alt { position: absolute; inset: 0; opacity: 0; transition: opacity .2s ease; }
.product-card:hover .product-card__alt { opacity: 1; }
.product-card__body { padding: 12px 0 24px; }
.product-card__brand { font-size: 14px; font-weight: 500; color: var(--orange); line-height: 1.5; }
.product-card__name { font-weight: 500; line-height: 1.5; }
.product-card:hover .product-card__name { text-decoration: underline; text-underline-offset: 3px; }
.product-card__meta { color: var(--grey-500); line-height: 1.5; }
.product-card__price { margin-top: 8px; font-weight: 500; display: flex; gap: 8px; align-items: baseline; }
.product-card__price s { color: var(--grey-500); font-size: 14px; font-weight: 400; }

.empty-state { padding: 64px 16px; text-align: center; background: var(--grey-100); border-radius: var(--radius-card); }
.empty-state h3 { font-size: 24px; margin-bottom: 8px; }

/* Gift cards */
.gc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gc-card {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 1.586 / 1;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--black); color: var(--white);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s ease;
  text-align: left;
}
.gc-card::before {
  content: 'K&C'; position: absolute; right: -8px; bottom: -28px;
  font-family: var(--font-display); font-size: 140px; line-height: 1; color: rgba(255,255,255,.06);
  pointer-events: none;
}
.gc-card:nth-child(4n+2) { background: var(--grey-800); }
.gc-card:nth-child(4n+3) { background: var(--grey-900); }
.gc-card:nth-child(4n+4) { background: #2E2E30; }
.section--dark .gc-card { background: var(--grey-900); }
.section--dark .gc-card:nth-child(4n+2) { background: var(--grey-800); }
.gc-card__top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--grey-300); }
.gc-card__amount { font-family: var(--font-display); font-size: 48px; line-height: .9; }
.gc-card__title { font-size: 14px; font-weight: 500; color: var(--grey-300); }
.gc-card.is-selected, .gc-card:hover { border-color: var(--white); }
.gc-card--custom { background: var(--white) !important; color: var(--black); border: 2px dashed var(--grey-300); }
.gc-card--custom .gc-card__top, .gc-card--custom .gc-card__title { color: var(--grey-500); }
.gc-card--custom::before { color: rgba(17,17,17,.05); }
.gc-card--custom.is-selected, .gc-card--custom:hover { border-color: var(--black); }
.gc-feature { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; }
.gc-feature .display { font-size: 72px; margin-bottom: 16px; }
.gc-feature p { color: var(--grey-300); max-width: 460px; }
.gc-preview { max-width: 420px; cursor: default; }
.gc-preview .gc-card__code { font-family: ui-monospace, Menlo, monospace; font-size: 18px; letter-spacing: 2px; }

/* Store banner */
.store-block { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.store-block__info { background: var(--grey-100); padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.store-block__info .display { font-size: 56px; margin-bottom: 16px; }
.store-block__map { min-height: 380px; background: var(--grey-100); }
.store-block__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(1); }
.info-list { list-style: none; padding: 0; margin: 0 0 24px; }
.info-list li { display: flex; gap: 12px; padding: 8px 0; font-weight: 500; }
.info-list svg { flex: none; margin-top: 5px; }

/* Value props */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.value { background: var(--grey-100); padding: 24px; border-radius: var(--radius-card); }
.value h3 { font-size: 16px; line-height: 1.5; margin: 12px 0 4px; }
.value p { color: var(--grey-500); font-size: 14px; line-height: 1.6; margin: 0; }

/* ---------- Page header ---------- */
.page-head { padding: 48px 0 24px; }
.page-head h1 { font-size: 32px; }
.page-head .display { font-size: 72px; }
.breadcrumbs { font-size: 14px; color: var(--grey-500); font-weight: 500; line-height: 1.5; margin-bottom: 8px; }
.breadcrumbs a:hover { color: var(--black); }

/* ---------- Shop ---------- */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding-bottom: 80px; }
.filters { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 8px; }
.filters h3 { font-size: 16px; line-height: 1.5; margin: 0 0 8px; }
.filter-group { padding: 16px 0; box-shadow: var(--divider); }
.filter-group:first-child { padding-top: 0; }
.filter-links a { display: block; padding: 4px 0; font-weight: 500; }
.filter-links a:hover, .filter-links a.is-active { color: var(--grey-500); }
.filter-links a.is-active { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.shop-toolbar select { min-height: 40px; padding: 6px 40px 6px 16px; border-radius: var(--radius-pill); background-color: var(--white); }
.filters-toggle { display: none; }
.price-inputs { display: flex; gap: 8px; align-items: center; }
.price-inputs input { width: 100%; min-height: 40px !important; padding: 8px 12px !important; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; padding: 24px 0 80px; }
.pdp-gallery { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start; }
.pdp-thumbs { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 88px; }
.pdp-thumbs button { padding: 0; border: 0; background: var(--grey-100); aspect-ratio: 1/1; cursor: pointer; border-radius: 4px; overflow: hidden; opacity: .6; transition: opacity .2s ease; }
.pdp-thumbs button.is-active, .pdp-thumbs button:hover { opacity: 1; }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-main { position: relative; aspect-ratio: 1/1; background: var(--grey-100); overflow: hidden; }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-nav { position: absolute; bottom: 16px; right: 16px; display: flex; gap: 8px; }
.pdp-nav button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pdp-nav button:hover { background: var(--grey-200); }
.pdp-info { position: sticky; top: 88px; align-self: start; }
.pdp-info h1 { font-size: 28px; }
.pdp-brand { color: var(--orange); font-weight: 500; }
.pdp-price { font-size: 20px; font-weight: 500; margin: 12px 0 24px; display: flex; gap: 12px; align-items: baseline; }
.pdp-price s { color: var(--grey-500); font-size: 16px; font-weight: 400; }
.pdp-price .save { color: var(--green); font-size: 14px; }
.size-head { display: flex; justify-content: space-between; font-weight: 500; margin-bottom: 8px; }
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-bottom: 8px; }
.size-grid label { position: relative; }
.size-grid input { position: absolute; opacity: 0; pointer-events: none; }
.size-grid span {
  display: flex; align-items: center; justify-content: center;
  height: 48px; border: 1px solid var(--grey-300); border-radius: var(--radius-input);
  font-weight: 500; cursor: pointer; transition: border-color .2s ease;
}
.size-grid label:hover span { border-color: var(--black); }
.size-grid input:checked + span { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.size-grid input:focus-visible + span { box-shadow: 0 0 0 2px var(--focus); }
.size-grid input:disabled + span { background: var(--grey-100); color: var(--grey-400); cursor: not-allowed; text-decoration: line-through; }
.size-error { color: var(--red); font-size: 14px; font-weight: 500; display: none; margin-bottom: 8px; }
.size-error.is-show { display: block; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--grey-300); border-radius: var(--radius-pill); height: 48px; }
.qty button { width: 44px; height: 100%; border: 0; background: transparent; cursor: pointer; font-size: 18px; border-radius: var(--radius-pill); }
.qty button:hover { background: var(--grey-100); }
.qty input { width: 44px; text-align: center; border: 0; background: transparent; font-weight: 500; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 36px; }
.qty--sm button { width: 32px; font-size: 16px; }
.qty--sm input { width: 32px; font-size: 14px; }
.pdp-actions { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.pdp-actions .row { display: flex; gap: 12px; }
.pdp-actions .row .btn { flex: 1; }
.stock-note { font-size: 14px; font-weight: 500; }
.stock-note.low { color: var(--orange); }
.stock-note.out { color: var(--red); }
.pdp-desc { padding-top: 24px; box-shadow: inset 0 1px 0 0 var(--grey-200); }
.pdp-desc h2 { font-size: 16px; line-height: 1.5; margin-bottom: 8px; }
.pdp-perks { list-style: none; padding: 0; margin: 24px 0 0; font-size: 14px; }
.pdp-perks li { display: flex; gap: 10px; padding: 6px 0; font-weight: 500; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; padding-bottom: 80px; }
.cart-item { display: grid; grid-template-columns: 140px 1fr auto; gap: 20px; padding: 24px 0; box-shadow: var(--divider); }
.cart-item__img { aspect-ratio: 1/1; background: var(--grey-100); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-weight: 500; line-height: 1.5; }
.cart-item__meta { color: var(--grey-500); line-height: 1.6; }
.cart-item__actions { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.cart-item__price { font-weight: 500; text-align: right; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 500; color: var(--grey-500); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.link-btn:hover { color: var(--black); }
.summary { position: sticky; top: 88px; align-self: start; }
.summary h2 { font-size: 24px; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; line-height: 1.5; }
.summary-row span:first-child { color: var(--grey-500); }
.summary-row.is-discount span:last-child { color: var(--green); font-weight: 500; }
.summary-total { display: flex; justify-content: space-between; padding: 16px 0; margin: 8px 0 16px; box-shadow: inset 0 1px 0 0 var(--grey-200), var(--divider); font-weight: 500; font-size: 18px; }
.summary-due { display: flex; justify-content: space-between; font-weight: 500; font-size: 20px; margin: -8px 0 16px; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; padding-bottom: 80px; }
.checkout-block { margin-bottom: 32px; }
.checkout-block h2 { font-size: 20px; margin-bottom: 4px; }
.checkout-block > p { color: var(--grey-500); font-size: 14px; margin-bottom: 16px; line-height: 1.5; }
.ship-option {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; margin-bottom: 8px;
  border: 1px solid var(--grey-300); border-radius: var(--radius-input);
  cursor: pointer; transition: border-color .2s ease;
}
.ship-option:hover { border-color: var(--grey-500); }
.ship-option input { margin-top: 4px; accent-color: var(--black); width: 18px; height: 18px; flex: none; }
.ship-option.is-selected { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.ship-option__body { flex: 1; line-height: 1.5; }
.ship-option__name { font-weight: 500; }
.ship-option__desc { font-size: 14px; color: var(--grey-500); }
.ship-option__fee { font-weight: 500; white-space: nowrap; }
.mini-items { margin-bottom: 16px; }
.mini-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; font-size: 14px; line-height: 1.5; }
.mini-item__img { position: relative; aspect-ratio: 1/1; background: var(--grey-100); }
.mini-item__img img { width: 100%; height: 100%; object-fit: cover; }
.mini-item__qty { position: absolute; top: -6px; right: -6px; background: var(--black); color: var(--white); width: 20px; height: 20px; border-radius: 50%; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.code-box { margin-bottom: 12px; }
.code-box .inline-form .input { min-height: 44px; padding: 8px 16px; text-transform: uppercase; }
.code-box .btn { min-height: 44px; }
.applied { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--grey-100); border-radius: var(--radius-input); font-size: 14px; font-weight: 500; }
.applied .tag { margin-right: 8px; }
.code-msg { font-size: 12px; font-weight: 500; margin-top: 6px; line-height: 1.5; }
.code-msg.is-error { color: var(--red); }
.code-msg.is-ok { color: var(--green); }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12px; color: var(--grey-500); margin-top: 12px; line-height: 1.5; }
.pay-logos { display: flex; gap: 8px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.pay-logos span { font-size: 11px; font-weight: 500; padding: 2px 8px; border: 1px solid var(--grey-300); border-radius: 4px; color: var(--grey-500); }

/* ---------- Success / cards ---------- */
.panel { background: var(--grey-100); border-radius: var(--radius-card); padding: 32px; }
.panel--white { background: var(--white); border: 1px solid var(--grey-200); }
.success-hero { text-align: center; padding: 64px 0 32px; }
.success-hero .icon-circle { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--black); color: var(--white); display: flex; align-items: center; justify-content: center; }
.success-hero .display { font-size: 64px; margin-bottom: 12px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.kv div span { display: block; font-size: 12px; color: var(--grey-500); font-weight: 500; line-height: 1.5; text-transform: uppercase; letter-spacing: 1px; }
.kv div strong { font-weight: 500; }

.timeline { display: flex; gap: 0; margin: 24px 0; }
.timeline__step { flex: 1; text-align: center; position: relative; font-size: 12px; font-weight: 500; color: var(--grey-400); }
.timeline__step::before { content: ''; display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--grey-300); margin: 0 auto 8px; position: relative; z-index: 2; }
.timeline__step::after { content: ''; position: absolute; top: 6px; left: 50%; width: 100%; height: 2px; background: var(--grey-300); }
.timeline__step:last-child::after { display: none; }
.timeline__step.is-done { color: var(--black); }
.timeline__step.is-done::before, .timeline__step.is-done::after { background: var(--black); }

/* Content pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 32px 0 12px; }
.prose h3 { font-size: 18px; margin: 24px 0 8px; }
.prose a { text-decoration: underline; }
.prose ul { padding-left: 20px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-bottom: 80px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); padding: 64px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 48px; }
.site-footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { line-height: 1.86; }
.site-footer a { color: var(--grey-400); font-weight: 500; }
.site-footer a:hover { color: var(--white); }
.footer-brand .logo { font-size: 28px; margin-bottom: 12px; }
.footer-brand p { color: var(--grey-400); max-width: 320px; line-height: 1.7; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: var(--grey-800); display: flex; align-items: center; justify-content: center; color: var(--white); }
.socials a:hover { background: var(--grey-700); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; box-shadow: inset 0 1px 0 0 var(--grey-800); color: var(--grey-500); font-size: 12px; }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.wa-float:hover { background: var(--grey-700); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .product-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .search-form input { width: 150px; }
}
@media (max-width: 1024px) {
  :root { --pad-x: 24px; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .search-form--desktop { display: none; }
  .hero__title { font-size: 64px; }
  .gc-grid { grid-template-columns: repeat(2, 1fr); }
  .gc-feature { grid-template-columns: 1fr; gap: 32px; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; gap: 0; }
  .filters { position: fixed; inset: 0; z-index: 120; background: var(--white); max-height: none; padding: 24px; transform: translateX(-100%); transition: transform .25s ease; top: 0; }
  .filters.is-open { transform: none; }
  .filters-toggle { display: inline-flex; }
  .filters__close { display: flex !important; }
}
@media (max-width: 960px) {
  .product-grid, .product-grid--4, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp, .cart-layout, .checkout-layout, .contact-grid, .store-block { grid-template-columns: 1fr; gap: 32px; }
  .pdp-info, .summary { position: static; }
  .pdp-gallery { grid-template-columns: 1fr; }
  .pdp-thumbs { flex-direction: row; order: 2; position: static; overflow-x: auto; }
  .pdp-thumbs button { width: 64px; flex: none; }
  .section { padding: 48px 0; }
  .section-head .display { font-size: 44px; }
  .store-block__info { padding: 32px 24px; }
}
@media (max-width: 640px) {
  :root { --pad-x: 16px; }
  .site-header__inner { height: 56px; gap: 8px; }
  .logo { font-size: 18px; }
  .logo small { display: none; }
  .hero { min-height: min(70vh, 600px); }
  .hero__title { font-size: 48px; }
  .hero__sub { font-size: 16px; }
  .hero__content { padding-bottom: 40px; }
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid, .product-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .product-card__body { padding: 8px 4px 20px; font-size: 14px; }
  .gc-grid { grid-template-columns: 1fr; }
  .gc-feature .display { font-size: 48px; }
  .values { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .cart-item { grid-template-columns: 96px 1fr; }
  .cart-item__price { grid-column: 2; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-head .display, .success-hero .display { font-size: 48px; }
  .section-head .display, .store-block__info .display { font-size: 40px; }
  .cat-card__name, .cat-card--plain .cat-card__name { font-size: 36px; }
  .panel { padding: 24px 16px; }
  .inline-form { flex-direction: column; }
  .wa-float { width: 48px; height: 48px; right: 16px; bottom: 16px; }
}

/* Selected gift card ring (visible on light and dark backgrounds) */
.gc-card.is-selected { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--black); }
.section--dark .gc-card.is-selected { box-shadow: none; }
.gc-card::before { color: rgba(255,255,255,.04); }

/* Guard against horizontal scroll from off-canvas panels */
html, body { overflow-x: clip; }
.mobile-menu { visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.mobile-menu.is-open { visibility: visible; transition: transform .25s ease; }
