/* === SHARED STORE STYLES === */
/* Extends the PlanTee design system from the landing page */

:root {
    --cream: #FFF8F0;
    --peach: #FFDAB3;
    --coral: #FF6B6B;
    --navy: #1A1A2E;
    --sage: #A8D5BA;
    --lavender: #C9B1FF;
    --warm-white: #FFFDF9;
    --amber: #F5A623;
    --gold: #D4AF37;
    --candle-warm: #2C1810;
    --candle-glow: #FFF3E0;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--navy);
    overflow-x: hidden;
    min-height: 100vh;
}

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

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

/* === NAVIGATION === */
.store-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.store-nav .logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--navy);
    letter-spacing: -0.5px;
}

.store-nav .logo span {
    color: var(--coral);
}

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

.store-nav .nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--navy);
    transition: color 0.2s;
}

.store-nav .nav-links a:hover {
    color: var(--coral);
}

.store-nav .nav-links a.active {
    color: var(--coral);
    font-weight: 600;
}

/* === SHOP HERO === */
.shop-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.shop-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 0.8rem;
}

.shop-hero h1 .highlight {
    background: linear-gradient(135deg, var(--coral), var(--lavender));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shop-hero p {
    font-size: 1.15rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === FILTER TABS === */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-tab {
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid rgba(26, 26, 46, 0.1);
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
}

.filter-tab:hover {
    border-color: var(--coral);
    color: var(--coral);
}

.filter-tab.active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

/* === SUB-FILTER TABS (Candle collections) === */
.sub-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.sub-filter-tab {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1.5px solid rgba(245, 166, 35, 0.3);
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
}

.sub-filter-tab:hover {
    border-color: var(--amber);
    color: var(--amber);
}

.sub-filter-tab.active {
    background: var(--amber);
    color: white;
    border-color: var(--amber);
}

/* === PRODUCT GRID === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* === PRODUCT CARD === */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.04);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.product-card.tshirt-card {
    background: var(--navy);
    color: white;
}

.product-card.candle-card {
    background: var(--candle-warm);
    color: white;
}

.card-visual {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.planner-card .card-visual {
    background: linear-gradient(135deg, #f8f4ef 0%, #fff 100%);
}

.tshirt-card .card-visual {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
}

.candle-card .card-visual {
    background: linear-gradient(135deg, #2C1810 0%, #4A2C1A 60%, #3D1F12 100%);
}

/* Candle subcategory visual accents */
.candle-sub-memorial .card-visual {
    background: linear-gradient(135deg, #2C1810 0%, #3D2920 60%, #4A3228 100%);
}
.candle-sub-breakup .card-visual {
    background: linear-gradient(135deg, #2E1118 0%, #4A1A2A 60%, #3D1520 100%);
}
.candle-sub-zodiac .card-visual {
    background: linear-gradient(135deg, #1A1830 0%, #2D2550 60%, #251E42 100%);
}
.candle-sub-spiritual .card-visual {
    background: linear-gradient(135deg, #2A2008 0%, #3D3010 60%, #352A0D 100%);
}
.candle-sub-funny .card-visual {
    background: linear-gradient(135deg, #2C1810 0%, #4A2C1A 60%, #3D1F12 100%);
}

.card-emoji {
    font-size: 4rem;
    position: relative;
    z-index: 2;
}

.card-visual .card-blob {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(40px);
    z-index: 1;
}

.planner-card .card-blob {
    background: var(--sage);
}

.tshirt-card .card-blob {
    background: var(--coral);
}

.candle-card .card-blob {
    background: var(--amber);
    opacity: 0.25;
}

.card-type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    z-index: 3;
    font-family: 'Syne', sans-serif;
}

.planner-card .card-type-badge {
    background: var(--sage);
    color: var(--navy);
}

.tshirt-card .card-type-badge {
    background: var(--coral);
    color: white;
}

.candle-card .card-type-badge {
    background: var(--amber);
    color: white;
}

.card-info {
    padding: 1.5rem;
}

.card-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: -0.3px;
}

.card-tagline {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.tshirt-card .card-tagline,
.candle-card .card-tagline {
    color: rgba(255,255,255,0.5);
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-price {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
}

.card-cta {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
}

.planner-card .card-cta {
    background: var(--navy);
    color: white;
}

.planner-card .card-cta:hover {
    background: var(--coral);
}

.tshirt-card .card-cta {
    background: var(--coral);
    color: white;
}

.tshirt-card .card-cta:hover {
    background: var(--lavender);
    color: var(--navy);
}

.candle-card .card-cta {
    background: var(--amber);
    color: white;
}

.candle-card .card-cta:hover {
    background: var(--peach);
    color: var(--navy);
}

/* === PRODUCT DETAIL PAGE === */
.product-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-visual {
    background: white;
    border-radius: 24px;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
}

.product-visual.tshirt-bg {
    background: var(--navy);
}

.product-visual.candle-bg {
    background: var(--candle-warm);
    border-color: rgba(245,166,35,0.1);
}

/* Candle subcategory detail backgrounds */
.product-visual.candle-bg-memorial {
    background: linear-gradient(170deg, #2C1810 0%, #3D2920 50%, #4A3228 100%);
}
.product-visual.candle-bg-breakup {
    background: linear-gradient(170deg, #2E1118 0%, #4A1A2A 50%, #3D1520 100%);
}
.product-visual.candle-bg-zodiac {
    background: linear-gradient(170deg, #1A1830 0%, #2D2550 50%, #251E42 100%);
}
.product-visual.candle-bg-spiritual {
    background: linear-gradient(170deg, #2A2008 0%, #3D3010 50%, #352A0D 100%);
}
.product-visual.candle-bg-funny {
    background: linear-gradient(170deg, #2C1810 0%, #4A2C1A 50%, #3D1F12 100%);
}

.product-visual .detail-emoji {
    font-size: 8rem;
    position: relative;
    z-index: 2;
}

.product-visual .detail-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    opacity: 0.12;
    filter: blur(60px);
    z-index: 1;
}

.product-visual .detail-blob.sage { background: var(--sage); }
.product-visual .detail-blob.coral { background: var(--coral); }
.product-visual .detail-blob.lavender { background: var(--lavender); }
.product-visual .detail-blob.amber { background: var(--amber); opacity: 0.2; }
.product-visual .detail-blob.gold { background: var(--gold); opacity: 0.2; }
.product-visual .detail-blob.peach { background: var(--peach); opacity: 0.2; }

.product-visual .tshirt-text {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.product-visual .tshirt-text .tshirt-emoji {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.product-visual .tshirt-text h2 {
    font-size: 1.6rem;
    color: white;
    font-weight: 800;
    line-height: 1.2;
    max-width: 320px;
    margin: 0 auto;
}

/* === CANDLE DISPLAY (Product Detail) === */
.candle-display {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.candle-flame {
    width: 16px;
    height: 40px;
    background: linear-gradient(0deg, #FF6B35, #FFD700 40%, #FFF3E0 90%);
    border-radius: 50% 50% 20% 20%;
    position: relative;
    animation: flicker 2s ease-in-out infinite alternate;
    box-shadow: 0 0 30px rgba(255,165,0,0.4), 0 0 60px rgba(255,107,53,0.2);
    margin-bottom: -4px;
}

.candle-flame::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 16px;
    background: linear-gradient(0deg, #FF6B35, rgba(255,255,255,0.9));
    border-radius: 50%;
    top: 8px;
    left: 5px;
    opacity: 0.8;
}

@keyframes flicker {
    0% { transform: scaleY(1) scaleX(1) rotate(-1deg); }
    25% { transform: scaleY(1.05) scaleX(0.95) rotate(1deg); }
    50% { transform: scaleY(0.95) scaleX(1.02) rotate(-0.5deg); }
    75% { transform: scaleY(1.08) scaleX(0.98) rotate(0.5deg); }
    100% { transform: scaleY(1) scaleX(1) rotate(0deg); }
}

.candle-jar {
    width: 180px;
    height: 200px;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 12px 12px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.2rem;
    backdrop-filter: blur(4px);
}

.candle-jar-emoji {
    font-size: 3rem;
}

.candle-jar-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    text-align: center;
    line-height: 1.3;
    max-width: 150px;
}

/* === PRODUCT INFO === */
.product-info {
    padding: 1rem 0;
}

.product-info .product-type-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

.product-type-label.planner-label { color: var(--sage); }
.product-type-label.tshirt-label { color: var(--coral); }
.product-type-label.candle-label { color: var(--amber); }

.product-info h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.product-info .product-tagline {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.product-info .product-price {
    font-family: 'Syne', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.product-info .product-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 2rem;
}

.product-info .features-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 0.8rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.feature-list li::before {
    content: '\2713';
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.planner-features li::before {
    background: var(--sage);
    color: var(--navy);
}

.tshirt-features li::before {
    background: var(--coral);
    color: white;
}

.candle-features li::before {
    background: var(--amber);
    color: white;
}

.buy-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Syne', sans-serif;
    letter-spacing: -0.3px;
    text-align: center;
}

.buy-button.planner-buy {
    background: var(--navy);
    color: white;
}

.buy-button.planner-buy:hover {
    background: var(--coral);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.buy-button.tshirt-buy {
    background: var(--coral);
    color: white;
}

.buy-button.tshirt-buy:hover {
    background: var(--lavender);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 177, 255, 0.3);
}

.buy-button.candle-buy {
    background: var(--amber);
    color: white;
}

.buy-button.candle-buy:hover {
    background: var(--peach);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245, 166, 35, 0.3);
}

.buy-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #aaa;
}

/* === SUCCESS PAGE === */
.success-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 2rem;
}

.success-icon.planner-icon {
    background: var(--sage);
}

.success-icon.tshirt-icon {
    background: var(--coral);
}

.success-icon.candle-icon {
    background: var(--amber);
}

.success-container h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.success-container .success-msg {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.5rem;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--navy);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Syne', sans-serif;
    letter-spacing: -0.3px;
}

.download-button:hover {
    background: var(--coral);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.success-details {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2.5rem;
    border: 1px solid rgba(0,0,0,0.04);
    text-align: left;
}

.success-details h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.success-details ul {
    list-style: none;
}

.success-details li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: #666;
}

.success-details li::before {
    content: '\2192 ';
    color: var(--coral);
    font-weight: 700;
}

.back-to-shop {
    display: inline-block;
    margin-top: 2rem;
    font-size: 0.95rem;
    color: var(--coral);
    font-weight: 600;
    transition: color 0.2s;
}

.back-to-shop:hover {
    color: var(--navy);
}

/* === FOOTER === */
.store-footer {
    text-align: center;
    padding: 3rem 2rem;
    color: #aaa;
    font-size: 0.85rem;
    margin-top: 4rem;
}

.store-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.store-footer .footer-links a {
    color: #888;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.store-footer .footer-links a:hover {
    color: var(--coral);
}

/* === LOADING === */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 4rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(26,26,46,0.1);
    border-top-color: var(--coral);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.empty-state .empty-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
}

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

    .store-nav .nav-links {
        gap: 1rem;
    }

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

    .shop-hero {
        padding: 2rem 1.5rem 1rem;
    }

    .shop-hero h1 {
        font-size: 2.2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .filter-tabs {
        padding: 1.5rem 1.5rem 0.5rem;
        gap: 0.5rem;
    }

    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .sub-filter-tabs {
        padding: 0.3rem 1.5rem 0.5rem;
        gap: 0.4rem;
    }

    .sub-filter-tab {
        padding: 0.3rem 0.8rem;
        font-size: 0.7rem;
    }

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

    .product-visual {
        height: 320px;
    }

    .product-info h1 {
        font-size: 1.8rem;
    }

    .product-info .product-price {
        font-size: 1.8rem;
    }

    .candle-jar {
        width: 150px;
        height: 170px;
    }

    .candle-jar-emoji {
        font-size: 2.5rem;
    }

    .candle-jar-label {
        font-size: 0.75rem;
    }

    .success-container {
        padding: 2rem 1.5rem;
    }

    .success-container h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        flex-wrap: wrap;
    }

    .sub-filter-tabs {
        flex-wrap: wrap;
    }
}
