/* ═══════════════════════════════════════════════════
   ALBA HOME — Premium Design System
   ═══════════════════════════════════════════════════ */

:root {
    /* Refined Palette — warm neutrals with a muted accent */
    --accent: #8b6f47;
    --accent-light: #b8976a;
    --accent-muted: rgba(139, 111, 71, 0.12);
    --accent-glow: rgba(139, 111, 71, 0.06);
    --ruby-red: #dc2626;
    --ruby-red-light: rgba(220, 38, 38, 0.1);

    --bg-primary: #faf9f7;
    --bg-secondary: #f3f1ed;
    --bg-card: #ffffff;
    --bg-dark: #1a1714;
    --bg-dark-secondary: #2a2520;

    --text-primary: #1a1714;
    --text-secondary: #6b6560;
    --text-tertiary: #9e9790;
    --text-on-dark: #e8e4df;

    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 0 1px var(--accent-muted);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing */
    --section-gap: 7rem;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 16px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
}

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

/* ─── Utilities ─── */
.section-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5rem;
}

.py-24 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-32 {
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
}


/* ═══════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(250, 249, 247, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.nav-logo {
    height: 40px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--ruby-red);
    transition: width 0.4s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--ruby-red);
}

.nav-icons {
    display: flex;
    gap: 1.25rem;
}

.nav-icons a {
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.3s var(--ease-out);
    display: flex;
    align-items: center;
}

.nav-icons a:hover {
    color: var(--accent);
    transform: translateY(-1px);
}


/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 20s linear;
}

.hero:hover .hero-image-container img {
    transform: scale(1.03);
}

/* Gradient overlay for text readability */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(26, 23, 20, 0.15) 0%,
            rgba(26, 23, 20, 0.3) 50%,
            rgba(26, 23, 20, 0.5) 100%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 700px;
    padding: 0 2rem;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-weight: 300;
    letter-spacing: 0.6em;
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.15;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    display: inline-block;
    background: transparent;
    color: white;
    text-decoration: none;
    padding: 0.9rem 2.2rem;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.5s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.5s var(--ease-out);
}

.btn-primary:hover {
    border-color: var(--ruby-red);
    background: var(--ruby-red);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover::before {
    left: 100%;
}


/* ═══════════════════════════════════════════════════
   BEST SELLERS (BOUTIQUE)
   ═══════════════════════════════════════════════════ */
.boutique {
    background-color: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-accent {
    color: var(--accent);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.boutique-title {
    font-size: 3rem;
    margin-top: 0.5rem;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    font-weight: 300;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    position: relative;
    background: var(--bg-card);
    transition: all 0.5s var(--ease-out);
    border-radius: 2px;
    overflow: hidden;
}

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

.product-image-container {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-secondary);
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 23, 20, 0.6) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
}

.view-details {
    color: white;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    font-family: var(--font-sans);
    transform: translateY(10px);
    transition: transform 0.5s var(--ease-out);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 3px;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-card:hover .view-details {
    transform: translateY(0);
}

.product-card:hover .product-image-container img {
    transform: scale(1.06);
}

.product-info {
    padding: 1.25rem 1rem 1.5rem;
    text-align: center;
    position: relative;
}

.product-name {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
}

.product-price {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
}

/* Accent line on hover */
.product-info::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--ruby-red), transparent);
    transition: width 0.6s var(--ease-out), left 0.6s var(--ease-out);
    transform: translateX(-50%);
}

.product-card:hover .product-info::after {
    width: 50px;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--ruby-red);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    letter-spacing: 0.1em;
    z-index: 10;
    text-transform: uppercase;
}

.discount-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #dc2626;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.4rem 0.6rem;
    letter-spacing: 0.05em;
    z-index: 10;
    border-radius: 2px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-tertiary);
    font-size: 0.8em;
    margin-right: 0.5rem;
    opacity: 0.7;
}

.new-price {
    color: #dc2626 !important;
    font-weight: 600 !important;
}


/* ═══════════════════════════════════════════════════
   DISCOVER STYLES GALLERY
   ═══════════════════════════════════════════════════ */
.styles {
    padding: var(--section-gap) 0;
    background: linear-gradient(135deg,
            rgba(243, 241, 237, 0.85) 0%,
            rgba(250, 249, 247, 0.7) 50%,
            rgba(232, 228, 223, 0.85) 100%);
    backdrop-filter: blur(40px) saturate(160%);
    -webkit-backdrop-filter: blur(40px) saturate(160%);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* Frosted glass shimmer layers */
.styles::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 30%, rgba(255, 255, 255, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 70%, rgba(139, 111, 71, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

.styles .section-accent {
    color: var(--accent);
}

.styles-title {
    font-size: 3rem;
    margin-top: 0.5rem;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    font-weight: 300;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    group: true;
}

.superscript {
    position: absolute;
    top: -20px;
    left: 4px;
    color: var(--accent);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    font-family: var(--font-sans);
    z-index: 2;
    opacity: 0.7;
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 0;
    background-color: var(--bg-secondary);
    border-radius: 6px;
    position: relative;
    box-shadow: var(--shadow-md);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-out), filter 0.6s var(--ease-out);
    filter: brightness(0.85);
}

.gallery-item:hover .image-wrapper img {
    transform: scale(1.08);
    filter: brightness(1);
}

/* Gradient overlay — always visible, intensifies on hover */
.image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            transparent 40%,
            rgba(26, 23, 20, 0.7) 100%);
    transition: opacity 0.5s var(--ease-out);
    pointer-events: none;
    border-radius: 3px;
}

/* CTA overlay */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}

.gallery-cta {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.3s ease;
}

.gallery-item:hover .gallery-cta {
    opacity: 1;
    transform: translateY(0);
    color: white;
}

/* Caption underneath */
.gallery-caption {
    padding: 1.25rem 0.25rem 0;
}

.gallery-caption h3 {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.gallery-item:hover .gallery-caption h3 {
    color: var(--accent);
}

.gallery-subtitle {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 300;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.gallery-item:hover .gallery-subtitle {
    color: var(--accent);
}


/* ═══════════════════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════════════════ */
.trust-bar {
    padding: 5rem 0;
    border-top: 1px solid var(--border-light);
    background-color: var(--bg-primary);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem 1rem;
    border-radius: 4px;
    transition: background 0.4s var(--ease-out);
}

.trust-item:hover {
    background: var(--accent-glow);
}

.trust-icon {
    width: 28px;
    height: 28px;
    stroke: var(--ruby-red) !important;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
}

.trust-item:hover .trust-icon {
    opacity: 1;
    transform: translateY(-2px);
}

.trust-item p {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
}


/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 5rem 0 2rem;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.social-list {
    list-style: none;
    padding: 0;
}

.social-list li {
    margin-bottom: 1rem;
}

.social-list a {
    transition: opacity 0.3s ease;
}

.social-list a:hover {
    opacity: 1 !important;
}

.footer-brand .logo {
    color: var(--text-on-dark);
    margin-bottom: 1.5rem;
    display: block;
    font-size: 1rem;
}

.footer-brand p {
    font-weight: 300;
    font-size: 0.85rem;
    opacity: 0.5;
    max-width: 320px;
    line-height: 1.8;
}

.footer-links h3,
.footer-newsletter h3 {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
    font-family: var(--font-sans);
    color: var(--accent-light);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.85rem;
}

.footer-links a {
    color: var(--text-on-dark);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    font-weight: 300;
}

.footer-links a:hover {
    opacity: 1;
}

.newsletter-form {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s ease;
}

.newsletter-form:focus-within {
    border-color: var(--accent-light);
}

.newsletter-form input {
    background: transparent;
    border: none;
    color: var(--text-on-dark);
    padding: 1rem 0;
    flex-grow: 1;
    outline: none;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    font-weight: 300;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.newsletter-form button {
    background: transparent;
    border: none;
    color: var(--ruby-red);
    font-weight: 600;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    cursor: pointer;
    transition: color 0.3s ease;
    font-family: var(--font-sans);
}

.newsletter-form button:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--text-on-dark);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    opacity: 0.4;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    opacity: 1;
    color: var(--accent-light);
}

.footer-bottom p {
    font-size: 0.65rem;
    opacity: 0.3;
    font-weight: 300;
}


/* ═══════════════════════════════════════════════════
   SCROLL ANIMATION (Entrance)
   ═══════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

.section-header {
    animation: fadeInUp 0.8s var(--ease-out) both;
}


/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    :root {
        --section-gap: 5rem;
    }

    .section-container,
    .nav-container,
    .footer-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .boutique-title {
        font-size: 2.5rem;
    }

    .gallery-grid,
    .footer-grid,
    .trust-grid {
        gap: 2rem;
    }

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

@media (max-width: 768px) {
    :root {
        --section-gap: 4rem;
    }

    .nav-container {
        padding: 1rem 1.5rem;
    }

    .section-container,
    .footer-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .gallery-grid,
    .footer-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }

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

    .product-card {
        border-radius: 0;
    }

    .product-info {
        padding: 0.75rem 0.5rem 1rem;
    }

    .product-name {
        font-size: 0.6rem;
        letter-spacing: 0.06em;
    }

    .product-price {
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.6rem;
        letter-spacing: 0.4em;
    }

    .boutique-title {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

    .logo {
        font-size: 0.9rem;
    }

    .footer-grid {
        gap: 3rem;
        margin-bottom: 3rem;
        padding-bottom: 3rem;
    }
}

/* ═══════════════════════════════════════════════════
   E-COMMERCE COMPONENTS (EXTENSION)
   ═══════════════════════════════════════════════════ */

/* ─── Shared Page Header ─── */
.page-header {
    padding: 10rem 0 5rem;
    background-color: var(--bg-secondary);
    text-align: center;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.breadcrumb {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

/* ─── Forms & Inputs ─── */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.3s var(--ease-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

/* ─── Tables (Cart/Orders) ─── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.data-table th {
    text-align: left;
    padding: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-medium);
    color: var(--text-secondary);
}

.data-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

/* ─── Product Details ─── */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: start;
}

.product-gallery {
    display: grid;
    gap: 1rem;
}

.gallery-main {
    aspect-ratio: 4/5;
    background-color: var(--bg-secondary);
    overflow: hidden;
    max-width: 520px;
    margin: 0 auto;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.thumb-item {
    aspect-ratio: 1;
    background-color: var(--bg-secondary);
    cursor: pointer;
    overflow: hidden;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: var(--accent);
}

.product-meta {
    position: sticky;
    top: 120px;
}

.product-category {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-title-large {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.product-price-large {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.product-description {
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.product-options {
    margin-bottom: 2.5rem;
}

.option-title {
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.size-chips {
    display: flex;
    gap: 0.75rem;
}

.size-chip {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border-medium);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-chip:hover,
.size-chip.active {
    background: var(--bg-dark);
    color: white;
    border-color: var(--bg-dark);
}

.add-to-cart-btn,
.checkout-submit-btn {
    width: 100%;
    padding: 1.25rem;
    background: var(--bg-dark);
    color: white;
    border: none;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.add-to-cart-btn:hover,
.checkout-submit-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ─── Cart & Checkout Sidebar ─── */
.order-summary {
    background: var(--bg-secondary);
    padding: 2.5rem;
    position: sticky;
    top: 120px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.summary-total {
    border-top: 1px solid var(--border-medium);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

/* ─── Status Badges ─── */
.badge {
    padding: 0.35rem 0.75rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 100px;
    display: inline-block;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #fef9c3;
    color: #854d0e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* ─── Progress Tracker ─── */
.progress-track {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 4rem 0;
}

.progress-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-medium);
    z-index: 1;
}

.track-step {
    position: relative;
    z-index: 2;
    background: var(--bg-primary);
    padding: 0 1rem;
    text-align: center;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.track-step.active .step-icon {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.track-step.completed .step-icon {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.step-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.track-step.active .step-label {
    color: var(--text-primary);
}

/* ─── Responsive Extension ─── */
@media (max-width: 1024px) {
    .section-container {
        padding: 0 5%;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .product-meta {
        position: static;
    }

    .product-title-large {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-gap: 4rem;
    }

    .py-32 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .navbar {
        padding: 1rem 0;
        background: var(--bg-primary) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .nav-links {
        display: none;
    }

    /* Hide for now, or stack */

    .hero {
        height: 70vh;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 0.6rem;
        letter-spacing: 0.3em;
    }

    .boutique-title,
    .styles-title {
        font-size: 2rem;
    }

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

    .product-info {
        padding: 1rem 0.5rem;
    }

    .product-name {
        font-size: 0.65rem;
    }

    .product-price {
        font-size: 0.75rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-header {
        padding: 6rem 0 3rem;
    }

    .catalog-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .catalog-search {
        min-width: 100% !important;
    }

    .filter-group select {
        width: 100%;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 2rem;
    }

    .data-table {
        min-width: 600px;
    }

    .data-table th,
    .data-table td {
        padding: 1rem 0.75rem;
        font-size: 0.75rem;
    }

    .order-summary {
        padding: 1.5rem;
        position: static;
    }

    .checkout-form div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

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

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* ─── Toast Notifications ─── */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-dark);
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s var(--ease-out);
    box-shadow: var(--shadow-xl);
    pointer-events: none;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.error {
    background: var(--ruby-red);
}

/* ─── Reveal Animations ─── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s var(--ease-out);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s var(--ease-out);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s var(--ease-out);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ─── Cart Badge ─── */
.nav-cart {
    position: relative;
}

.nav-cart::after {
    content: '';
    position: absolute;
    top: 0;
    right: -2px;
    width: 6px;
    height: 6px;
    background: var(--ruby-red);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s var(--ease-out);
}

.nav-cart.filled::after {
    opacity: 1;
    transform: scale(1);
}


/* ─── Accordions ─── */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out);
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    /* High enough to contain any description */
}

/* ─── Navbar Search ─── */
.nav-search-container {
    margin-right: 1.5rem;
}

.nav-search-form {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    transition: border-color 0.3s ease;
}

.nav-search-form:focus-within {
    border-color: var(--text-primary);
}

.nav-search-input {
    background: transparent;
    border: none;
    padding: 0.5rem 0;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    color: var(--text-primary);
    width: 0;
    transition: width 0.4s var(--ease-out), padding 0.4s var(--ease-out);
    outline: none;
}

.nav-search-container:hover .nav-search-input,
.nav-search-input:focus {
    width: 150px;
    padding: 0.5rem 0.5rem 0.5rem 0;
}

.nav-icon-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-icon-btn:hover {
    color: var(--text-primary);
}

.desktop-only {
    display: block;
}

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

/* ─── Mobile Nav Overlay ─── */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 2000;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--text-primary);
}

.mobile-nav-footer {
    margin-top: auto;
    padding-top: 4rem;
}

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

    .mobile-menu-toggle {
        display: block;
    }
}