/**
 * FBRX — stylesheet
 * ---------------------------------------------------------------
 * Design language: a prescription / package-insert reading of
 * fashion retail. Paper-white grounds, apothecary green as the
 * single confident accent, amber for sale/attention, condensed
 * industrial display type for headlines, monospace for anything
 * that reads like it was printed on a label (SKUs, prices, nav).
 * ---------------------------------------------------------------
 * Contents
 *   1. Tokens
 *   2. Reset & base
 *   3. Type utilities
 *   4. App shell (header / nav / footer / toast)
 *   5. Buttons, chips, tags
 *   6. Hero
 *   7. Rails & product cards
 *   8. Section bands (statement, page-head, filter-bar, pagination)
 *   9. Product detail
 *  10. Reviews
 *  11. Bag
 *  12. Search
 *  13. Order result
 *  14. Empty / error states
 *  15. Stamp
 *  16. Skeletons & motion
 *  17. Responsive
 *  18. Reduced motion & focus
 * ---------------------------------------------------------------
 */

/* ============ 1. TOKENS ============ */
:root {
  --paper: #f5f6f1;
  --paper-dim: #eceee4;
  --paper-line: #dadcce;
  --card: #ffffff;

  --ink: #14150f;
  --ink-soft: #52564a;
  --ink-faint: #8d8f7e;

  --rx-green: #1b6e4c;
  --rx-green-deep: #0f4a32;
  --rx-green-tint: #e4efe6;

  --rx-amber: #d98d1f;
  --rx-amber-tint: #f8ecd6;

  --rx-alert: #a3392c;
  --rx-alert-tint: #f3e2de;

  --white: #ffffff;

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius-s: 3px;
  --radius-m: 6px;
  --radius-full: 999px;

  --shadow-card: 0 1px 0 rgba(20, 21, 15, 0.06);
  --shadow-pop: 0 12px 32px -8px rgba(20, 21, 15, 0.28);

  --header-h: 64px;
  --container: 1180px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============ 2. RESET & BASE ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

a {
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

/* ============ 3. TYPE UTILITIES ============ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rx-green-deep);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--radius-s);
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-decoration: none;
  transition: top 0.15s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

/* ============ 4. APP SHELL ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(245, 246, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--paper-line);
}

.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  height: 100%;
  padding-inline: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-header__menu {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-s);
}

.site-header__menu-icon,
.site-header__menu-icon::before,
.site-header__menu-icon::after {
  content: "";
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}
.site-header__menu-icon::before {
  position: absolute;
  top: -5px;
}
.site-header__menu-icon::after {
  position: absolute;
  top: 5px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__logo-mark {
  width: 14px;
  height: 14px;
  color: var(--rx-green);
}
.site-header__logo-mark .cross-mark {
  width: 100%;
  height: 100%;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.site-header__nav button {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  color: var(--ink-soft);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.site-header__nav button:hover {
  background: var(--paper-dim);
  color: var(--ink);
}

.site-header__nav button.is-active {
  background: var(--rx-green-tint);
  color: var(--rx-green-deep);
}

.site-header__bag {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-s);
  border: 1px solid var(--paper-line);
  color: var(--ink);
}

.site-header__bag:hover {
  border-color: var(--rx-green);
}

.site-header__bag .cross-mark {
  width: 15px;
  height: 15px;
}

.bag-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--rx-green);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 17px;
  text-align: center;
}

.view {
  min-height: calc(100vh - var(--header-h));
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
  opacity: 0;
}

.view.view-enter {
  animation: viewIn 0.42s var(--ease) forwards;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  margin-top: 96px;
  padding: 32px 0 56px;
  border-top: 1px solid var(--paper-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer__mark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
}
.site-footer__mark .cross-mark {
  width: 13px;
  height: 13px;
  color: var(--rx-green);
}

.site-footer__links {
  display: flex;
  gap: 20px;
}
.site-footer__links button {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.site-footer__links button:hover {
  color: var(--rx-green-deep);
}

.site-footer__fine {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
}

.toast-root {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 80;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding-inline: 16px;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 14px;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-pop);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.toast--in {
  transform: translateY(0);
  opacity: 1;
}
.toast__mark {
  width: 13px;
  height: 13px;
  flex: none;
  color: var(--rx-green);
}
.toast--error .toast__mark {
  color: #e08277;
}
.toast__msg {
  font-size: 13.5px;
  flex: 1;
}
.toast__action {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rx-amber);
  flex: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* ============ 5. BUTTONS, CHIPS, TAGS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease), opacity 0.15s var(--ease);
}
.btn:active {
  transform: scale(0.97);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover:not(:disabled) {
  background: var(--rx-green-deep);
}

.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover:not(:disabled) {
  border-color: var(--rx-green);
  color: var(--rx-green-deep);
}

.btn--block {
  width: 100%;
}

.btn--small {
  padding: 9px 16px;
  font-size: 11.5px;
}

.chips-row,
.filter-bar__chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.chips-row::-webkit-scrollbar,
.filter-bar__chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 9px 15px;
  border-radius: var(--radius-full);
  border: 1px solid var(--paper-line);
  background: var(--card);
  color: var(--ink-soft);
  white-space: nowrap;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background 0.15s var(--ease);
}
.chip:hover {
  border-color: var(--rx-green);
}
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-s);
  position: absolute;
  top: 8px;
}
.tag--ribbon {
  left: 8px;
  background: var(--rx-amber-tint);
  color: var(--rx-amber);
  border: 1px solid var(--rx-amber);
}
.tag--out {
  right: 8px;
  background: var(--rx-alert-tint);
  color: var(--rx-alert);
  border: 1px solid var(--rx-alert);
}

/* ============ 6. HERO ============ */
.hero {
  position: relative;
  padding: 56px 0 64px;
  overflow: hidden;
}

.hero__crosses {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero__cross {
  position: absolute;
  color: var(--rx-green);
  opacity: 0.1;
}
.hero__cross--1 {
  width: 120px;
  height: 120px;
  top: -20px;
  right: 4%;
  transform: rotate(12deg);
}
.hero__cross--2 {
  width: 46px;
  height: 46px;
  top: 60%;
  right: 22%;
  color: var(--rx-amber);
  opacity: 0.16;
}
.hero__cross--3 {
  width: 70px;
  height: 70px;
  bottom: -10px;
  left: 2%;
  transform: rotate(-8deg);
}

.hero__eyebrow {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rx-green-deep);
  margin-bottom: 18px;
}

.hero__headline {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 11vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 22px;
}

.hero__line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: lineIn 0.6s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 90ms + 80ms);
}
.hero__line--accent {
  color: var(--rx-green);
  -webkit-text-stroke: 1px var(--rx-green-deep);
}

@keyframes lineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__sub {
  position: relative;
  max-width: 40ch;
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.hero__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero__stamp {
  position: relative;
  display: flex;
}

/* ============ 7. RAILS & PRODUCT CARDS ============ */
.rail-section {
  padding-block: 40px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-heading__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rx-green-deep);
  display: block;
  margin-bottom: 6px;
}
.section-heading__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 0;
}
.section-heading__action {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rx-green-deep);
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}

.rail__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
}
.rail__item {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
}
.rail__item .product-grid {
  display: block;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px 16px;
}

.product-card {
  display: block;
}

.product-card__media-btn {
  display: block;
  width: 100%;
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--card);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.product-card:hover .product-card__media img {
  transform: scale(1.045);
}
.product-card__media--empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper-line);
}
.product-card__media--empty .cross-mark {
  width: 32px;
  height: 32px;
}

.product-card__body {
  padding-top: 12px;
}

.product-card__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin: 0 0 4px;
}

.product-card__title-btn {
  display: block;
  text-align: left;
  width: 100%;
}

.product-card__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--ink);
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.product-card__price {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink);
}
.product-card__price--sale {
  color: var(--rx-amber);
}
.product-card__price--muted {
  color: var(--ink-faint);
}

.quick-add {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--ink);
  color: var(--ink);
  flex: none;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease);
}
.quick-add .cross-mark {
  width: 11px;
  height: 11px;
}
.quick-add:hover {
  background: var(--ink);
  color: var(--paper);
}
.quick-add:active {
  transform: scale(0.9);
}
.quick-add:disabled {
  opacity: 0.4;
  cursor: wait;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rating__stars {
  display: inline-flex;
  gap: 1px;
}
.star {
  width: 13px;
  height: 13px;
  fill: var(--paper-line);
}
.star--filled {
  fill: var(--rx-amber);
}
.rating__count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
}

/* ============ 8. SECTION BANDS ============ */
.statement-band {
  margin: 40px 0;
  padding: 56px 0;
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}
.statement-band__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rx-green-deep);
  margin-bottom: 16px;
}
.statement-band__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.18;
  max-width: 22ch;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

.page-head {
  padding: 44px 0 32px;
}
.page-head__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rx-green-deep);
  margin-bottom: 14px;
}
.page-head__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 58px);
  text-transform: uppercase;
  line-height: 0.98;
  margin-bottom: 12px;
}
.page-head__sub {
  color: var(--ink-soft);
  max-width: 46ch;
  font-size: 15.5px;
}

.crumb {
  padding-top: 24px;
}
.crumb button {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.crumb button:hover {
  color: var(--rx-green-deep);
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--paper-line);
  margin-bottom: 28px;
}
.filter-bar__chips {
  flex: 1;
  min-width: 0;
}
.filter-bar__sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  flex: none;
}
.filter-bar__sort select {
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-s);
  background: var(--card);
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px 0 20px;
}
.pagination__btn {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-s);
}
.pagination__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.pagination__btn:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
}
.pagination__info {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* ============ 9. PRODUCT DETAIL ============ */
.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  padding: 28px 0 8px;
}

.product-detail__gallery {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
}
.product-detail__main-image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--card);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.product-detail__main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.product-detail__thumb {
  width: 60px;
  height: 75px;
  border-radius: var(--radius-s);
  border: 1px solid var(--paper-line);
  overflow: hidden;
  flex: none;
  opacity: 0.6;
  transition: opacity 0.15s var(--ease), border-color 0.15s var(--ease);
}
.product-detail__thumb.is-active {
  opacity: 1;
  border-color: var(--rx-green);
}
.product-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.product-detail__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.product-detail__rating-link {
  display: inline-flex;
  margin-bottom: 16px;
  border: none;
  background: none;
}
.product-detail__price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}
.product-detail__price {
  font-family: var(--font-mono);
  font-size: 20px;
}
.product-detail__price--sale {
  color: var(--rx-amber);
}
.product-detail__price-was {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-faint);
  text-decoration: line-through;
}
.product-detail__desc {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 52ch;
}

.option-group {
  margin-bottom: 22px;
}
.option-group__label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.option-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.option-swatch {
  padding: 10px 16px;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-s);
  background: var(--card);
  font-size: 13.5px;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
}
.option-swatch:hover:not(:disabled) {
  border-color: var(--ink);
}
.option-swatch.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.option-swatch:disabled {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-s);
  overflow: hidden;
}
.qty-stepper__btn {
  width: 36px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 15px;
}
.qty-stepper__btn:hover:not(:disabled) {
  background: var(--paper-dim);
}
.qty-stepper__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.qty-stepper__value {
  width: 34px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13.5px;
}

.product-detail__buy-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.product-detail__add {
  flex: 1;
}

.product-detail__stock-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-bottom: 28px;
}
.product-detail__stock-note--low {
  color: var(--rx-alert);
}

.product-detail__stamp {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--paper-line);
}
.product-detail__stamp-copy {
  font-size: 12.5px;
  color: var(--ink-faint);
  max-width: 32ch;
}

/* ============ 10. REVIEWS ============ */
.reviews-section {
  padding: 48px 0 64px;
  border-top: 1px solid var(--paper-line);
  margin-top: 24px;
}
.reviews__summary {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}
.reviews__avg {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 46px;
  line-height: 1;
}
.reviews__summary-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reviews__count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
}
.reviews__list {
  display: grid;
  gap: 22px;
  max-width: 760px;
}
.review {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--paper-line);
}
.review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 12px;
}
.review__author {
  font-weight: 600;
  font-size: 14px;
}
.review__date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  white-space: nowrap;
}
.review__title {
  font-weight: 600;
  font-size: 14.5px;
  margin: 6px 0 4px;
}
.review__body {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}
.reviews__load-more {
  margin-top: 8px;
}

/* ============ 11. BAG ============ */
.bag {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  padding: 12px 0 64px;
  align-items: start;
}
.bag__list {
  display: grid;
  gap: 20px;
}
.bag-line {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 16px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--paper-line);
}
.bag-line__media {
  width: 84px;
  height: 105px;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--paper-line);
}
.bag-line__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bag-line__info {
  min-width: 0;
}
.bag-line__title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.bag-line__variant {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.bag-line__price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}
.bag-line__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.bag-line__remove {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}
.bag-line__remove:hover {
  color: var(--rx-alert);
}

.bag__summary {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-m);
  padding: 24px;
  background: var(--card);
}
.bag__summary-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.bag__subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 6px;
}
.bag__subtotal-amt {
  font-family: var(--font-mono);
}
.bag__note {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 20px;
}
.bag__actions {
  display: grid;
  gap: 10px;
}
.bag__empty {
  padding: 64px 0;
}

/* ============ 12. SEARCH ============ */
.search-bar {
  position: relative;
  margin-bottom: 8px;
}
.search-bar__input {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  padding: 14px 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 36px);
  text-transform: uppercase;
  color: var(--ink);
}
.search-bar__input::placeholder {
  color: var(--ink-faint);
  -webkit-text-stroke: 0;
}
.search-bar__input:focus {
  outline: none;
  border-color: var(--rx-green);
}
.search-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  margin: 16px 0 28px;
}
.search-results-section {
  padding-bottom: 64px;
}

/* ============ 13. ORDER RESULT ============ */
.order-result {
  max-width: 520px;
  margin: 0 auto;
  padding: 88px 0 96px;
  text-align: center;
}
.order-result__stamp {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.order-result__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rx-green-deep);
  margin-bottom: 14px;
}
.order-result__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 6vw, 48px);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 14px;
}
.order-result__body {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 32px;
}
.order-result__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ 14. EMPTY / ERROR STATES ============ */
.empty-state {
  text-align: center;
  padding: 72px 20px;
  max-width: 440px;
  margin-inline: auto;
}
.empty-state__mark {
  width: 30px;
  height: 30px;
  margin: 0 auto 18px;
  color: var(--paper-line);
}
.empty-state--error .empty-state__mark {
  color: var(--rx-alert);
}
.empty-state__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.empty-state__body {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ============ 15. STAMP ============ */
.stamp {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rx-green);
}
.stamp--sm {
  width: 56px;
  height: 56px;
}
.stamp--md {
  width: 92px;
  height: 92px;
}
.stamp--lg {
  width: 140px;
  height: 140px;
}
.stamp__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: stampSpin 26s linear infinite;
}
@keyframes stampSpin {
  to {
    transform: rotate(360deg);
  }
}
.stamp__text {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  fill: currentColor;
  text-transform: uppercase;
}
.stamp__core {
  position: relative;
  width: 30%;
  height: 30%;
  color: currentColor;
}
.stamp__core .cross-mark {
  width: 100%;
  height: 100%;
}

/* ============ 16. SKELETONS & MOTION ============ */
.cross-mark {
  fill: currentColor;
}

.shimmer {
  position: relative;
  overflow: hidden;
  background: var(--paper-dim);
}
.shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.product-card--skeleton .product-card__media {
  border: none;
}
.skeleton-line {
  height: 12px;
  border-radius: var(--radius-s);
  margin-top: 10px;
}
.skeleton-line--title {
  width: 78%;
}
.skeleton-line--price {
  width: 40%;
}

/* ============ 17. RESPONSIVE ============ */
@media (max-width: 860px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .product-detail__gallery {
    position: static;
  }
  .bag {
    grid-template-columns: 1fr;
  }
  .bag__summary {
    position: static;
    order: -1;
  }
}

@media (max-width: 720px) {
  .site-header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--paper-line);
    padding: 8px 20px 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  }
  .site-header__nav button {
    text-align: left;
    padding: 12px 8px;
    border-radius: 0;
  }
  body.menu-open .site-header__nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-header__menu {
    display: flex;
  }
  .statement-band__text {
    max-width: none;
  }
  .reviews__list {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }
  .rail__item {
    width: 168px;
  }
  .hero {
    padding-block: 40px 48px;
  }
  .bag-line {
    grid-template-columns: 64px 1fr;
  }
  .bag-line__right {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .filter-bar {
    flex-wrap: wrap;
  }
}

/* ============ 18. REDUCED MOTION & FOCUS ============ */
:focus-visible {
  outline: 2px solid var(--rx-green);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .view {
    opacity: 1;
  }
}
