/* ============================================
   Egyptian Treasures — Design System (CSS)
   Ported from React/Tailwind to pure CSS
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
    /* Fonts (T005: upgraded fallback stacks) */
    --font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    --font-display: 'Lora', Georgia, 'Times New Roman', serif;
    --font-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Typography Scale — Major Third 1.25 (T002) */
    --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: 2rem;
    --text-4xl: 2.5rem;

    /* Spacing Scale — 4px base (T003) */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Colors — Museum Light Luxury Palette */
    --background: #F9F7F2;
    --foreground: #2C2C2C;
    --primary: #C5A059;
    --primary-foreground: #F9F7F2;
    --secondary: #EDE9E0;
    --secondary-foreground: #2C2C2C;
    --muted: #F0EDE7;
    --muted-foreground: #1c1c1c;
    --accent: #C5A059;
    --accent-foreground: #F9F7F2;
    --destructive: #7A2828;
    --destructive-foreground: #FAFAFA;
    --border: #D9D2C5;
    --input: #F2F2F2;
    --ring: #C5A059;

    --gold-gradient: linear-gradient(135deg, hsl(40, 52%, 65%) 0%, hsl(40, 52%, 45%) 100%);
    --radius: 0;
}

/* ---- Responsive Typography Override (T004) ---- */
@media (min-width: 768px) {
    :root {
        --text-lg: 1.25rem;
        --text-xl: 1.5rem;
        --text-2xl: 2rem;
        --text-3xl: 3rem;
        --text-4xl: 4.5rem;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

::selection {
    background: rgba(197, 160, 89, 0.3);
    color: var(--foreground);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    letter-spacing: 0.03em;
    color: var(--foreground);
    font-weight: 500;
    line-height: 1.2;
}

p {
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ---- Utilities ---- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.text-ivory {
    color: var(--primary-foreground);
}

.text-gold-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 1rem 2.5rem;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 0 20px rgba(197, 160, 65, 0.3);
}

.btn-primary:hover {
    background: #1a1a1a;
    color: #fff;
}

.btn-outline-dark {
    background: transparent;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
}

.btn-outline-dark:hover {
    background: #1a1a1a;
    color: #fff;
}

.btn-outline-gold {
    background: transparent;
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--primary);
    padding: 0.75rem 2rem;
}

.btn-outline-gold:hover {
    background: var(--primary);
    color: #000;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(197, 160, 89, 0.2);
    color: var(--muted-foreground);
    padding: 0.6rem 1.5rem;
}

.btn-ghost:hover {
    background: rgba(197, 160, 89, 0.1);
    color: var(--primary);
}

.btn-full {
    width: 100%;
}

.btn-glow {
    box-shadow: 0 0 20px rgba(197, 160, 65, 0.2);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(197, 160, 65, 0.4);
    background: #fff;
    color: #000;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.spinner {
    animation: spin 1s linear infinite;
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.5s ease-in-out;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    padding: 1.5rem 0;
}

.nav.scrolled {
    background: rgba(249, 247, 242, 0.95);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    flex-direction: column;
}

.nav-brand-title {
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--primary);
    font-family: var(--font-display);
    transition: color 0.3s;
}

.nav-brand:hover .nav-brand-title {
    color: rgba(197, 160, 89, 0.8);
}

.nav-brand-subtitle {
    font-size: var(--text-xs);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    transition: color 0.3s;
}

.nav-brand:hover .nav-brand-subtitle {
    color: var(--foreground);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: var(--text-sm);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(44, 44, 44, 1);
    transition: color 0.3s;
    position: relative;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link-line {
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s;
    width: 0;
}

.nav-link.active .nav-link-line {
    width: 100%;
}

.nav-link:hover .nav-link-line {
    width: 100%;
}

.nav-mobile-toggle {
    display: flex;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    padding: 0.5rem;
}

.nav-mobile-toggle svg {
    width: 24px;
    height: 24px;
}

.nav-mobile-menu {
    display: none;
    background: var(--background);
    border-bottom: 1px solid rgba(217, 210, 197, 0.2);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.nav-mobile-menu.open {
    display: block;
    max-height: 400px;
    opacity: 1;
}

.nav-mobile-menu-inner {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.nav-mobile-link {
    font-size: var(--text-lg);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--font-display);
    color: rgba(44, 44, 44, 0.9);
}

.nav-mobile-link.active {
    color: var(--primary);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .nav-mobile-toggle {
        display: none;
    }

    .nav-brand-title {
        font-size: var(--text-xl);
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
}

.hero-bg-img.active {
    opacity: 0.85;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.8);
    border-radius: 9999px;
    color: #000;
    font-weight: 700;
    font-size: var(--text-xs);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hero-title {
    font-size: var(--text-3xl);
    font-family: var(--font-display);
    font-weight: 700;
    color: #000;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.01em;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.5);
}

.hero-subtitle {
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    font-size: var(--text-lg);
    color: #000;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.5);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-actions {
        flex-direction: row;
    }
}


/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: var(--space-xl) 0;
    background: rgba(237, 233, 224, 0.05);
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem;
    background: #fff;
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(197, 160, 89, 0.4);
}

.feature-icon-wrap {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    transition: background 0.3s;
}

.feature-icon-wrap svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
    transition: color 0.3s;
}

.feature-card:hover .feature-icon-wrap {
    background: var(--primary);
}

.feature-card:hover .feature-icon-wrap svg {
    color: #fff;
}

.feature-title {
    font-size: var(--text-lg);
    font-family: var(--font-display);
    color: #000;
    margin-bottom: var(--space-md);
    font-weight: 700;
    letter-spacing: 0.03em;
}

.feature-desc {
    font-size: var(--text-base);
    color: rgba(0, 0, 0, 0.9);
    font-family: var(--font-serif);
    font-style: italic;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   FEATURED PRODUCTS SECTION
   ============================================ */
.featured-section {
    padding: var(--space-2xl) 0;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.featured-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.featured-label span {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.featured-star {
    width: 1rem;
    height: 1rem;
    fill: var(--primary);
    color: var(--primary);
}

.section-title {
    font-size: var(--text-2xl);
    font-family: var(--font-display);
    color: var(--foreground);
}

.featured-view-all {
    display: none;
    align-items: center;
    color: var(--muted-foreground);
    text-transform: uppercase;
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.25rem;
    transition: all 0.3s;
}

.featured-view-all:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.featured-mobile-cta {
    margin-top: 3rem;
    text-align: center;
}

@media (min-width: 768px) {
    .featured-view-all {
        display: inline-flex;
    }

    .featured-mobile-cta {
        display: none;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .products-grid {
        gap: var(--space-md);
    }
}

@media (max-width: 479px) {
    .product-card-title {
        font-size: var(--text-lg);
    }

    .product-card-desc {
        font-size: var(--text-sm);
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

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

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.empty-state p,
.empty-state .product-card-desc {
    color: var(--muted-foreground);
    font-family: var(--font-serif);
    font-style: italic;
}

.empty-state.large {
    padding: 10rem 2rem;
    background: rgba(237, 233, 224, 0.05);
    border: 1px dashed rgba(217, 210, 197, 0.3);
}

.empty-state.large h3 {
    font-size: var(--text-lg);
    font-family: var(--font-display);
    color: var(--muted-foreground);
    margin-bottom: var(--space-sm);
}

.empty-state.large p {
    font-size: var(--text-sm);
    opacity: 0.6;
}

/* ---- Skeleton Loader Cards ---- */
@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    border-radius: 2px;
    overflow: hidden;
    background: var(--secondary);
}

.skeleton-img {
    aspect-ratio: 4 / 5;
    background: linear-gradient(110deg, #2a2520 30%, #3a3530 50%, #2a2520 70%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-text {
    padding: 1rem;
}

.skeleton-line {
    height: 0.75rem;
    border-radius: 4px;
    background: linear-gradient(110deg, #2a2520 30%, #3a3530 50%, #2a2520 70%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    margin-bottom: var(--space-sm);
}

.skeleton-line.wide {
    width: 80%;
}

.skeleton-line.narrow {
    width: 50%;
}

/* ---- Load More Section ---- */
.load-more-section {
    text-align: center;
    padding: var(--space-3xl, 3rem) 0 var(--space-lg);
}

.load-more-btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ivory);
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: var(--space-md);
}

.load-more-btn:hover {
    background: var(--primary);
    color: var(--secondary);
}

.load-more-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.products-counter {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--muted-foreground);
    letter-spacing: 0.05em;
}

/* ============================================
   PRODUCT CARDS — Adaptive Frame Renderer
   ============================================ */
.product-card-link {
    display: block;
    height: 100%;
}

.product-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(237, 233, 224, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease-out;
}

.product-card-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -4px rgba(197, 160, 89, 0.1);
}

/* ---- Image Container: Fixed 4:5 ratio + atmospheric micro background ---- */
.product-card-image-wrap {
    position: relative;
    padding-top: 125%;
    /* 4:5 aspect ratio */
    overflow: hidden;

    /* ATMOSPHERIC LAYER: micro-thumbnail stretched to cover = abstract color field */
    background: var(--atm, none) center / cover no-repeat;
    background-color: #f0ede7;
    /* Fallback */
}

/* VIGNETTE LAYER: luminance compression + edge softening (pure gradient, zero cost) */
.product-card-image-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse at center,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.5) 100%);
    transition: opacity 0.5s ease;
}

/* HOVER ATMOSPHERIC LAYER: micro-thumbnail of hover image */
.product-card-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: var(--atm-hover, none) center / cover no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* ---- Sharp Artwork Images ---- */
.product-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* FULL ARTWORK — NO CROPPING */
    padding: 0.75rem;
    /* Breathing room */
    transition: opacity 0.5s ease, transform 0.5s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.product-card-img.primary {
    z-index: 3;
    opacity: 1;
}

.product-card-img.hover {
    z-index: 4;
    opacity: 0;
    transform: scale(1.02);
}

/* ---- Hover Transitions ---- */
/* Atmosphere swap */
.product-card-inner:hover .product-card-image-wrap::after {
    opacity: 1;
}

/* Sharp image swap */
.product-card-inner:hover .product-card-img.primary {
    opacity: 0;
}

.product-card-inner:hover .product-card-img.hover {
    opacity: 1;
    transform: scale(1);
}

/* ---- Overlay & Tags (above atmospheric layers) ---- */
.product-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent, transparent);
    opacity: 0.6;
    transition: opacity 0.3s;
    z-index: 5;
}

.product-card-inner:hover .product-card-overlay {
    opacity: 0.4;
}

.product-card-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    border: 1px solid rgba(197, 160, 89, 0.2);
    z-index: 6;
}

.product-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    transition: border-color 0.3s;
}

.product-card-inner:hover .product-card-content {
    border-top-color: rgba(197, 160, 89, 0.3);
}

.product-card-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    color: var(--foreground);
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.product-card-inner:hover .product-card-title {
    color: var(--primary);
}

.product-card-desc {
    font-size: var(--text-sm);
    color: var(--muted-foreground);
    font-family: var(--font-serif);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-action {
    margin-top: auto;
    padding-top: 1rem;
}

.product-card-action span {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: transform 0.3s;
}

.product-card-action .arrow {
    font-size: var(--text-lg);
    color: var(--primary);
}

.product-card-inner:hover .product-card-action span {
    transform: translateX(4px);
    color: var(--foreground);
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories-section {
    padding: var(--space-2xl) 0;
    background: var(--primary);
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    position: relative;
}

.categories-section .section-title {
    margin-bottom: 4rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    height: auto;
}

/* ---- Carousel Mode (Progressive Enhancement via JS) ---- */
.categories-grid.carousel-enabled {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    gap: var(--space-md);
    padding: 0 var(--space-md);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-grid.carousel-enabled::-webkit-scrollbar {
    display: none;
}

.categories-grid.carousel-enabled .category-card {
    flex: 0 0 80%;
    scroll-snap-align: start;
    aspect-ratio: 4 / 3;
}

@media (min-width: 768px) {
    .categories-grid.carousel-enabled .category-card {
        flex: 0 0 30%;
    }
}

/* ---- Category Card: Atmospheric Frame Style ---- */
.category-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.category-atm {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2rem) brightness(0.9);
    transform: scale(1.1);
    transition: transform 0.7s ease;
    z-index: 0;
}

.category-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.7s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    z-index: 1;
}

.category-card:hover .category-atm {
    transform: scale(1.15);
}

.category-card:hover .category-img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    pointer-events: none;
    z-index: 2;
}

.category-content {
    position: absolute;
    bottom: 1.25rem;
    left: 1.5rem;
    z-index: 3;
}

.category-title {
    font-size: var(--text-xl);
    font-family: var(--font-display);
    color: #fff;
    margin-bottom: 0.25rem;
    transition: color 0.3s;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.category-card:hover .category-title {
    color: var(--primary);
}

.category-link {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.category-card:hover .category-link {
    color: #fff;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   PAGE HEADERS & COLLECTION
   ============================================ */
.page-collection,
.page-about,
.page-contact,
.page-legal,
.page-404 {
    min-height: 100vh;
    padding-top: 8rem;
    padding-bottom: 6rem;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-header.centered {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 6rem;
}

.page-label {
    display: block;
    color: var(--primary);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.page-title {
    font-size: var(--text-3xl);
    font-family: var(--font-display);
    color: var(--foreground);
    margin-bottom: var(--space-lg);
}

.page-title.large {
    font-size: var(--text-3xl);
}

.page-subtitle {
    max-width: 36rem;
    margin: 0 auto;
    color: var(--muted-foreground);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: var(--text-lg);
}

.title-bar {
    width: 6rem;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
}

@media (min-width: 768px) {
    .page-title {
        font-size: var(--text-3xl);
    }

    .page-title.large {
        font-size: var(--text-3xl);
    }
}

/* Filter Bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-sans);
    font-weight: 600;
}

.filter-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(197, 160, 89, 0.05);
    transform: translateY(-2px);
}

.filter-btn.active {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
    box-shadow: 0 4px 15px rgba(197, 160, 65, 0.3);
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.page-detail {
    min-height: 100vh;
    padding-top: 6rem;
    background: var(--background);
}

.detail-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    /* Tighter gap on mobile */
    padding: 3rem 0;
}

/* Mobile Visual Hierarchy */
.detail-header {
    order: 1;
    margin-bottom: var(--space-md);
}

.detail-gallery {
    order: 2;
}

.detail-placard {
    order: 3;
}

.detail-provenance {
    order: 4;
}

.detail-trust {
    order: 5;
}

.detail-header,
.detail-placard,
.detail-provenance,
.detail-trust {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---- NEW PREMIUM E-COMMERCE GALLERY ---- */
.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
}

@media (min-width: 768px) {
    .detail-gallery {
        flex-direction: column;
        align-items: center;
        gap: var(--space-lg);
    }

    .gallery-main-view {
        order: 1;
        width: 100%;
    }

    .gallery-thumbs-col {
        order: 2;
    }
}

/* Thumbs Col (Desktop only) */
.gallery-thumbs-col {
    display: none;
    /* hidden on mobile natively */
}

@media (min-width: 768px) {
    .gallery-thumbs-col {
        display: flex;
        flex-direction: row;
        gap: var(--space-md);
        width: 100%;
        flex-shrink: 0;
        overflow-x: auto;
        overflow-y: visible;
        justify-content: center;
        scrollbar-width: none;
        padding-bottom: 0.5rem;
    }

    .gallery-thumbs-col::-webkit-scrollbar {
        display: none;
    }
}

.gallery-thumb {
    width: 90px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 0;
    background: #fdfbf7;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.gallery-thumb:hover img,
.gallery-thumb.active img {
    opacity: 1;
}

.gallery-thumb.active {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Main View / Slider */
.gallery-main-view {
    position: relative;
    width: 100%;
    background: #fdfbf7;
    /* Clean, light e-commerce background */
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .gallery-main-view {
        flex-grow: 1;
    }
}

.gallery-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -webkit-overflow-scrolling: touch;
    transition: opacity 0.3s ease-in-out;
}

.gallery-slider::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

@media (min-width: 768px) {
    .gallery-slider {
        overflow-x: hidden;
        /* Disable swipe on desktop, driven by thumbs */
    }
}

.gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 1 / 1;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-in;
}

@media (min-width: 768px) {
    .gallery-slide {
        aspect-ratio: 4 / 3;
        /* More horizontal room on desktop */
    }
}

.gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.gallery-slide:hover img {
    transform: scale(1.02);
}

/* Expand Button Overlay */
.gallery-expand-btn {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

@media (max-width: 768px) {
    .gallery-expand-btn {
        bottom: 3rem;
        /* Push up above dots */
    }
}

.gallery-expand-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.gallery-expand-btn svg {
    width: 1.2rem;
    height: 1.2rem;
}

/* Mobile Pagination Dots */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    position: absolute;
    bottom: 1rem;
    left: 0;
    width: 100%;
    z-index: 5;
}

@media (min-width: 768px) {
    .gallery-dots {
        display: none;
        /* Hidden on desktop */
    }
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* ---- Fullscreen Lightbox CSS ---- */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.6));
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.active .lightbox-content img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    z-index: 10000;
    padding: 0.5rem;
}

.lightbox-close svg {
    width: 2rem;
    height: 2rem;
}

.lightbox-close:hover {
    color: #fff;
    transform: scale(1.1);
}

/* .detail-header and .detail-body flex setup moved to .detail-grid block */

.detail-label-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--space-sm);
}

.detail-line {
    height: 1px;
    width: 3rem;
    background: var(--primary);
}

.detail-label {
    color: var(--primary);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
}

.detail-title {
    font-size: var(--text-3xl);
    font-family: var(--font-display);
    color: var(--foreground);
    margin-bottom: var(--space-lg);
    line-height: 1.15;
}

.detail-description {
    color: var(--muted-foreground);
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

/* Museum Placard (Specs) */
.detail-placard {
    background: transparent;
    padding: 1.5rem 0;
    margin-bottom: 4.5rem;
    /* Increased vertical rhythm */
}

.placard-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    padding-bottom: 0.5rem;
}

.spec-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    font-variant: small-caps;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
}

.spec-value {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--foreground);
    text-align: right;
}

/* Provenance & Accordions */
.detail-provenance {
    margin-bottom: 3rem;
}

.glance-content {
    max-height: 5.4rem;
    /* Enough for ~3 lines */
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
}

.glance-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3rem;
    background: linear-gradient(rgba(253, 251, 247, 0), rgba(253, 251, 247, 1));
    /* Match #fdfbf7 */
    transition: opacity 0.3s;
}

.glance-content.expanded {
    max-height: 2000px;
}

.glance-content.expanded::after {
    opacity: 0;
    pointer-events: none;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0;
    cursor: pointer;
    margin-bottom: var(--space-lg);
    transition: color 0.3s;
}

.read-more-btn:hover {
    color: #a38241;
}

/* Minimalist Accordions */
.premium-accordions {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 1.25rem 0;
    cursor: pointer;
    color: var(--foreground);
    transition: color 0.3s;
}

.accordion-trigger:hover {
    color: var(--primary);
}

.accordion-title {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.accordion-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
    stroke-width: 1.5;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.accordion-item.active .accordion-content {
    padding-bottom: 1.25rem;
}

.accordion-content p {
    font-family: var(--font-serif);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--muted-foreground);
    margin: 0;
}

/* Trust Certificate Box */
.certificate-box {
    border: 1px solid rgba(197, 160, 89, 0.3);
    background: rgba(0, 0, 0, 0.02);
    padding: 2rem 1.5rem;
    margin-bottom: var(--space-lg);
}

.cert-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    padding-bottom: 1rem;
}

.cert-icon-main {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--primary);
    stroke-width: 1;
}

.cert-header h4 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    color: var(--foreground);
    margin: 0;
}

.cert-body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.cert-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    stroke-width: 1.25;
    flex-shrink: 0;
}

.cert-item span {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
}

.cert-item .highlight-gold {
    color: var(--primary);
    font-weight: 500;
}

.detail-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.detail-price-note {
    font-size: var(--text-sm);
    color: var(--muted-foreground);
    font-family: var(--font-serif);
    font-style: italic;
    text-align: center;
}

/* Mobile Sticky Concierge */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    padding: 1rem 1.25rem;
    z-index: 50;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

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

.sticky-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    max-width: var(--container-width);
    margin: 0 auto;
}

.sticky-cta-info {
    display: flex;
    flex-direction: column;
}

.sticky-cta-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--foreground);
    line-height: 1.2;
}

.sticky-cta-price {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: var(--text-xs);
    color: var(--muted-foreground);
}

.mobile-sticky-cta .btn {
    padding: 0.5rem 1.5rem;
    font-size: var(--text-sm);
    white-space: nowrap;
}

@media (min-width: 768px) {
    .detail-badges {
        grid-template-columns: repeat(3, 1fr);
    }

    .detail-price-note {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .detail-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto auto 1fr;
        grid-auto-flow: row;
        gap: 0 4rem;
        /* Horizontal gap only */
        align-items: start;
    }

    .detail-header {
        grid-column: 1 / span 2;
        grid-row: 1;
        padding-bottom: 2rem;
        text-align: center;
    }

    .detail-label-row {
        justify-content: center;
    }

    .detail-gallery {
        grid-column: 1;
        grid-row: 2 / span 4;
        /* Sticky removed to allow natural full-page scrolling */
    }

    .detail-placard {
        grid-column: 2;
        grid-row: 2;
        margin-top: 0;
    }

    .detail-provenance {
        grid-column: 2;
        grid-row: 3;
    }

    .detail-trust {
        grid-column: 2;
        grid-row: 4;
    }

    .detail-title {
        font-size: var(--text-3xl);
    }
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-story {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 8rem;
}

.about-image-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.3);
}

.about-image-badge {
    display: none;
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 12rem;
    height: 12rem;
    background: var(--secondary);
    border: 1px solid rgba(197, 160, 89, 0.3);
    padding: 2rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.about-image-badge span {
    font-family: var(--font-display);
    color: var(--primary);
    font-size: var(--text-lg);
}

.about-subtitle {
    font-size: var(--text-xl);
    font-family: var(--font-display);
    color: var(--foreground);
    margin-bottom: var(--space-lg);
}

.about-prose {
    color: var(--muted-foreground);
    font-family: var(--font-serif);
    font-size: var(--text-base);
    line-height: 1.7;
}

.about-prose p {
    margin-bottom: var(--space-lg);
}

.about-prose p:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .about-story {
        grid-template-columns: 1fr 1fr;
    }

    .about-image-badge {
        display: flex;
    }
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: 6rem;
}

.value-card {
    background: rgba(237, 233, 224, 0.2);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.value-title {
    font-size: var(--text-lg);
    font-family: var(--font-display);
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.value-desc {
    color: var(--muted-foreground);
    font-family: var(--font-serif);
    font-style: italic;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-bg-decor {
    position: absolute;
    top: 0;
    right: 0;
    width: 33%;
    height: 100%;
    background: linear-gradient(to left, rgba(237, 233, 224, 0.1), transparent);
    pointer-events: none;
}

.page-contact {
    position: relative;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 64rem;
    margin: 0 auto;
    background: rgba(237, 233, 224, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-block-title {
    color: var(--primary);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.contact-block p {
    color: var(--muted-foreground);
    font-family: var(--font-serif);
    line-height: 1.8;
}

.contact-note {
    font-size: var(--text-sm);
    opacity: 0.6;
    margin-top: 0.5rem;
    display: block;
}

.contact-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    padding-top: 2rem;
}

.contact-form-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    color: var(--foreground);
    margin-bottom: var(--space-sm);
}

.contact-form-subtitle {
    color: var(--muted-foreground);
    font-family: var(--font-serif);
    font-style: italic;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        padding: 4rem;
    }

    .contact-form-wrapper {
        border-top: none;
        border-left: 1px solid rgba(197, 160, 89, 0.1);
        padding-top: 0;
        padding-left: 3rem;
    }
}

/* ============================================
   FORMS
   ============================================ */
.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

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

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #000;
    font-weight: 700;
}

.form-input,
.form-textarea {
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.4);
    color: #000;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    outline: none;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #000;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

.form-textarea {
    min-height: 100px;
    resize: none;
    font-family: var(--font-serif);
}

.form-error {
    font-size: var(--text-xs);
    color: var(--destructive);
    min-height: 1rem;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-container {
    max-width: 48rem;
}

.legal-title {
    font-size: var(--text-3xl);
    font-family: var(--font-display);
    color: #000;
    margin-bottom: 3rem;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.legal-content section h2 {
    font-size: var(--text-xl);
    font-family: var(--font-display);
    color: #000;
    margin-bottom: var(--space-md);
}

.legal-content section p {
    color: #1c1c1c;
    font-family: var(--font-serif);
    font-size: var(--text-base);
    line-height: 1.7;
}

/* ============================================
   404 PAGE
   ============================================ */
.page-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
}

.not-found-box {
    text-align: center;
    padding: 3rem 2rem;
    border: 1px solid rgba(197, 160, 89, 0.2);
    background: rgba(237, 233, 224, 0.1);
    max-width: 28rem;
    margin: 0 auto;
}

.not-found-icon {
    margin-bottom: var(--space-md);
}

.not-found-icon svg {
    width: 4rem;
    height: 4rem;
    color: var(--primary);
    opacity: 0.8;
    margin: 0 auto;
}

.not-found-title {
    font-size: var(--text-2xl);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--foreground);
    letter-spacing: 0.03em;
}

.not-found-text {
    font-size: var(--text-lg);
    color: var(--muted-foreground);
    font-family: var(--font-serif);
    font-style: italic;
    margin: 1rem 0 1.5rem;
}

/* ============================================
   MODAL
   ============================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    animation: fadeIn 0.3s ease;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
    width: 92%;
    max-width: 34rem;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
}

.modal-content {
    background: var(--secondary);
    border: 1px solid rgba(197, 160, 89, 0.2);
    color: var(--foreground);
    padding: 2rem;
}

.modal-header {
    position: relative;
    margin-bottom: var(--space-lg);
}

.modal-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    color: var(--primary);
    letter-spacing: 0.03em;
}

.modal-subtitle {
    color: var(--muted-foreground);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: var(--text-sm);
    margin-top: 0.25rem;
}

.modal-close {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.25rem;
}

.modal-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--foreground);
    color: var(--background);
    border-top: 1px solid var(--border);
    padding-top: 5rem;
    padding-bottom: 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

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

.footer-brand-title {
    font-size: var(--text-xl);
    font-family: var(--font-display);
    color: var(--primary);
    letter-spacing: 0.15em;
}

.footer-brand-est {
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
    color: rgba(249, 247, 242, 0.6);
    text-transform: uppercase;
}

.footer-quote {
    color: rgba(249, 247, 242, 0.8);
    max-width: 28rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: var(--text-lg);
    line-height: 1.6;
}

.footer-col-title {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--background);
    margin-bottom: var(--space-lg);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-links a {
    color: rgba(249, 247, 242, 0.7);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    color: rgba(249, 247, 242, 0.7);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-icon {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
    padding-top: 0.5rem;
}

.footer-social a {
    color: rgba(249, 247, 242, 0.7);
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--primary);
}

.footer-social svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(249, 247, 242, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
    font-size: var(--text-xs);
    color: rgba(249, 247, 242, 0.4);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-bottom-links a {
    color: rgba(249, 247, 242, 0.4);
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--background);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-size: var(--text-sm);
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 200;
    animation: slideUp 0.3s ease, fadeOut 0.3s ease 3.7s forwards;
    max-width: 24rem;
}

.toast-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.toast-desc {
    font-weight: 400;
    font-size: var(--text-sm);
    opacity: 0.9;
}

@keyframes slideUp {
    from {
        transform: translateY(1rem);
        opacity: 0;
    }

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

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        pointer-events: none;
    }
}

/* ---- Main Content Spacing ---- */
.main-content {
    flex-grow: 1;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================
   UX Enhancements — Blur-Up & Micro-Interactions
   ============================================ */

/* ---- Blur-Up Image Loading ---- */
.blur-placeholder {
    filter: blur(20px);
    transform: scale(1.05);
    /* Prevent blurred edges from showing background */
    transition: filter 0.6s ease, transform 0.6s ease;
    will-change: filter, transform;
}

.blur-placeholder.blur-loaded {
    filter: blur(0);
    transform: scale(1);
}

.blur-placeholder-bg {
    background-color: var(--secondary);
    background-image: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

/* ---- Component Refinements (T010, T011) ---- */
.btn {
    transition: all 0.3s ease;
    will-change: transform, box-shadow;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(197, 160, 89, 0.4);
}

.nav-link-line {
    transition: width 0.3s ease-out, transform 0.3s ease;
    width: 0;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link:hover .nav-link-line,
.nav-link.active .nav-link-line {
    width: 100%;
}