/* GuideVault Storefront Styles */
/* Design tokens from landing page */
:root {
    --ink: #0a0a0a;
    --paper: #faf9f7;
    --accent: #e85d26;
    --accent-hover: #d14d1a;
    --accent-light: #fff0eb;
    --muted: #6b6560;
    --border: #e8e4e0;
    --card-bg: #fff;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* NAV */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--ink);
    letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* BUTTONS */
.btn-buy {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: background 0.2s, transform 0.15s;
    cursor: pointer;
    border: none;
}
.btn-buy:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}
.btn-buy-large {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}
.btn-browse {
    display: inline-block;
    background: var(--ink);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.2s;
}
.btn-browse:hover {
    opacity: 0.85;
}
.btn-outline {
    display: inline-block;
    border: 2px solid var(--border);
    color: var(--ink);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ========== CATALOG PAGE ========== */
.catalog-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    text-align: center;
}
.catalog-hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 0.75rem;
}
.catalog-hero p {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
}

/* Filter Tabs */
.filter-tabs {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 0 2rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}
.filter-tab {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    background: var(--card-bg);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}
.filter-tab:hover,
.filter-tab.active {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-light);
}

/* Catalog Grid */
.catalog-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Store Cards */
.guide-card-link {
    text-decoration: none;
    color: inherit;
}
.store-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.card-category-bar {
    height: 4px;
    width: 100%;
}
.card-emoji {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 1.5rem 1.5rem 0;
}
.card-body {
    padding: 1rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-category {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-bottom: 0.4rem;
}
.card-body h3 {
    font-size: 1.15rem;
    letter-spacing: -0.3px;
    margin-bottom: 0.5rem;
}
.card-body p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
    flex: 1;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.card-pages {
    font-size: 0.82rem;
    color: var(--muted);
}
.card-price {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent);
}

/* ========== BUNDLES SECTION ========== */
.bundles-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}
.bundles-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.bundles-header h2 {
    font-size: 2.2rem;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}
.bundles-header p {
    color: var(--muted);
    font-size: 1.05rem;
}
.bundles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Bundle Card */
.bundle-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.bundle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.bundle-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--accent);
    color: #fff;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}
.bundle-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}
.bundle-card p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}
.bundle-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.bundle-original {
    font-size: 1rem;
    color: var(--muted);
    text-decoration: line-through;
}
.bundle-price {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--accent);
}

/* ========== BUNDLES PAGE ========== */
.bundles-page-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    text-align: center;
}
.bundles-page-hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 0.75rem;
}
.bundles-page-hero p {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
}
.bundles-page-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Bundle Card Large */
.bundle-card-large {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    position: relative;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.bundle-card-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.bundle-card-large h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}
.bundle-card-large p {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}
.bundle-guides-list {
    text-align: left;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--border);
}
.bundle-guide-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.original-single-price {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 0.85rem;
}
.bundle-pricing-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.bundle-original-large {
    font-size: 1.1rem;
    color: var(--muted);
    text-decoration: line-through;
}
.bundle-price-large {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--accent);
}

/* ========== GUIDE DETAIL PAGE ========== */
.guide-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 6rem;
}
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}
.detail-emoji-large {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}
.detail-category {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
}
.detail-main h1 {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
}
.detail-description {
    font-size: 1.15rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}
.detail-long-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
}
.detail-long-desc h4 {
    font-size: 1.05rem;
    margin: 1.5rem 0 0.75rem;
}
.detail-long-desc ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}
.detail-long-desc li {
    margin-bottom: 0.4rem;
    color: var(--muted);
}
.detail-long-desc li::marker {
    color: var(--accent);
}
.detail-long-desc p {
    margin-bottom: 1rem;
}
.detail-long-desc strong {
    color: var(--ink);
}

/* Buy Box (Sidebar) */
.buy-box {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    position: sticky;
    top: 2rem;
}
.buy-price {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2.8rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
}
.buy-meta {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}
.buy-guarantee {
    font-size: 0.82rem;
    color: var(--muted);
    text-align: center;
    margin-top: 1rem;
}

/* Detail Bundles */
.detail-bundles {
    margin-top: 1.5rem;
}
.detail-bundles h3 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--muted);
}
.mini-bundle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: border-color 0.2s;
}
.mini-bundle:hover {
    border-color: var(--accent);
}
.mini-bundle strong {
    font-size: 0.88rem;
    display: block;
}
.mini-bundle span {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
}
.mini-bundle-price {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem !important;
    color: var(--accent) !important;
}

/* Related Guides */
.related-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}
.related-section h2 {
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.related-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.related-emoji {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.related-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}
.related-card span {
    font-size: 0.82rem;
    color: var(--muted);
}

/* ========== SUCCESS PAGE ========== */
.success-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
}
.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #d1fae5;
    color: #10b981;
    font-size: 2.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}
.success-page h1 {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
}
.success-message {
    font-size: 1.15rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}
.success-details {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}
.success-details p {
    font-size: 0.9rem;
    color: var(--muted);
}
.success-details a {
    color: var(--accent);
    font-weight: 600;
}

/* ========== FOOTER ========== */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .buy-box {
        position: static;
    }
}
@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }
    .nav-links {
        gap: 1rem;
    }
    .nav-links a {
        font-size: 0.85rem;
    }
    .catalog-hero h1,
    .bundles-page-hero h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    .bundles-grid,
    .bundles-page-grid {
        grid-template-columns: 1fr;
    }
    .detail-main h1 {
        font-size: 1.8rem;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .success-page h1 {
        font-size: 1.8rem;
    }
}
