/* ==========================================================================
   Ferme Chez Dudu - Main Stylesheet
   L'ame de la campagne francaise - Premium E-Commerce
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
    /* Brand colors */
    --color-primary: #CC9676;
    --color-primary-light: #C9A79D;
    --color-primary-dark: #B07D5E;
    --color-primary-subtle: #F5EBE6;
    --color-accent: #6A8C36;
    --color-accent-light: #8BAF4D;
    --color-accent-dark: #557A28;

    /* Neutral palette */
    --color-bg: #FFFFFF;
    --color-bg-alt: #FAF8F5;
    --color-bg-section: #F3F3F3;
    --color-white: #FFFFFF;
    --color-black: #2C2C2C;
    --color-text: #444649;
    --color-text-light: #777777;
    --color-text-muted: #999999;
    --color-border: #E5E0DB;
    --color-border-light: #EDE9E5;

    /* Semantic colors */
    --color-success: #6A8C36;
    --color-success-bg: #E8F0DB;
    --color-danger: #C23535;
    --color-danger-bg: #FDECEA;
    --color-warning: #E6A817;
    --color-warning-bg: #FFF3CD;
    --color-info: #2874a6;
    --color-info-bg: #e8f4f8;

    /* Typography */
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: "Georgia", "Times New Roman", serif;
    --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    --leading-tight: 1.25;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.06), 0 4px 6px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.08), 0 8px 10px rgba(0, 0, 0, 0.04);

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Layout */
    --container-max: 1280px;
    --container-narrow: 800px;
    --header-height: 72px;
    --promo-bar-height: 40px;
    --sidebar-width: 280px;
}

/* --------------------------------------------------------------------------
   2. RESET / NORMALIZE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

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

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-light);
}

ul, ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

fieldset {
    border: none;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

::selection {
    background: #F5EBE6;
    color: #5C3D2E;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--leading-tight);
    color: var(--color-black);
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin-bottom: var(--space-4);
}

p:last-child {
    margin-bottom: 0;
}

strong, b {
    font-weight: 600;
}

small {
    font-size: var(--text-sm);
}

blockquote {
    border-left: 4px solid var(--color-primary);
    padding: var(--space-4) var(--space-6);
    margin: var(--space-6) 0;
    background: var(--color-primary-subtle);
    font-style: italic;
    color: var(--color-text-light);
}

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-8) 0;
}

/* --------------------------------------------------------------------------
   4. LAYOUT SYSTEM
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.container--wide {
    max-width: 1400px;
}

/* Grid system */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Flexbox utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }
.flex-end { justify-content: flex-end; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.flex-1 { flex: 1; }

/* Section spacing */
.section {
    padding: var(--space-16) 0;
}

.section--sm {
    padding: var(--space-8) 0;
}

/* Section header / title / subtitle (used in homepage sections) */
.section-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.section-header h2,
.section__title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: var(--space-3);
    text-align: center;
}

.section-header p,
.section__subtitle {
    font-size: var(--text-base);
    color: var(--color-text-light);
    text-align: center;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------------------------------------------------
   5. PROMO BAR
   -------------------------------------------------------------------------- */
.promo-bar {
    background: #444649;
    color: var(--color-white);
    text-align: center;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    line-height: 1.4;
    position: relative;
    z-index: 100;
}

.promo-bar strong {
    color: #CC9676;
}

.promo-bar span {
    display: inline;
}

.promo-bar .separator {
    display: inline-block;
    margin: 0 var(--space-3);
    opacity: 0.5;
}

.promo-bar__close {
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-white);
    opacity: 0.6;
    font-size: var(--text-lg);
    line-height: 1;
    transition: opacity var(--transition-fast);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-1);
}

.promo-bar__close:hover {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   6. HEADER
   -------------------------------------------------------------------------- */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border-light);
    position: sticky;
    top: 0;
    z-index: 90;
    transition: box-shadow var(--transition-base);
}

.site-header.scrolled,
.site-header.is-scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: transparent;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: var(--space-6);
}

/* Logo */
.site-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    gap: var(--space-3);
}

.site-logo__img {
    height: 40px;
    width: 40px;
    flex-shrink: 0;
}

.site-logo__text {
    display: flex;
    flex-direction: column;
}

.site-logo__name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #CC9676;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.site-logo__tagline {
    font-size: 0.75rem;
    color: #999;
    font-style: italic;
    letter-spacing: 0.02em;
}

/* Main navigation */
.main-nav {
    display: none;
}

.main-nav__list {
    display: flex;
    gap: var(--space-8);
    align-items: center;
}

.main-nav__link {
    display: block;
    padding: var(--space-2) var(--space-1);
    color: #444649;
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: 0;
    transition: color var(--transition-fast);
    white-space: nowrap;
    position: relative;
}

.main-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #CC9676;
    transition: width var(--transition-base);
}

.main-nav__link:hover,
.main-nav__link.is-active {
    color: #CC9676;
}

.main-nav__link:hover::after,
.main-nav__link.is-active::after {
    width: 100%;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

.header-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    color: var(--color-text);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.header-action-btn:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}

.header-action-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Cart count badge */
.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: var(--color-danger);
    color: var(--color-white);
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.cart-count:empty,
.cart-count--hidden {
    display: none;
}

/* Search overlay */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-6) 0;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    animation: slideDown var(--transition-base) ease;
}

.search-overlay.is-open,
.search-overlay.is-visible {
    display: block;
}

.search-overlay__form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: var(--space-2);
}

.search-overlay__input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    background: var(--color-bg);
    transition: border-color var(--transition-fast);
}

.search-overlay__input:focus {
    border-color: var(--color-primary);
    outline: none;
    background: var(--color-white);
}

.search-overlay__close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-2);
}

/* Mobile hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.hamburger:hover {
    background: var(--color-bg);
}

.hamburger__line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.hamburger.is-active .hamburger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active .hamburger__line:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .hamburger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

body.menu-open {
    overflow: hidden;
}

/* Mobile drawer */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    pointer-events: none;
    visibility: hidden;
}

.mobile-nav.is-open {
    pointer-events: auto;
    visibility: visible;
}

.mobile-nav__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-nav__backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav__drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--color-white);
    padding: var(--space-6);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-nav__drawer.is-open {
    transform: translateX(0);
}

.mobile-nav__close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--color-text-light);
    font-size: var(--text-xl);
    transition: background var(--transition-fast);
}

.mobile-nav__close:hover {
    background: var(--color-bg);
}

.mobile-nav__list {
    margin-top: var(--space-8);
}

.mobile-nav__link {
    display: block;
    padding: var(--space-3) 0;
    color: var(--color-text);
    font-size: var(--text-lg);
    font-weight: 500;
    border-bottom: 1px solid var(--color-border-light);
}

.mobile-nav__link:hover,
.mobile-nav__link.is-active {
    color: var(--color-primary);
}

.mobile-nav__actions {
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* --------------------------------------------------------------------------
   7. HERO SECTION
   -------------------------------------------------------------------------- */

/* BEM-style hero (for structured hero markup) */
.hero {
    position: relative;
    background: linear-gradient(135deg, #3D2B1F 0%, #5C3D2E 40%, #7A5640 70%, #CC9676 100%);
    color: var(--color-white);
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(61, 43, 31, 0.9) 0%, rgba(122, 86, 64, 0.8) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: var(--space-16) 0;
}

.hero__title {
    font-size: var(--text-5xl);
    color: var(--color-white);
    margin-bottom: var(--space-4);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.1;
}

.hero__subtitle {
    font-size: var(--text-xl);
    opacity: 0.85;
    margin-bottom: var(--space-8);
    line-height: var(--leading-relaxed);
    font-weight: 300;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--color-white);
    color: #444649;
    padding: 18px 40px;
    border-radius: var(--radius-lg);
    font-size: var(--text-lg);
    font-weight: 700;
    transition: all var(--transition-base);
    text-decoration: none;
    border: 2px solid var(--color-white);
    letter-spacing: 0.01em;
}

.hero__cta:hover {
    background: #CC9676;
    color: var(--color-white);
    border-color: #CC9676;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(204, 150, 118, 0.35);
}

.hero__actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Hero-section: legacy slider-style from old template */
.hero-section {
    position: relative;
    min-height: 500px;
    overflow: hidden;
}

.hero-section.hero-default {
    background: linear-gradient(135deg, #3D2B1F 0%, #5C3D2E 40%, #7A5640 70%, #CC9676 100%);
    display: flex;
    align-items: center;
}

.hero-slider {
    position: relative;
    min-height: 500px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3D2B1F 0%, #5C3D2E 40%, #7A5640 70%, #CC9676 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: var(--space-16) 0;
    color: var(--color-white);
}

.hero-content h1 {
    font-size: var(--text-5xl);
    color: var(--color-white);
    margin-bottom: var(--space-4);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1.1;
}

.hero-subtitle,
.hero-content .hero-subtitle {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-8);
    line-height: var(--leading-relaxed);
    font-weight: 300;
}

.hero-dots {
    position: absolute;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-2);
    z-index: 3;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.hero-dot.active {
    background: var(--color-white);
    border-color: var(--color-white);
    transform: scale(1.2);
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 0;
}

.hero-bg-slide.active {
    opacity: 1;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(61,43,31,0.7) 0%, rgba(92,61,46,0.5) 40%, rgba(122,86,64,0.4) 70%, rgba(204,150,118,0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(61,43,31,0.65) 0%, rgba(92,61,46,0.45) 50%, rgba(0,0,0,0.25) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--color-white);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.hero-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.hero-arrow--prev { left: var(--space-6); }
.hero-arrow--next { right: var(--space-6); }

@media (max-width: 768px) {
    .hero-arrow { display: none; }
}

/* Decorative pattern overlay for hero */
.hero::before,
.hero-section.hero-default::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   8. PROMO HIGHLIGHT
   -------------------------------------------------------------------------- */
.promo-highlight {
    background: var(--color-bg);
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.promo-highlight-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    font-size: var(--text-base);
    color: var(--color-text);
}

.promo-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.promo-highlight-inner p {
    margin: 0;
}

.promo-highlight-inner strong {
    color: #CC9676;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   9. PRODUCT CARDS & GRID
   -------------------------------------------------------------------------- */
.products-grid,
.product-grid,
.product-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.product-card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(204, 150, 118, 0.18), 0 4px 10px rgba(0, 0, 0, 0.06);
}

.product-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card__image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image {
    transform: scale(1.05);
}

.product-card__badges {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    z-index: 2;
}

.product-card__badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.product-card__badge--stock {
    background: #6A8C36;
    color: var(--color-white);
}

.product-card__badge--out {
    background: #C23535;
    color: var(--color-white);
}

.product-card__body {
    padding: var(--space-4);
}

.product-card__name {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: var(--space-2);
    line-height: var(--leading-tight);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.product-card__price {
    font-size: var(--text-lg);
    font-weight: 700;
    color: #B07D5E;
}

.product-card__price--old {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: var(--space-2);
}

.product-card__stock {
    margin-top: var(--space-2);
}

/* --------------------------------------------------------------------------
   10. BADGES
   -------------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    line-height: 1.4;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-success,
.badge--success {
    background: #E8F0DB;
    color: #6A8C36;
}

.badge-danger,
.badge--danger {
    background: #FDECEA;
    color: #C23535;
}

.badge-warning,
.badge--warning {
    background: #FFF3CD;
    color: #8B6914;
}

.badge-info,
.badge--info {
    background: var(--color-info-bg);
    color: var(--color-info);
}

.badge-promo,
.badge--promo {
    background: #7b2d8e;
    color: var(--color-white);
}

/* --------------------------------------------------------------------------
   11. CATEGORY CARDS (Homepage)
   -------------------------------------------------------------------------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 220px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, #5C3D2E 0%, #CC9676 100%);
    color: var(--color-white);
    text-decoration: none;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.category-card:nth-child(1) { background: linear-gradient(135deg, #5C3D2E 0%, #CC9676 100%); }
.category-card:nth-child(2) { background: linear-gradient(135deg, #6A8C36 0%, #8BAF4D 100%); }
.category-card:nth-child(3) { background: linear-gradient(135deg, #7A5640 0%, #C9A79D 100%); }
.category-card:nth-child(4) { background: linear-gradient(135deg, #444649 0%, #777777 100%); }

.category-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(204, 150, 118, 0.2);
    color: var(--color-white);
}

.category-card-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    transition: opacity var(--transition-base);
}

.category-card:hover .category-card-image img {
    opacity: 0.45;
}

.category-card-placeholder {
    background: linear-gradient(135deg, #5C3D2E 0%, #CC9676 100%);
}

.category-card-info {
    position: relative;
    z-index: 2;
    padding: var(--space-6);
}

.category-card-info h3,
.category-card__name {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-card-count,
.category-card__count {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
}

.category-card__link {
    position: absolute;
    inset: 0;
    z-index: 3;
}

/* --------------------------------------------------------------------------
   12. ABOUT SECTION (Homepage)
   -------------------------------------------------------------------------- */
.about-section {
    background: var(--color-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}

.about-content h2 {
    font-size: var(--text-3xl);
    color: var(--color-black);
    margin-bottom: var(--space-4);
}

.about-content p {
    color: var(--color-text-light);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image--placeholder {
    font-size: 5rem;
    background: linear-gradient(135deg, #F5EBE6 0%, #FAF8F5 100%);
}

.about-map {
    background: var(--color-bg-alt);
}

.about-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 350px;
}

/* --------------------------------------------------------------------------
   13. REASSURANCE BAR
   -------------------------------------------------------------------------- */
.reassurance-bar {
    background: #FAF8F5;
    padding: var(--space-6) 0;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.reassurance-bar__inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.reassurance-bar__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
}

.reassurance-bar__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: #F5EBE6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.reassurance-bar__icon svg {
    width: 22px;
    height: 22px;
    stroke: #CC9676;
    fill: none;
    stroke-width: 2;
}

.reassurance-bar__text {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
}

.reassurance-bar__text small {
    display: block;
    font-weight: 400;
    color: var(--color-text-light);
    margin-top: 2px;
}

/* Footer reassurance (inside footer) */
.reassurance {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-4);
    padding: var(--space-6) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reassurance__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    font-weight: 500;
}

.reassurance__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reassurance__icon svg {
    width: 20px;
    height: 20px;
    stroke: #CC9676;
    fill: none;
    stroke-width: 2;
}

/* --------------------------------------------------------------------------
   14. NEWSLETTER SECTION
   -------------------------------------------------------------------------- */
.newsletter-section {
    background: linear-gradient(135deg, #CC9676 0%, #B07D5E 100%);
    color: var(--color-white);
    padding: var(--space-16) 0;
}

.newsletter-inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-inner h2 {
    color: var(--color-white);
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
}

.newsletter-inner p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-6);
}

.newsletter-form {
    width: 100%;
}

.newsletter-input-group {
    display: flex;
    gap: var(--space-2);
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-input-group input[type="email"] {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
}

.newsletter-input-group input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input-group input[type="email"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.18);
}

.newsletter-input-group .btn {
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   15. CATEGORY PAGE - SIDEBAR + GRID
   -------------------------------------------------------------------------- */
/* Category header */
.cat-header {
    padding: var(--space-6) 0 var(--space-2);
}

.cat-header__title {
    font-size: var(--text-3xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-2);
}

.cat-header__desc {
    color: var(--color-text-muted);
    font-size: var(--text-base);
    max-width: 600px;
    line-height: var(--leading-relaxed);
}

/* Subcategory cards */
.cat-subcategories {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    padding: var(--space-2) 0 var(--space-4);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.cat-subcat-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2);
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.cat-subcat-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 12px rgba(204, 150, 118, 0.15);
    transform: translateY(-1px);
}

.cat-subcat-card__img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-bg-alt);
}

.cat-subcat-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-subcat-card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    opacity: 0.5;
}

.cat-subcat-card__info {
    display: flex;
    flex-direction: column;
}

.cat-subcat-card__name {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-text);
}

.cat-subcat-card__count {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Category toolbar */
.cat-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: var(--space-4);
}

.cat-toolbar__count {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.cat-toolbar__sort {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.cat-toolbar__sort label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    white-space: nowrap;
}

.cat-toolbar__sort select {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
    min-width: 150px;
}

/* Empty state */
.cat-empty {
    text-align: center;
    padding: var(--space-16) var(--space-4);
    color: var(--color-text-muted);
}

.cat-empty svg {
    margin-bottom: var(--space-4);
    opacity: 0.3;
}

.cat-empty h3 {
    font-size: var(--text-xl);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.cat-empty p {
    margin-bottom: var(--space-6);
}

/* Category layout */
.category-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: var(--space-4) 0 var(--space-8);
}

/* Filters sidebar */
.filters,
.filters-sidebar {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.filters__title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid #CC9676;
    color: #B07D5E;
}

.filters__group {
    margin-bottom: var(--space-6);
}

.filters__group:last-child {
    margin-bottom: 0;
}

.filters__label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.filters__range {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.filters__range input {
    flex: 1;
    min-width: 0;
}

.filters__range-sep {
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.filters__checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    cursor: pointer;
    font-size: var(--text-sm);
}

.filters__checkbox:last-child {
    margin-bottom: 0;
}

.filters__checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

/* Sort bar */
.sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.sort-bar__count {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

.sort-bar__select {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    font-size: var(--text-sm);
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   16. PRODUCT DETAIL (Premium)
   -------------------------------------------------------------------------- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    padding: var(--space-8) 0 var(--space-12);
}

/* --- Image Gallery --- */
.product-gallery {
    position: relative;
}

.product-gallery__main {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-bg-alt);
    margin-bottom: var(--space-4);
    position: relative;
    box-shadow: var(--shadow-lg);
    cursor: zoom-in;
}

.product-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.2s ease;
    will-change: transform;
}

.product-gallery__badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #7b2d8e, #9b4dca);
    color: var(--color-white);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(123, 45, 142, 0.3);
    z-index: 2;
}

.product-gallery__fullscreen-btn {
    position: absolute;
    bottom: var(--space-4);
    right: var(--space-4);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--color-text);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    z-index: 2;
}

.product-gallery__fullscreen-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.product-gallery__thumbs {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: var(--space-2);
}

.product-gallery__thumb {
    width: 76px;
    height: 76px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    opacity: 0.55;
    transition: opacity var(--transition-base), border-color var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-fast);
    background: none;
    padding: 0;
    box-shadow: var(--shadow-xs);
}

.product-gallery__thumb:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.product-gallery__thumb.is-active {
    opacity: 1;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-subtle);
}

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Product Info --- */
.product-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.product-info__header {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.product-info__category {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
}

.product-info__title {
    font-size: var(--text-3xl);
    font-family: var(--font-heading);
    line-height: var(--leading-tight);
    margin: 0;
    color: var(--color-black);
}

.product-info__excerpt {
    color: var(--color-text-light);
    line-height: var(--leading-relaxed);
    font-size: var(--text-base);
}

/* Price block */
.product-info__price-block {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.product-info__price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.product-info__price--sale {
    color: var(--color-danger);
}

.product-info__price--old {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    text-decoration: line-through;
    font-weight: 400;
    font-family: var(--font-body);
}

.product-info__price-save {
    display: inline-flex;
    align-items: center;
    background: var(--color-danger-bg);
    color: var(--color-danger);
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
}

/* Stock pills */
.product-info__stock {
    display: flex;
}

.stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1;
}

.stock-pill svg {
    flex-shrink: 0;
}

.stock-pill--in {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.stock-pill--low {
    background: var(--color-warning-bg);
    color: #b8860b;
}

.stock-pill--out {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

/* Divider */
.product-info__divider {
    border: none;
    border-top: 1px solid var(--color-border-light);
    margin: var(--space-1) 0;
}

/* Variant selector */
.variant-selector {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.variant-selector__label {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-text);
}

.variant-selector__options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.variant-option {
    padding: 10px 20px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--color-white);
    font-weight: 500;
    color: var(--color-text);
}

.variant-option:hover {
    border-color: var(--color-primary-light);
    background: var(--color-bg-alt);
}

.variant-option.is-selected {
    border-color: var(--color-primary);
    background: var(--color-primary-subtle);
    color: var(--color-primary-dark);
    font-weight: 600;
    box-shadow: 0 0 0 3px var(--color-primary-subtle);
}

.variant-option.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Add to cart form */
.product-add-form__actions {
    display: flex;
    gap: var(--space-3);
    align-items: stretch;
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-white);
    transition: border-color var(--transition-fast);
}

.quantity-input:focus-within {
    border-color: var(--color-primary);
}

.quantity-input__btn {
    width: 44px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    background: var(--color-bg-alt);
    transition: background var(--transition-fast), color var(--transition-fast);
    border: none;
    cursor: pointer;
}

.quantity-input__btn:hover {
    background: var(--color-border-light);
    color: var(--color-primary);
}

.quantity-input__field {
    width: 48px;
    text-align: center;
    border: none;
    font-size: var(--text-base);
    font-weight: 600;
    -moz-appearance: textfield;
    appearance: textfield;
    background: transparent;
    height: 48px;
}

.quantity-input__field::-webkit-inner-spin-button,
.quantity-input__field::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-add-form__submit {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    font-size: var(--text-base);
    letter-spacing: 0.02em;
    border-radius: var(--radius-lg);
    padding: 14px 28px;
    position: relative;
    overflow: hidden;
    transition: background var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
}

.product-add-form__submit:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(204, 150, 118, 0.35);
}

.product-add-form__submit:not(:disabled):active {
    transform: translateY(0);
}

.product-add-form__submit.is-loading {
    pointer-events: none;
}

.product-add-form__submit.is-loading span {
    opacity: 0;
}

.product-add-form__submit.is-loading svg {
    opacity: 0;
}

.product-add-form__submit.is-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: spinBtn 0.6s linear infinite;
}

@keyframes spinBtn {
    to { transform: rotate(360deg); }
}

/* Shipping info box */
.product-info__shipping-box {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: linear-gradient(135deg, var(--color-bg-alt), var(--color-primary-subtle));
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
}

.product-info__shipping-box svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

.product-info__shipping-box div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-info__shipping-box strong {
    font-size: var(--text-sm);
    color: var(--color-text);
}

.product-info__shipping-box span {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Trust badges */
.product-info__trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-2);
    text-align: center;
    border-radius: var(--radius-lg);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border-light);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.trust-badge svg {
    color: var(--color-primary);
}

.trust-badge span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-light);
    line-height: 1.3;
}

/* --- Product Tabs (Premium) --- */
.product-tabs {
    margin-top: var(--space-12);
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
}

.product-tabs__nav {
    display: flex;
    border-bottom: 1px solid var(--color-border-light);
    gap: 0;
    overflow-x: auto;
    background: var(--color-bg-alt);
    padding: 0 var(--space-2);
}

.product-tabs__btn,
.product-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color var(--transition-base), border-color var(--transition-base), background var(--transition-base);
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.product-tabs__btn svg {
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity var(--transition-base);
}

.product-tabs__btn:hover,
.product-tab:hover {
    color: var(--color-text);
    background: rgba(255,255,255,0.6);
}

.product-tabs__btn:hover svg {
    opacity: 0.8;
}

.product-tabs__btn.is-active,
.product-tabs__btn.active,
.product-tab.active {
    color: var(--color-primary-dark);
    border-bottom-color: var(--color-primary);
    background: var(--color-white);
}

.product-tabs__btn.is-active svg,
.product-tabs__btn.active svg {
    opacity: 1;
    color: var(--color-primary);
}

.product-tabs__content {
    padding: 0;
}

.product-tabs__panel {
    display: none;
    padding: var(--space-8) var(--space-6);
    line-height: var(--leading-relaxed);
    animation: fadeInTab 0.3s ease;
}

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

.product-tabs__panel.is-active {
    display: block;
}

.product-tabs__panel h3,
.product-tabs__panel h4 {
    font-family: var(--font-heading);
    color: var(--color-black);
    margin-bottom: var(--space-4);
}

.product-tabs__panel ul {
    list-style: disc;
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
}

.product-tabs__panel ul li {
    margin-bottom: var(--space-2);
}

/* Info table premium */
.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.info-table tr:not(:last-child) {
    border-bottom: 1px solid var(--color-border-light);
}

.info-table th,
.info-table td {
    padding: var(--space-4) var(--space-3);
    text-align: left;
}

.info-table th {
    font-weight: 600;
    color: var(--color-text-light);
    font-size: var(--text-sm);
    width: 40%;
}

.info-table td {
    color: var(--color-text);
}

/* --- Related Products Section (Premium) --- */
.related-section__header {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.related-section__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.related-section__title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--color-black);
    white-space: nowrap;
    margin: 0;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox__close {
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-white);
    cursor: pointer;
    transition: background var(--transition-fast);
    z-index: 2;
}

.lightbox__close:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-white);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
    z-index: 2;
}

.lightbox__nav:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox__nav--prev {
    left: var(--space-5);
}

.lightbox__nav--next {
    right: var(--space-5);
}

.lightbox__image-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox__counter {
    position: absolute;
    bottom: var(--space-5);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: var(--text-sm);
    font-weight: 500;
}

/* --- Mobile Sticky Add to Cart --- */
.mobile-sticky-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--color-white);
    border-top: 1px solid var(--color-border-light);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: none;
}

.mobile-sticky-cart.is-visible {
    transform: translateY(0);
}

.mobile-sticky-cart__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    max-width: var(--container-max);
    margin: 0 auto;
}

.mobile-sticky-cart__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mobile-sticky-cart__name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-sticky-cart__price {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-primary-dark);
}

.mobile-sticky-cart__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   17. CART PAGE
   -------------------------------------------------------------------------- */
/* Cart page header */
.cart-header {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    padding: var(--space-8) 0 var(--space-4);
}

.cart-header h1 {
    margin: 0;
}

.cart-header__count {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Cart empty state */
.cart-empty {
    text-align: center;
    padding: var(--space-16) var(--space-4);
}

.cart-empty__icon {
    color: var(--color-primary);
    opacity: 0.4;
    margin-bottom: var(--space-6);
}

.cart-empty h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}

.cart-empty p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-8);
}

.cart-empty__actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

/* Free shipping progress */
.cart-shipping-progress {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: #FFF8F3;
    border: 1px solid #F5E6D8;
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-6);
}

.cart-shipping-progress--free {
    background: #F0FAF0;
    border-color: #D4ECD4;
    color: #2D7A2D;
}

.cart-shipping-progress__icon {
    flex-shrink: 0;
    color: var(--color-primary);
}

.cart-shipping-progress--free .cart-shipping-progress__icon {
    color: #2D7A2D;
}

.cart-shipping-progress__info {
    flex: 1;
}

.cart-shipping-progress__info p {
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
}

.cart-shipping-progress__bar {
    height: 4px;
    background: #F0E6DE;
    border-radius: 2px;
    overflow: hidden;
}

.cart-shipping-progress__fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* Cart layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding-bottom: var(--space-8);
}

/* Cart item cards */
.cart-card {
    display: flex;
    gap: var(--space-4);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: box-shadow var(--transition-fast);
}

.cart-card:hover {
    box-shadow: var(--shadow-md);
}

.cart-card + .cart-card {
    margin-top: var(--space-3);
}

.cart-card__image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-card__image:hover img {
    transform: scale(1.05);
}

.cart-card__details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.cart-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-2);
}

.cart-card__name {
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    display: block;
    line-height: 1.3;
}

.cart-card__name:hover {
    color: var(--color-primary);
}

.cart-card__variant {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    display: block;
    margin-top: 2px;
}

.cart-card__remove {
    color: var(--color-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-1);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.cart-card__remove:hover {
    color: var(--color-danger);
    background: #FEF2F2;
}

.cart-card__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-3);
}

/* Cart quantity selector */
.cart-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cart-qty__btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    transition: all var(--transition-fast);
}

.cart-qty__btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.cart-qty__input {
    width: 40px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    font-size: var(--text-sm);
    font-weight: 600;
    -moz-appearance: textfield;
}

.cart-qty__input::-webkit-inner-spin-button,
.cart-qty__input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Cart prices */
.cart-card__price {
    text-align: right;
}

.cart-card__price-sale {
    font-weight: 700;
    color: var(--color-danger);
}

.cart-card__price-original {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-decoration: line-through;
    margin-left: var(--space-1);
}

.cart-card__price-unit {
    font-weight: 600;
}

.cart-card__price-total {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* Cart summary sidebar */
.cart-sidebar {
    position: sticky;
    top: var(--space-4);
}

.cart-summary {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

.cart-summary__title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border-light);
}

/* Cart promo */
.cart-promo {
    margin-bottom: var(--space-4);
}

.cart-promo__form {
    margin: 0;
}

.cart-promo__input-group {
    display: flex;
    gap: var(--space-2);
}

.cart-promo__input {
    flex: 1;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    transition: border-color var(--transition-fast);
}

.cart-promo__input:focus {
    border-color: var(--color-primary);
    outline: none;
}

.cart-promo__btn {
    padding: var(--space-2) var(--space-3);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.cart-promo__btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.cart-promo__applied {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: #F0FAF0;
    border: 1px solid #D4ECD4;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: #2D7A2D;
}

.cart-promo__discount {
    margin-left: auto;
    font-weight: 700;
}

/* Cart totals */
.cart-totals {
    margin-bottom: var(--space-4);
}

.cart-totals__row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
}

.cart-totals__row--discount {
    color: #2D7A2D;
}

.cart-totals__free {
    color: #2D7A2D;
    font-weight: 600;
}

.cart-totals__row--total {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text);
    border-top: 2px solid var(--color-border);
    padding-top: var(--space-3);
    margin-top: var(--space-2);
}

/* Checkout button */
.cart-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.cart-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    text-decoration: none;
    padding: var(--space-3) 0;
    transition: color var(--transition-fast);
}

.cart-continue:hover {
    color: var(--color-primary);
}

/* Trust badges */
.cart-trust {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-light);
    margin-top: var(--space-2);
}

.cart-trust__item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.cart-trust__item svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   18. CHECKOUT
   -------------------------------------------------------------------------- */

/* Checkout steps */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: var(--space-8) 0 var(--space-4);
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: var(--text-sm);
}

.checkout-step--active {
    color: var(--color-primary);
    font-weight: 600;
}

.checkout-step--done {
    color: #2D7A2D;
}

.checkout-step__number {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: 700;
}

.checkout-step--active .checkout-step__number {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.checkout-step--done .checkout-step__number {
    background: #2D7A2D;
    color: var(--color-white);
    border-color: #2D7A2D;
}

.checkout-step__line {
    width: 60px;
    height: 2px;
    background: var(--color-border);
    margin: 0 var(--space-2);
}

.checkout-step__line--done {
    background: #2D7A2D;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding-bottom: var(--space-8);
}

/* Checkout sections */
.checkout-section {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    margin-bottom: var(--space-4);
}

.checkout-section__header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-primary);
}

.checkout-section__header h2 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.checkout-login-prompt {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
    padding: var(--space-2) var(--space-3);
    background: var(--color-bg);
    border-radius: var(--radius-md);
}

.checkout-login-prompt a {
    color: var(--color-primary);
    font-weight: 600;
}

.checkout-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
}

/* Checkout summary */
.checkout-summary {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
    position: sticky;
    top: var(--space-4);
    align-self: start;
}

.checkout-summary__title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border-light);
}

/* Checkout items */
.checkout-items {
    margin-bottom: var(--space-4);
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
}

.checkout-item + .checkout-item {
    border-top: 1px solid var(--color-border-light);
}

.checkout-item__img {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--color-border-light);
}

.checkout-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item__qty {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-item__info {
    flex: 1;
    min-width: 0;
}

.checkout-item__name {
    font-weight: 600;
    font-size: var(--text-sm);
    display: block;
    line-height: 1.3;
}

.checkout-item__variant {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.checkout-item__price {
    font-weight: 600;
    font-size: var(--text-sm);
    white-space: nowrap;
}

/* Checkout totals */
.checkout-totals {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-3);
    margin-bottom: var(--space-4);
}

.checkout-totals__row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
}

.checkout-totals__row--discount {
    color: #2D7A2D;
}

.checkout-totals__row--total {
    font-size: var(--text-xl);
    font-weight: 700;
    border-top: 2px solid var(--color-border);
    padding-top: var(--space-3);
    margin-top: var(--space-2);
}

/* Checkout payment */
.checkout-payment {
    border-top: 1px solid var(--color-border-light);
    padding-top: var(--space-4);
    margin-bottom: var(--space-4);
}

.checkout-payment h3 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.stripe-card-element {
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    margin-bottom: var(--space-3);
    transition: border-color var(--transition-fast);
}

.stripe-card-element:focus-within {
    border-color: var(--color-primary);
}

.stripe-errors {
    color: var(--color-danger);
    font-size: var(--text-sm);
    min-height: 1.2em;
    margin-bottom: var(--space-3);
}

.checkout-pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-weight: 700;
}

.checkout-pay-btn .spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Carrier cards */
.carrier-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.carrier-card {
    display: flex;
    cursor: pointer;
    margin: 0;
}

.carrier-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.carrier-card__content {
    flex: 1;
    padding: var(--space-4);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background: var(--color-white);
}

.carrier-card input:checked + .carrier-card__content {
    border-color: #CC9676;
    box-shadow: 0 0 0 3px rgba(204, 150, 118, 0.15);
}

.carrier-card:hover .carrier-card__content {
    border-color: #CC9676;
}

.carrier-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-1);
}

.carrier-card__name {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-text);
}

.carrier-card__price {
    font-weight: 700;
    font-size: var(--text-sm);
    color: #CC9676;
}

.carrier-card__price--free {
    color: #2D7A2D;
}

.carrier-card__desc {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    line-height: 1.4;
}

.carrier-card__type {
    display: inline-block;
    font-size: 11px;
    color: var(--color-text-muted);
    background: var(--color-bg);
    padding: 2px var(--space-2);
    border-radius: var(--radius-sm);
    margin-top: var(--space-1);
}

/* Payment separator */
.checkout-payment-separator {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-4) 0;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-weight: 600;
}

.checkout-payment-separator::before,
.checkout-payment-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

/* e-Transactions button */
.checkout-etransactions-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-weight: 600;
    border: 2px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.checkout-etransactions-btn:hover {
    border-color: #CC9676;
    background: rgba(204, 150, 118, 0.05);
}

/* Checkout trust */
.checkout-trust {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    padding-top: var(--space-3);
}

.checkout-trust__item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.checkout-trust__item svg,
.cart-trust__item svg,
.checkout-section__header svg,
.checkout-payment h3 svg,
.checkout-pay-btn svg,
.cart-checkout-btn svg,
.cart-continue svg,
.cart-shipping-progress__icon svg,
.reassurance-bar__icon svg {
    display: inline-block;
    flex-shrink: 0;
}

/* Checkout form styling */
.checkout-section label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.checkout-section .required {
    color: var(--color-primary);
}

.checkout-section .form-row {
    grid-template-columns: 1fr 1fr;
}

.checkout-summary__item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.checkout-summary__item:last-of-type {
    border-bottom: none;
}

.checkout-summary__img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.checkout-summary__item-info {
    flex: 1;
    min-width: 0;
}

.checkout-summary__item-name {
    font-size: var(--text-sm);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-summary__item-qty {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.checkout-summary__item-price {
    font-size: var(--text-sm);
    font-weight: 600;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   19. FORMS
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: var(--space-5);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.form-label--required::after {
    content: " *";
    color: var(--color-danger);
}

.form-control,
.form-input {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus,
.form-input:focus {
    outline: none;
    border-color: #CC9676;
    box-shadow: 0 0 0 3px rgba(204, 150, 118, 0.25);
}

.form-control::placeholder,
.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-control--error {
    border-color: var(--color-danger);
}

.form-control--error:focus {
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a5a5a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

.form-error {
    font-size: var(--text-xs);
    color: var(--color-danger);
    margin-top: var(--space-1);
}

/* Checkbox / Radio custom */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.form-check__label {
    font-size: var(--text-sm);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   20. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 12px 24px;
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.5;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Aliases for both naming patterns */
.btn--primary,
.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn--primary:hover,
.btn-primary:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: var(--color-white);
}

.btn--secondary,
.btn-secondary {
    background: #6A8C36;
    color: var(--color-white);
    border-color: #6A8C36;
}

.btn--secondary:hover,
.btn-secondary:hover {
    background: #557A28;
    border-color: #557A28;
    color: var(--color-white);
}

.btn--outline,
.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--outline:hover,
.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--outline-white {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline-white:hover {
    background: var(--color-white);
    color: #444649;
    border-color: var(--color-white);
}

.btn--danger {
    background: var(--color-danger);
    color: var(--color-white);
    border-color: var(--color-danger);
}

.btn--danger:hover {
    background: #a93226;
    border-color: #a93226;
    color: var(--color-white);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text);
    border-color: transparent;
}

.btn--ghost:hover {
    background: var(--color-bg);
}

.btn--sm,
.btn-sm {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
}

.btn--lg,
.btn-lg {
    padding: 16px 32px;
    font-size: var(--text-base);
}

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

.btn:disabled,
.btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn--loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn--loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
    color: var(--color-white);
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* White button variant (for use on dark backgrounds) */
.btn-white,
.btn--white {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
    font-weight: 700;
}

.btn-white:hover,
.btn--white:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border-color: var(--color-white);
}

/* --------------------------------------------------------------------------
   21. FLASH MESSAGES / ALERTS
   -------------------------------------------------------------------------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    line-height: 1.5;
    border-left: 4px solid;
    position: relative;
}

.alert-success,
.alert--success {
    background: var(--color-success-bg);
    border-left-color: var(--color-success);
    color: var(--color-success);
}

.alert-error,
.alert--error {
    background: var(--color-danger-bg);
    border-left-color: var(--color-danger);
    color: var(--color-danger);
}

.alert-warning,
.alert--warning {
    background: var(--color-warning-bg);
    border-left-color: var(--color-warning);
    color: #7a6100;
}

.alert-info,
.alert--info {
    background: var(--color-info-bg);
    border-left-color: var(--color-info);
    color: var(--color-info);
}

.alert__close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    font-size: var(--text-lg);
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    transition: opacity var(--transition-fast);
}

.alert__close:hover {
    opacity: 1;
}

.flash-messages {
    padding: var(--space-4) 0 0;
}

/* --------------------------------------------------------------------------
   22. PAGINATION
   -------------------------------------------------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    margin: var(--space-8) 0 var(--space-4);
}

.pagination ul {
    display: flex;
    gap: var(--space-1);
}

.pagination li {
    display: flex;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.pagination a:hover {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}

.pagination .active span {
    background: var(--color-primary);
    color: var(--color-white);
}

.pagination .disabled span {
    color: var(--color-text-muted);
    cursor: not-allowed;
}

.pagination .dots span {
    cursor: default;
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   23. BREADCRUMBS
   -------------------------------------------------------------------------- */
.breadcrumbs,
.breadcrumb {
    padding: var(--space-3) 0;
}

.breadcrumbs__list,
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--color-text-muted);
}

.breadcrumbs__item:not(:last-child)::after {
    content: "/";
    margin-left: var(--space-1);
    opacity: 0.5;
}

.breadcrumbs__link,
.breadcrumb a {
    color: var(--color-text-light);
    transition: color var(--transition-fast);
}

.breadcrumbs__link:hover,
.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumbs__current {
    color: var(--color-text);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   24. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
    background: #2C2C2C;
    color: rgba(255, 255, 255, 0.85);
    margin-top: auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: 60px 0;
}

.footer-col__title,
.footer__heading {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 700;
    color: #CC9676;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid rgba(204, 150, 118, 0.3);
}

.footer-col p {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    opacity: 0.85;
}

.footer-col__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-col__links a,
.footer__link {
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-col__links a:hover,
.footer__link:hover {
    color: var(--color-white);
}

/* Social links */
.social-links {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    transition: background var(--transition-fast);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Newsletter in footer */
.footer-newsletter {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.footer-newsletter__input {
    flex: 1;
    padding: var(--space-2) var(--space-3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    font-size: var(--text-sm);
    transition: border-color var(--transition-fast);
}

.footer-newsletter__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter__input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

/* Footer bottom */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding: var(--space-6) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.55);
}

.payment-icons {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    justify-content: center;
}

.payment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: var(--space-1) var(--space-2);
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.02em;
    min-width: 48px;
    height: 28px;
}

/* --------------------------------------------------------------------------
   25. COOKIE CONSENT
   -------------------------------------------------------------------------- */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: var(--space-5) var(--space-4);
    z-index: 9999;
    transform: translateY(0);
    transition: transform var(--transition-slow);
}

.cookie-consent.is-hidden {
    transform: translateY(100%);
    pointer-events: none;
}

.cookie-consent__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.cookie-consent__text {
    flex: 1;
    font-size: var(--text-sm);
    color: var(--color-text-light);
    min-width: 250px;
}

.cookie-consent__text a {
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   26. ACCOUNT PAGES
   -------------------------------------------------------------------------- */
.account-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: var(--space-10) 0;
}

.account-sidebar {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

.account-nav {
    display: flex;
    overflow-x: auto;
    gap: var(--space-1);
    scrollbar-width: thin;
}

.account-nav__link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--color-text);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-lg);
    white-space: nowrap;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    border-left: 3px solid transparent;
    text-decoration: none;
}

.account-nav__link:hover {
    background: var(--color-primary-subtle);
    color: #B07D5E;
}

.account-nav__link.is-active {
    background: var(--color-primary-subtle);
    color: #CC9676;
    border-left-color: #CC9676;
    font-weight: 700;
}

.account-nav__link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.account-content {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

.account-content h1 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: #3D2B1F;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--color-border-light);
}

.account-content h2 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: #3D2B1F;
    margin-bottom: var(--space-4);
}

.account-content__title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border-light);
}

/* Welcome message */
.welcome-message {
    font-size: var(--text-lg);
    color: var(--color-text-light);
    margin-bottom: var(--space-8);
    line-height: var(--leading-relaxed);
}

.welcome-message strong {
    color: #3D2B1F;
    font-weight: 700;
}

/* Dashboard cards - quick action grid */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-5);
    margin-bottom: var(--space-10);
}

.dashboard-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-8) var(--space-5);
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all var(--transition-base);
    text-align: center;
}

.dashboard-card:hover {
    border-color: #CC9676;
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    color: #CC9676;
}

.dashboard-card svg {
    color: #CC9676;
    transition: transform var(--transition-base);
}

.dashboard-card:hover svg {
    transform: scale(1.1);
}

/* Dashboard section */
.dashboard-section {
    margin-top: var(--space-8);
}

.dashboard-section h2 {
    margin-bottom: var(--space-4);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-4);
    color: var(--color-text-light);
}

.empty-state p {
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
}

.empty-state .btn {
    margin-top: var(--space-2);
}

/* Section header row (title + action button) */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.section-header-row h1 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Form card (account forms) */
.form-card {
    max-width: 680px;
}

.form-card fieldset {
    border: none;
    padding: 0;
    margin: 0 0 var(--space-8) 0;
}

.form-card legend {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: #3D2B1F;
    padding-bottom: var(--space-3);
    margin-bottom: var(--space-5);
    border-bottom: 1px solid var(--color-border-light);
    width: 100%;
    display: block;
}

/* Form actions (submit + cancel) */
.form-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border-light);
    margin-top: var(--space-6);
}

/* Inline form (used for delete buttons) */
.inline-form {
    display: inline;
}

/* ---- Address Grid & Cards ---- */
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
}

.address-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.address-card:hover {
    border-color: #CC9676;
    box-shadow: var(--shadow-md);
}

.address-card__label {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: #3D2B1F;
    margin-bottom: var(--space-2);
}

.address-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.address-card address {
    font-style: normal;
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-text-light);
    flex: 1;
    margin-bottom: var(--space-4);
}

.address-card address strong {
    color: var(--color-text);
    display: block;
    margin-bottom: var(--space-1);
}

.address-card__actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-light);
    margin-top: auto;
}

/* ---- Order Detail ---- */
.order-date {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-8);
}

/* Order Timeline */
.order-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: var(--space-8) var(--space-4);
    margin-bottom: var(--space-8);
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    position: relative;
    overflow: hidden;
}

.order-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: var(--space-8);
    right: var(--space-8);
    height: 3px;
    background: var(--color-border-light);
    transform: translateY(-8px);
    z-index: 0;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    position: relative;
    z-index: 1;
    flex: 1;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-white);
    border: 3px solid var(--color-border);
    transition: all var(--transition-base);
}

.timeline-step.active .timeline-dot {
    background: #CC9676;
    border-color: #CC9676;
    box-shadow: 0 0 0 4px rgba(204, 150, 118, 0.2);
}

.timeline-step.current .timeline-dot {
    background: #CC9676;
    border-color: #CC9676;
    box-shadow: 0 0 0 6px rgba(204, 150, 118, 0.25);
    transform: scale(1.2);
}

.timeline-label {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-text-muted);
    text-align: center;
    white-space: nowrap;
}

.timeline-step.active .timeline-label {
    color: #3D2B1F;
    font-weight: 700;
}

.timeline-step.current .timeline-label {
    color: #CC9676;
    font-weight: 700;
}

/* Order tracking */
.order-tracking {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-8);
}

.order-tracking h3 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: #3D2B1F;
    margin-bottom: var(--space-3);
}

.order-tracking p {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-1);
}

.order-tracking a {
    color: #CC9676;
    font-weight: 600;
    text-decoration: underline;
}

.order-tracking a:hover {
    color: #B07D5E;
}

/* Order items */
.order-items {
    margin-bottom: var(--space-8);
}

.order-items h2 {
    margin-bottom: var(--space-4);
}

.order-items .table tfoot td {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--color-border-light);
}

.order-items .table tfoot tr:last-child td {
    border-bottom: none;
}

.total-row td {
    font-size: var(--text-base) !important;
    padding-top: var(--space-4) !important;
    border-top: 2px solid #3D2B1F !important;
    border-bottom: none !important;
}

/* Order addresses */
.order-addresses {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.address-col {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
}

.address-col h3 {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 700;
    color: #3D2B1F;
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-border-light);
}

.address-col address {
    font-style: normal;
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-text-light);
}

/* Badge variants missing */
.badge-primary,
.badge--primary {
    background: var(--color-primary-subtle);
    color: #CC9676;
}

.badge-secondary,
.badge--secondary {
    background: #F3F3F3;
    color: var(--color-text-light);
}

/* Auth description */
.auth-description {
    text-align: center;
    color: var(--color-text-light);
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
    line-height: var(--leading-relaxed);
    padding: 0 var(--space-8);
}

/* --------------------------------------------------------------------------
   27. TABLES (RESPONSIVE)
   -------------------------------------------------------------------------- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead {
    background: var(--color-bg-alt);
}

.table th {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 600;
    text-align: left;
    color: var(--color-text-light);
    white-space: nowrap;
}

.table td {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: middle;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:hover {
    background: var(--color-bg);
}

/* --------------------------------------------------------------------------
   28. MINI CART (DROPDOWN)
   -------------------------------------------------------------------------- */
.mini-cart {
    position: absolute;
    top: 100%;
    right: 0;
    width: 340px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 50;
    display: none;
    overflow: hidden;
}

.mini-cart.is-open {
    display: block;
    animation: slideDown var(--transition-base) ease;
}

.mini-cart__header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
    font-weight: 700;
    font-size: var(--text-sm);
}

.mini-cart__items {
    max-height: 280px;
    overflow-y: auto;
}

.mini-cart__item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
}

.mini-cart__item:last-child {
    border-bottom: none;
}

.mini-cart__item-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.mini-cart__item-info {
    flex: 1;
    min-width: 0;
}

.mini-cart__item-name {
    font-size: var(--text-sm);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-cart__item-meta {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.mini-cart__item-price {
    font-size: var(--text-sm);
    font-weight: 600;
    flex-shrink: 0;
}

.mini-cart__footer {
    padding: var(--space-4);
    border-top: 1px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.mini-cart__subtotal {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
}

.mini-cart__empty {
    padding: var(--space-8);
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

/* --------------------------------------------------------------------------
   29. ERROR PAGES
   -------------------------------------------------------------------------- */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-20) var(--space-4);
    min-height: 50vh;
}

.error-page__code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-4);
    font-family: var(--font-heading);
}

.error-page__title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
}

.error-page__text {
    color: var(--color-text-light);
    margin-bottom: var(--space-8);
    max-width: 480px;
}

.error-page__search {
    width: 100%;
    max-width: 400px;
    margin-bottom: var(--space-6);
}

/* --------------------------------------------------------------------------
   30. BLANK / AUTH LAYOUT
   -------------------------------------------------------------------------- */
.auth-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #FAF8F5;
    padding: var(--space-4);
}

.auth-card {
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 0;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.auth-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #CC9676, #B07D5E, #CC9676);
}

.auth-card > .auth-logo,
.auth-card > .alert,
.auth-card > h1,
.auth-card > form,
.auth-card > .auth-divider,
.auth-card > .social-login,
.auth-card > p {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
}

.auth-form {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0 var(--space-8);
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    margin-bottom: var(--space-6);
    padding-top: var(--space-8);
}

.auth-logo__name {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: #CC9676;
}

.auth-logo__tagline {
    font-size: var(--text-sm);
    color: #999;
    font-style: italic;
}

.auth-card h1 {
    text-align: center;
    font-size: var(--text-2xl);
    color: #444649;
    margin-bottom: var(--space-6);
    font-weight: 700;
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-8);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.auth-footer a {
    color: #CC9676;
    transition: color var(--transition-fast);
}

.auth-footer a:hover {
    color: #B07D5E;
}

/* Auth form enhancements */
.auth-form .form-group label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: #444649;
    margin-bottom: var(--space-2);
    display: block;
}

.auth-form .form-control {
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid #E5E0DB;
    font-size: var(--text-base);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-form .form-control:focus {
    border-color: #CC9676;
    box-shadow: 0 0 0 3px rgba(204, 150, 118, 0.25);
}

.auth-form .btn--primary {
    background: #CC9676;
    border-color: #CC9676;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: var(--text-base);
    font-weight: 700;
    margin-top: var(--space-2);
}

.auth-form .btn--primary:hover {
    background: #B07D5E;
    border-color: #B07D5E;
}

/* Auth divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin: var(--space-6) 0;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E5E0DB;
}

/* Social login buttons */
.social-login {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.btn--social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    border: 2px solid transparent;
}

.btn--google {
    background: var(--color-white);
    color: #444649;
    border-color: #E5E0DB;
}

.btn--google:hover {
    background: #F3F3F3;
    border-color: #ccc;
    color: #444649;
}

.btn--facebook {
    background: #1877F2;
    color: var(--color-white);
    border-color: #1877F2;
}

.btn--facebook:hover {
    background: #1565D8;
    border-color: #1565D8;
    color: var(--color-white);
}

/* Auth link */
.auth-link {
    color: #CC9676;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.auth-link:hover {
    color: #B07D5E;
}

/* Auth footer text */
.auth-footer-text {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-top: var(--space-6);
    padding-bottom: var(--space-8);
}

.auth-footer-text a {
    color: #CC9676;
    font-weight: 600;
}

.auth-footer-text a:hover {
    color: #B07D5E;
}

/* Checkbox label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: #CC9676;
    width: 16px;
    height: 16px;
}

/* Form row between */
.form-row--between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-5);
}

/* Required asterisk */
.required {
    color: #C23535;
}

/* Form help text */
.form-help {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

/* --------------------------------------------------------------------------
   SEARCH PAGE
   -------------------------------------------------------------------------- */
.search-hero {
    background: linear-gradient(135deg, #3D2B1F 0%, #5C3D2E 40%, #7A5640 70%, #CC9676 100%);
    padding: var(--space-10) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.search-hero h1 {
    color: var(--color-white);
    font-size: var(--text-3xl);
    font-weight: 800;
    margin-bottom: var(--space-6);
}

.search-hero__form {
    max-width: 640px;
    margin: 0 auto;
}

.search-hero__input-wrap {
    display: flex;
    align-items: center;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.search-hero__icon {
    display: inline-block;
    flex-shrink: 0;
    margin-left: var(--space-4);
    color: var(--color-text-muted);
}

.search-hero__input {
    flex: 1;
    border: none;
    background: none;
    padding: var(--space-3) var(--space-3);
    font-size: var(--text-lg);
    outline: none;
    min-width: 0;
}

.search-hero__btn {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--text-base);
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition-fast);
}

.search-hero__btn:hover {
    background: #B07D5E;
}

.search-results-bar {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: var(--space-6);
}

.search-results-bar__count {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.search-empty {
    text-align: center;
    padding: var(--space-16) var(--space-4);
}

.search-empty__icon {
    color: var(--color-primary);
    opacity: 0.3;
    margin-bottom: var(--space-4);
}

.search-empty__icon svg {
    display: inline-block;
}

.search-empty h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}

.search-empty p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}

.search-empty__hint {
    font-size: var(--text-sm);
}

.search-empty__categories {
    margin-top: var(--space-8);
}

.search-empty__categories > span {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
}

.search-empty__links {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   31. UTILITY CLASSES
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-lg { font-size: var(--text-lg); }
.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.text-danger { color: var(--color-danger); }
.text-success { color: var(--color-success); }
.text-white { color: var(--color-white); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }

.mx-auto { margin-left: auto; margin-right: auto; }
.p-0 { padding: 0; }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }

.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.show-mobile { display: none; }
.hide-mobile { display: block; }

.bg-white { background: var(--color-white); }
.bg-alt { background: var(--color-bg-alt); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.shadow { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }

.w-full { width: 100%; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }

/* --------------------------------------------------------------------------
   32. MEDIA QUERIES
   -------------------------------------------------------------------------- */

/* 480px - Small phones landscape */
@media (min-width: 480px) {
    .products-grid,
    .product-grid,
    .product-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 768px - Tablets */
@media (min-width: 768px) {
    :root {
        --header-height: 80px;
    }

    .container {
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }

    .main-nav {
        display: block;
    }

    .hamburger,
    .show-mobile {
        display: none !important;
    }

    .hide-mobile {
        display: block;
    }

    .grid--2, .grid--3, .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid,
    .product-grid,
    .product-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-layout {
        grid-template-columns: var(--sidebar-width) 1fr;
    }

    .category-layout__sidebar {
        order: 0;
    }

    .filters-sidebar {
        position: sticky;
        top: calc(var(--header-height) + var(--space-4));
    }

    .product-detail {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
        align-items: start;
    }

    .product-info {
        position: sticky;
        top: calc(var(--header-height) + var(--space-6));
    }

    .product-info__title {
        font-size: var(--text-4xl);
    }

    .product-tabs__panel {
        padding: var(--space-10) var(--space-8);
    }

    .checkout-layout {
        grid-template-columns: 1fr 400px;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }

    .account-layout {
        grid-template-columns: 260px 1fr;
    }

    .account-nav {
        flex-direction: column;
    }

    .account-sidebar {
        position: sticky;
        top: calc(var(--header-height) + var(--space-4));
        align-self: start;
    }

    .order-addresses {
        grid-template-columns: 1fr 1fr;
    }

    .auth-card,
    .auth-form {
        padding: var(--space-10) var(--space-8);
    }

    .cart-layout {
        grid-template-columns: 1fr 380px;
    }

    .hero__title,
    .hero-content h1 {
        font-size: var(--text-5xl);
    }

    .reassurance-bar__inner {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
    }
}

/* 1024px - Desktop */
@media (min-width: 1024px) {
    .products-grid,
    .product-grid,
    .product-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid--4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-main {
        grid-template-columns: repeat(4, 1fr);
    }

    .site-logo__name {
        font-size: 1.4rem;
    }

    .main-nav__link {
        font-size: var(--text-base);
    }

    .main-nav__list {
        gap: var(--space-8);
    }
}

/* 1200px - Large desktop */
@media (min-width: 1200px) {
    .products-grid,
    .product-grid,
    .product-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .container--wide {
        padding-left: var(--space-8);
        padding-right: var(--space-8);
    }
}

/* Cart responsive: hide table on mobile, show cards */
@media (max-width: 767px) {
    .cart-table {
        display: none;
    }

    .cart-mobile {
        display: block;
    }

    .show-mobile {
        display: block;
    }

    .show-mobile.hamburger {
        display: flex;
    }

    .hide-mobile {
        display: none;
    }

    .promo-bar .separator {
        display: none;
    }

    .promo-bar span {
        display: block;
        line-height: 1.6;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent__inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent__actions {
        width: 100%;
        justify-content: center;
    }

    .checkout-summary {
        position: static;
    }

    .hero__title,
    .hero-content h1 {
        font-size: var(--text-4xl);
    }

    .hero__subtitle,
    .hero-subtitle {
        font-size: var(--text-base);
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .newsletter-input-group .btn {
        width: 100%;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    /* Product page mobile overrides */
    .mobile-sticky-cart {
        display: block;
    }

    .product-gallery__main {
        border-radius: var(--radius-lg);
    }

    .product-gallery__fullscreen-btn {
        width: 36px;
        height: 36px;
        bottom: var(--space-3);
        right: var(--space-3);
    }

    .product-info__trust {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-tabs__nav {
        padding: 0;
    }

    .product-tabs__btn svg {
        display: none;
    }

    .product-tabs__panel {
        padding: var(--space-6) var(--space-4);
    }

    .product-add-form__actions {
        flex-direction: column;
    }

    .product-add-form__submit {
        width: 100%;
    }

    .quantity-input {
        align-self: stretch;
        justify-content: center;
    }

    .quantity-input__field {
        flex: 1;
    }

    .lightbox__nav {
        width: 40px;
        height: 40px;
    }

    .lightbox__nav--prev {
        left: var(--space-2);
    }

    .lightbox__nav--next {
        right: var(--space-2);
    }

    .related-section__header {
        gap: var(--space-3);
    }

    .related-section__title {
        font-size: var(--text-xl);
    }
}

/* --------------------------------------------------------------------------
   33. ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn var(--transition-base) ease forwards;
}

.animate-slide-up {
    animation: slideUp var(--transition-base) ease forwards;
}

/* --------------------------------------------------------------------------
   34. LEGAL / CMS PAGES
   -------------------------------------------------------------------------- */
.legal-hero {
    background: linear-gradient(135deg, #5C3D2E 0%, #CC9676 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}
.legal-hero__title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    font-family: var(--font-heading);
    letter-spacing: 0.01em;
}

.legal-page {
    background: var(--color-bg);
}
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    line-height: 1.8;
    color: #444649;
}

/* Table of contents */
.legal-toc {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    margin-bottom: 40px;
}
.legal-toc__title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: var(--color-black) !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    border: none !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.legal-toc__list {
    margin: 0;
    padding-left: 20px;
    list-style: decimal;
}
.legal-toc__list li {
    margin-bottom: 6px;
    font-size: 0.95rem;
}
.legal-toc__list a {
    color: var(--color-primary-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.legal-toc__list a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Content typography */
.legal-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2C2C2C;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #CC9676;
    font-family: var(--font-heading);
    scroll-margin-top: 100px;
}
.legal-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #444649;
    margin-top: 32px;
    margin-bottom: 12px;
}
.legal-body p {
    margin-bottom: 16px;
}
.legal-body ul, .legal-body ol {
    margin: 16px 0;
    padding-left: 24px;
}
.legal-body li {
    margin-bottom: 8px;
}
.legal-body a {
    color: #CC9676;
    text-decoration: underline;
}
.legal-body a:hover {
    color: #B07D5E;
}
.legal-body strong {
    color: #2C2C2C;
}
.legal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
}
.legal-body th, .legal-body td {
    padding: 12px;
    border: 1px solid #E5E0DB;
    text-align: left;
}
.legal-body th {
    background: #FAF8F5;
    font-weight: 600;
    color: #2C2C2C;
}
.legal-body blockquote {
    border-left: 4px solid #CC9676;
    margin: 24px 0;
    padding: 16px 24px;
    background: #FAF8F5;
    color: #555;
    font-style: italic;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.legal-meta {
    text-align: center;
    color: #999;
    font-size: 0.875rem;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #E5E0DB;
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 40px 0;
    }
    .legal-hero__title {
        font-size: 1.6rem;
    }
    .legal-content {
        padding: 32px 16px 60px;
    }
    .legal-body h2 {
        font-size: 1.3rem;
        margin-top: 36px;
    }
    .legal-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .legal-toc {
        padding: 16px 20px;
    }
}

/* --------------------------------------------------------------------------
   35. PRINT STYLES
   -------------------------------------------------------------------------- */
@media print {
    *,
    *::before,
    *::after {
        background: transparent;
        color: #000;
        box-shadow: none;
        text-shadow: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .promo-bar,
    .site-header,
    .site-footer,
    .cookie-consent,
    .mobile-nav,
    .mini-cart,
    .breadcrumbs,
    .flash-messages,
    .filters,
    .pagination,
    .btn,
    .search-overlay {
        display: none;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #555;
    }

    a[href^="#"]::after,
    a[href^="javascript"]::after {
        content: "";
    }

    img {
        max-width: 100%;
        page-break-inside: avoid;
    }

    h2, h3 {
        page-break-after: avoid;
    }

    table {
        border-collapse: collapse;
    }

    table th,
    table td {
        border: 1px solid #ccc;
        padding: 6px 10px;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .product-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
