@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@800;900&display=swap');

:root {
    /* Variables de Color (Light Theme - Limpio y profesional) */
    --bg-primary: #f0f6ff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent: #0284c7;
    --accent-hover: #0369a1;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(2, 132, 199, 0.18);
    --card-shadow: rgba(2, 132, 199, 0.08);
    --danger: #ef4444;
    --success: #10b981;
}

[data-theme="dark"] {
    /* Variables de Color (Dark Theme - Deep Navy/Blue) */
    --bg-primary: #0A1128;
    /* Even Deeper Navy */
    --text-primary: #f0f8ff;
    --text-secondary: #94a3b8;
    --accent: #2563eb;
    /* Strong Blue Instead of Violet */
    --accent-hover: #3b82f6;
    /* Lighter Blue */
    --glass-bg: rgba(16, 28, 48, 0.65);
    --glass-border: rgba(37, 99, 235, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    /* background color is now handled by .ambient-waves to show behind everything */
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    /* Custom cyan-blue arrow cursor based on new palette */
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='%2300A3CC' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z'/></svg>") 4 4, auto;
}

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, rgba(2, 132, 199, 0) 60%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1);
    z-index: 9998;
    transition: transform 0.1s ease-out, background 0.1s ease;
    mix-blend-mode: multiply;
    will-change: transform;
}

[data-theme="dark"] .cursor-glow {
    background: radial-gradient(circle, rgba(0, 163, 204, 0.25) 0%, rgba(0, 163, 204, 0) 60%);
    mix-blend-mode: screen;
}

/* Ambient Waves Background */
.ambient-waves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -5;
    background: linear-gradient(180deg, #f0f6ff 0%, #e0ecf8 50%, #d4e5f7 100%);
    overflow: hidden;
    pointer-events: none;
}

/* Dark mode wave specific colors */
[data-theme="dark"] .ambient-waves {
    background: radial-gradient(circle at 50% 50%, #1c2b48 0%, #152238 100%);
}

.wave {
    position: absolute;
    width: 100vw;
    height: 25vh;
    background-repeat: repeat-x;
    background-size: 100vw 100%;
}

.wave-bottom-1 {
    bottom: 0;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 800 120' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><path d='M0,40 C150,80 250,0 400,40 C550,80 650,0 800,40 L800,120 L0,120 Z' fill='%230284c7' fill-opacity='0.06'></path></svg>");
    animation: moveWaves 15s linear infinite;
}

[data-theme="dark"] .wave-bottom-1 {
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 800 120' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><path d='M0,40 C150,80 250,0 400,40 C550,80 650,0 800,40 L800,120 L0,120 Z' fill='%232563eb' fill-opacity='0.15'></path></svg>");
}

.wave-bottom-2 {
    bottom: 0;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 800 120' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><path d='M0,40 C150,80 250,0 400,40 C550,80 650,0 800,40 L800,120 L0,120 Z' fill='%230284c7' fill-opacity='0.04'></path></svg>");
    animation: moveWavesLeft 20s linear infinite;
    transform: scaleX(-1);
}

[data-theme="dark"] .wave-bottom-2 {
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 800 120' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><path d='M0,40 C150,80 250,0 400,40 C550,80 650,0 800,40 L800,120 L0,120 Z' fill='%23ffffff' fill-opacity='0.05'></path></svg>");
}

.wave-top-1 {
    top: 0;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 800 120' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><path d='M0,40 C150,80 250,0 400,40 C550,80 650,0 800,40 L800,120 L0,120 Z' fill='%230ea5e9' fill-opacity='0.05'></path></svg>");
    animation: moveWaves 25s linear infinite;
    transform: scaleY(-1);
}

[data-theme="dark"] .wave-top-1 {
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 800 120' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><path d='M0,40 C150,80 250,0 400,40 C550,80 650,0 800,40 L800,120 L0,120 Z' fill='%231d4ed8' fill-opacity='0.1'></path></svg>");
}

.wave-top-2 {
    top: 0;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 800 120' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><path d='M0,40 C150,80 250,0 400,40 C550,80 650,0 800,40 L800,120 L0,120 Z' fill='%230284c7' fill-opacity='0.03'></path></svg>");
    animation: moveWavesLeft 30s linear infinite;
    transform: scaleY(-1) scaleX(-1);
}

[data-theme="dark"] .wave-top-2 {
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 800 120' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><path d='M0,40 C150,80 250,0 400,40 C550,80 650,0 800,40 L800,120 L0,120 Z' fill='%23ffffff' fill-opacity='0.03'></path></svg>");
}

@keyframes moveWaves {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: 100vw;
    }
}

@keyframes moveWavesLeft {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: -100vw;
    }
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container img {
    height: 40px;
    border-radius: 50%;
    /* Using 50% to make the glowing ring perfect instead of 8px */
    object-fit: contain;
    animation: spinGlow 8s linear infinite;
    /* Soft initial blue shadow */
    box-shadow: 0 0 10px rgba(0, 163, 204, 0.5), 0 0 20px rgba(37, 99, 235, 0.3);
}

@keyframes spinGlow {
    0% {
        transform: rotate(0deg);
        box-shadow: 0 0 10px rgba(0, 163, 204, 0.5), 0 0 20px rgba(37, 99, 235, 0.3);
    }

    50% {
        transform: rotate(180deg);
        box-shadow: 0 0 20px rgba(0, 163, 204, 0.8), 0 0 30px rgba(37, 99, 235, 0.6);
    }

    100% {
        transform: rotate(360deg);
        box-shadow: 0 0 10px rgba(0, 163, 204, 0.5), 0 0 20px rgba(37, 99, 235, 0.3);
    }
}

.logo-container h1 {
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-nav {
    display: none;
    /* Hidden on very small screens, shown by media query later if needed, but flex by default on desktop */
}

@media (min-width: 768px) {
    .header-nav {
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    .header-nav a {
        text-decoration: none;
        color: var(--text-primary);
        font-weight: 600;
        font-size: 1rem;
        position: relative;
        padding: 0.5rem 0;
        transition: color 0.3s;
    }

    .header-nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 2px;
        background: var(--accent);
        transition: width 0.3s ease;
    }

    .header-nav a:hover {
        color: var(--accent);
    }

    .header-nav a:hover::after,
    .header-nav a.active::after {
        width: 100%;
    }

    .header-nav a.active {
        color: var(--accent);
    }
}

/* Background Panning Effects for Custom Uploads */
.dynamic-bg-anim {
    position: relative;
    z-index: 1;
    /* Ensure content stays above the pseudo-element */
}

/* Isolate the panning animation on a pseudo-element behind the container to circumvent collision with fading entries */
.dynamic-bg-anim::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    /* Push to the very bottom behind the section's contents */
    background-image: var(--custom-bg);
    background-size: 110%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    /* Elegant transparency so text remains readable */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 70%, transparent 100%);
    animation: panBackground 45s linear infinite alternate !important;
    pointer-events: none;
    /* Ignore clicks */
}

@keyframes panBackground {
    0% {
        background-position: 0% 0%;
        background-size: 110%;
    }

    100% {
        background-position: 100% 100%;
        background-size: 115%;
    }
}

/* Page Views (Tab UI) */
.page-view {
    display: none;
    animation: fadeInTab 0.5s ease forwards;
}

.page-view.active-view {
    display: block;
}

/* Hero Section */
.hero {
    display: flex;
    position: relative;
    height: 100vh;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.icon-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.7rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.5);
}

.hero iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: brightness(0.5);
    pointer-events: none;
    border: 0;
}

.hero-overlay {
    padding: 3rem;
    max-width: 800px;
    margin: 0 1rem;
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1);
    /* 3D tracking setup */
    transform-style: preserve-3d;
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    perspective: 1000px;
    will-change: transform;
    /* Modo claro: parche blanco con más transparencia según solicitud */
    background: rgba(255, 255, 255, 0.40);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .hero-overlay {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: none;
}

/* Hero text colors for light mode */
:root .hero h2 {
    color: #000000;
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.8);
}

:root .hero p {
    color: #000000;
    font-weight: 500;
}

:root .badge {
    background: rgba(2, 132, 199, 0.1);
    border-color: rgba(2, 132, 199, 0.25);
    color: #0284c7;
}

/* Dark mode hero text stays white */
[data-theme="dark"] .hero h2 {
    color: #fff;
}

[data-theme="dark"] .hero p {
    color: #e2e8f0;
}

[data-theme="dark"] .badge {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Floating Particles for 'Inicio' */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(2, 132, 199, 0.15);
    border-radius: 50%;
    animation: floatParticle linear infinite;
}

[data-theme="dark"] .particle {
    background: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
        scale: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) translateX(20px) scale(0.5);
        opacity: 0;
    }
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.hero h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 800;
}

.hero h2 span {
    color: inherit; /* Eliminado el gradiente amarillo feo */
}

.hero p {
    font-size: 1.25rem;
    color: #e2e8f0;
    font-weight: 300;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Company Info Section */
.about-company-section {
    padding: 6rem 5%;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2.5rem;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 163, 204, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Products Section */
.catalog-section {
    padding: 6rem 5%;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3.5rem;
    font-weight: 800;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.product-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    background-color: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.product-info {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.product-category {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.combo-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9); /* Purple VIP gradient */
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
    z-index: 10;
}

/* If both feature and combo exist, drop combo down a bit */
.featured-badge + .combo-badge {
    top: 3rem; 
}

.combo-ingredients {
    background: rgba(139, 92, 246, 0.05);
    border-left: 3px solid #8b5cf6;
    padding: 8px 12px;
    margin: 10px 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.combo-ingredients ul {
    margin: 4px 0 0 0;
    padding-left: 1.2rem;
    list-style-type: disc;
}

.product-card-combo {
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.15);
}

.discount-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #ef4444, #b91c1c); /* Red/discount color */
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.old-price {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    font-weight: normal;
    margin-right: 0.5rem;
    opacity: 0.7;
}

.price-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.product-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    width: 100%;
}

.qty-selector {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 8px;
    overflow: hidden;
    height: 42px;
}

[data-theme="dark"] .qty-selector {
    background: rgba(255, 255, 255, 0.1);
}

.qty-selector button {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 32px;
    height: 100%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-selector button:hover {
    background: rgba(15, 23, 42, 0.1);
}

[data-theme="dark"] .qty-selector button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.qty-selector input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 36px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    /* Remove arrows in number inputs */
    -moz-appearance: textfield;
}

.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-btn {
    flex-grow: 1;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 200;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.cart-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    border-radius: 12px;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cart-item-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-item-price {
    color: var(--accent);
    font-weight: 700;
}

.cart-footer {
    padding: 1.5rem;
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 800;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Global Footer */
.global-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: transparent;
    margin-top: auto;
}

.secret-admin {
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 0.5rem;
    display: inline-block;
}

footer:hover .secret-admin {
    opacity: 0.2;
}

.secret-admin:hover {
    opacity: 1 !important;
    color: var(--accent);
}

/* ==============================================
   CMS MODAL CONFIGURATIONS 
   ============================================== */
.cms-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hidden {
    display: none !important;
}

/* CMS Login */
.cms-login-container {
    padding: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
}

.cms-login-container h2 {
    font-weight: 800;
    font-size: 1.8rem;
}

.cms-login-container input {
    padding: 1.2rem;
    border-radius: 12px;
    border: 2px solid var(--glass-border);
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 5px;
    transition: border 0.3s;
}

.cms-login-container input:focus {
    border-color: var(--accent);
}

.error-msg {
    color: var(--danger);
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 1.2em;
}

/* CMS Dashboard Layout */
.cms-dashboard {
    display: flex;
    width: 95vw;
    height: 90vh;
    max-width: 1400px;
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.cms-sidebar {
    width: 280px;
    background: var(--glass-bg);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.cms-brand {
    padding: 2rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(135deg, var(--accent), #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Gradient for JW Text */
.brand-gradient {
    /* Utilizing pure bright blues */
    background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.cms-nav {
    list-style: none;
    flex-grow: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.cms-nav li {
    padding: 1.2rem 2rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
    position: relative;
    color: var(--text-secondary);
}

.cms-nav li i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.cms-nav li:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent);
}

.cms-nav li.active {
    background: rgba(37, 99, 235, 0.15);
    color: var(--accent);
    border-right: 4px solid var(--accent);
}

.cms-sidebar-footer {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* CMS Tab Content */
.cms-content {
    flex-grow: 1;
    padding: 3rem;
    overflow-y: auto;
    background: var(--bg-primary);
}

.cms-tab {
    animation: fadeIn 0.4s ease forwards;
}

.cms-tab h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CMS Form Elements */
.form-group {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group textarea {
    padding: 1rem 1.2rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    width: 100%;
    outline: none;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.image-uploader {
    padding: 1.5rem;
    border-radius: 12px;
    background: var(--glass-bg);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.image-uploader img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.1);
}

.image-uploader input[type="file"] {
    flex-grow: 1;
}

/* CMS Table & Products */
.add-product-form {
    padding: 2rem;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.form-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.form-row>input {
    flex: 1;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.table-responsive {
    overflow-x: auto;
    background: var(--glass-bg);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid var(--glass-border);
}

.cms-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 600px;
}

.cms-table th {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1.2rem 1rem;
    text-align: left;
    border-bottom: 2px solid var(--glass-border);
}

.cms-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;
}

.editable-cell input {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-primary);
    padding: 0.6rem;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 1rem;
    font-weight: 500;
}

.editable-cell input[type="number"] {
    width: 100px;
}

.editable-cell input:focus,
.editable-cell input:hover {
    border-color: var(--accent);
    background: var(--bg-primary);
    outline: none;
}

.prod-img-mini {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .cms-dashboard {
        flex-direction: column;
        height: 95vh;
        width: 95vw;
    }

    .cms-sidebar {
        width: 100%;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 0;
        align-items: center;
        justify-content: space-between;
    }

    .cms-brand {
        border-bottom: none;
        border-right: 1px solid var(--glass-border);
        padding: 1.5rem;
    }

    .cms-nav {
        display: flex;
        overflow-x: auto;
        padding: 0;
        flex-grow: 1;
    }

    .cms-nav li {
        padding: 1.5rem 1rem;
        white-space: nowrap;
        border-right: none;
        border-bottom: 4px solid transparent;
    }

    .cms-nav li.active {
        border-right: none;
        border-bottom: 4px solid var(--accent);
    }

    .cms-sidebar-footer {
        display: none;
        /* In mobile we can have a floating save button */
    }

    .cms-content {
        padding: 1.5rem;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row>input {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .glass-header {
        padding: 1rem;
    }

    .hero-overlay {
        padding: 1.5rem;
        width: 100%;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .catalog-section {
        padding: 4rem 1rem;
    }
}

/* Floating Save for Mobile */
@media (max-width: 1024px) {
    #btn-save-all-mobile {
        display: flex;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 10000;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border-radius: 50px;
        padding: 1rem 2rem;
    }
}