/* StackCart Shared Design System */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500&display=swap');

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

:root {
    --bg-deep: #0a0a0f;
    --bg-card: #111118;
    --bg-accent: #1a1a24;
    --green-primary: #00ff88;
    --green-dim: #00cc6a;
    --green-glow: rgba(0, 255, 136, 0.15);
    --green-dark: rgba(0, 255, 136, 0.08);
    --text-primary: #e8e8ed;
    --text-secondary: #8888a0;
    --text-dim: #55556a;
    --border: #222233;
    --border-hover: #333344;
    --danger: #ff4466;
    --warning: #ffaa00;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }

a { color: var(--green-primary); text-decoration: none; }
a:hover { color: var(--green-dim); }

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.nav-logo span { color: var(--green-primary); }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

.nav-links a:hover { color: var(--text-primary); }

.nav-links a.active { color: var(--green-primary); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--green-primary);
    color: var(--bg-deep);
}

.btn-primary:hover {
    background: var(--green-dim);
    color: var(--bg-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--green-glow);
}

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

.btn-secondary:hover {
    border-color: var(--green-dim);
    color: var(--green-primary);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 10px;
}

.btn-block {
    width: 100%;
}

/* ===== PRODUCT CARDS ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    border-color: var(--green-dim);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.08);
    color: inherit;
}

.product-card-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-accent);
    font-size: 4rem;
    position: relative;
}

.product-card-image .gate-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.25rem 0.7rem;
    background: var(--green-dark);
    border: 1px solid var(--green-dim);
    border-radius: 100px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--green-primary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.product-card-body {
    padding: 1.5rem;
}

.product-card-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.product-card-body .description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-card-body .price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green-primary);
}

.price-compare {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-decoration: line-through;
}

/* ===== PAGE LAYOUTS ===== */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

.page-header {
    margin-bottom: 3rem;
}

.page-header .breadcrumb {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.page-header .breadcrumb a {
    color: var(--text-secondary);
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.page-header .subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-image-main {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    position: relative;
}

.product-info h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.product-info .price-large {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green-primary);
    margin-bottom: 1.5rem;
}

.product-info .description-full {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.trust-badges {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.trust-badge .icon {
    font-size: 1rem;
}

/* ===== GATE B PAGE ===== */
.gate-b-hero {
    text-align: center;
    padding: 3rem 0 2rem;
    position: relative;
}

.gate-b-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--green-glow) 0%, transparent 60%);
    pointer-events: none;
}

.gate-b-hero .confirmation {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--green-primary);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.gate-b-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    max-width: 800px;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1;
}

.gate-b-hero h1 span { color: var(--green-primary); }

.gate-b-hero .tagline {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Bundle display */
.bundle-showcase {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 3rem;
}

.bundle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.bundle-header .bundle-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.bundle-pricing {
    text-align: right;
}

.bundle-pricing .original {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}

.bundle-pricing .current {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green-primary);
    line-height: 1;
}

.bundle-pricing .savings {
    font-size: 0.85rem;
    color: var(--green-dim);
    margin-top: 0.25rem;
}

.bundle-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.bundle-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-accent);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: border-color 0.2s;
}

.bundle-item:hover {
    border-color: var(--border);
}

.bundle-item .item-check {
    color: var(--green-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.bundle-item .item-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.bundle-item .item-info .item-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.bundle-item .item-info .item-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.3rem;
}

.bundle-cta {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* ===== ORDER COMPLETE ===== */
.order-complete-container {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    padding-top: 8rem;
}

.order-complete-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.order-complete-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.order-complete-container .message {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* ===== VERTICAL BADGE ===== */
.vertical-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--green-primary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* ===== URGENCY BAR ===== */
.urgency-bar {
    background: linear-gradient(90deg, var(--green-dark), transparent);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--green-dim);
    margin-bottom: 1.5rem;
}

.urgency-bar .pulse {
    width: 8px;
    height: 8px;
    background: var(--green-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ===== FOOTER ===== */
.footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    margin-top: 4rem;
}

.footer .footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer .footer-logo span { color: var(--green-primary); }

.footer p {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* ===== LOADING ===== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-accent) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav {
        padding: 0.8rem 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .page-container {
        padding: 5rem 1rem 3rem;
    }

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

    .product-image-main {
        height: 300px;
        font-size: 5rem;
    }

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

    .bundle-showcase {
        padding: 1.5rem;
    }

    .bundle-header {
        flex-direction: column;
        text-align: center;
    }

    .bundle-pricing {
        text-align: center;
    }

    .bundle-items-grid {
        grid-template-columns: 1fr;
    }

    .trust-badges {
        flex-wrap: wrap;
    }
}
