/* ==========================================================================
   hike-base design system
   Every colour, font, radius and width comes from design tokens ({% design_tokens %} in the layout):
   theme.json "design" -> style preset -> the store's ThemeSetting colours -> store tokens.
   Child themes change tokens first and only override CSS for what tokens cannot express.
   Mobile first. Breakpoints: 600px (large phone), 900px (tablet), 1200px (desktop).
   ========================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body-family, system-ui, sans-serif);
  font-size: var(--font-base-size, 16px);
  font-weight: var(--font-body-weight, 400);
  line-height: var(--font-line-height, 1.6);
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading-family, inherit);
  font-weight: var(--font-heading-weight, 700);
  color: var(--color-heading);
  line-height: 1.15;
  letter-spacing: var(--font-heading-letter-spacing, -0.01em);
  margin: 0 0 .5em;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, var(--font-heading-size, 40px)); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--color-primary); }
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--color-focus, var(--color-primary)); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--color-accent); color: var(--color-on-accent, #111); }
hr { border: 0; border-top: 1px solid var(--color-outline); margin: 2rem 0; }
table { border-collapse: collapse; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--layout-page-width, 1240px); margin-inline: auto; padding-inline: var(--layout-spacing, 16px); }
@media (min-width: 900px) { .container { padding-inline: calc(var(--layout-spacing, 16px) * 2); } }
.section { padding-block: var(--layout-section-spacing, 56px); }
.section--tight { padding-block: calc(var(--layout-section-spacing, 56px) / 2); }
.section--alt { background: var(--color-background-alt); }
.hike-section:empty { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
@media (max-width: 599px) { .visually-hidden-mobile { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
ul[role=list], ol[role=list] { list-style: none; margin: 0; padding: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 1000; background: var(--color-primary); color: var(--color-on-primary); padding: 10px 16px; border-radius: var(--shape-radius, 6px); text-decoration: none; }
.skip-link:focus { top: 12px; }
.hike-main:focus { outline: none; }
.rte > :last-child { margin-bottom: 0; }
.rte img { height: auto; border-radius: var(--shape-radius, 6px); }
.rte a { color: var(--color-primary); }
.rte table { width: 100%; }
.rte td, .rte th { border: 1px solid var(--color-outline); padding: 8px; text-align: left; }
.text-muted { color: var(--color-subheading); }

/* ---------- Section headings ---------- */
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.section-heading > div > :last-child { margin-bottom: 0; }
.section-heading h2 { margin: 0; }
.section-heading p { margin: 6px 0 0; color: var(--color-subheading); max-width: 60ch; }
.section-heading--center { flex-direction: column; align-items: center; text-align: center; }
.section-heading__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--color-accent-text, var(--color-subheading)); margin-bottom: .6em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.5em;
  border: 1.5px solid var(--color-primary); border-radius: var(--shape-button-radius, 6px);
  background: transparent; color: var(--color-primary);
  font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); color: var(--color-primary); }
.btn:active { transform: none; }
.btn--primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn--primary:hover { color: var(--color-on-primary); background: var(--color-primary-hover, var(--color-primary)); }
.btn--secondary { background: transparent; }
.btn--secondary:hover { background: var(--color-primary); color: var(--color-on-primary); }
.btn--accent { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent, #111); }
.btn--light { background: #fff; border-color: #fff; color: #111; }
.btn--light:hover { color: #111; }
.btn--link { border: 0; min-height: 0; padding: 0; text-decoration: underline; background: none; }
.btn--small { min-height: 38px; padding: .45em 1.1em; font-size: .92em; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled=true] { opacity: .45; cursor: not-allowed; transform: none; }
.link-button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; cursor: pointer; color: inherit; position: relative; text-decoration: none; }
.icon-button:hover { background: color-mix(in srgb, currentColor 8%, transparent); color: inherit; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 600; font-size: .92em; }
.input, .select, .field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: .6em .85em;
  border: 1.5px solid var(--color-outline); border-radius: var(--shape-input-radius, var(--shape-radius, 6px));
  background: var(--color-background); color: var(--color-text);
}
.input:focus, .select:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 18%, transparent); }
.form-status { min-height: 1.4em; margin: 10px 0 0; font-size: .92em; color: var(--color-success, #15803d); }
.form-status--error { color: var(--color-sale-text, var(--color-sale)); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--color-outline); border-radius: var(--shape-button-radius, 6px); overflow: hidden; }
.qty button { width: 40px; height: 44px; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.qty button:hover { background: var(--color-background-alt); }
.qty input { width: 48px; height: 44px; border: 0; text-align: center; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Badges ---------- */
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; line-height: 1; }
.badge--sale { background: var(--color-sale); color: #fff; }
.badge--sold-out { background: var(--color-heading); color: var(--color-background); }
.badge--new { background: var(--color-accent); color: var(--color-on-accent, #111); }

/* ---------- Announcement bar ---------- */
.announcement { background: var(--color-announcement-background, var(--color-primary)); color: var(--color-announcement-text, var(--color-on-primary)); font-size: .88rem; }
.announcement__inner { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 40px; text-align: center; }
.announcement a { color: inherit; }
.announcement__item[hidden] { display: none; }

/* ---------- Header ---------- */
.site-header { background: var(--color-header-background); color: var(--color-header-text, var(--color-navigation)); border-bottom: 1px solid var(--color-outline); position: relative; z-index: 20; }
.site-header--sticky { position: sticky; top: 0; }
/* A sticky header sticks through its region (announcement bar + header): the header alone is held by a wrapper of its
   own height, so it could never stick. theme.js sets --sticky-header-top so the announcement bar scrolls away. */
.hike-region--header { position: relative; z-index: 30; }
.hike-region--header:has(.site-header--sticky) { position: sticky; top: var(--sticky-header-top, 0px); }
/* The menu drawer lives inside the header region, so its z-index only counts within it: while it is open, lift the
   whole region above the "previewing" strip (.preview-banner, z-index 50), which otherwise covers the drawer's top. */
body.has-drawer .hike-region--header { z-index: 60; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .06); }
.site-header__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 16px; min-height: 72px; }
.site-header__logo { display: inline-flex; align-items: center; min-width: 0; font-family: var(--font-heading-family); font-weight: 800; font-size: clamp(1.05rem, .85rem + 1vw, 1.35rem); line-height: 1.15; letter-spacing: -.02em; text-decoration: none; color: inherit; }
.site-header__logo img { max-height: 48px; width: auto; }
.site-header__toggle { display: inline-flex; }
.site-nav { display: none; }
.site-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--color-accent); color: var(--color-on-accent, #111); font-size: .7rem; font-weight: 800; line-height: 18px; text-align: center; }
.cart-count:empty, .cart-count[data-count="0"] { display: none; }
.site-search { display: none; }
@media (min-width: 900px) {
  .site-header__inner { grid-template-columns: auto 1fr auto; }
  .site-header--center .site-header__inner { grid-template-columns: 1fr auto 1fr; }
  .site-header--center .site-header__logo { grid-column: 2; grid-row: 1; justify-self: center; }
  .site-header--center .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .site-header__toggle { display: none; }
  .site-nav { display: flex; justify-content: flex-start; }
  .site-search { display: block; }
  /* The header's "Menu alignment" setting (menu_align); the header leaves the class off for its default. */
  .site-header.site-header--menu-left .site-nav { justify-content: flex-start; }
  .site-header.site-header--menu-center .site-nav { justify-content: center; }
  .site-header.site-header--menu-right .site-nav { justify-content: flex-end; }
}
.site-nav__list { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav__item { position: relative; }
.site-nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: var(--shape-radius, 6px); color: var(--color-navigation); text-decoration: none; font-weight: 600; }
.site-nav__link:hover, .site-nav__link[aria-current=page] { background: color-mix(in srgb, currentColor 7%, transparent); color: var(--color-navigation); }
.site-nav__dropdown { position: absolute; top: calc(100% + 4px); left: 0; min-width: 220px; padding: 8px; list-style: none; margin: 0; background: var(--color-background); color: var(--color-text); border: 1px solid var(--color-outline); border-radius: var(--shape-card-radius, 10px); box-shadow: 0 16px 40px rgba(0, 0, 0, .12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.site-nav__item:hover > .site-nav__dropdown, .site-nav__item:focus-within > .site-nav__dropdown, .site-nav__item.is-open > .site-nav__dropdown { opacity: 1; visibility: visible; transform: none; }
.site-nav__dropdown a { display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; }
.site-nav__dropdown a:hover { background: var(--color-background-alt); }
.site-search__form { position: relative; }
.site-search__form input { width: clamp(160px, 18vw, 260px); min-height: 42px; padding: 8px 14px 8px 38px; border: 1.5px solid var(--color-outline); border-radius: 999px; background: var(--color-background); }
.site-search__form .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--color-subheading); pointer-events: none; }

/* Mobile drawer (menu) */
.drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.drawer.is-open { display: block; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); animation: fade .2s ease; }
.drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 380px); background: var(--color-background); color: var(--color-text); overflow-y: auto; padding: 16px 20px 32px; box-shadow: 8px 0 40px rgba(0, 0, 0, .2); animation: slide-in .25s ease; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.drawer__nav ul { list-style: none; margin: 0; padding: 0; }
.drawer__nav > ul > li { border-bottom: 1px solid var(--color-outline); }
.drawer__nav a { display: block; padding: 14px 4px; text-decoration: none; font-weight: 600; }
.drawer__nav ul ul a { padding: 10px 16px; font-weight: 400; }
.drawer__nav details > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 14px 4px; font-weight: 600; }
.drawer__nav details > summary::-webkit-details-marker { display: none; }
.drawer__nav details[open] > summary .icon { transform: rotate(180deg); }
.drawer__search { margin: 12px 0 20px; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(-100%); } }
body.has-drawer { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-footer-background); color: var(--color-footer-text, #eee); margin-top: var(--layout-section-spacing, 56px); }
.site-footer a { color: inherit; opacity: .85; text-decoration: none; }
.site-footer a:hover { opacity: 1; text-decoration: underline; color: inherit; }
.site-footer h2 { color: inherit; font-size: 1rem; letter-spacing: .02em; margin-bottom: 14px; }
.site-footer__grid { display: grid; gap: 32px; padding-block: 48px; }
@media (min-width: 600px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; } }
.site-footer__brand { font-family: var(--font-heading-family); font-weight: 800; font-size: 1.3rem; margin-bottom: 12px; display: block; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contact .icon { flex: none; margin-top: 3px; opacity: .8; }
.site-footer__social { display: flex !important; gap: 4px !important; flex-wrap: wrap; margin-top: 16px !important; }
.site-footer__social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.site-footer__bottom { background: var(--color-sub-footer-background); color: var(--color-footer-text, #ddd); font-size: .85rem; }
.site-footer__bottom .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-block: 16px; }
.site-footer .newsletter-form { margin-top: 4px; }
.site-footer .newsletter-form input { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 35%, transparent); }

/* ---------- Hero, slideshow, banners ---------- */
.hero { position: relative; display: grid; align-items: center; min-height: var(--hero-height, 520px); background: var(--color-background-alt); overflow: hidden; isolation: isolate; }
.hero--small { --hero-height: 360px; }
.hero--large { --hero-height: 680px; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero--has-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,var(--hero-overlay, .45)) 0%, rgba(0,0,0,calc(var(--hero-overlay, .45) * .4)) 60%, transparent 100%); }
.hero--has-image { color: #fff; }
.hero--has-image h1, .hero--has-image h2, .hero--has-image .eyebrow { color: #fff; }
.hero__content { padding-block: 64px; max-width: 640px; }
.hero--center .hero__content { margin-inline: auto; text-align: center; }
.hero--right .hero__content { margin-left: auto; text-align: right; }
.hero--center.hero--has-image::after { background: rgba(0,0,0,var(--hero-overlay, .45)); }
.hero__content p { font-size: 1.12rem; max-width: 52ch; }
.hero--center .hero__content p { margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero--center .hero__actions { justify-content: center; }
.hero--right .hero__actions { justify-content: flex-end; }

.slideshow { position: relative; }
.slideshow__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slideshow__track::-webkit-scrollbar { display: none; }
.slideshow__slide { scroll-snap-align: start; }
.slideshow__controls { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 8px; pointer-events: none; }
.slideshow__controls > * { pointer-events: auto; }
/* Arrows and dots: white with a soft dark edge, seen on a photo and on a slide with no photo alike. */
.slideshow__button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #111; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.22); }
.slideshow__dots { display: flex; gap: 14px; margin-inline: 4px; }
.slideshow__dot { position: relative; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; box-shadow: 0 0 0 1px rgba(0,0,0,.3); transition: width .2s ease; }
.slideshow__dot::before { content: ""; position: absolute; inset: -9px; } /* a 24 px tap target around the small dot */
.slideshow__dot[aria-current=true] { background: #fff; width: 22px; border-radius: 999px; } /* longer: told apart on any background */

.image-banner { position: relative; border-radius: var(--shape-card-radius, 12px); overflow: hidden; display: grid; min-height: 320px; align-items: end; color: #fff; isolation: isolate; background: var(--color-primary); }
.image-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.image-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.6), transparent 70%); }
.image-banner__content { padding: clamp(24px, 4vw, 48px); max-width: 640px; }
.image-banner h2 { color: #fff; }

.promo-banner { background: var(--color-sale); color: #fff; }
.promo-banner__inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; padding-block: 14px; text-align: center; }
.promo-banner .btn { border-color: #fff; color: #fff; min-height: 38px; padding: .4em 1.1em; }
.promo-banner .btn:hover { background: #fff; color: var(--color-sale); }

/* ---------- Product grid & cards ---------- */
.product-grid__items, .grid {
  display: grid; gap: var(--layout-grid-gap, 16px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) {
  .product-grid__items { grid-template-columns: repeat(var(--columns, 4), minmax(0, 1fr)); gap: var(--layout-grid-gap-desktop, 24px); }
}
.product-grid--scroll .product-grid__items { grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; }
.product-grid--scroll .product-grid__items > * { scroll-snap-align: start; }
.product-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--color-card-background, var(--color-background)); border-radius: var(--shape-card-radius, 12px); overflow: hidden; border: var(--card-border, 1px solid var(--color-outline)); box-shadow: var(--card-shadow, none); transition: box-shadow .2s ease, transform .2s ease; }
.product-card:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, .08); }
.product-card__media { position: relative; display: block; aspect-ratio: var(--card-image-ratio, 1); background: var(--color-background-alt); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.product-card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 16px; flex: 1; }
.product-card__brand { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-subheading); margin: 0; }
.product-card__title { font-size: 1rem; font-weight: 600; margin: 0; line-height: 1.35; font-family: var(--font-body-family); letter-spacing: 0; }
.product-card__title a { text-decoration: none; color: var(--color-heading); }
.product-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.product-card__button { margin-top: 12px; width: 100%; pointer-events: none; } /* design.layout.card_button */
.product-card:hover .product-card__button { background: var(--color-primary); color: var(--color-on-primary); }
.product-card__title a:focus-visible { outline: none; }
.product-card:focus-within { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.product-card .price { margin-top: auto; padding-top: 6px; }
.product-card--sold-out .product-card__media img { opacity: .6; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.price__from { font-size: .85em; color: var(--color-subheading); }
.price__current { font-weight: 700; color: var(--color-heading); }
.price--on-sale .price__current { color: var(--color-sale-text, var(--color-sale)); }
.price__compare { color: var(--color-subheading); font-size: .9em; }
mark { background: color-mix(in srgb, var(--color-accent) 40%, transparent); color: inherit; padding: 0 2px; border-radius: 2px; }

/* ---------- Category cards & collection ---------- */
.category-grid { display: grid; gap: var(--layout-grid-gap, 16px); grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .category-grid { grid-template-columns: repeat(var(--columns, 4), minmax(0, 1fr)); gap: 24px; } }
.category-card { position: relative; display: block; text-decoration: none; border-radius: var(--shape-card-radius, 12px); overflow: hidden; background: var(--color-background-alt); }
.category-card__media { display: block; aspect-ratio: 1; }
.category-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.category-card:hover img { transform: scale(1.05); }
.category-card__name { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; font-weight: 700; color: var(--color-heading); }
.category-card--overlay .category-card__name { position: absolute; left: 12px; right: 12px; bottom: 12px; background: var(--color-background); border-radius: var(--shape-radius, 8px); }

/* ---------- Multicolumn, image with text, rich text, newsletter, FAQ ---------- */
.multicolumn { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.multicolumn__item { padding: 24px; border-radius: var(--shape-card-radius, 12px); background: var(--color-background-alt); }
.multicolumn--plain .multicolumn__item { background: none; padding: 0; }
.multicolumn__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--color-background); color: var(--color-primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.multicolumn__item img { border-radius: var(--shape-radius, 8px); margin-bottom: 14px; }
.multicolumn__item h3 { margin-bottom: .35em; }
.multicolumn__item p { color: var(--color-subheading); margin-bottom: .6em; }
.multicolumn__link { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.image-with-text { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .image-with-text { grid-template-columns: 1fr 1fr; gap: 64px; } .image-with-text--reverse .image-with-text__media { order: 2; } }
.image-with-text__media img { width: 100%; border-radius: var(--shape-card-radius, 12px); aspect-ratio: 4 / 3; object-fit: cover; }
.rich-text { max-width: 760px; }
.rich-text--center { margin-inline: auto; text-align: center; }
.rich-text .btn { margin-top: 8px; }
.newsletter { text-align: center; max-width: 620px; margin-inline: auto; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.newsletter-form input { flex: 1 1 240px; min-height: 48px; padding: .6em 1em; border: 1.5px solid var(--color-outline); border-radius: var(--shape-button-radius, 6px); background: var(--color-background); }
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--color-outline); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq summary .icon { transition: transform .2s ease; flex: none; }
.faq__answer { padding-bottom: 18px; color: var(--color-subheading); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .88rem; color: var(--color-subheading); padding-block: 14px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs [aria-current=page] { color: var(--color-text); }

/* ---------- Product page ---------- */
.product-main { display: grid; gap: 28px; padding-block: 16px 48px; }
@media (min-width: 900px) { .product-main { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; } .product-main__info { position: sticky; top: 96px; align-self: start; } }
.product-main__image { border-radius: var(--shape-card-radius, 12px); overflow: hidden; background: var(--color-background-alt); aspect-ratio: 1; }
.product-main__image img { width: 100%; height: 100%; object-fit: cover; }
.product-main__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; list-style: none; padding: 0; }
.product-main__thumb { width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: var(--shape-radius, 8px); overflow: hidden; cursor: pointer; background: var(--color-background-alt); flex: none; }
.product-main__thumb[aria-current=true] { border-color: var(--color-primary); }
.product-main__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-main__brand { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--color-subheading); margin: 0 0 6px; }
.product-main__title { margin-bottom: 10px; }
.product-main [data-price] .price { font-size: 1.35rem; }
.product-main__tax { font-size: .85rem; color: var(--color-subheading); margin: 4px 0 0; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; margin: 14px 0 0; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-success, #15803d); }
.stock--low::before { background: var(--color-accent); }
.stock--out { color: var(--color-sale-text, var(--color-sale)); }
.stock--out::before { background: var(--color-sale); }
.sku { font-size: .85rem; color: var(--color-subheading); margin: 6px 0 0; }
.product-option { border: 0; padding: 0; margin: 20px 0 0; }
.product-option legend { font-weight: 700; margin-bottom: 8px; font-size: .92rem; }
.product-option__values { display: flex; flex-wrap: wrap; gap: 8px; }
.product-option__value input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.product-option__value span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 42px; padding: 6px 14px; border: 1.5px solid var(--color-outline); border-radius: var(--shape-button-radius, 6px); cursor: pointer; font-weight: 600; }
.product-option__value span:hover { border-color: var(--color-text); }
.product-option__value input:checked + span { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-on-primary); }
.product-option__value input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.product-main__buy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.product-main__buy [data-add-to-cart] { flex: 1 1 140px; }
.product-main__buy [data-wishlist] { padding-inline: 14px; }
.product-main__perks { display: grid; gap: 10px; margin: 24px 0; padding: 16px; border-radius: var(--shape-card-radius, 12px); background: var(--color-background-alt); list-style: none; font-size: .92rem; }
.product-main__perks li { display: flex; gap: 10px; align-items: center; }
.product-main__details { border-top: 1px solid var(--color-outline); margin-top: 24px; }
.product-main__details details { border-bottom: 1px solid var(--color-outline); }
.product-main__details summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; cursor: pointer; font-weight: 700; list-style: none; }
.product-main__details summary::-webkit-details-marker { display: none; }
.product-main__details details[open] summary .icon { transform: rotate(180deg); }
.product-main__details .rte { padding-bottom: 16px; }
.product-main__share { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: .9rem; }
.product-main__share a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--color-outline); }
.btn[aria-pressed=true] { background: var(--color-primary); color: var(--color-on-primary); }
.btn[aria-pressed=true] .icon--heart { fill: currentColor; }

/* ---------- Listing (search / category) ---------- */
.listing { padding-block: 24px 48px; }
.listing__header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.listing__title { margin: 0; }
.listing__count { margin: 0; color: var(--color-subheading); }
.listing__layout { display: grid; gap: 24px; }
@media (min-width: 900px) { .listing__layout { grid-template-columns: 250px minmax(0, 1fr); gap: 40px; } .listing__layout--full { grid-template-columns: 1fr; } }
.listing__toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.listing__sort { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; }
.listing__sort select { min-height: 40px; padding: 6px 10px; border: 1.5px solid var(--color-outline); border-radius: var(--shape-radius, 6px); background: var(--color-background); }
.listing__empty { padding: 56px 16px; text-align: center; border: 1px dashed var(--color-outline); border-radius: var(--shape-card-radius, 12px); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.active-filters a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--color-background-alt); text-decoration: none; font-size: .88rem; font-weight: 600; }
.filters { border: 1px solid var(--color-outline); border-radius: var(--shape-card-radius, 12px); padding: 4px 16px; }
@media (min-width: 900px) { .filters { border: 0; padding: 0; } }
.filters__toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; }
.filters__toggle::-webkit-details-marker { display: none; }
@media (min-width: 900px) { .filters__toggle { display: none; } }
.filters__group { padding: 16px 0; border-bottom: 1px solid var(--color-outline); }
.filters__group:last-child { border-bottom: 0; }
.filters__heading { font-size: .95rem; margin: 0 0 10px; font-family: var(--font-body-family); letter-spacing: 0; }
.filters__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.filters__list a { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 6px; text-decoration: none; }
.filters__list a:hover { background: var(--color-background-alt); }
.filters__list a[aria-current=true] { font-weight: 700; background: var(--color-background-alt); }
.filters__list a[aria-current=true]::after { content: "✓"; }
.filters__price-inputs { display: flex; gap: 8px; margin-bottom: 10px; }
.filters__price-inputs label { flex: 1; font-size: .82rem; color: var(--color-subheading); display: grid; gap: 4px; }
.filters__price-inputs input { width: 100%; min-height: 40px; padding: 6px 10px; border: 1.5px solid var(--color-outline); border-radius: var(--shape-radius, 6px); background: var(--color-background); }

/* ---------- Pagination ---------- */
.pagination { margin-top: 40px; }
.pagination ul { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--color-outline); border-radius: var(--shape-button-radius, 6px); text-decoration: none; font-weight: 600; }
.pagination a:hover { border-color: var(--color-primary); }
.pagination [aria-current=page] { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
.pagination [aria-disabled=true] { opacity: .4; }
.pagination__gap { border: 0 !important; min-width: 24px !important; }

/* ---------- Categories page ---------- */
.category-list { padding-block: 24px 48px; }

/* ---------- Cart ---------- */
.cart { padding-block: 24px 56px; }
.cart__layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .cart__layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; } }
.cart__items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-outline); }
.cart-item { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px 16px; padding: 20px 0; border-bottom: 1px solid var(--color-outline); }
@media (min-width: 600px) { .cart-item { grid-template-columns: 104px minmax(0, 1fr) auto auto; align-items: center; } }
.cart-item__media img { border-radius: var(--shape-radius, 8px); aspect-ratio: 1; object-fit: cover; background: var(--color-background-alt); width: 100%; }
.cart-item__name { font-weight: 700; text-decoration: none; color: var(--color-heading); }
.cart-item__options, .cart-item__offer { margin: 2px 0 0; font-size: .85rem; color: var(--color-subheading); }
.cart-item__offer { color: var(--color-sale-text, var(--color-sale)); }
.cart-item__price { margin: 6px 0 0; font-size: .92rem; }
.cart-item__price s { color: var(--color-subheading); margin-left: 4px; }
.cart-item__qty { display: flex; align-items: center; gap: 12px; grid-column: 2; }
@media (min-width: 600px) { .cart-item__qty { grid-column: auto; } }
.cart-item__remove { font-size: .85rem; color: var(--color-subheading); }
.cart-item__total { grid-column: 2; font-weight: 700; margin: 0; }
@media (min-width: 600px) { .cart-item__total { grid-column: auto; min-width: 96px; text-align: right; } }
.cart__summary { border-radius: var(--shape-card-radius, 12px); padding: 24px; background: var(--color-background-alt); }
@media (min-width: 900px) { .cart__summary { position: sticky; top: 96px; } }
.cart__summary h2 { font-size: 1.15rem; }
.cart__summary dl { margin: 0 0 12px; }
.cart__summary dl div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.cart__summary dt, .cart__summary dd { margin: 0; }
.cart__total { border-top: 1px solid var(--color-outline); margin-top: 8px; padding-top: 14px !important; font-weight: 800; font-size: 1.15rem; }
.cart__note { font-size: .85rem; color: var(--color-subheading); }
.cart__continue { display: block; text-align: center; margin-top: 14px; }
.cart__empty { padding: 64px 16px; text-align: center; }
.cart__empty .icon { margin: 0 auto 12px; color: var(--color-subheading); }
.cart__status { text-align: right; }

/* ---------- Content page & not found ---------- */
.page-content { padding-block: 32px 64px; }
.page-content--narrow { max-width: 820px; }
.page-content h1 { margin-bottom: 24px; }
.not-found { text-align: center; padding-block: 72px 48px; max-width: 680px; }
.not-found__code { font-family: var(--font-heading-family); font-size: clamp(4rem, 12vw, 7rem); font-weight: 900; line-height: 1; margin: 0 0 8px; background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found__search { display: flex; gap: 8px; margin: 28px auto 16px; max-width: 480px; }
.not-found__search input { flex: 1; }

/* ---------- Widgets ---------- */
.widget-heading { margin: 0 0 .4em; }
.widget-image img { border-radius: var(--shape-radius, 8px); }
.countdown { display: inline-flex; gap: 10px; margin: 8px 0 16px; }
.countdown__unit { display: grid; place-items: center; min-width: 64px; padding: 10px 8px; border-radius: var(--shape-radius, 8px); background: rgba(0,0,0,.08); }
.hero--has-image .countdown__unit { background: rgba(255,255,255,.18); }
.countdown__value { font-size: 1.6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.loyalty-badge { display: inline-flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 999px; background: var(--color-background-alt); font-weight: 600; font-size: .92rem; }
.loyalty-badge .icon { color: var(--color-accent); }

/* ---------- Preview/debug ---------- */
.preview-banner { position: sticky; top: 0; z-index: 50; display: flex; justify-content: center; gap: 12px; padding: 8px 16px; background: #111; color: #fff; font-size: .9rem; }
.preview-banner a { color: #fde68a; font-weight: 700; }
.hike-render-error { font: 13px/1.4 ui-monospace, monospace; }
.h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, var(--font-heading-size, 40px)); }

/* ---------- Fixes of 8 Oct 2026 (HK-ECOM-THEMES-POLISH-01): each rule changes only the case that was broken ---------- */
/* B15 Right-aligned hero text: the shade now sits behind the text (it always ran from the left). */
.hero--right.hero--has-image::after { background: linear-gradient(270deg, rgba(0,0,0,var(--hero-overlay, .45)) 0%, rgba(0,0,0,calc(var(--hero-overlay, .45) * .4)) 60%, transparent 100%); }
/* B13 Image banner without a picture on a light main colour: the main colour's own text colour, no dark shade.
   Promotion banner: white text unless white is unreadable on the sale colour (the section sets --color-on-sale then). */
.image-banner--on-light { color: var(--color-on-primary); }
.image-banner--on-light h2 { color: inherit; }
.image-banner--on-light::after { display: none; }
.promo-banner { color: var(--color-on-sale, #fff); }
.promo-banner .btn { border-color: var(--color-on-sale, #fff); color: var(--color-on-sale, #fff); }
.promo-banner .btn:hover { background: var(--color-on-sale, #fff); color: var(--color-sale); }
/* B4 Featured product: product photos are square, so they are shown square instead of cut to 4:3. */
.image-with-text--product .image-with-text__media img { aspect-ratio: 1; }
/* B24 Footer: the sign-up button lines up with the field instead of sitting centred under it. */
.site-footer .newsletter-form { justify-content: flex-start; }
/* B30 Page not found: the search box looks like the store's other fields. */
.not-found__search input { min-width: 0; padding: 0 1em; border: 1.5px solid var(--color-outline); border-radius: var(--shape-button-radius, 6px); background: var(--color-background); color: var(--color-text); font: inherit; }
/* B34 Header with a centred logo: account and cart stay at the right (older themes); a text logo keeps its colour on hover. */
@media (min-width: 900px) { .site-header--center .site-header__actions { grid-column: 3; grid-row: 1; justify-self: end; } }
.site-header__logo:hover { color: inherit; }
/* B35 Keyboard focus shows on the announcement bar (its focus ring was the bar's own colour). */
.announcement :focus-visible { outline-color: currentColor; }
/* B18 Visitors who turn motion off: endless animations stop instead of flickering. */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-iteration-count: 1 !important; } }
