/* ==========================================================================
   Portal Digital [3D] — Style System 2026 (Modern, Fast & Responsive)
   ========================================================================== */

:root {
    --bg-dark: #090d16;
    --bg-surface: #0f172a;
    --card-bg: #162032;
    --card-border: rgba(255, 255, 255, 0.08);
    
    --primary-orange: #F18F01;
    --primary-orange-hover: #ff9d1a;
    --primary-blue: #2E86AB;
    --accent-green: #10b981;
    --accent-blue: #3b82f6;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 35px rgba(241, 143, 1, 0.2);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Top Bar & Header Navigation
   ========================================================================== */

.top-bar {
    background: linear-gradient(90deg, #0f172a, #1e293b);
    border-bottom: 1px solid var(--card-border);
    padding: 8px 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-link {
    color: var(--primary-orange);
    font-weight: 600;
    transition: color 0.2s;
}

.top-link:hover {
    color: var(--primary-orange-hover);
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--card-border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
}

.brand-logo .logo-badge {
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-logo .logo-badge:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(241, 143, 1, 0.45);
}

.brand-logo img {
    height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-list li::before,
.nav-menu li::before,
.main-header li::before {
    content: none !important;
    display: none !important;
}

.brand-text span {
    color: var(--primary-orange);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-list a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #cbd5e1;
    transition: color 0.2s;
}

.nav-list a:hover {
    color: var(--primary-orange);
}

.nav-highlight {
    color: var(--primary-orange) !important;
    font-weight: 700 !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, var(--primary-orange), #d67d00);
    color: white;
    box-shadow: 0 4px 15px rgba(241, 143, 1, 0.3);
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(241, 143, 1, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #64748b;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    font-weight: 700;
    margin-top: 10px;
}

.btn-whatsapp:hover {
    background: #1eb956;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    position: relative;
    padding: 90px 0 80px;
    background: radial-gradient(circle at 70% 30%, rgba(46, 134, 171, 0.15), transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(241, 143, 1, 0.1), transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(241, 143, 1, 0.12);
    border: 1px solid rgba(241, 143, 1, 0.3);
    color: var(--primary-orange);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary-orange), #ffd166);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 30px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-visual-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-glow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-visual-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================================================
   Stats Bar
   ========================================================================== */

.stats-bar {
    background: var(--bg-surface);
    border-y: 1px solid var(--card-border);
    padding: 30px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-orange);
}

.stat-lbl {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Cards & Sections
   ========================================================================== */

.section {
    padding: 80px 0;
}

.section-title-wrap {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-orange);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
}

.section-h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* Features / Serial Cards */
.feature-card-pro {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card-pro:hover {
    transform: translateY(-6px);
    border-color: var(--primary-orange);
}

.feature-icon-lg {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-card-pro h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.feature-card-pro p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Store Products */
.product-card-modern {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-orange);
}

.product-media {
    width: 100%;
    height: 260px;
    background: #0b1329;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-body-modern {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary-orange);
    font-weight: 700;
    margin-bottom: 5px;
}

.product-name-modern {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.product-desc-modern {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-price-modern {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-green);
    margin-bottom: 15px;
}

/* Product Image Carousel */
.product-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.product-carousel-slide {
    width: 100%;
    height: 100%;
    display: none;
}

.product-carousel-slide.active {
    display: block;
}

.product-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-carousel-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.product-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s;
}

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

.product-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 2;
    transition: background 0.2s;
}

.product-carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.product-carousel-arrow.prev {
    left: 10px;
}

.product-carousel-arrow.next {
    right: 10px;
}

/* Reviews Google */
.review-card-modern {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 25px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-stars {
    color: #fbbf24;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.review-quote {
    font-size: 0.95rem;
    color: #cbd5e1;
    font-style: italic;
    margin-bottom: 15px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.main-footer {
    background: #050811;
    border-top: 1px solid var(--card-border);
    padding: 70px 0 0;
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    margin-bottom: 15px;
    display: inline-block;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: white;
    margin-bottom: 18px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

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

.contact-col p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid var(--card-border);
    padding: 20px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-ctas { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

.mobile-menu-cta {
    display: none !important;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 62px;
        left: 0;
        width: 100%;
        background: #0f172a;
        border-bottom: 1px solid var(--card-border);
        padding: 20px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    }
    .nav-menu.active {
        display: block;
    }
    .nav-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .mobile-menu-cta {
        display: block !important;
        width: 100%;
        margin-top: 10px;
    }
    .nav-desktop-cta {
        display: none !important;
    }
    .nav-container {
        height: 62px;
    }
    .brand-logo img {
        height: 32px;
    }
    .nav-actions {
        gap: 10px;
    }
    .nav-cart-btn {
        padding: 7px 11px;
        font-size: 1rem;
    }
    .mobile-toggle { display: flex; }
    .top-bar { flex-direction: column; text-align: center; gap: 5px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Page Banner & Subpage Helpers */
.page-banner {
    padding: 50px 0 35px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(9, 13, 22, 1));
    border-bottom: 1px solid var(--card-border);
}
.page-banner h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
}
.page-banner h1 span {
    color: var(--primary-orange);
}
.page-banner p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 750px;
}

.map-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-top: 15px;
    border: 1px solid var(--card-border);
}
.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   Tables (Materiales Técnicos & Comparativas)
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 30px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.modern-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-family: var(--font-heading);
    padding: 16px 20px;
    border-bottom: 2px solid var(--card-border);
    font-weight: 700;
}

.modern-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-muted);
}

.modern-table tr:last-child td {
    border-bottom: none;
}

.modern-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
}

.badge-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-orange { background: rgba(241, 143, 1, 0.15); color: var(--primary-orange); border: 1px solid rgba(241, 143, 1, 0.3); }
.badge-blue { background: rgba(46, 134, 171, 0.15); color: #38bdf8; border: 1px solid rgba(46, 134, 171, 0.3); }
.badge-green { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); border: 1px solid rgba(16, 185, 129, 0.3); }

/* ==========================================================================
   Process Steps & Workflow
   ========================================================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 30px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-orange);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange), #ea580c);
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(241, 143, 1, 0.4);
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Forms & Contact
   ========================================================================== */
.form-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-subtle);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(241, 143, 1, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-wrap {
    max-width: 850px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-header {
    width: 100%;
    padding: 20px 24px;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-header:hover {
    color: var(--primary-orange);
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-body {
    display: none;
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.faq-item.open .faq-body {
    display: block;
}

/* ==========================================================================
   Gallery & Projects (Vanilla Grid & Modal)
   ========================================================================== */
.gallery-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 35px;
}

.gallery-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.gallery-btn:hover, .gallery-btn.active {
    background: var(--primary-orange);
    color: #ffffff;
    border-color: var(--primary-orange);
    box-shadow: 0 4px 15px rgba(241, 143, 1, 0.3);
}

.gallery-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.gallery-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: var(--primary-orange);
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #0b1329;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-thumb img {
    transform: scale(1.06);
}

.gallery-info {
    padding: 15px;
}

.gallery-info h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.gallery-info span {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary-orange);
    font-weight: 700;
}

/* Modal Visor */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 15px;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
}

/* ==========================================================================
   Shopping Cart (Nav Badge, Slide-out Drawer & Checkout)
   ========================================================================== */
.nav-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-cart-btn:hover {
    background: rgba(241, 143, 1, 0.15);
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, var(--primary-orange), #ea580c);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-badge.bump {
    transform: scale(1.35);
}

/* Cart Overlay & Drawer */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    height: 100dvh;
    background: #0d1424;
    border-left: 1px solid var(--card-border);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
    z-index: 3001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.cart-drawer.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 480px) {
    .cart-drawer {
        max-width: 100%;
        border-left: none;
    }
}

.cart-drawer-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.7);
}

.cart-drawer-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-drawer-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.cart-drawer-close:hover {
    color: white;
}

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.cart-empty-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    opacity: 0.6;
}

.cart-item-row {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.cart-item-thumb {
    width: 65px;
    height: 65px;
    border-radius: 6px;
    background: #0b1329;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-thumb img, .cart-item-thumb svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 8px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-qty-ctrl {
    display: inline-flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    overflow: hidden;
}

.cart-qty-btn {
    background: none;
    border: none;
    color: var(--text-main);
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.cart-qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cart-qty-num {
    padding: 0 10px;
    font-size: 0.85rem;
    font-weight: 700;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
    padding: 4px;
}

.cart-item-remove:hover {
    color: #ef4444;
}

.cart-drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--card-border);
    background: rgba(15, 23, 42, 0.9);
}

.cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
}

.cart-subtotal-label {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.cart-subtotal-val {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-green);
}

.cart-pickup-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 8px 12px;
    border-radius: 6px;
}

.cart-checkout-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(241, 143, 1, 0.35);
}

/* Floating Toast Notification */
.cart-toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #1e293b;
    border: 1px solid var(--primary-orange);
    color: white;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    z-index: 3500;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-toast.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-top: 1px solid var(--card-border);
    padding: 20px;
    z-index: 4000;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-banner-content {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
}

.cookie-banner-text a {
    color: var(--primary-orange);
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-banner-text a:hover {
    color: var(--primary-orange-hover);
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.cookie-btn-accept {
    background: var(--primary-orange);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--primary-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(241, 143, 1, 0.4);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--card-border);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.cookie-btn-settings:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner-buttons {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
}

/* Legal Pages Styles */
.legal-content section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
}

.legal-content h2 {
    border-bottom: 2px solid var(--primary-orange);
    padding-bottom: 10px;
}

.legal-content h3 {
    color: var(--primary-orange);
}

.legal-content ul {
    margin: 15px 0;
}

.legal-content li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.legal-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
}

@media (max-width: 768px) {
    .legal-content section {
        padding: 20px;
    }
}
