/* ============================
   GraceXpress - Neutral Tones
   ============================ */

:root {
    --color-bg: #faf9f7;
    --color-bg-alt: #f3f1ed;
    --color-text: #2c2c2c;
    --color-text-secondary: #7a7670;
    --color-accent: #8b7355;
    --color-accent-dark: #6b5a45;
    --color-border: #e5e2dc;
    --color-bar-bg: #e8e5df;
    --color-neutral: #a69b8d;
    --color-warm: #c4b5a5;

    --font-main: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;

    --header-height: 64px;
    --sidebar-width: 220px;

    --transition: 0.2s ease;
}

[data-theme="dark"] {
    --color-bg: #1a1916;
    --color-bg-alt: #252320;
    --color-text: #f5f3f0;
    --color-text-secondary: #a8a299;
    --color-border: #3a3834;
    --color-bar-bg: #3a3834;
}

/* Bar animation keyframes with bounce/overshoot effect */
@keyframes barGrow {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }

    60% {
        transform: scaleX(1.05);
        transform-origin: left;
    }

    75% {
        transform: scaleX(0.98);
        transform-origin: left;
    }

    90% {
        transform: scaleX(1.02);
        transform-origin: left;
    }

    100% {
        transform: scaleX(1);
        transform-origin: left;
    }
}

@keyframes seasonBarGrow {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }

    55% {
        transform: scaleX(1.05);
        transform-origin: left;
    }

    70% {
        transform: scaleX(0.97);
        transform-origin: left;
    }

    85% {
        transform: scaleX(1.03);
        transform-origin: left;
    }

    100% {
        transform: scaleX(1);
        transform-origin: left;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s, color 0.3s;
}

/* ============================
   Header - Elegant Premium Style
   ============================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.header.header-hero {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 48px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Logo Section - Left */
.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo.logo-elegant {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #1a1a1a;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo.logo-elegant:hover {
    color: #555;
}

/* Header Center - Title & Subtitle */
.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.4em;
    color: #1a1a1a;
    margin: 0;
    text-transform: uppercase;
}

.header-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: #666;
    display: block;
    margin-top: 4px;
}

/* Main Navigation - Right */
.main-nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions-hidden {
    display: none;
}

.lang-selector select {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 6px 12px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    border-radius: 4px;
}

.theme-toggle,
.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #444;
    transition: var(--transition);
}

.header-hero .search-toggle {
    color: #444;
}

.theme-toggle:hover,
.search-toggle:hover {
    color: #8b7355;
}

.icon-moon {
    display: none;
}

[data-theme="dark"] .icon-sun {
    display: none;
}

[data-theme="dark"] .icon-moon {
    display: block;
}

/* ============================
   Hero / Landing Page - 21:9 Ultrawide
   ============================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    overflow: hidden;
}

.hero.hero-ultrawide {
    /* 21:9 aspect ratio - ultrawide cinematic */
    height: calc(100vw * 9 / 21);
    min-height: 500px;
    max-height: 85vh;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('hero-main.jpg') center/cover no-repeat;
    /* Soft warm filter for elegant fabric look */
    filter: brightness(1.02) saturate(0.95);

    /* Ken Burns Effect - Auto Zoom */
    transform: scale(1);
    transform-origin: center center;
    animation: kenBurnsZoomIn 20s ease-out forwards;
}

/* Ken Burns Effect - Scroll Triggered Reverse */
.hero-bg.scroll-triggered {
    animation: none;
    transform: scale(1);
    transition: transform 10s ease-out;
}

/* Ken Burns Animation - Zoom In */
@keyframes kenBurnsZoomIn {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.2);
    }
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Subtle blue filter overlay */
    background: rgba(30, 60, 114, 0.12);
    pointer-events: none;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Very subtle vignette */
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Very light overlay to keep text readable */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.08));
}

[data-theme="dark"] .hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

/* Dim Light Overlay Effect */
.hero-dim-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 2s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

.hero-dim-overlay.dimmed {
    background: rgba(0, 0, 0, 0.35);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 24px;
    padding-top: 60px;
}

/* Hero Brand Title - With Slide Effect */
.hero-brand-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    font-size: clamp(48px, 10vw, 120px);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-transform: uppercase;
    margin: 38px 0 30px 0;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    display: inline-flex;
    overflow: hidden;
}

.brand-main {
    color: #ffffff;
}

.brand-slide {
    display: inline-block;
    color: #ffffff;
    transition: max-width 1.3s ease-in-out, opacity 1s ease-in-out;
    max-width: 400px;
    overflow: hidden;
    white-space: nowrap;
}

.brand-slide.collapsed {
    max-width: 0;
    opacity: 0;
}

/* Rotating Text - Unified style */
.hero-rotating-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(16px, 2.2vw, 24px);
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.08em;
    margin: 0 0 40px 0;
    text-shadow: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    min-height: 30px;
}

.brand-x {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-style: normal;
}

.brand-press {
    display: inline-block;
    overflow: hidden;
    max-width: 320px;
    transition: max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s ease;
    opacity: 1;
    font-style: normal;
}

.hero-brand:hover .brand-press {
    max-width: 0;
    opacity: 0;
}

.hero-brand:hover .brand-x {
    color: #ffffff;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
}

.hero-brand:hover .brand-grace {
    color: #ffffff;
}

/* Brand text always white */
.brand-grace,
.brand-x,
.brand-press {
    color: #ffffff;
}

/* Larger brand text (+20%) */
.hero-brand-large {
    font-size: clamp(48px, 9vw, 114px) !important;
    overflow: visible;
}

/* Hero content adjusted (1cm = ~38px down) */
.hero-content-adjusted {
    padding-top: 38px;
}

.hero-title {
    font-size: clamp(42px, 6.5vw, 73px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

/* Hero subtitle larger (+20%) */
.hero-subtitle {
    font-size: clamp(22px, 3.5vw, 30px);
    font-weight: 400;
    color: #ffffff;
    opacity: 1;
    margin-bottom: 32px;
    margin-top: 16px;
    line-height: 1.7;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Hero brand text transition */
.hero-brand-text {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-subtitle-large {
    font-size: clamp(26px, 4.2vw, 36px);
}

/* Typewriter animation */
@keyframes typewriterFade {

    0%,
    100% {
        opacity: 1;
    }

    45% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    55% {
        opacity: 0;
    }

    60% {
        opacity: 1;
    }
}

.hero-ultrawide .hero-subtitle {
    color: #e0d4ff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* CTA Button - Outlined Elegant Style */
.hero-cta {
    display: inline-block;
    padding: 18px 42px;
    background: var(--color-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    border-radius: 4px;
    transition: var(--transition);
    letter-spacing: 0.1em;
}

.hero-cta.hero-cta-outlined {
    background: #87CEEB;
    border: 2px solid #87CEEB;
    color: #000000;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.12em;
    padding: 16px 38px;
    text-shadow: none;
}

.hero-cta.hero-cta-outlined:hover {
    background: #FFFFFF;
    color: #222;
    border-color: #FFFFFF;
    text-shadow: none;
}

.hero-cta:hover {
    background: var(--color-accent-dark);
}

/* ============================
   Search Bar - Neutral & Fixed
   ============================ */
.search-bar {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 32px;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 100;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 550px;
    margin: 0 auto;
    background: var(--color-bg-alt);
    padding: 14px 20px;
    border-radius: 50px;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    box-shadow: 0 4px 20px rgba(139, 115, 85, 0.15);
    border-color: var(--color-accent);
    transform: translateY(-1px);
}

[data-theme="dark"] .search-container {
    background: var(--color-bg-alt);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.search-icon {
    color: var(--color-accent);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.search-container:focus-within .search-icon {
    transform: scale(1.1);
}

.search-container input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    font-family: inherit;
    color: var(--color-text);
    outline: none;
    font-weight: 500;
    padding-right: 30px;
}

.search-container input::placeholder {
    color: #a0a5c0;
    font-weight: 400;
}

/* Clear Button */
.search-clear-btn {
    position: absolute;
    right: 120px;
    width: 24px;
    height: 24px;
    border: none;
    background: var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.search-clear-btn.visible {
    display: flex;
}

.search-clear-btn svg {
    width: 12px;
    height: 12px;
    color: var(--color-text-secondary);
}

.search-clear-btn:hover {
    background: var(--color-accent);
}

.search-clear-btn:hover svg {
    color: #fff;
}

.search-count {
    font-size: 12px;
    color: var(--color-accent);
    white-space: nowrap;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 4px 12px;
    border-radius: 20px;
}

/* Empty State Message */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
}

.empty-state-message {
    font-size: 14px;
    color: var(--color-text-secondary);
    max-width: 300px;
}

.empty-state-btn {
    margin-top: 20px;
    padding: 10px 24px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.empty-state-btn:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
}

/* ============================
   Main Content
   ============================ */
.main-content {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    min-height: 100vh;
    padding-top: 76px;
    /* Space for fixed search bar */
}

.filters-sidebar {
    width: var(--sidebar-width);
    padding: 28px 20px;
    border-right: 1px solid var(--color-border);
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-height) + 76px);
    height: fit-content;
    max-height: calc(100vh - var(--header-height) - 76px);
    overflow-y: auto;
    background: var(--color-bg);
}

.filter-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    border-radius: 2px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--color-text);
    transition: all 0.3s ease;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    perspective: 500px;
}

.filter-option:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-border);
    color: var(--color-accent);
    transform: translateX(4px);
}

/* Hide radio button */
.filter-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* 3D Icon styles */
.filter-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-neutral);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
}

.filter-option:hover .filter-icon {
    color: var(--color-accent);
    transform: rotateY(15deg) scale(1.1);
}

/* 3D Animation on click/select */
.filter-option input:checked~.filter-icon {
    color: var(--color-accent);
    animation: icon3DFlip 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(1.15);
}

@keyframes icon3DFlip {
    0% {
        transform: rotateY(0deg) scale(1);
    }

    25% {
        transform: rotateY(90deg) scale(0.9);
    }

    50% {
        transform: rotateY(180deg) scale(1.1);
    }

    75% {
        transform: rotateY(270deg) scale(1.2);
    }

    100% {
        transform: rotateY(360deg) scale(1.15);
    }
}

/* Selected state styling */
.filter-option:has(input:checked) {
    background: var(--color-bg-alt);
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.15);
}

.filter-option input:checked~span,
.filter-option input:checked+.filter-icon+span {
    color: var(--color-accent);
    font-weight: 600;
}

/* ============================
   Collection Grid - 4 columns
   ============================ */
.collection-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 28px;
    align-content: start;
}

.fabric-card {
    cursor: pointer;
    transition: var(--transition);
}

.fabric-card:hover {
    transform: translateY(-3px);
}

.fabric-card-image {
    aspect-ratio: 1 / 1;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.fabric-card:hover .fabric-card-image {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.fabric-card-placeholder {
    font-size: 40px;
    opacity: 0.25;
}

.fabric-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
}

/* ============================
   Fabric Slider - Premium Modern Design (80% Pop-in)
   ============================ */
.fabric-slider {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
}

.fabric-slider.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slider-container {
    width: 85vw;
    height: 85vh;
    max-width: 1400px;
    max-height: 900px;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .slider-container {
    background: linear-gradient(135deg, #0a0a0f 0%, #0f0f18 100%);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slider-close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
}

.slider-close:hover {
    background: #ff4757;
    border-color: #ff4757;
    transform: rotate(90deg);
}

/* Navigation Arrows - Bright & Always Visible */
.slider-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3000;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(238, 90, 36, 0.5);
}

.slider-nav:hover {
    background: linear-gradient(135deg, #ff4757 0%, #c44569 100%);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 12px 40px rgba(255, 71, 87, 0.6);
}

.slider-nav-prev {
    left: 20px;
}

.slider-nav-next {
    right: 20px;
}

.slider-nav svg {
    width: 28px;
    height: 28px;
    stroke-width: 3;
}

.slider-wrapper {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.slider-wrapper::-webkit-scrollbar {
    display: none;
}

/* ====================================================
   SLIDE LAYOUT - REFATORADO
   Janela 1:1 à esquerda | Conteúdo fluido à direita
   ==================================================== */
.slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    scroll-snap-align: center;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--color-bg);
}

/* ====================================================
   IMAGEM 1:1 - Quadrada baseada na altura
   ==================================================== */
.slide-image-section {
    /* Quadrado perfeito: largura = altura */
    width: calc(80vh);
    /* 80% da altura do viewport */
    min-width: 300px;
    max-width: 500px;
    height: 100%;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;

    background: linear-gradient(160deg, #1a1a2e 0%, #0d0d14 100%);
    padding: 20px;
}

/* Container interno da imagem - 1:1 */
.slide-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: calc(100% - 40px);
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.slide-image-section.zoomed {
    cursor: zoom-out;
}

.slide-image-section.zoomed .slide-image-container {
    transform: scale(1.5);
}

/* Gradiente decorativo */
.slide-image-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 25% 25%, rgba(139, 115, 85, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Fabric Image */
.slide-fabric-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-image-section:hover .slide-fabric-image {
    transform: scale(1.05);
}

.slide-image-section.zoomed .slide-fabric-image {
    transform: scale(2);
    cursor: grab;
}

/* Image Placeholder - Centered in 1:1 container */
.slide-image-placeholder {
    font-size: 80px;
    opacity: 0.2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.slide-image-container:hover .slide-image-placeholder {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.3;
}

/* Zoom Button - Inside container */
.slide-zoom-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.slide-zoom-btn:hover {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slide-zoom-btn svg {
    width: 18px;
    height: 18px;
    color: #333;
}

.slide-fabric-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slide-counter {
    position: absolute;
    bottom: 16px;
    left: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 12px;
}

.slide-counter strong {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

/* ====================================================
   CONTEÚDO FLUIDO - Ocupa espaço restante
   Scroll suave quando conteúdo excede altura
   ==================================================== */
.slide-content-section {
    /* Preenche todo espaço restante */
    flex: 1;
    min-width: 0;
    height: 100%;

    /* Scroll suave */
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;

    /* Layout interno */
    padding: 24px 32px;
    background: var(--color-bg);
    position: relative;

    /* Conteúdo em coluna fluida */
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Custom Scrollbar - Subtle */
.slide-content-section::-webkit-scrollbar {
    width: 5px;
}

.slide-content-section::-webkit-scrollbar-track {
    background: transparent;
}

.slide-content-section::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.slide-content-section::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Header Section */
.slide-header {
    flex-shrink: 0;
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.slide-origin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.slide-origin::before {
    content: '📍';
    font-size: 11px;
}

.slide-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-tagline {
    font-size: 13px;
    font-style: italic;
    color: var(--color-text-secondary);
    opacity: 0.8;
}

/* ====================================================
   Content Blocks - Fluid Layout
   ==================================================== */

/* Tactile Accords */
.tactile-accords {
    flex-shrink: 0;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 16px 18px;
}

.tactile-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.tactile-header svg {
    color: var(--color-accent);
    width: 14px;
    height: 14px;
}

.accord-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 2px 0;
}

.accord-item:last-child {
    margin-bottom: 0;
}

.accord-label {
    width: 130px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text);
}

.accord-bar {
    flex: 1;
    height: 8px;
    background: var(--color-bar-bg);
    border-radius: 4px;
    overflow: hidden;
    margin-right: 10px;
    position: relative;
}

.accord-fill {
    height: 100%;
    border-radius: 4px;
    position: relative;
    transform: scaleX(0);
    transform-origin: left;
}

.accord-fill.animate {
    animation: barGrow 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.accord-item:nth-child(1) .accord-fill.animate {
    animation-delay: 0s;
}

.accord-item:nth-child(2) .accord-fill.animate {
    animation-delay: 0.08s;
}

.accord-item:nth-child(3) .accord-fill.animate {
    animation-delay: 0.16s;
}

.accord-item:nth-child(4) .accord-fill.animate {
    animation-delay: 0.24s;
}

.accord-item:nth-child(5) .accord-fill.animate {
    animation-delay: 0.32s;
}

.accord-fill.color {
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
}

.accord-fill.softness {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.accord-fill.warmth {
    background: linear-gradient(90deg, #fa709a 0%, #fee140 100%);
}

.accord-fill.maintenance {
    background: linear-gradient(90deg, #30cfd0 0%, #330867 100%);
}

.accord-fill.lustre {
    background: linear-gradient(90deg, #a8edea 0%, #fed6e3 100%);
}

.accord-value {
    width: 40px;
    text-align: right;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text);
}

/* Fiber/Weave/Finish Cards - Compact */
.fabric-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.fabric-icon-item {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.fabric-icon-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.fabric-icon {
    font-size: 22px;
    margin-bottom: 6px;
}

.fabric-icon-label {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 3px;
}

.fabric-icon-value {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text);
}

/* About Section - Compact */
.about-fabric {
    margin-bottom: 16px;
    padding: 14px 16px;
    background: var(--color-bg-alt);
    border-radius: 8px;
    border-left: 3px solid var(--color-accent);
}

.about-fabric h3 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.about-fabric p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--color-text);
    opacity: 0.85;
}

/* Specifications and Care - Compact */
.specs-care-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.specs-section,
.care-section {
    background: var(--color-bg-alt);
    border-radius: 8px;
    padding: 14px;
}

.specs-section h4,
.care-section h4 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dashed var(--color-border);
    font-size: 11px;
}

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

.spec-label {
    color: var(--color-text-secondary);
}

.spec-value {
    font-weight: 600;
    color: var(--color-text);
}

.care-section p {
    font-size: 11px;
    line-height: 1.6;
    color: var(--color-text);
    opacity: 0.85;
}

/* Best Suited For - Compact */
.best-suited {
    margin-bottom: 16px;
}

.best-suited h4 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text);
}

.suited-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.suited-tag {
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.suited-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.4);
}

/* Seasonality - Compact */
.seasonality {
    margin-bottom: 16px;
}

.seasonality h4 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text);
}

.season-ratings {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.season-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.season-card.active {
    opacity: 1;
}

.season-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
}

.season-card.active .season-icon {
    color: #888;
}

.season-icon svg {
    width: 32px;
    height: 32px;
}

.season-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: capitalize;
}

.season-card.active .season-name {
    color: var(--color-text);
    font-weight: 600;
}

.season-meter {
    width: 100%;
    height: 4px;
    background: #e8e8e8;
    border-radius: 2px;
    overflow: hidden;
}

.season-meter-fill {
    height: 100%;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
}

/* Season 1: Spring */
.season-card:nth-child(1).active .season-icon {
    color: #4CAF50;
}

.season-card:nth-child(1).active .season-name {
    color: #4CAF50;
}

.season-card:nth-child(1) .season-meter-fill {
    background: #4CAF50;
}

/* Season 2: Summer */
.season-card:nth-child(2).active .season-icon {
    color: #FF9800;
}

.season-card:nth-child(2).active .season-name {
    color: #FF9800;
}

.season-card:nth-child(2) .season-meter-fill {
    background: #FF9800;
}

/* Season 3: Autumn */
.season-card:nth-child(3).active .season-icon {
    color: #FF5722;
}

.season-card:nth-child(3).active .season-name {
    color: #FF5722;
}

.season-card:nth-child(3) .season-meter-fill {
    background: #FF5722;
}

/* Season 4: Winter */
.season-card:nth-child(4).active .season-icon {
    color: #2196F3;
}

.season-card:nth-child(4).active .season-name {
    color: #2196F3;
}

.season-card:nth-child(4) .season-meter-fill {
    background: #2196F3;
}

.season-meter-fill.animate {
    animation: seasonBarGrow 1.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.season-card:nth-child(1) .season-meter-fill.animate {
    animation-delay: 0.1s;
}

.season-card:nth-child(2) .season-meter-fill.animate {
    animation-delay: 0.2s;
}

.season-card:nth-child(3) .season-meter-fill.animate {
    animation-delay: 0.3s;
}

.season-card:nth-child(4) .season-meter-fill.animate {
    animation-delay: 0.4s;
}

/* Progress Bar */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 20px 20px;
}

.slider-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b 0%, #ee5a24 50%, #ff4757 100%);
    transition: width 0.3s ease;
    border-radius: 0 0 0 20px;
}

/* Slide Counter Display */
.slide-navigation-info {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    color: #fff;
    font-size: 13px;
    z-index: 100;
}

.slide-navigation-info span {
    opacity: 0.7;
}

.slide-navigation-info strong {
    font-weight: 700;
    color: var(--color-accent);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}



/* ============================
   Premium Portfolio Section
   ============================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 80px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease;
    will-change: transform;
}

.portfolio-item:hover {
    transform: scale(1.33);
    z-index: 100;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.portfolio-item-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-item-media {
    transform: scale(1.05);
}

.portfolio-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            transparent 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-item-overlay {
    opacity: 1;
}

.portfolio-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-item:hover .portfolio-item-content {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-item-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.portfolio-item-phrase {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-style: italic;
    line-height: 1.5;
}

/* Video indicator */
.portfolio-item.video::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.portfolio-item.video::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    border: 15px solid transparent;
    border-left: 22px solid #1a1a2e;
    z-index: 11;
    transition: all 0.4s ease;
}

.portfolio-item.video:hover::before {
    transform: translate(-50%, -50%) scale(1.15);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
}

.portfolio-item.video:hover::after {
    border-left-color: #fff;
}

/* Staggered grid for visual interest */
.portfolio-item:nth-child(2) {
    margin-top: 40px;
}

.portfolio-item:nth-child(5) {
    margin-top: 40px;
}

.portfolio-item:nth-child(8) {
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 40px 24px;
    }

    .portfolio-item:hover {
        transform: scale(1.15);
    }

    .portfolio-item:nth-child(2),
    .portfolio-item:nth-child(5),
    .portfolio-item:nth-child(8) {
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px 16px;
    }

    .portfolio-item:hover {
        transform: scale(1.05);
    }
}

/* ============================
   Footer
   ============================ */
.footer {
    background: var(--color-bg-alt);
    padding: 50px 32px 30px;
    margin-top: 60px;
    border-top: 1px solid var(--color-border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 30px;
}

.footer-brand h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--color-text-secondary);
    max-width: 260px;
}

.footer-col h4 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--color-text-secondary);
    text-decoration: none;
    margin-bottom: 6px;
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.footer-lang select {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 6px 12px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    border-radius: 4px;
}

.footer-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-theme {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: 0.2s ease;
}

.footer-theme:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 1200px) {
    .collection-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .slide-content-section {
        padding: 40px;
    }
}

@media (max-width: 1024px) {
    .filters-sidebar {
        display: none;
    }

    .collection-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }

    .main-nav {
        display: none;
    }

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

    /* Responsive Slide Layout */
    .slide {
        display: flex;
        flex-direction: column;
        grid-template-columns: unset;
    }

    .slide-image-section {
        width: 100%;
        height: auto;
        min-width: unset;
        max-width: unset;
        aspect-ratio: 1 / 1;
        max-height: 40vh;
    }

    .slide-content-section {
        width: 100%;
        flex: 1;
        min-height: 0;
        padding: 20px;
        overflow-y: auto;
    }

    .slide-title {
        font-size: 24px;
    }

    .specs-care-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fabric-icons {
        gap: 20px;
        flex-wrap: wrap;
    }

    .footer-main {
        flex-direction: column;
        gap: 30px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .slide-image-section {
        max-height: 35vh;
        padding: 16px;
    }

    .slide-content-section {
        padding: 16px;
        gap: 12px;
    }

    .accord-label {
        width: 100px;
        font-size: 10px;
    }
}

/* ====================================================
   FABRIC IMAGE UPLOAD SYSTEM
   ==================================================== */

/* 1:1 Aspect Ratio Image Container */
.fabric-image-1x1 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-radius: inherit;
}

/* Grid Card Image */
.fabric-card-image .fabric-image-1x1 {
    transition: transform 0.3s ease;
}

.fabric-card:hover .fabric-image-1x1 {
    transform: scale(1.05);
}

/* Slide Description Image */
.slide-fabric-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-image-section:hover .slide-fabric-image {
    transform: scale(1.03);
}

.slide-image-section.zoomed .slide-fabric-image {
    transform: scale(2);
    cursor: grab;
}

/* ====================================================
   ADMIN UPLOAD BUTTON - Below Image (Admin Only)
   ==================================================== */
.slide-upload-admin {
    display: none;
    /* Hidden by default */
    padding: 12px 16px;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}

/* Show only in admin edit mode */
.edit-mode-active .slide-upload-admin {
    display: block;
}

.admin-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-upload-btn:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

.admin-upload-btn svg {
    flex-shrink: 0;
}

/* Loading Overlay */
.upload-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 10;
    border-radius: inherit;
}

.upload-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.upload-loading-overlay span {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

/* Notification */
.upload-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 20px;
    background: var(--color-text);
    color: var(--color-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.upload-notification.success {
    background: #10b981;
    color: #fff;
}

.upload-notification.error {
    background: #ef4444;
    color: #fff;
}

.upload-notification button {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.upload-notification button:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

/* Admin Upload Button on Grid Cards */
.fabric-card-upload-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 5;
}

.fabric-card:hover .fabric-card-upload-btn {
    opacity: 1;
}

.fabric-card-upload-btn:hover {
    background: var(--color-accent);
    transform: scale(1.1);
}

.fabric-card-upload-btn svg {
    width: 16px;
    height: 16px;
    color: #fff;
}

/* ====================================================
   CROP MODAL STYLES
   ==================================================== */
.crop-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.crop-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.crop-modal-content {
    width: 90%;
    max-width: 800px;
    background: var(--color-bg);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.crop-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crop-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.crop-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-secondary);
}

.crop-body {
    flex: 1;
    overflow: hidden;
    background: #000;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crop-image-container {
    max-width: 100%;
    max-height: 60vh;
}

#cropImageTarget {
    display: block;
    max-width: 100%;
}

.crop-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-cancel,
.btn-confirm {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

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

.btn-confirm {
    background: var(--color-accent);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-confirm:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
}

/* ====================================================
   ADMIN LOGIN MODAL STYLES
   ==================================================== */
.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    /* Above eveything */
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.admin-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.admin-modal-content {
    background: var(--color-bg);
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.admin-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-secondary);
}

.admin-modal-content h3 {
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.admin-btn {
    width: 100%;
    padding: 12px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.admin-btn:hover {
    background: var(--color-accent-dark);
}

.admin-forgot {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--color-text-secondary);
    text-decoration: none;
}

.admin-forgot:hover {
    text-decoration: underline;
}

/* ====================================================
   ADMIN TOOLBAR - Fixed at Top
   ==================================================== */
.admin-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.admin-toolbar-content {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1200px;
    width: 100%;
    padding: 0 24px;
}

.admin-toolbar-label {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-toolbar-buttons {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.admin-toolbar-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-toolbar-btn.save {
    background: #10b981;
    color: #fff;
}

.admin-toolbar-btn.save:hover {
    background: #059669;
}

.admin-toolbar-btn.discard {
    background: #ef4444;
    color: #fff;
}

.admin-toolbar-btn.discard:hover {
    background: #dc2626;
}

.admin-toolbar-btn.exit {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-toolbar-btn.exit:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Adjust header when admin toolbar is visible */
.edit-mode-active .header {
    top: 48px;
}

.edit-mode-active .main-content {
    padding-top: 124px;
}

.footer-admin {
    margin-top: 20px;
    text-align: right;
}

.footer-admin a {
    color: var(--color-text-secondary);
    font-size: 12px;
    opacity: 0.3;
    text-decoration: none;
    transition: opacity 0.2s;
}

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

/* ====================================================
   ADVERTISING BAR - Fixed at Bottom of Screen
   ==================================================== */
.ad-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 38px;
    background: #001f3f;
    z-index: 999;
    overflow: hidden;
    border-top: none;
    display: flex;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

/* Add padding to footer so it's not hidden behind fixed ad-bar */
.footer {
    padding-bottom: 50px !important;
}

.ad-track {
    display: flex;
    width: max-content;
    animation: scrollAds 23s linear infinite;
}

.ad-bar:hover .ad-track {
    animation-play-state: paused;
}

@keyframes scrollAds {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ad-slot {
    width: 25vw;
    min-width: 300px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.2s;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.ad-slot:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #87CEEB;
}

.ad-slot span {
    opacity: 1;
}

/* Edit Mode Styles */
.edit-mode-active .slide-image-section:hover,
.edit-mode-active .fabric-card:hover {
    outline: 2px dashed var(--color-accent);
    cursor: pointer;
}

.admin-edit-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-accent);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 10;
    display: none;
}

.edit-mode-active .admin-edit-badge {
    display: block;
}

/* ZOOM PAN STYLES */
.slide-image-section {
    cursor: zoom-in;
    overflow: hidden;
}

.slide-image-section.zoomed {
    cursor: zoom-out;
}

.slide-fabric-image {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}

.slide-image-section.zoomed .slide-fabric-image {
    transform: scale(2.5);
}

/* ====================================================
   MOBILE RESPONSIVE STYLES - Complete Overhaul
   ==================================================== */

/* Tablet Portrait */
@media (max-width: 1024px) {
    .header-center {
        display: none;
    }

    .header-container {
        padding: 0 20px;
    }

    .main-nav {
        gap: 24px;
    }
}

/* Mobile Landscape / Small Tablet */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    /* Header Mobile */
    .header-container {
        padding: 0 16px;
    }

    .logo.logo-elegant {
        font-size: 18px;
    }

    .main-nav {
        display: none;
    }

    .header-center {
        display: none;
    }

    /* Hero Mobile */
    .hero {
        height: 70vh;
        min-height: 450px;
    }

    .hero.hero-ultrawide {
        height: 60vh;
        min-height: 400px;
    }

    .hero-brand-title {
        font-size: clamp(32px, 8vw, 60px);
    }

    .hero-subtitle {
        font-size: clamp(14px, 3vw, 18px);
        padding: 0 20px;
    }

    .hero-cta.hero-cta-outlined {
        padding: 14px 28px;
        font-size: 14px;
    }

    /* Search Bar Mobile */
    .search-bar {
        padding: 12px 16px;
    }

    .search-container {
        padding: 10px 16px;
    }

    .search-container input {
        font-size: 14px;
    }

    .search-count {
        display: none;
    }

    /* Main Content Mobile */
    .main-content {
        padding-top: 60px;
    }

    .filters-sidebar {
        display: none;
    }

    /* Fabric Grid Mobile */
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .fabric-card {
        border-radius: 12px;
    }

    .fabric-card-name {
        font-size: 12px;
        padding: 10px;
    }

    /* Slider Modal Mobile */
    .slider-container {
        padding: 0;
    }

    .slider-nav {
        width: 36px;
        height: 36px;
    }

    .slider-nav.prev {
        left: 8px;
    }

    .slider-nav.next {
        right: 8px;
    }

    .slider-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }

    /* Slide Content Mobile */
    .slide {
        flex-direction: column;
        overflow-y: auto;
    }

    .slide-image-section {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        max-height: 45vh;
        min-height: 200px;
    }

    .slide-content-section {
        width: 100%;
        padding: 20px 16px;
        overflow-y: visible;
    }

    .slide-title {
        font-size: 22px;
    }

    .slide-category {
        font-size: 11px;
    }

    .slide-description {
        font-size: 13px;
        line-height: 1.6;
    }

    /* Accordion Mobile */
    .accordion-header {
        padding: 14px 0;
        font-size: 13px;
    }

    .accordion-body {
        padding: 12px 0;
    }

    .accord-row {
        flex-direction: column;
        gap: 4px;
        margin-bottom: 12px;
    }

    .accord-label {
        width: 100%;
        font-size: 11px;
    }

    .accord-bar {
        width: 100%;
    }

    /* Specs Grid Mobile */
    .specs-care-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fabric-icons {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .fabric-icon {
        width: 40px;
        height: 40px;
    }

    .fabric-icon svg {
        width: 20px;
        height: 20px;
    }

    /* Season Meter Mobile */
    .season-meter {
        gap: 8px;
    }

    .season-label {
        font-size: 11px;
        min-width: 50px;
    }

    /* Footer Mobile */
    .footer {
        padding: 40px 16px 100px;
    }

    .footer-main {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 24px;
    }

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

    /* Ad Bar Mobile */
    .ad-bar {
        height: auto;
        min-height: 50px;
    }

    .ad-slot {
        font-size: 11px;
        padding: 12px 16px;
    }

    /* Portfolio Mobile */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px 16px;
    }

    /* About Page Mobile */
    .about-content {
        padding: 20px 16px;
    }

    .about-title {
        font-size: 28px;
    }

    /* Contact Page Mobile */
    .contact-content {
        padding: 20px 16px;
    }

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

/* Mobile Portrait - Small Phones */
@media (max-width: 480px) {
    :root {
        --header-height: 52px;
    }

    .logo.logo-elegant {
        font-size: 16px;
    }

    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .hero-brand-title {
        font-size: clamp(28px, 10vw, 48px);
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .hero-cta.hero-cta-outlined {
        padding: 12px 24px;
        font-size: 13px;
    }

    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
    }

    .fabric-card-name {
        font-size: 11px;
        padding: 8px;
    }

    .slide-image-section {
        max-height: 35vh;
    }

    .slide-content-section {
        padding: 16px 12px;
    }

    .slide-title {
        font-size: 20px;
    }

    .accordion-header {
        font-size: 12px;
        padding: 12px 0;
    }

    .accord-label {
        font-size: 10px;
    }

    .footer {
        padding: 30px 12px 90px;
    }

    /* Admin Toolbar Mobile */
    .admin-toolbar-content {
        flex-direction: column;
        gap: 8px;
        padding: 8px 12px;
    }

    .admin-toolbar-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .admin-toolbar-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}

/* Very Small Phones */
@media (max-width: 360px) {
    .collection-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 6px;
    }

    .fabric-card-name {
        font-size: 10px;
    }

    .slide-title {
        font-size: 18px;
    }

    .hero-brand-title {
        font-size: 28px;
    }
}

/* Landscape Mode Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: 300px;
    }

    .hero-brand-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .slide-image-section {
        max-height: 60vh;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .fabric-card:hover {
        transform: none;
    }

    .fabric-card:active {
        transform: scale(0.98);
    }

    .hero-cta:hover {
        transform: none;
    }

    .nav-link:hover::after {
        transform: scaleX(0);
    }

    /* Larger touch targets */
    .slider-nav {
        width: 44px;
        height: 44px;
    }

    .slider-close {
        width: 44px;
        height: 44px;
    }

    .accordion-header {
        min-height: 48px;
    }

    .filter-option {
        min-height: 44px;
    }
}

/* ====================================================
   MOBILE MENU - Hamburger Navigation
   ==================================================== */

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    transition: color 0.3s ease;
    z-index: 1001;
}

.mobile-menu-btn:hover {
    color: var(--color-accent);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 24px;
    padding: 40px 20px;
}

.mobile-nav-link {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 16px 32px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--color-accent);
    transform: scale(1.05);
}

/* Show mobile menu on smaller screens */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .mobile-nav-overlay {
        display: block;
    }

    .main-nav {
        display: none !important;
    }
}