/* ═══════════════════════════════════════════════════════
   ENVELOPE WORLD — est. 1983
   Kiwi Made · Envelopes · Packaging · Labels
═══════════════════════════════════════════════════════ */

/* ─── VARIABLES ─────────────────────────────────────── */
:root {
  --olive:        #4a5533;
  --olive-light:  #6b7a4e;
  --charcoal:     #333333;
  --black:        #000000;
  --white:        #ffffff;
  --off-white:    #fafafa;
  --text:         #1a1a1a;
  --text-muted:   #6d6d6d;
  --border:       #e6e6e6;
  --border-light: #f0f0f0;
  --price-green:  #4a5533;
  --bg-light:     rgba(225, 225, 225, 0.25);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width:    1260px;
}

/* ─── RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--text); font-family: var(--font-body); font-size: 15px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ─── LAYOUT ────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2.5rem; }

/* ─── SITE HEADER ──────────────────────────────────── */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 1.2rem; padding-bottom: 0; }
.header-rule { display: none; }

/* Logo */
.logo { text-decoration: none; color: var(--text); flex-shrink: 0; display: block; }
.logo__img { height: 90px; width: auto; max-width: 450px; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 1rem; }

/* Search pill */
.search-pill { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 24px; padding: 0.5rem 1.2rem; min-width: 280px; }
.search-pill input { border: none; outline: none; font-family: var(--font-body); font-size: 0.82rem; width: 100%; background: none; color: var(--text); }
.search-pill input::placeholder { color: #999; }

/* Cart icon */
.cart-icon { display: flex; align-items: center; gap: 0.3rem; text-decoration: none; color: var(--text); padding: 0.5rem; border: 1px solid var(--border); border-radius: 6px; }
.cart-icon__count { font-size: 0.8rem; font-weight: 500; }

/* ─── BUTTONS ───────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-body); font-weight: 500; font-size: 0.82rem; text-decoration: none; padding: 0.55rem 1.4rem; border-radius: 4px; border: 1px solid transparent; cursor: pointer; transition: all 0.15s; }
.btn--dark { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.btn--dark:hover { background: #444; }
.btn--olive { background: var(--olive); color: var(--white); border-color: var(--olive); }
.btn--olive:hover { background: var(--olive-light); }
.btn--sm { padding: 0.4rem 1rem; font-size: 0.78rem; }
.btn--lg { padding: 0.75rem 2rem; font-size: 0.9rem; }
.btn--outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn--outline:hover { background: var(--charcoal); color: var(--white); }
.btn--ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--charcoal); color: var(--text); }
.btn-arrow::after { content: '→'; margin-left: 0.3rem; }

/* ─── MAIN NAVIGATION ──────────────────────────────── */
.main-nav { padding: 0 0 0.3rem; }
.main-nav__list { list-style: none; display: flex; align-items: center; gap: 0; justify-content: center; }
.main-nav__link { display: block; padding: 0.4rem 1.2rem 0.15rem; font-family: var(--font-body); font-size: 0.85rem; font-weight: 400; text-decoration: none; color: var(--text); transition: color 0.15s; }
.main-nav__link:hover { color: var(--olive); }
.main-nav__link.is-active { color: var(--olive); font-weight: 500; }
.nav-arrow { font-size: 0.7rem; margin-left: 0.15rem; color: var(--text-muted); }

/* Dropdown */
.main-nav__dropdown { position: relative; }
.main-nav__dropdown-menu { position: absolute; top: calc(100% + 0.4rem); left: 50%; transform: translateX(-50%); background: var(--white); border: 1px solid var(--border); border-radius: 8px; min-width: 220px; z-index: 200; display: none; box-shadow: 0 8px 32px rgba(0,0,0,0.1); padding: 0.5rem 0; }
.main-nav__dropdown::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 0.6rem; }
.main-nav__dropdown:hover .main-nav__dropdown-menu { display: block; }
.main-nav__dropdown-menu a { display: block; padding: 0.5rem 1.2rem; font-size: 0.82rem; color: var(--text); text-decoration: none; transition: background 0.1s; }
.main-nav__dropdown-menu a:hover { background: var(--off-white); color: var(--olive); }
.dropdown-divider { height: 1px; background: var(--border-light); margin: 0.4rem 0; }

/* ─── PAGE TITLES ──────────────────────────────────── */
.page-title { font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 400; line-height: 1.1; color: var(--text); margin-bottom: 0.5rem; }
.page-title--italic { font-style: italic; }
.page-subtitle { font-family: var(--font-heading); font-style: italic; font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 400; text-align: center; margin-bottom: 0.5rem; color: var(--text); }
.page-desc { font-size: 0.9rem; line-height: 1.8; color: var(--text-muted); max-width: 60ch; text-align: center; margin: 0 auto 2rem; }

/* Section headers with underline */
.section-header { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-bottom: 2rem; }
.section-header h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 400; }
.section-header a { font-size: 0.82rem; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 0.3rem; }
.section-header a:hover { color: var(--olive); }
.section-header a::after { content: '→'; }

/* ─── GST TOGGLE ───────────────────────────────────── */
.gst-toggle { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--olive); color: var(--white); padding: 0.3rem 0.6rem 0.3rem 0.8rem; border-radius: 20px; font-size: 0.72rem; font-weight: 500; cursor: pointer; user-select: none; }
.gst-toggle__label { letter-spacing: 0.04em; }
.gst-toggle__switch { width: 28px; height: 16px; background: rgba(255,255,255,0.3); border-radius: 10px; position: relative; }
.gst-toggle__switch::after { content: ''; width: 12px; height: 12px; background: var(--white); border-radius: 50%; position: absolute; top: 2px; left: 2px; transition: transform 0.2s; }
.gst-toggle.is-inclusive .gst-toggle__switch::after { transform: translateX(12px); }

/* Sort pills */
.sort-pills { display: flex; align-items: center; gap: 0.5rem; }
.sort-pill { padding: 0.3rem 0.9rem; border-radius: 20px; font-size: 0.78rem; font-weight: 500; border: 1px solid var(--border); background: var(--white); color: var(--text); cursor: pointer; text-decoration: none; }
.sort-pill.is-active { background: var(--olive); color: var(--white); border-color: var(--olive); }
.sort-pill:hover:not(.is-active) { border-color: var(--charcoal); }

/* ─── HERO BANNER ──────────────────────────────────── */
.hero-banner { position: relative; overflow: hidden; }
.hero-banner img { width: 100%; height: auto; display: block; }
.hero-banner__overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }

/* Category hero with coloured background */
.category-hero { padding: 2.5rem 0; position: relative; overflow: hidden; background-size: cover; background-position: center; }
.category-hero__title { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; color: var(--white); text-shadow: 0 2px 8px rgba(0,0,0,0.3); }

/* ─── PRODUCT CARDS ────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.product-card { border: 1px solid var(--border); border-radius: 2px; overflow: hidden; transition: box-shadow 0.2s; background: var(--white); }
.product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.product-card__image { aspect-ratio: 1; overflow: hidden; background: #f5f5f5; display: flex; align-items: center; justify-content: center; }
.product-card__image img { width: 92%; height: 92%; object-fit: contain; transition: transform 0.3s; }
.product-card:hover .product-card__image img { transform: scale(1.04); }
.product-card__info { padding: 0.6rem 0.75rem; background: var(--off-white); }
.product-card__name { font-weight: 600; font-size: 0.82rem; margin-bottom: 0.15rem; }
.product-card__price { color: var(--price-green); font-size: 0.78rem; font-weight: 500; }
.product-card__desc { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.1rem; }
.product-card__size { font-size: 0.72rem; color: var(--text-muted); }

/* Category cards (3x3 grid on categories page) */
.category-card { border: 1px solid var(--border); overflow: hidden; background: var(--white); transition: box-shadow 0.2s; text-decoration: none; color: var(--text); }
.category-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.category-card__image { aspect-ratio: 4/3; overflow: hidden; background: #f5f5f5; }
.category-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.category-card:hover .category-card__image img { transform: scale(1.05); }
.category-card__name { padding: 0.8rem 1rem; font-weight: 600; font-size: 0.9rem; background: var(--off-white); }

/* Colour swatch grid (homepage) */
.colour-swatches { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; padding: 1.5rem 0; }
.colour-swatch { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 1px 4px rgba(0,0,0,0.15); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.colour-swatch:hover { transform: scale(1.15); box-shadow: 0 3px 12px rgba(0,0,0,0.2); }

/* Colour family photo swatches (by-colour page) */
.colour-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.colour-photo-card { border: 1px solid var(--border); overflow: hidden; cursor: pointer; text-decoration: none; color: var(--text); }
.colour-photo-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.colour-photo-card__image { aspect-ratio: 4/3; overflow: hidden; }
.colour-photo-card__image img { width: 100%; height: 100%; object-fit: cover; }
.colour-photo-card__name { padding: 0.6rem 0.8rem; font-weight: 600; font-size: 0.88rem; }

/* Size diagram cards */
.size-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.size-card { border: 1px solid var(--border); padding: 1.5rem; text-align: center; text-decoration: none; color: var(--text); transition: box-shadow 0.2s; }
.size-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.size-card__diagram { height: 120px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.8rem; }
.size-card__diagram svg { max-width: 100%; max-height: 100%; }
.size-card__label { font-weight: 600; font-size: 0.88rem; }
.size-card__dims { font-size: 0.75rem; color: var(--text-muted); }

/* Label size grid — 4 across (labels are small, more cards = better overview) */
.label-size-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* Style cards (with description) */
.style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.style-card { border: 1px solid var(--border); overflow: hidden; text-decoration: none; color: var(--text); }
.style-card__image { aspect-ratio: 4/3; overflow: hidden; background: #f5f5f5; display: flex; align-items: center; justify-content: center; }
.style-card__image img { width: 70%; height: 70%; object-fit: contain; }
.style-card__info { padding: 0.8rem 1rem; }
.style-card__name { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.3rem; }
.style-card__desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; }

/* ─── RANGE BADGES ─────────────────────────────────── */
.range-badge { display: inline-block; padding: 0.2rem 0.5rem; border: 1px solid var(--border); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.range-badge--metallic { border-color: #baa85c; color: #8a7a30; }
.range-badge--recycled { border-color: #7a9a6a; color: #4a6a3a; }
.range-badge--textured { border-color: #999; color: #666; }

/* ─── ORDER PAGE (Configurator) ────────────────────── */
.order-page { padding: 3rem 0; }
.order-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.order-form { border: 1px solid var(--border); border-radius: 4px; padding: 1.5rem; }
.order-form__title { font-weight: 600; font-size: 1rem; margin-bottom: 1rem; }
.order-form__row { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.8rem; }
.order-form__label { font-size: 0.85rem; font-weight: 500; min-width: 80px; }
.order-form__select { padding: 0.4rem 0.8rem; border: 1px solid var(--border); border-radius: 20px; font-family: var(--font-body); font-size: 0.85rem; min-width: 160px; background: var(--white); cursor: pointer; }
.order-form__input { padding: 0.4rem 0.8rem; border: 1px solid var(--border); border-radius: 20px; font-family: var(--font-body); font-size: 0.85rem; width: 80px; }
.order-form__text { font-size: 0.85rem; color: var(--text); }
.swatch-name-bar { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; min-height: 1.4rem; }
.swatch-name-label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.order-form__swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem; border: 1px solid var(--border); border-radius: 4px; }
.order-swatch { display: inline-block; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--border); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.order-swatch:hover { transform: scale(1.25); box-shadow: 0 0 0 2px #000; }
.order-swatch.is-selected { box-shadow: 0 0 0 2px var(--olive); }

.order-product { display: flex; flex-direction: column; align-items: center; }
.order-product__image { max-width: 100%; border-radius: 4px; }
.order-product__specs { list-style: disc; padding-left: 1.2rem; margin-top: 1.5rem; font-size: 0.85rem; line-height: 1.9; color: var(--text-muted); }
.order-product__specs li { margin-bottom: 0.2rem; }

.order-sample { margin-top: 1.5rem; }
.order-note { font-size: 0.8rem; color: var(--text-muted); line-height: 1.7; margin-top: 1rem; }
.order-note strong { color: var(--text); }

/* ─── ADVANCED SEARCH ──────────────────────────────── */
.search-form { background: var(--bg-light); border: 1px solid var(--border); padding: 2rem; }
.search-form__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.search-form__field label { display: block; font-size: 0.82rem; font-weight: 500; margin-bottom: 0.3rem; }
.search-form__field select,
.search-form__field input { width: 100%; padding: 0.5rem 0.8rem; border: 1px solid var(--border); border-radius: 20px; font-family: var(--font-body); font-size: 0.85rem; background: var(--white); }
.search-form__actions { display: flex; justify-content: flex-end; margin-top: 1rem; }

/* ─── CART PAGE ─────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: start; padding: 2rem 0; }
.cart-item { display: flex; gap: 1rem; border: 1px solid var(--border); border-radius: 4px; padding: 1rem; margin-bottom: 1rem; align-items: center; }
.cart-item__image { width: 80px; height: 80px; object-fit: contain; flex-shrink: 0; border-radius: 4px; background: #f5f5f5; }
.cart-item__info { flex: 1; }
.cart-item__name { font-weight: 600; font-size: 0.9rem; }
.cart-item__details { font-size: 0.82rem; color: var(--price-green); cursor: pointer; }
.cart-item__qty { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.cart-item__qty input { width: 60px; padding: 0.3rem 0.5rem; border: 1px solid var(--border); border-radius: 20px; text-align: center; font-size: 0.85rem; }
.cart-item__price { font-weight: 600; font-size: 1rem; text-align: right; min-width: 80px; }

.order-summary { border: 1px solid var(--border); border-radius: 4px; padding: 1.5rem; position: sticky; top: 140px; }
.order-summary h3 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; margin-bottom: 1rem; }
.order-summary__row { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 0.5rem; }
.order-summary__row--total { font-weight: 600; font-size: 1rem; border-top: 1px solid var(--border); padding-top: 0.5rem; margin-top: 0.5rem; }
.order-summary__row span:last-child { text-align: right; }

/* ─── CHECKOUT BREADCRUMB ──────────────────────────── */
.checkout-breadcrumb { display: flex; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); }
.checkout-breadcrumb a { color: var(--text); text-decoration: none; }
.checkout-breadcrumb a:hover { color: var(--olive); }
.checkout-breadcrumb .is-active { color: var(--olive); font-weight: 500; }
.checkout-breadcrumb span { color: var(--text-muted); }

/* ─── ACCOUNT PAGES ────────────────────────────────── */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; padding: 2rem 0; }
.account-sidebar { border-right: 1px solid var(--border); }
.account-sidebar a { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1rem 0.8rem 0; font-size: 0.9rem; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border-light); }
.account-sidebar a:hover { color: var(--olive); }
.account-sidebar a.is-active { font-weight: 600; text-decoration: underline; }
.account-sidebar a::after { content: '→'; color: var(--text-muted); }
.account-content { min-height: 400px; }

/* ─── FORMS ─────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 500; margin-bottom: 0.3rem; }
.form-control { width: 100%; padding: 0.6rem 0.9rem; border: 1px solid var(--border); border-radius: 4px; font-family: var(--font-body); font-size: 0.88rem; transition: border-color 0.15s; }
.form-control:focus { outline: none; border-color: var(--olive); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ─── FOOTER ────────────────────────────────────────── */
.site-footer { background: var(--black); color: var(--white); padding: 3rem 0; margin-top: 4rem; }
.footer-inner { display: flex; gap: 3rem; align-items: flex-start; }
.footer-logo__img { width: 90px; height: auto; }
.footer-col { flex: 1; }
.footer-col h4 { font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.8rem; }
.footer-col p { font-size: 0.82rem; line-height: 1.8; color: rgba(255,255,255,0.7); }
.footer-col a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.footer-col strong { color: var(--white); }
.footer-logo { flex-shrink: 0; margin-right: 1rem; }

/* ─── UTILITY ───────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.py-3 { padding-top: 2rem; padding-bottom: 2rem; }
.py-4 { padding-top: 3rem; padding-bottom: 3rem; }

/* ─── MOBILE NAV TOGGLE ─────────────────────────────── */
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 4px; padding: 0.4rem 0.6rem; cursor: pointer; line-height: 0; }
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--text); }

/* ─── RESPONSIVE — TABLET (≤1024px) ─────────────────── */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .size-grid { grid-template-columns: repeat(2, 1fr); }
  .label-size-grid { grid-template-columns: repeat(3, 1fr); }
  .style-grid { grid-template-columns: repeat(2, 1fr); }
  .colour-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .order-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .search-form__grid { grid-template-columns: repeat(2, 1fr); }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 1rem; display: flex; gap: 0; flex-wrap: wrap; }
  .account-sidebar a { border-bottom: none; border-right: 1px solid var(--border-light); padding: 0.6rem 1rem; font-size: 0.82rem; }
  .account-sidebar a::after { display: none; }
  .footer-inner { flex-wrap: wrap; gap: 2rem; }
}

/* ─── RESPONSIVE — PHONE (≤768px) ───────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 1rem; }

  /* Header: stack logo, search, actions */
  .header-inner { flex-wrap: wrap; gap: 0.6rem; padding-top: 0.8rem; padding-bottom: 0.6rem; }
  .logo__img { height: 50px; }
  .header-actions { gap: 0.5rem; }
  .search-pill { min-width: 100%; order: 3; }
  .btn--sm { padding: 0.35rem 0.7rem; font-size: 0.72rem; }

  /* Hamburger nav */
  .nav-toggle { display: block; }
  .main-nav__list { display: none; flex-direction: column; align-items: stretch; background: var(--white); border-top: 1px solid var(--border); padding: 0.5rem 0; }
  .main-nav__list.is-open { display: flex; }
  .main-nav__link { padding: 0.7rem 1rem; font-size: 0.9rem; border-bottom: 1px solid var(--border-light); }
  .main-nav__dropdown-menu { position: static; transform: none; box-shadow: none; border: none; border-radius: 0; display: none; background: var(--off-white); min-width: 0; padding: 0; }
  .main-nav__dropdown.is-open .main-nav__dropdown-menu { display: block; }
  .main-nav__dropdown::after { display: none; }
  .main-nav__dropdown:hover .main-nav__dropdown-menu { display: none; }
  .main-nav__dropdown.is-open .main-nav__dropdown-menu { display: block; }
  .main-nav__dropdown-menu a { padding: 0.6rem 1rem 0.6rem 2rem; border-bottom: 1px solid var(--border-light); font-size: 0.82rem; }

  /* Product grids — 2 cols on phone */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .product-card__info { padding: 0.4rem 0.5rem; }
  .product-card__name { font-size: 0.75rem; }
  .product-card__price { font-size: 0.7rem; }
  .product-card__image img { width: 92%; height: 92%; }

  /* Page titles smaller */
  .page-title { font-size: clamp(1.5rem, 5vw, 2.2rem); }
  .page-subtitle { font-size: 1rem; }
  .page-desc { font-size: 0.82rem; }
  .section-header h2 { font-size: 1.2rem; }

  /* Order form */
  .order-form { padding: 1rem; }
  .order-form__row { flex-direction: column; gap: 0.3rem; }
  .order-form__label { min-width: 0; }
  .order-form__select, .order-form__input { width: 100%; }

  /* Colour swatches smaller */
  .colour-swatch { width: 40px; height: 40px; }
  .colour-swatches { gap: 0.6rem; }
  .order-swatch { width: 24px; height: 24px; }

  /* Search */
  .sort-pill { padding: 0.25rem 0.6rem; font-size: 0.7rem; }
  .search-form__grid { grid-template-columns: 1fr; }

  /* Cart */
  .cart-item { flex-wrap: wrap; }
  .cart-item__price { width: 100%; text-align: left; margin-top: 0.3rem; }

  /* Checkout */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-monogram { margin: 0 auto; }
  .footer-logo { margin-right: 0; }

  /* Size cards */
  .size-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .label-size-grid { grid-template-columns: repeat(2, 1fr); }
  .size-card { padding: 1rem; }
  .size-card__diagram { height: 80px; }

  /* Style cards */
  .style-grid { grid-template-columns: 1fr; }

  /* Account */
  .account-sidebar { flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .account-sidebar a { white-space: nowrap; font-size: 0.78rem; padding: 0.5rem 0.8rem; }
}

/* ─── RESPONSIVE — SMALL PHONE (≤400px) ──────────────── */
@media (max-width: 400px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .product-card__name { font-size: 0.72rem; }
  .colour-swatch { width: 32px; height: 32px; }
  .header-actions .btn--sm { padding: 0.3rem 0.5rem; font-size: 0.68rem; }
  .logo__img { height: 40px; }
}
