/* ============================================
   MYSA — Luxury Fashion Design System
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ink: #0a0a0a;
    --ink-soft: #1a1a1a;
    --cream: #f5f0e8;
    --cream-dark: #ebe4d8;
    --stone: #e8e4dc;
    --gold: #b8956c;
    --gold-light: #d4b896;
    --white: #ffffff;
    --text: #2c2c2c;
    --text-muted: #6b6b6b;
    --text-faint: #999;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.14);
    --success: #2d6a4f;
    --danger: #c0392b;
    --warning: #b8860b;
    --info: #2c5282;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.12);
    --radius-sm: 2px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --nav-height: 72px;
    --announce-height: 36px;
    --transition: 0.35s var(--ease-out);
    --container: 1280px;
    --spacing: clamp(20px, 4vw, 40px);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    padding: 10px 18px;
    background: var(--ink);
    color: var(--cream);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: top 0.2s;
}

.skip-link:focus {
    top: 16px;
}

/* Announcement bar */
.announcement-bar {
    background: var(--ink);
    color: rgba(245, 240, 232, 0.85);
    text-align: center;
    padding: 10px var(--spacing);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.announcement-bar a {
    color: var(--gold-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.announcement-bar a:hover {
    color: var(--cream);
}

/* Layout */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

.container-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main, .main {
    flex: 1;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 4px 0;
}

.nav-logo-img {
    height: clamp(72px, 7.5vw, 100px);
    width: auto;
    max-width: 320px;
    object-fit: contain;
    transition: height 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.15));
}

.navbar.scrolled .nav-logo-img {
    height: clamp(64px, 6.4vw, 88px);
    transform: scale(0.98);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(20px, 3vw, 36px);
    align-items: center;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
    transition: color 0.25s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--ink);
    transition: width 0.35s var(--ease-out);
}

.nav-link:hover {
    color: var(--ink);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-categories {
    position: relative;
}

.nav-categories-toggle {
    background: none;
    border: none;
    padding: 4px 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font: inherit;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
    transition: color 0.25s;
}

.nav-categories-toggle:hover {
    color: var(--ink);
}

.nav-chevron {
    transition: transform 0.25s;
}

.nav-categories.active .nav-chevron,
.nav-categories:hover .nav-chevron {
    transform: rotate(180deg);
}

.nav-categories-dropdown {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 320px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease-out);
    z-index: 220;
}

.nav-categories:hover .nav-categories-dropdown,
.nav-categories:focus-within .nav-categories-dropdown,
.nav-categories.active .nav-categories-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}

.nav-categories-link {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background 0.2s, color 0.2s;
}

.nav-categories-link:hover {
    background: var(--cream);
    color: var(--ink);
}

.cart-item {
    position: relative;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    padding: 8px;
    position: relative;
}

.cart-link::after {
    display: none;
}

.cart-icon-svg {
    stroke: var(--ink);
    transition: transform 0.25s;
}

.cart-link:hover .cart-icon-svg {
    transform: scale(1.08);
}

.cart-count {
    position: absolute;
    top: 0;
    right: -2px;
    background: var(--ink);
    color: var(--cream);
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
}

.nav-mobile-bar {
    display: none;
    align-items: center;
    gap: 2px;
}

.cart-link-mobile {
    color: var(--ink);
}

@keyframes cartBump {
    0% { transform: scale(1); }
    30% { transform: scale(1.22); }
    55% { transform: scale(0.94); }
    100% { transform: scale(1); }
}

.cart-link.cart-bump .cart-icon-svg {
    animation: cartBump 0.45s var(--ease-out);
}

@keyframes cartCountPop {
    0% { transform: scale(0.4); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.cart-link .cart-count.cart-bump {
    animation: cartCountPop 0.4s var(--ease-out);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    transition: var(--transition);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

@media (max-width: 900px) {
    .nav-mobile-bar {
        display: flex;
    }

    .nav-menu .cart-item {
        display: none;
    }

    .nav-toggle {
        display: flex;
        z-index: 1002;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: calc(var(--nav-height) + var(--announce-height));
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        height: calc(100dvh - var(--nav-height) - var(--announce-height));
        max-height: calc(100dvh - var(--nav-height) - var(--announce-height));
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(14px);
        padding: 18px var(--spacing) calc(24px + env(safe-area-inset-bottom));
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0.35s;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
        z-index: 1001;
    }

    .nav-menu.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border);
        flex: 0 0 auto;
    }

    .nav-menu .nav-item:last-child {
        border-bottom: none;
    }

    .nav-menu .nav-link,
    .nav-menu .nav-categories-toggle {
        display: block;
        width: 100%;
        padding: 16px 0;
        font-size: 13px;
    }

    .nav-categories-dropdown {
        position: static;
        transform: none;
        min-width: 100%;
        border: none;
        box-shadow: none;
        padding: 0 0 12px 0;
        opacity: 1;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s var(--ease-out), visibility 0.35s;
    }

    .nav-categories.active .nav-categories-dropdown {
        visibility: visible;
        max-height: 400px;
    }

    .nav-categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}

/* ============================================
   Hero
   ============================================ */
.hero {
    --hero-ink: #0a0a0a;
    --hero-cream: #f5f0e8;
    --hero-muted: rgba(245, 240, 232, 0.72);
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - var(--nav-height) - var(--announce-height));
    min-height: calc(100dvh - var(--nav-height) - var(--announce-height));
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: var(--hero-cream);
    background: var(--hero-ink);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transform: scale(1.08);
    animation: heroKenBurns 20s ease-out forwards;
    filter: saturate(0.9) contrast(1.04);
}

.hero-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(8, 8, 8, 0.78) 0%, rgba(8, 8, 8, 0.45) 45%, rgba(8, 8, 8, 0.12) 70%, rgba(8, 8, 8, 0.3) 100%),
        linear-gradient(180deg, rgba(8, 8, 8, 0.2) 0%, transparent 40%, rgba(8, 8, 8, 0.75) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    padding: clamp(48px, 10vh, 120px) var(--spacing) clamp(72px, 12vh, 120px);
}

.hero-eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 20px;
    opacity: 0;
    animation: heroRise 0.9s var(--ease-out) 0.1s forwards;
}

.hero-brand-logo {
    display: block;
    width: min(420px, 78vw);
    max-width: 100%;
    height: auto;
    margin: 10px 0 20px;
    opacity: 0;
    transform: translateY(32px);
    animation: heroRise 1.1s var(--ease-out) 0.2s forwards;
}

.hero-line {
    font-size: clamp(11px, 1.4vw, 13px);
    font-weight: 400;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--hero-muted);
    max-width: 36ch;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(24px);
    animation: heroRise 1s var(--ease-out) 0.45s forwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroRise 0.95s var(--ease-out) 0.65s forwards;
}

.hero .btn.hero-btn-primary,
.hero .btn.hero-btn-ghost {
    min-height: 50px;
    padding: 14px 32px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    border-radius: 0;
}

.hero .btn.hero-btn-primary {
    background: var(--hero-cream);
    color: var(--hero-ink);
    border: 1px solid var(--hero-cream);
}

.hero .btn.hero-btn-primary:hover {
    background: transparent;
    color: var(--hero-cream);
}

.hero .btn.hero-btn-ghost {
    background: transparent;
    color: var(--hero-cream);
    border: 1px solid rgba(245, 240, 232, 0.35);
}

.hero .btn.hero-btn-ghost:hover {
    border-color: var(--hero-cream);
    background: rgba(245, 240, 232, 0.06);
}

.hero-scroll {
    position: absolute;
    right: var(--spacing);
    bottom: clamp(32px, 6vh, 56px);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--hero-cream);
    opacity: 0;
    animation: heroRise 0.9s ease 1s forwards;
}

.hero-scroll-text {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.6;
    writing-mode: vertical-rl;
}

.hero-scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, var(--hero-cream), transparent);
    animation: heroScrollPulse 2s ease-in-out infinite;
}

@keyframes heroRise {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroKenBurns {
    to { transform: scale(1); }
}

@keyframes heroScrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-image, .hero-eyebrow, .hero-brand, .hero-line,
    .hero-actions, .hero-scroll, .hero-scroll-line,
    .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
}

@media (max-width: 768px) {
    .hero-veil {
        background:
            linear-gradient(180deg, rgba(8,8,8,0.15) 0%, rgba(8,8,8,0.5) 50%, rgba(8,8,8,0.88) 100%);
    }

    .hero-scroll {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .hero-scroll-text { display: none; }

    .hero-actions { width: 100%; }
    .hero .btn { flex: 1; min-width: 130px; text-align: center; justify-content: center; }
}

/* ============================================
   Sections & Typography
   ============================================ */
.section {
    padding: clamp(64px, 10vw, 120px) 0;
}

.section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto clamp(48px, 6vw, 72px);
}

.eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.eyebrow-light {
    color: rgba(245, 240, 232, 0.7);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.15;
}

.section-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
}

.section-cta {
    text-align: center;
    margin-top: clamp(40px, 5vw, 64px);
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--ink);
    margin-bottom: clamp(32px, 4vw, 48px);
}

.page-hero {
    padding: clamp(48px, 8vw, 80px) 0 clamp(32px, 5vw, 48px);
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--border);
}

.page-hero .page-title {
    margin-bottom: 12px;
}

.page-hero .section-desc {
    max-width: 520px;
}

.featured-products {
    scroll-margin-top: calc(var(--nav-height) + 24px);
    background: var(--white);
}

/* Categories strip */
.categories-strip {
    background: var(--cream);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.category-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    background: var(--white);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--ink);
    transition: var(--transition);
    min-height: 72px;
}

.category-card:hover {
    border-color: var(--ink);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.category-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.category-arrow {
    opacity: 0;
    transform: translateX(-6px);
    transition: var(--transition);
    color: var(--gold);
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 1024px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 576px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .category-card { padding: 16px; min-height: 60px; }
    .category-name { font-size: 15px; }
}

/* Brand pillars */
.brand-pillars {
    background: var(--white);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 4vw, 48px);
}

.pillar {
    text-align: center;
    padding: clamp(32px, 4vw, 48px) clamp(20px, 3vw, 32px);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.pillar:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.pillar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    color: var(--gold);
}

.pillar h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--ink);
}

.pillar p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .pillars-grid { grid-template-columns: 1fr; }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Products Grid & Cards
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(24px, 3vw, 40px);
}

.product-card {
    position: relative;
    background: var(--white);
    transition: var(--transition);
}

.product-image-link {
    display: block;
    text-decoration: none;
}

.product-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: var(--cream);
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 5px 12px;
    background: var(--ink);
    color: var(--cream);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay-btn {
    padding: 12px 28px;
    background: var(--white);
    color: var(--ink);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transform: translateY(8px);
    transition: transform 0.4s var(--ease-out);
}

.product-card:hover .product-overlay-btn {
    transform: translateY(0);
}

.product-info {
    padding: 20px 4px 0;
}

.product-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.35;
}

.product-name a {
    text-decoration: none;
    color: var(--ink);
    transition: color 0.2s;
}

.product-name a:hover {
    color: var(--gold);
}

.product-price-section {
    margin-bottom: 10px;
}

.product-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.02em;
}

.product-original-price {
    color: var(--text-faint);
    font-size: 13px;
    margin: 0 0 2px;
}

.product-price.sale-price {
    color: var(--danger);
}

.sale-tag {
    display: inline-block;
    margin-left: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--danger);
}

.product-stock {
    display: inline-flex;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.product-stock.in-stock { color: var(--success); }
.product-stock.out-of-stock { color: var(--danger); }

.product-actions {
    margin-top: 14px;
}

.product-actions .btn {
    width: 100%;
}

.category-banner {
    margin-bottom: 28px;
    padding: 14px 20px;
    background: var(--cream);
    border-left: 3px solid var(--gold);
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 0;
    text-align: center;
    line-height: 1.2;
}

.btn:hover {
    background: var(--ink);
    color: var(--cream);
}

.btn-primary {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
}

.btn-primary:hover {
    background: var(--ink-soft);
    border-color: var(--ink-soft);
    color: var(--cream);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
}

.btn-secondary:hover {
    background: var(--cream);
    color: var(--ink);
}

.btn-outline {
    border-color: var(--border-strong);
    padding: 14px 36px;
}

.btn-outline:hover {
    border-color: var(--ink);
}

.btn-light {
    background: var(--cream);
    color: var(--ink);
    border-color: var(--cream);
    padding: 14px 36px;
}

.btn-light:hover {
    background: var(--white);
    color: var(--ink);
    border-color: var(--white);
}

.btn-danger {
    border-color: var(--danger);
    color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: var(--white);
}

.btn-lg { padding: 16px 40px; font-size: 11px; }
.btn-small { padding: 8px 16px; font-size: 9px; }
.btn-block { width: 100%; }

/* ============================================
   CTA Section
   ============================================ */
.cta {
    background: var(--ink);
    color: var(--cream);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(184, 149, 108, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(184, 149, 108, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 40px) 0;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 16px;
    color: var(--cream);
}

.cta-content p {
    font-size: 15px;
    color: rgba(245, 240, 232, 0.72);
    margin-bottom: 32px;
    line-height: 1.75;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--ink);
    color: rgba(245, 240, 232, 0.75);
    padding: clamp(56px, 8vw, 80px) var(--spacing) 0;
    margin-top: auto;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: clamp(40px, 6vw, 80px);
    padding-bottom: clamp(40px, 5vw, 56px);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--cream);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.75;
    max-width: 280px;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(245, 240, 232, 0.15);
    color: var(--cream);
    transition: var(--transition);
}

.footer-social a:hover {
    border-color: var(--gold);
    color: var(--gold-light);
    transform: translateY(-2px);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-section h3 {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(245, 240, 232, 0.65);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--gold-light);
}

.footer-contact-list li {
    font-size: 14px;
    color: rgba(245, 240, 232, 0.65);
}

.footer-bottom {
    max-width: var(--container);
    margin: 0 auto;
    border-top: 1px solid rgba(245, 240, 232, 0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: rgba(245, 240, 232, 0.45);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(245, 240, 232, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--cream);
}

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; }
    .footer-links-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .footer-links-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Forms
   ============================================ */
.form-group { margin-bottom: 22px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-strong);
    background: var(--white);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.25s, box-shadow 0.25s;
    border-radius: 0;
}

.form-control:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.06);
}

.form-control.error {
    border-color: var(--danger);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-control::placeholder {
    color: var(--text-faint);
}

small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    border: 1px solid var(--border-strong);
    font-family: inherit;
    font-size: 14px;
    background: var(--white);
    transition: border-color 0.25s;
}

.search-input:focus {
    outline: none;
    border-color: var(--ink);
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    padding: 16px 20px;
    margin-bottom: 24px;
    border-left: 3px solid;
    font-size: 14px;
    font-weight: 500;
}

.alert-success { border-color: var(--success); background: #edf7f1; color: #1a4d35; }
.alert-error { border-color: var(--danger); background: #fdf0ee; color: #7b241c; }
.alert-info { border-color: var(--info); background: #eef3f9; color: #1a365d; }

/* ============================================
   Cart
   ============================================ */
.cart-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(32px, 4vw, 48px);
    margin-bottom: 40px;
}

.cart-items {
    min-width: 0;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table thead {
    border-bottom: 2px solid var(--ink);
}

.cart-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    white-space: nowrap;
}

.cart-table td {
    padding: 24px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.cart-table th:first-child,
.cart-table td:first-child {
    padding-left: 0;
}

.cart-table th:last-child,
.cart-table td:last-child {
    padding-right: 0;
    text-align: right;
}

.quantity-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quantity-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-strong);
    background: var(--white, #fff);
}

.qty-btn {
    width: 38px;
    height: 42px;
    border: none;
    background: transparent;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    padding: 0;
    touch-action: manipulation;
}

.qty-btn:hover:not(:disabled) {
    background: var(--cream);
}

.qty-btn:disabled {
    color: var(--text-faint, #b5b5b5);
    cursor: default;
}

.quantity-input {
    width: 44px;
    padding: 10px 2px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-family: inherit;
    font-size: 14px;
    -moz-appearance: textfield;
    appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-form.js-enhanced .qty-update {
    display: none;
}

.quantity-form.is-updating {
    opacity: 0.5;
    pointer-events: none;
}

.cart-product-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cart-product-variant {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.cart-remove-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.cart-remove-link:hover {
    color: var(--danger);
    border-color: currentColor;
}

.cart-remove-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cart-summary {
    border: 1px solid var(--border);
    padding: clamp(28px, 3vw, 36px);
    background: var(--cream);
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.cart-summary a.btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
}

.cart-summary a.btn:last-of-type {
    margin-bottom: 0;
}

/* Between full desktop and phone, stack the summary below the items
   so the fixed 340px column never overflows the viewport */
@media (max-width: 1024px) {
    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
        max-width: 480px;
    }
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 14px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0 0;
    margin-top: 16px;
    border-top: 2px solid var(--ink);
    font-size: 17px;
    font-weight: 600;
}

.empty-cart, .empty-state {
    text-align: center;
    padding: clamp(60px, 10vw, 100px) var(--spacing);
    color: var(--text-muted);
}

.empty-state p, .empty-cart p {
    margin-bottom: 24px;
    font-size: 16px;
}

.quantity-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.quantity-stepper {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   Product Detail
   ============================================ */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    margin-bottom: 40px;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    background: var(--cream);
}

.product-detail-info {
    padding: 20px 0;
}

.product-detail-name {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    color: var(--ink);
}

.product-detail-price {
    font-size: 22px;
    font-weight: 600;
}

.product-description {
    margin-bottom: 36px;
}

.product-description h3 {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
    color: var(--text-muted);
}

.product-description p {
    line-height: 1.85;
    color: var(--text-muted);
}

.add-to-cart-form {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.add-to-cart-form select {
    padding: 14px 16px;
    border: 1px solid var(--border-strong);
    min-width: 120px;
    font-family: inherit;
    background: var(--white);
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 32px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.breadcrumb:hover {
    color: var(--ink);
}

/* ============================================
   Checkout
   ============================================ */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: clamp(32px, 4vw, 48px);
    margin-bottom: 40px;
}

.checkout-form { max-width: 600px; }

.checkout-form-element h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    margin: 36px 0 20px;
    color: var(--ink);
}

.checkout-summary {
    border: 1px solid var(--border);
    padding: clamp(28px, 3vw, 36px);
    background: var(--cream);
    height: fit-content;
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.summary-items { margin-bottom: 20px; }

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.summary-item-name { font-weight: 500; margin-bottom: 4px; }
.summary-item-qty { font-size: 12px; color: var(--text-muted); }
.summary-divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ============================================
   Auth
   ============================================ */
.auth-section {
    padding: clamp(48px, 8vw, 80px) 0;
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 60%);
}

.auth-container {
    max-width: 440px;
    margin: 0 auto;
    padding: clamp(36px, 5vw, 48px);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.auth-form { margin: 28px 0; }

.auth-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.auth-footer a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--gold);
}

/* Two-panel login/signup shell: a light brand panel beside the form. */
.auth-shell {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-visual {
    position: relative;
    isolation: isolate;
    background: linear-gradient(165deg, var(--cream) 0%, var(--cream-dark) 100%);
    border-right: 1px solid var(--border);
    padding: clamp(40px, 5vw, 56px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.auth-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 50% 0%, rgba(184, 149, 108, 0.16), transparent 55%);
}

.auth-visual-logo {
    display: block;
    width: min(220px, 70%);
    height: auto;
    margin: 0 auto clamp(24px, 4vh, 32px);
}

.auth-visual-divider {
    display: block;
    width: 44px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto clamp(24px, 4vh, 32px);
}

.auth-visual-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: var(--ink);
    margin-bottom: 18px;
}

.auth-visual-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 32ch;
    margin: 0 auto clamp(28px, 4vh, 36px);
}

.auth-visual-text strong {
    color: var(--ink);
    font-weight: 700;
}

.auth-visual-list {
    list-style: none;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    margin: 0 auto;
}

.auth-visual-list li {
    position: relative;
    padding-left: 26px;
    font-size: 13.5px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--ink-soft);
}

.auth-visual-list li strong {
    font-weight: 700;
    color: var(--ink);
}

.auth-visual-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--gold);
    background: rgba(184, 149, 108, 0.12);
}

.auth-visual-list li::after {
    content: '';
    position: absolute;
    left: 5.5px;
    top: 6.5px;
    width: 7px;
    height: 4px;
    border-left: 1.5px solid var(--gold);
    border-bottom: 1.5px solid var(--gold);
    transform: rotate(-45deg);
}

.auth-panel {
    padding: clamp(40px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.auth-heading {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 32px);
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--ink);
    margin-bottom: 8px;
}

.auth-subtext {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 480px;
        box-shadow: var(--shadow-md);
    }

    .auth-visual { display: none; }

    .auth-panel { padding: clamp(32px, 6vw, 44px); }
}

/* ============================================
   Contact
   ============================================ */
.contact-section {
    padding: clamp(64px, 10vw, 100px) 0;
    background: var(--cream);
}

.contact-shell {
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.contact-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
}

.contact-intro {
    padding: clamp(40px, 5vw, 56px);
}

.contact-lead {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.social-links { display: grid; gap: 14px; }

.social-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--ink);
    transition: var(--transition);
}

.social-card:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.social-card strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.social-card span {
    font-size: 13px;
    color: var(--text-muted);
}

.social-card-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    padding: 6px;
    border-radius: 50%;
    background: var(--cream);
}

.contact-info-card {
    padding: clamp(40px, 5vw, 56px);
    background: var(--ink);
    color: var(--cream);
}

.contact-card-heading { margin-bottom: 24px; }

.contact-info-card .section-subtitle {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    color: var(--cream);
    margin-bottom: 8px;
}

.info-block {
    padding: 16px 0;
    border-bottom: 1px solid rgba(245, 240, 232, 0.1);
}

.info-block:last-child { border-bottom: none; }

.info-block h3 {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(245, 240, 232, 0.6);
    margin-bottom: 6px;
}

.info-block p, .info-block a {
    color: var(--cream);
    text-decoration: none;
    font-size: 15px;
}

.info-block a:hover { color: var(--gold-light); }

.section-subtitle {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--ink);
}

/* ============================================
   Profile & Orders
   ============================================ */
.profile-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 4vw, 48px);
    margin-bottom: 40px;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table thead {
    border-bottom: 2px solid var(--ink);
}

.orders-table th {
    padding: 14px 0;
    text-align: left;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.orders-table td {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.status-pending { color: var(--warning); }
.status-processing { color: var(--info); }
.status-shipped { color: var(--info); }
.status-delivered { color: var(--success); }
.status-cancelled { color: var(--danger); }

/* ============================================
   Order Confirmation
   ============================================ */
.confirmation-section { padding: clamp(64px, 10vw, 100px) 0; }
.confirmation-container { max-width: 680px; margin: 0 auto; }
.confirmation-header { text-align: center; margin-bottom: 56px; }
.confirmation-icon { font-size: 56px; margin-bottom: 20px; }

.confirmation-header h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
}

.confirmation-content h2 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 36px 0 16px;
    color: var(--text-muted);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.items-table th {
    padding: 14px 0;
    text-align: left;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-bottom: 2px solid var(--ink);
}

.items-table td {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.confirmation-total {
    background: var(--cream);
    padding: 20px 24px;
    margin: 28px 0;
}

.total-row {
    font-size: 17px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.confirmation-email {
    text-align: center;
    padding: 20px;
    background: var(--cream);
    margin: 20px 0;
    font-size: 14px;
}

.confirmation-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 48px;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-info { padding: 14px 2px 0; }
    .product-name { font-size: 15px; }
    .product-overlay { display: none; }

    .product-detail-container,
    .cart-container,
    .checkout-container,
    .profile-container {
        grid-template-columns: 1fr;
    }

    .cart-summary, .checkout-summary {
        position: static;
    }

    .contact-hero { grid-template-columns: 1fr; }

    .form-row { grid-template-columns: 1fr; }

    .add-to-cart-form { flex-direction: column; align-items: stretch; }
    .add-to-cart-form select { width: 100%; }

    .cart-table { display: block; width: 100%; }
    .cart-table thead { display: none; }
    .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
    .cart-table tr { padding: 16px 0; border-bottom: 1px solid var(--border); }
    .cart-table td { padding: 6px 0; border: none; }
    .cart-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        font-weight: 600;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--text-muted);
    }

    .confirmation-actions { flex-direction: column; }
}

@media (max-width: 480px) {
    .products-grid { gap: 12px; }
    .hero-brand { font-size: clamp(56px, 20vw, 80px); }
}

.mt-4 { margin-top: 40px; }

/* ============================================
   Professional Refinement Layer
   ============================================ */

/* --- Global polish --- */
html {
    scroll-padding-top: calc(var(--nav-height) + 24px);
}

::selection {
    background: var(--ink);
    color: var(--cream);
}

h1, h2, h3, .section-title, .page-title {
    text-wrap: balance;
}

/* Visible keyboard-focus ring everywhere, without polluting mouse clicks */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.form-control:focus-visible,
.search-input:focus-visible {
    outline: none; /* these have their own focus treatment */
}

/* --- Navigation: keep the logo inside the bar --- */
.nav-logo-img {
    height: clamp(48px, 5vw, 62px);
    max-width: 240px;
    filter: none;
}

.navbar.scrolled .nav-logo-img {
    height: clamp(44px, 4.5vw, 54px);
    transform: none;
}

/* --- Buttons: tactile press feedback --- */
.btn {
    border-radius: 0;
    user-select: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- Search bar: integrated pill --- */
.search-form {
    max-width: 560px;
    gap: 0;
    border: 1px solid var(--border-strong);
    background: var(--white);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.search-form:focus-within {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.05);
}

.search-input {
    border: none;
    background: transparent;
    padding: 14px 18px;
}

.search-input:focus {
    border: none;
}

.search-form .btn {
    border: none;
    background: var(--ink);
    color: var(--cream);
    padding: 0 26px;
    align-self: stretch;
    min-height: 48px;
}

.search-form .btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border-left: 1px solid var(--border);
}

.search-form .btn-secondary:hover {
    color: var(--ink);
    background: var(--cream);
}

/* --- Product cards: stock dot indicator --- */
.product-stock {
    align-items: center;
    gap: 6px;
}

.product-stock::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* --- Cart: product cell with thumbnail + name --- */
.cart-product-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--ink);
    min-width: 0;
}

.cart-product-thumb {
    width: 64px;
    height: 80px;
    object-fit: cover;
    background: var(--cream);
    flex-shrink: 0;
}

.cart-product-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    transition: color 0.2s;
}

.cart-product-link:hover .cart-product-title {
    color: var(--gold);
}

.cart-price-original {
    display: block;
    text-decoration: line-through;
    color: var(--text-faint);
    font-size: 13px;
}

.cart-price-sale {
    display: block;
    color: var(--danger);
    font-weight: 600;
}

/* --- Checkout: country picker --- */
.country-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    background: var(--white);
}

.country-toggle-content {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.country-placeholder {
    color: var(--text-faint);
}

.country-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.25s var(--ease-out);
}

.country-toggle.open .country-chevron {
    transform: rotate(180deg);
}

.country-flag {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.country-flag-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    font-size: 12px;
}

.country-list {
    margin-top: 8px;
    border: 1px solid var(--border-strong);
    background: var(--white);
    max-height: 300px;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
}

.country-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.country-option:last-child {
    border-bottom: none;
}

.country-option:hover {
    background: var(--cream);
}

.country-option input[type="radio"] {
    accent-color: var(--ink);
}

.country-option-name {
    flex: 1;
    min-width: 0;
}

.country-option-dial {
    color: var(--text-muted);
    font-size: 13px;
}

.phone-input-row {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.phone-dial-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 0 14px;
    border: 1px solid var(--border-strong);
    border-right: none;
    background: var(--cream);
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    white-space: nowrap;
}

/* --- Checkout: order summary items --- */
.summary-item-media {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.summary-item-thumb {
    width: 72px;
    height: 90px;
    object-fit: cover;
    background: var(--stone);
    flex-shrink: 0;
}

.summary-item-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    font-size: 11px;
}

.summary-item-info {
    flex: 1;
    min-width: 0;
}

.summary-item-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 4px;
    word-break: break-word;
}

.summary-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.summary-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

/* --- Empty states --- */
.empty-cart::before,
.empty-state::before {
    content: '';
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='1.5'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E")
        center / 24px no-repeat;
}

/* --- Motion safety: cover every animated element --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   Mobile refinements
   ============================================ */
@media (max-width: 768px) {
    /* Prevent iOS Safari auto-zoom on input focus (requires >= 16px) */
    .form-control,
    .search-input,
    .quantity-input,
    input, select, textarea {
        font-size: 16px;
    }

    .announcement-bar {
        font-size: 10px;
        letter-spacing: 0.08em;
        padding: 8px 16px;
    }

    .section {
        padding: clamp(48px, 8vw, 64px) 0;
    }

    /* Cart rows become clean label/value cards */
    .cart-table tr {
        padding: 20px 0;
    }

    .cart-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 7px 0;
    }

    .cart-table td::before {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .cart-table td.cart-product-name {
        display: block;
        padding-bottom: 12px;
    }

    .cart-table td.cart-product-name::before {
        display: none;
    }

    .cart-table td.cart-quantity {
        align-items: flex-start;
    }

    .cart-table td.cart-quantity .quantity-form {
        justify-content: flex-end;
    }

    .cart-table td.cart-action {
        justify-content: flex-end;
    }

    .cart-table td.cart-action::before {
        display: none;
    }

    .cart-product-thumb {
        width: 72px;
        height: 90px;
    }

    /* Country list: comfortable touch targets */
    .country-option {
        padding: 14px 16px;
    }

    /* Pagination buttons full-row */
    .pagination {
        gap: 12px;
    }

    .pagination .btn {
        flex: 1;
    }

    /* Order tables scroll instead of overflowing the page */
    .orders-table-wrap,
    .items-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: clamp(30px, 9vw, 36px);
    }

    .section-title {
        font-size: clamp(26px, 8vw, 32px);
    }

    .hero-brand-logo {
        width: min(320px, 84vw);
    }

    .hero-content {
        padding-bottom: 96px;
    }

    .btn-lg {
        width: 100%;
    }

    .confirmation-actions .btn {
        width: 100%;
    }
}
