﻿:root {
    --bg-body: #f7f7f9;
    --bg-white: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.8);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-body);
    font-family: var(--font);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

/* Typography */
h1 {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--text-primary);
}

h2 {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 10px;
}

.link-blue {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.link-blue:hover {
    text-decoration: underline;
}

.link-blue i {
    font-size: 0.8em;
}

/* Utilities */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.glass {
    background: var(--glass);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.full-width {
    width: 100%;
}

/* Animation Styles */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Stagger Logic for JS */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-item.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

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

/* Nav */
.navbar {
    position: sticky;
    top: 0;
    height: 48px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    height: 28px;
    width: auto;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    font-size: 0.8rem;
    color: var(--text-primary);
    opacity: 0.8;
}

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

.cart-icon {
    font-size: 1rem;
    position: relative;
    color: var(--text-primary);
    opacity: 0.8;
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--text-primary);
    color: #fff;
    font-size: 0.6rem;
    padding: 1px 4px;
    border-radius: 10px;
}

/* Hero */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    background: var(--bg-white);
}

.hero-links {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-image-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.hero-image-wrapper img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    display: block;
}

.hero-desc {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #9ca3af;
    font-weight: 400;
}

/* Feature Big */
.feature-big {
    background: var(--bg-white);
    padding: 100px 0;
    text-align: center;
}

.feature-big .text-content {
    max-width: 600px;
    margin: 0 auto 50px;
}

.feature-img {
    width: 100%;
    border-radius: var(--radius);
}

.shadow-dreamy {
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.15);
}

/* Products Buying */
.buy-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.product-shelf {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.product-item {
    padding: 40px;
    background: #ffffff;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
}

.product-item:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.product-item img {
    height: 180px;
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 25px;
    background: #fbfbfd;
    padding: 10px;
    transition: transform 0.3s ease;
}

.p-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.p-price {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.btn-buy-small {
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
    animation: fadeModal 0.3s;
}

@keyframes fadeModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-white);
    width: 900px;
    height: 600px;
    border-radius: 24px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #e5e5e5;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #555;
    font-size: 1.2rem;
    z-index: 10;
}

.modal-split {
    display: flex;
    height: 100%;
}

.modal-visual {
    flex: 1.2;
    background: #fbfbfd;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
    transform-style: preserve-3d;
    overflow: hidden;
}

.modal-visual img {
    width: 80%;
    mix-blend-mode: multiply;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
}

.modal-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-scroll-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
}

.modal-sticky-footer {
    position: sticky;
    bottom: 0;
    background: white;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: auto;
}

.new-badge {
    color: #f56300;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-info h2 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 10px;
}

.modal-price {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.modal-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    white-space: pre-line;
}

.specs-list {
    margin-bottom: 30px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 0;
    font-size: 0.9rem;
}

.shipping-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 15px;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Modal Overlay (for click-outside-to-close) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1999;
    display: none;
}

.modal-overlay.active {
    display: block;
}

/* Regulatory Note - Improved */
.regulatory-note {
    background: #f5f7ff;
    border-left: 3px solid var(--accent);
    padding: 15px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.regulatory-note i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.regulatory-note strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Pickup Info */
.pickup-info {
    background: #f0fff4;
    border-left: 3px solid #10b981;
    padding: 15px;
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.pickup-info i {
    color: #10b981;
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.pickup-info strong {
    color: var(--text-primary);
    font-weight: 600;
}

.pickup-address {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
}

/* Cart */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 2500;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.05);
}

.cart-header {
    padding: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* Explicit positioning */
    z-index: 1;
    /* Low z-index to stay behind items */
}

.cart-items {
    flex: 1;
    padding: 20px;
    padding-top: 10px;
    /* Reduce top padding */
    overflow-y: auto;
    position: relative;
    /* Ensure stacking context */
    z-index: 2;
    /* Higher than header */
}

.cart-item:first-child {
    margin-top: 30px !important;
    /* Force spacing to clear header completely */
}

.cart-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.cart-footer {
    padding: 30px;
    background: #fbfbfd;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    z-index: 2400;
    display: none;
}

.cart-overlay.active {
    display: block;
}

/* Phase 3 Styles */
.content-section {
    padding: 100px 0;
}

.grey-bg {
    background: #fbfbfd;
}

#installation.content-section {
    padding: 63px 0;
    /* 37% shrink */
}

#installation .eyebrow {
    font-size: 0.5rem;
}

#installation h2 {
    font-size: 1.8rem;
}

#installation .step-list {
    margin-top: 25px;
}

#installation .step {
    margin-bottom: 19px;
    gap: 12px;
}

#installation .step-text strong {
    font-size: 0.8rem;
}

#installation .step-text p {
    font-size: 0.75rem;
}

#installation .image-block img {
    max-width: 80%;
    margin: 0 auto;
    display: block;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.eyebrow {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.trust-icons {
    display: flex;
    gap: 24px;
}

.trust-icons span.logo {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    background: transparent;
    min-width: 120px;
    display: block;
}

.trust-icons span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.trust-icons i {
    color: #4f46e5;
    font-size: 1rem;
}

/* Customizer Ecosystem */
.customizer-workspace {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    padding: 40px;
    border-radius: 24px;
    margin-top: 40px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.visual-preview {
    flex: 1;
    background: #f0f0f2;
    border-radius: 10px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

/* Watermark logo in customizer */
.watermark {
    position: absolute;
    bottom: 15px;
    right: 15px;
    opacity: 0.15;
    pointer-events: none;
}

.watermark img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.input-sync {
    display: flex;
    align-items: center;
    gap: 15px;
}

.input-sync input[type="range"] {
    flex: 1;
}

.num-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    text-align: center;
}

.plate-visual {
    background: linear-gradient(135deg, #e5e7eb, #9ca3af);
    box-shadow: 20px 20px 60px #d1d5db, -20px -20px 60px #ffffff;
    border-radius: 4px;
    position: relative;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dim-label-w,
.dim-label-h {
    position: absolute;
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 600;
    background: white;
    padding: 2px 8px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.dim-label-w {
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.dim-label-h {
    right: -50px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
}

.quote-display {
    background: #fbfbfd;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #eee;
}

.quote-display h2 {
    font-size: 2.8rem;
    margin: 0;
    color: var(--accent);
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 60px 40px;
    margin-top: 60px;
}

.faq-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Success */
.success-content {
    padding: 80px 40px;
    max-width: 550px;
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 20px;
}

.pickup-locations-box {
    background: #f0fff4;
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    text-align: left;
}

.pickup-locations-box h3 {
    font-size: 1rem;
    color: #166534;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pickup-addr {
    margin: 6px 0;
    color: #166534;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Footer */
footer {
    background: #f5f5f7;
    border-top: 1px solid #e5e5e5;
    padding: 80px 0 40px;
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
    margin-bottom: 40px;
}

.legal {
    border-top: 1px solid #e5e5e5;
    padding-top: 20px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    .modal-split {
        flex-direction: column;
    }

    .modal-visual {
        height: 250px;
    }

    .modal-content {
        width: 95%;
        height: 90vh;
    }

    .grid-2-col {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .customizer-workspace {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .visual-preview {
        min-height: 250px;
        padding: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

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

/* Premium Visuals & Feedback */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

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

.pulse {
    animation: pulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-feedback {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1d1d1f;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.toast-feedback.active {
    transform: translateX(-50%) translateY(0);
}

/* Cart Mastery Controls */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

.qty-btn:hover {
    background: #f5f5f7;
    border-color: #999;
}

.remove-item {
    background: none;
    border: none;
    color: #ff3b30;
    font-size: 0.75rem;
    padding: 0;
    margin-top: 10px;
    cursor: pointer;
    font-weight: 500;
}

.remove-item:hover {
    text-decoration: underline;
}

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

.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.stagger-item.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Feature Tags (Boxes) */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.feature-tag {
    background: #f5f5f7;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #eee;
}

/* Variant/Size Boxes */
.variant-selector {
    margin-bottom: 25px;
}

.variant-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.variant-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.variant-box {
    border: 1px solid #e5e5e5;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.2s;
}

.variant-box.active {
    border-color: var(--accent);
    background: #f5f7ff;
    color: var(--accent);
}

.variant-box:hover {
    background: #fafafa;
}

/* Language Selector */
.lang-selector {
    display: flex;
    gap: 5px;
    margin-right: 15px;
}

.lang-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s;
    opacity: 0.6;
}

.lang-btn:hover,
.lang-btn.active {
    transform: scale(1.2);
    opacity: 1;
}

/* Footer Links */
.footer-links a {
    transition: color 0.3s;
}

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

@media (max-width: 768px) {
    .nav-right {
        gap: 10px;
    }

    .lang-btn {
        font-size: 1.2rem;
    }
}