/* =====================================================
   Sufi Woodwork — Clay & Slate (Unique Modern)
   Ink · Stone · Burnt Clay · Cool Slate · Warm Wood
   Fully Responsive: 320px - 4K
   ===================================================== */

:root {
    /* Unique palette */
    --ink: #0F0E0D;
    --ink-soft: #1A1918;
    --stone-900: #2A2826;
    --stone-600: #5C5854;
    --stone-400: #9A948C;
    --stone-200: #E5E2DC;
    --stone-100: #F2F0EC;
    --snow: #FDFCFB;

    --clay: #C75B39;
    --clay-dark: #A84A2E;
    --clay-light: #FAEDE8;
    --slate: #3E5566;
    --slate-dark: #2D3F4D;
    --slate-light: #E8EEF3;
    --wood: #B8956A;
    --wood-light: #F5EDE3;

    /* Mapped tokens */
    --linen: var(--stone-100);
    --cream: var(--stone-100);
    --ivory: var(--snow);
    --birch: var(--stone-200);
    --pearl: var(--stone-200);
    --espresso: var(--ink);
    --walnut: var(--ink-soft);
    --charcoal: var(--stone-900);
    --graphite: var(--stone-600);
    --silver: var(--stone-400);
    --teak: var(--stone-600);
    --camel: var(--clay);
    --camel-dark: var(--clay-dark);
    --camel-light: var(--clay-light);
    --champagne: var(--wood);
    --sage: var(--slate);
    --sage-light: var(--slate-light);
    --sage-dark: var(--slate-dark);
    --black: var(--ink);
    --onyx: var(--ink-soft);
    --mahogany: var(--stone-900);
    --oak: var(--wood);
    --copper: var(--clay);
    --maple: var(--wood);
    --bone: var(--stone-100);
    --white: var(--snow);
    --brass: var(--wood);
    --brass-light: var(--wood-light);
    --terracotta: var(--clay);
    --terracotta-dark: var(--clay-dark);
    --sand: var(--wood-light);
    --olive: var(--slate);

    /* Semantic */
    --success: #3D6B5A;
    --danger: #C44B47;
    --warning: var(--wood);

    /* Layout */
    --container-max: 1600px;
    --container-pad: clamp(20px, 4vw, 60px);
    --section-pad: clamp(60px, 8vw, 120px);

    /* Effects */
    --shadow-xs: 0 1px 3px rgba(15, 14, 13, 0.05);
    --shadow-sm: 0 6px 24px rgba(15, 14, 13, 0.07);
    --shadow-md: 0 12px 36px rgba(15, 14, 13, 0.09);
    --shadow-lg: 0 20px 50px rgba(15, 14, 13, 0.11);
    --shadow-xl: 0 28px 64px rgba(15, 14, 13, 0.13);
    --shadow-clay: 0 8px 28px rgba(199, 91, 57, 0.28);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    line-height: 1.65;
    color: var(--charcoal);
    background-color: var(--snow);
    background-image:
        radial-gradient(ellipse 120% 80% at 100% 0%, var(--slate-light) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 0% 100%, var(--clay-light) 0%, transparent 45%),
        linear-gradient(180deg, var(--snow) 0%, var(--stone-100) 100%);
    font-size: clamp(14px, 1vw, 16px);
    width: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--onyx);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.container-fluid { width: 100%; padding: 0 var(--container-pad); }

/* ---------- Top Bar ---------- */
.topbar {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 0;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    width: 100%;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.topbar-left a {
    color: rgba(232, 228, 221, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.topbar-left a:hover { color: var(--white); }

.topbar-divider {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.15);
}

.topbar-promo {
    color: var(--wood);
    letter-spacing: 0.06em;
}

.topbar-social {
    display: flex;
    gap: 4px;
}

.topbar-social a {
    color: var(--silver);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.topbar-social a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

/* ---------- Skip link ---------- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    padding: 12px 20px;
    background: var(--onyx);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
}

.skip-link:focus {
    top: 16px;
    outline: 2px solid var(--terracotta);
    outline-offset: 2px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* ---------- Navigation ---------- */
.navbar {
    padding: 18px 0;
    border-bottom: 1px solid transparent;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--birch);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-mark {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.logo:hover .logo-mark {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(44, 24, 16, 0.22);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--onyx);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.logo-tagline {
    font-size: 0.62rem;
    color: var(--clay);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-top: 3px;
    font-family: var(--font-body);
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 36px);
}

.nav-links a {
    color: var(--charcoal);
    font-weight: 500;
    font-size: 0.92rem;
    position: relative;
    padding: 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clay);
    transition: width 0.3s;
}

.nav-links a:hover { color: var(--clay); }
.nav-links a:hover::after { width: 100%; }

.nav-cart {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: var(--clay) !important;
    color: var(--snow) !important;
    border: none;
    padding: 10px 18px !important;
    border-radius: var(--radius-full);
    letter-spacing: 0.06em;
    text-transform: none !important;
    font-size: 0.88rem !important;
}

.nav-cart:hover {
    background: var(--clay-dark) !important;
    color: var(--snow) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-clay);
}

.nav-cart::after { display: none; }

.cart-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--snow);
    color: var(--clay-dark);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    line-height: 1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--pearl);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--onyx);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle:hover {
    border-color: var(--onyx);
    background: var(--white);
}

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

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

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

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, 0.45);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.nav-backdrop.is-visible {
    opacity: 1;
}

body.nav-open {
    overflow: hidden;
}

/* ---------- Hero (Full Width, Edge to Edge) ---------- */
.hero {
    position: relative;
    width: 100%;
    min-height: clamp(480px, 85vh, 880px);
    background:
        linear-gradient(120deg, rgba(15, 14, 13, 0.82) 0%, rgba(45, 63, 77, 0.55) 55%, rgba(199, 91, 57, 0.2) 100%),
        url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?w=1920&q=85') center/cover no-repeat;
    color: var(--snow);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--stone-100), transparent);
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(199, 91, 57, 0.15), transparent 45%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 80px var(--container-pad);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text { max-width: 640px; }

.hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(199, 91, 57, 0.2);
    border: 1px solid rgba(199, 91, 57, 0.5);
    color: var(--wood-light);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

.hero .badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--clay);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(199, 91, 57, 0.9);
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.4rem, 6vw, 5.5rem);
    margin-bottom: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.hero h1 em {
    font-style: italic;
    color: var(--clay);
    font-weight: 400;
    text-shadow: 0 0 40px rgba(199, 91, 57, 0.35);
}

.hero p {
    font-size: clamp(1rem, 1.3vw, 1.18rem);
    margin-bottom: 40px;
    opacity: 0.92;
    max-width: 560px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
}

.hero-stat h3 {
    color: var(--clay);
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 6px;
    font-weight: 600;
}

.hero-stat p {
    color: var(--pearl);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

/* ---------- Section ---------- */
.section { padding: var(--section-pad) 0; width: 100%; }
.section-dark { background: var(--onyx); color: var(--pearl); }
.section-light { background: var(--white); }
.section-cream { background: var(--cream); }

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.section-header .eyebrow {
    display: inline-block;
    color: var(--slate);
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 18px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    margin-bottom: 18px;
    font-weight: 500;
}

.section-header h2 em {
    font-style: italic;
    color: var(--clay);
}

.section-header .divider {
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--clay), var(--slate));
    border-radius: 4px;
    margin: 18px auto;
}

.section-header p {
    color: var(--graphite);
    font-size: 1.05rem;
    line-height: 1.7;
}

.section-dark .section-header p { color: var(--silver); }
.section-dark .section-header h2 { color: var(--white); }

/* ---------- Features Strip ---------- */
.features-strip {
    background: var(--snow);
    padding: 60px 0;
    border-top: 1px solid var(--stone-200);
    border-bottom: 1px solid var(--stone-200);
    width: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 20px;
    background: var(--snow);
    border-radius: var(--radius-lg);
    border: 1px solid var(--stone-200);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--clay);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.feature-item i {
    font-size: 2.4rem;
    color: var(--clay);
    opacity: 0.9;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    font-weight: 600;
    color: var(--onyx);
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--graphite);
    line-height: 1.5;
    margin: 0;
}

/* ---------- About Section ---------- */
.about-section { background: var(--snow); padding: var(--section-pad) 0; width: 100%; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: clamp(400px, 50vw, 600px);
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 50%;
    height: 50%;
    border: 3px solid var(--clay);
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0.5;
}

.about-text .eyebrow {
    display: inline-block;
    color: var(--sage);
    font-size: 0.78rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 18px;
}

.about-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    margin-bottom: 24px;
    font-weight: 500;
}

.about-text h2 em { font-style: italic; color: var(--camel); }

.about-text p {
    color: var(--graphite);
    margin-bottom: 18px;
    line-height: 1.8;
    font-size: 1.02rem;
}

.feature-list {
    list-style: none;
    margin: 30px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
}

.feature-list li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: var(--charcoal);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--sage);
    font-weight: bold;
}

/* ---------- Products ---------- */
.products-section { background: var(--stone-100); padding: var(--section-pad) 0; width: 100%; }

.search-bar {
    max-width: 540px;
    margin: 0 auto 50px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 16px 24px 16px 56px;
    border: 1px solid var(--pearl);
    border-radius: 40px;
    font-size: 0.98rem;
    background: var(--white);
    transition: var(--transition);
    font-family: inherit;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--onyx);
    box-shadow: 0 0 0 4px rgba(15, 15, 15, 0.05);
}

.search-bar i {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--graphite);
    font-size: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: clamp(20px, 3vw, 40px);
}

.product-card {
    background: var(--ivory);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--birch);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clay);
}

.product-card .product-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--cream);
}

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

.product-card:hover .product-img img { transform: scale(1.08); }

.product-card .product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--ink);
    color: var(--wood);
    padding: 6px 14px;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    z-index: 2;
}

.product-card .product-body {
    padding: 24px;
}

.product-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--onyx);
    font-weight: 500;
}

.product-card .price {
    color: var(--clay);
    font-weight: 700;
    font-size: 1.35rem;
    font-weight: 600;
    margin: 8px 0 18px;
    font-family: var(--font-body);
}

.product-card .actions { display: flex; gap: 10px; }

.product-card .actions .btn-primary,
.product-card .actions .btn-secondary { flex: 1; font-size: 0.78rem; padding: 12px 8px; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary, .btn-danger, .btn-success, .btn-outline, .btn-light {
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--clay);
    color: var(--snow);
    border: none;
    box-shadow: var(--shadow-clay);
    letter-spacing: 0.08em;
}
.btn-primary:hover {
    background: var(--clay-dark);
    color: var(--snow);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(199, 91, 57, 0.4);
}

.btn-secondary {
    background: var(--snow);
    color: var(--slate);
    border: 2px solid var(--slate);
}
.btn-secondary:hover {
    background: var(--slate);
    color: var(--snow);
    border-color: var(--slate);
}

.btn-outline {
    background: transparent;
    color: var(--snow);
    border: 2px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
}
.btn-outline:hover {
    background: var(--snow);
    color: var(--ink);
    border-color: var(--snow);
}

.btn-light { background: var(--white); color: var(--onyx); }
.btn-light:hover { background: var(--cream); }

.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { opacity: 0.88; }

.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { opacity: 0.88; }

/* ---------- Forms ---------- */
.form-container {
    max-width: 540px;
    margin: 60px auto;
    padding: 50px clamp(24px, 4vw, 50px);
    background: var(--snow);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--stone-200);
    border-top: 4px solid var(--clay);
}

.form-container h2 {
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 500;
}

.form-group { margin-bottom: 22px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--onyx);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--birch);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--linen);
    color: var(--charcoal);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--oak);
    background: var(--ivory);
    box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.15);
}

.form-group textarea { resize: vertical; min-height: 110px; }

/* ---------- Product Detail ---------- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 80px);
    margin: 50px 0;
    background: var(--ivory);
    padding: clamp(24px, 4vw, 60px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--birch);
}

.product-detail-img img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 4px;
}

.product-detail .eyebrow {
    display: inline-block;
    color: var(--terracotta);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.product-detail h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 18px;
    font-weight: 500;
}

.product-detail .price {
    font-size: clamp(2rem, 3vw, 2.6rem);
    color: var(--terracotta);
    margin-bottom: 30px;
    font-weight: 600;
    font-family: var(--font-body);
}

.product-detail h3 {
    margin: 26px 0 10px;
    font-size: 0.9rem;
    color: var(--onyx);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--font-body);
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--pearl);
}

.product-detail p {
    color: var(--graphite);
    margin-bottom: 14px;
    line-height: 1.8;
}

.detail-buttons {
    margin-top: 32px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stock-info {
    margin: 20px 0;
    padding: 14px 18px;
    background: var(--cream);
    border-radius: var(--radius-md);
    color: var(--graphite);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stock-info i { color: var(--success); }
.stock-info strong { color: var(--onyx); }
.stock-info--unavailable { background: #fdf0ee; }
.stock-info--unavailable i { color: var(--error, #c0392b); }

.product-gallery__main {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bone);
    margin-bottom: 12px;
}

.product-gallery__main img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 520px;
}

.product-gallery__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-gallery__thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: none;
    width: 72px;
    height: 72px;
}

.product-gallery__thumb.is-active {
    border-color: var(--terracotta);
}

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

.image-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.image-preview-grid img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--sand);
}

.image-delete-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.image-delete-option img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.review-form-box {
    margin: 24px 0;
    padding: 28px;
    background: var(--bone);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--terracotta);
}

.review-form-box h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.reviews-empty {
    color: var(--graphite);
    padding: 20px 0;
}

.alert-info a {
    color: var(--terracotta);
    font-weight: 600;
}

/* ---------- Reviews ---------- */
.reviews-section {
    margin: 50px 0;
    background: var(--white);
    padding: clamp(24px, 4vw, 50px);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.reviews-section h2 {
    margin-bottom: 30px;
    font-size: 1.6rem;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--pearl);
}

.review-card {
    background: var(--cream);
    border-left: 3px solid var(--sage);
    padding: 24px;
    margin: 16px 0;
    border-radius: 2px;
}

.review-card strong { color: var(--onyx); font-size: 1rem; }

.review-card .rating {
    color: var(--camel);
    margin: 8px 0;
    font-size: 1rem;
    letter-spacing: 2px;
}

.review-card p { margin: 12px 0; color: var(--charcoal); line-height: 1.7; }

.review-card small { color: var(--silver); font-size: 0.82rem; }

.rating-stars {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0 12px;
}

.rating-stars .star-btn,
.rating-stars span {
    cursor: pointer;
    font-size: 2.25rem;
    line-height: 1;
    color: var(--stone-200);
    background: none;
    border: none;
    padding: 4px;
    transition: var(--transition);
}

.rating-stars .star-btn:hover,
.rating-stars .star-btn.active,
.rating-stars span.active,
.rating-stars span:hover {
    color: var(--clay);
    transform: scale(1.08);
}

.rating-selected {
    font-size: 0.9rem;
    color: var(--graphite);
    margin: 0 0 8px;
}

.review-form-intro {
    color: var(--graphite);
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.auth-hint {
    font-size: 0.88rem;
    color: var(--graphite);
    margin-bottom: 18px;
    padding: 12px 14px;
    background: var(--slate-light);
    border-radius: var(--radius-sm);
    line-height: 1.5;
}

.auth-hint--small {
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 0.8rem;
    background: var(--camel-light);
}

.input-userid {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.nav-userid {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--slate);
    padding: 6px 10px;
    background: var(--slate-light);
    border-radius: var(--radius-sm);
}

/* ---------- Admin Panel ---------- */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--bone);
    width: 100%;
}

.admin-sidebar {
    background: var(--onyx);
    width: 280px;
    flex-shrink: 0;
    padding: 30px 20px;
    color: var(--pearl);
    box-shadow: var(--shadow-md);
}

.admin-sidebar h3 {
    color: var(--terracotta);
    padding: 14px 0 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 20px;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    font-family: var(--font-display);
}

.admin-sidebar a {
    color: var(--pearl);
    display: flex;
    align-items: center;
    padding: 14px 16px;
    margin: 4px 0;
    border-radius: 2px;
    transition: var(--transition);
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    border-left: 3px solid transparent;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(200, 89, 62, 0.12);
    border-left-color: var(--terracotta);
    color: var(--white);
}

.admin-content {
    flex: 1;
    padding: clamp(20px, 3vw, 48px);
    min-width: 0;
    width: 100%;
}

.admin-content h2 {
    margin-bottom: 30px;
    font-weight: 500;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

/* ---------- Stats ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.stat-card {
    padding: 32px;
    border-radius: 4px;
    color: var(--white);
    background: var(--onyx);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.stat-card h3 {
    font-size: 0.78rem;
    margin-bottom: 16px;
    color: var(--terracotta);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: var(--font-body);
    font-weight: 600;
}

.stat-card p {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 600;
    color: var(--white);
    font-family: var(--font-display);
    line-height: 1;
}

.stat-card i {
    position: absolute;
    right: 24px;
    bottom: 20px;
    font-size: 3rem;
    opacity: 0.08;
}

.stat-blue { background: var(--onyx); }
.stat-green { background: linear-gradient(135deg, #1F3A1F, #4A7C3D); }
.stat-red { background: linear-gradient(135deg, var(--mahogany), var(--copper)); }
.stat-orange { background: linear-gradient(135deg, var(--oak), var(--maple)); }

/* ---------- Tables ---------- */
.table-container {
    overflow-x: auto;
    background: var(--white);
    border-radius: 4px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-top: 20px;
}

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

table th, table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--pearl);
}

table th {
    background: var(--onyx);
    color: var(--white);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

table tr:hover { background: var(--bone); }
table img { max-width: 60px; border-radius: 2px; }

/* ---------- Alerts ---------- */
.alert {
    padding: 16px 22px;
    margin-bottom: 22px;
    border-radius: 2px;
    border-left: 3px solid;
    font-size: 0.92rem;
}

.alert-success { background: #EAF3E8; color: #2D4A24; border-color: var(--success); }
.alert-error { background: #FBE9E6; color: #6F1F18; border-color: var(--danger); }
.alert-info { background: var(--cream); color: var(--onyx); border-color: var(--terracotta); }

/* ---------- Cart ---------- */
.cart-table {
    background: var(--white);
    border-radius: 4px;
    padding: clamp(20px, 3vw, 40px);
    box-shadow: var(--shadow-sm);
    margin: 30px 0;
}

.cart-total {
    text-align: right;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    font-weight: 600;
    color: var(--terracotta);
    margin-top: 28px;
    padding-top: 24px;
    border-top: 2px solid var(--pearl);
    font-family: var(--font-body);
}

/* ---------- Testimonials / Quote Section ---------- */
.quote-section {
    background: linear-gradient(135deg, var(--ink) 0%, var(--slate-dark) 60%, var(--clay-dark) 100%);
    color: var(--pearl);
    padding: var(--section-pad) 0;
    text-align: center;
    width: 100%;
}

.quote-section blockquote {
    max-width: 900px;
    margin: 0 auto;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    color: var(--white);
}

.quote-section blockquote::before,
.quote-section blockquote::after {
    content: '"';
    color: var(--clay);
    font-size: 3rem;
    line-height: 0;
    vertical-align: -0.4em;
    margin: 0 8px;
}

.quote-section cite {
    display: block;
    margin-top: 24px;
    color: var(--wood);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-style: normal;
    font-weight: 600;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--ink);
    color: var(--pearl);
    padding: clamp(60px, 8vw, 100px) 0 0;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: clamp(30px, 4vw, 60px);
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-col h4 {
    color: var(--clay);
    margin-bottom: 22px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-family: var(--font-body);
    font-weight: 700;
}

.footer-col p, .footer-col a {
    color: var(--silver);
    line-height: 1.9;
    font-size: 0.9rem;
}

.footer-col a:hover { color: var(--maple); }

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }

.footer-brand .footer-logo,
.footer-brand h3 {
    color: var(--white);
    margin-bottom: 6px;
    font-size: 1.8rem;
    font-weight: 500;
    font-family: var(--font-display);
}

.footer-brand .tagline {
    color: var(--wood);
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-brand p { max-width: 360px; }

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.04);
    color: var(--pearl);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.06);
}

.social-links a:hover {
    background: var(--clay);
    color: var(--snow);
    transform: translateY(-3px);
    border-color: var(--clay);
}

.footer-bottom {
    padding: 24px 0;
    font-size: 0.82rem;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p { color: var(--silver); margin: 0; }

.footer-bottom .credit a {
    color: var(--maple);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.footer-bottom .credit a:hover { color: var(--sand); }

/* ---------- Page Header (sub pages) ---------- */
.page-header {
    background:
        linear-gradient(135deg, rgba(15, 14, 13, 0.9), rgba(62, 85, 102, 0.65)),
        url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?w=1600&q=85') center/cover;
    color: var(--white);
    padding: 100px 0 80px;
    text-align: center;
    width: 100%;
}

.page-header .eyebrow {
    display: inline-block;
    color: var(--sand);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 14px;
    font-family: var(--font-body);
}

.page-header h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 500; }
.page-header p { color: var(--pearl); margin-top: 14px; max-width: 600px; margin-left: auto; margin-right: auto; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-text { margin: 0 auto; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-stats { max-width: 540px; margin: 0 auto; }

    .about-grid, .product-detail { grid-template-columns: 1fr; gap: 50px; }
    .about-image::after { display: none; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .feature-list { grid-template-columns: 1fr; }
}

/* ---------- Reveal animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Empty state ---------- */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: clamp(60px, 8vw, 100px) 24px;
    background: var(--white);
    border: 1px solid var(--pearl);
    border-radius: var(--radius-lg);
}

.empty-state i {
    font-size: 3.5rem;
    color: var(--sage);
    margin-bottom: 20px;
    opacity: 0.85;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--graphite);
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- Wood-themed auth (login + register) ---------- */
.auth-wood {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    min-height: calc(100vh - 120px);
    background: var(--linen);
}

.auth-wood__hero {
    position: relative;
    background:
        linear-gradient(165deg, rgba(15, 14, 13, 0.9) 0%, rgba(62, 85, 102, 0.7) 50%, rgba(199, 91, 57, 0.35) 100%),
        url('https://images.unsplash.com/photo-1453904300234-0f2f60b5d786?w=1200&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: clamp(40px, 6vw, 80px);
}

.auth-wood__hero-inner {
    max-width: 420px;
    color: var(--linen);
}

.auth-wood__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 188, 138, 0.45);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--champagne);
    margin-bottom: 24px;
}

.auth-wood__hero h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.1;
}

.auth-wood__hero h2 em {
    font-style: italic;
    color: var(--champagne);
}

.auth-wood__hero-inner p {
    opacity: 0.9;
    line-height: 1.75;
    margin-bottom: 28px;
    font-size: 1rem;
}

.auth-wood__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-wood__features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--pearl);
}

.auth-wood__features i {
    color: var(--champagne);
    width: 20px;
}

.auth-wood__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 5vw, 64px) var(--container-pad);
    background: linear-gradient(180deg, var(--ivory) 0%, var(--cream) 100%);
    overflow-y: auto;
}

.auth-card {
    width: 100%;
    max-width: 520px;
    background: var(--ivory);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--birch);
    padding: clamp(28px, 4vw, 40px);
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(90deg, var(--slate), var(--clay), var(--wood));
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 6px;
    background: var(--cream);
    border: 1px solid var(--birch);
    border-radius: var(--radius-md);
    margin-bottom: 28px;
}

.auth-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--graphite);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.04em;
}

.auth-tab:hover {
    color: var(--onyx);
    background: rgba(255, 255, 255, 0.6);
}

.auth-tab.is-active {
    background: var(--ivory);
    color: var(--walnut);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--birch);
}

.auth-tab.is-active i {
    color: var(--copper);
}

.auth-tab-content {
    position: relative;
    min-height: 280px;
}

.auth-panel {
    display: none;
}

.auth-panel.is-active:not([hidden]) {
    display: block;
    animation: authFadeIn 0.35s ease;
}

.auth-panel[hidden] {
    display: none !important;
}

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

.auth-card__title {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--onyx);
}

.auth-card__subtitle {
    color: var(--graphite);
    font-size: 0.92rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.auth-form .alert {
    margin-bottom: 20px;
}

.form-fieldset {
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-md);
    padding: 20px 18px 8px;
    margin-bottom: 20px;
    background: var(--slate-light);
}

.form-fieldset legend {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--slate);
    padding: 0 8px;
}

.form-row {
    display: grid;
    gap: 16px;
}

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

.form-row--3 {
    grid-template-columns: 1fr 1fr 0.85fr;
}

.req {
    color: var(--copper);
}

.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--pearl);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--white);
    color: var(--charcoal);
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-group select:focus {
    outline: none;
    border-color: var(--onyx);
    box-shadow: 0 0 0 3px rgba(15, 15, 15, 0.05);
}

.nav-register {
    color: var(--slate) !important;
    font-weight: 600;
    padding: 8px 16px !important;
    border: 2px solid var(--slate) !important;
    border-radius: var(--radius-full) !important;
    background: transparent !important;
}

.nav-register::after {
    display: none !important;
}

.nav-register:hover {
    background: var(--slate) !important;
    color: var(--snow) !important;
    border-color: var(--slate) !important;
}

@media (max-width: 992px) {
    .auth-wood {
        grid-template-columns: 1fr;
    }

    .auth-wood__hero {
        min-height: 280px;
        padding: 40px var(--container-pad);
    }

    .auth-wood__features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px 24px;
    }
}

@media (max-width: 600px) {
    .form-row--2,
    .form-row--3 {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 24px 20px;
    }
}

/* ---------- Auth layout (legacy) ---------- */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px var(--container-pad) 80px;
    background:
        linear-gradient(180deg, var(--cream) 0%, var(--bone) 100%);
}

.auth-page .form-container {
    margin: 0;
    width: 100%;
    border-radius: var(--radius-lg);
    border-top: none;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.auth-page .form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sage), var(--camel));
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.92rem;
    color: var(--graphite);
}

.form-footer a {
    color: var(--terracotta);
    font-weight: 600;
}

.form-footer a:hover {
    color: var(--terracotta-dark);
}

.btn-block { width: 100%; }

.form-container h2 i {
    color: var(--terracotta);
    margin-right: 8px;
    font-size: 0.9em;
}

/* ---------- Toast ---------- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--walnut);
    color: var(--ivory);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    font-weight: 500;
    animation: toastIn 0.35s ease forwards;
    max-width: min(360px, calc(100vw - 48px));
    border-left: 3px solid var(--champagne);
}

.toast i { color: var(--champagne); font-size: 1.1rem; }

.toast.is-leaving {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(24px); }
}

/* ---------- Page content ---------- */
.page-content {
    padding: var(--section-pad) 0;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 500;
    margin-bottom: 28px;
    text-align: center;
}

@media (max-width: 992px) {
    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 88vw);
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        padding: 100px 28px 40px;
        box-shadow: var(--shadow-xl);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.is-open {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .nav-links a {
        padding: 14px 0;
        font-size: 0.95rem;
        text-transform: none;
        letter-spacing: 0.04em;
        border-bottom: 1px solid var(--pearl);
    }

    .nav-links a::after { display: none; }

    .nav-cart {
        justify-content: center;
        margin-top: 12px;
        border: none !important;
    }
}

@media (max-width: 768px) {
    .navbar .container { gap: 12px; }

    .topbar { padding: 10px 0; font-size: 0.72rem; }
    .topbar .container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }

    .topbar-promo { display: none; }

    .hero { min-height: 70vh; }
    .hero-content { padding: 60px 20px; }
    .hero-stats { grid-template-columns: 1fr; gap: 16px; padding: 24px; }

    .footer-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
    .footer-brand p { max-width: 100%; }
    .social-links { justify-content: center; }
    .footer-bottom .container { flex-direction: column; text-align: center; }

    .admin-wrapper { flex-direction: column; }
    .admin-sidebar { width: 100%; }

    .product-card .actions { flex-direction: column; }

    .form-container { margin: 30px 16px; }
}

@media (min-width: 1920px) {
    body { font-size: 18px; }
    .container { max-width: 1800px; }
}

@media (min-width: 2560px) {
    body { font-size: 20px; }
    .container { max-width: 2000px; }
    :root { --section-pad: 160px; }
}

/* =====================================================
   HOME — one section per nav button
   ===================================================== */
.is-home-page .home-viewport {
    min-height: calc(100vh - 130px);
}

.is-home-page .page-section {
    display: none;
}

.is-home-page .page-section.is-active {
    display: block;
    animation: sectionIn 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.is-home-page .page-section[hidden] {
    display: none !important;
}

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

.page-section-inner {
    padding-top: var(--section-pad);
    padding-bottom: var(--section-pad);
}

.is-home-page .about-section,
.is-home-page .products-section {
    padding: 0;
}

.nav-section-link.is-active {
    color: var(--clay) !important;
    font-weight: 700;
}

.nav-section-link.is-active::after {
    width: 100% !important;
    background: var(--clay) !important;
}

/* ---------- Mobile polish ---------- */
@media (max-width: 768px) {
    .logo-mark {
        width: 40px;
        height: 40px;
    }

    .logo-name {
        font-size: 1.2rem;
    }

    .logo-tagline {
        font-size: 0.55rem;
        letter-spacing: 0.2em;
    }

    .nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav-register {
        justify-content: center;
        margin-top: 8px;
    }

    .hero {
        min-height: auto;
        min-height: 100svh;
        max-height: none;
    }

    .hero-content {
        padding: 48px 20px 56px;
        gap: 32px;
    }

    .hero h1 {
        font-size: clamp(2rem, 9vw, 2.6rem);
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-item {
        padding: 16px;
        background: var(--ivory);
        border-radius: var(--radius-md);
        border: 1px solid var(--birch);
        box-shadow: var(--shadow-xs);
    }

    .about-grid {
        gap: 32px;
    }

    .about-image img {
        height: 280px;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .search-bar {
        margin-bottom: 28px;
    }

    .search-bar input {
        font-size: 16px;
    }

    .page-section-inner {
        padding-top: clamp(40px, 8vw, 60px);
        padding-bottom: clamp(40px, 8vw, 60px);
    }

    .quote-section blockquote {
        font-size: 1.15rem;
    }

    .auth-wood {
        min-height: auto;
    }

    .btn-primary,
    .btn-secondary {
        min-height: 48px;
        padding: 14px 20px;
    }

    .product-card .actions {
        flex-direction: row;
    }

    .product-card .actions .btn-primary,
    .product-card .actions .btn-secondary {
        min-height: 44px;
    }
}

@media (max-width: 380px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .nav-cart span:not(.cart-badge) {
        display: none;
    }

    .nav-cart {
        padding: 10px 14px !important;
    }
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-gallery__main img {
        max-height: 360px;
    }
}
