:root {
    /* Magic Colors */
    --primary: #FF3366;
    --secondary: #20E3B2;
    --accent-yellow: #FFD166;
    --accent-blue: #00B4D8;
    --accent-purple: #9D4EDD;
    
    --bg-color: #fcf9f2;
    --text-main: #2b2d42;
    --text-light: #8d99ae;
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

h1, h2, h3, .floating-7, .marshmallow-icon {
    font-family: 'Luckiest Guy', cursive;
    letter-spacing: 1px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    font-size: 2.5rem;
    color: var(--primary);
    text-shadow: 2px 2px 0px var(--accent-yellow);
}

.cart-toggle {
    cursor: pointer;
    position: relative;
    font-size: 1.8rem;
    transition: transform 0.2s ease;
}

.cart-toggle:hover {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 20px;
    border: 2px solid white;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 5%;
    min-height: 80vh;
    background: radial-gradient(circle at top right, rgba(255,209,102,0.2) 0%, transparent 40%),
                radial-gradient(circle at bottom left, rgba(32,227,178,0.2) 0%, transparent 40%);
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--accent-purple);
}

.hero-title .highlight {
    font-size: 5rem;
    color: var(--primary);
    text-shadow: 4px 4px 0px var(--accent-yellow);
    display: inline-block;
    transform: rotate(-5deg);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #4a4e69;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary), var(--accent-purple));
    color: white;
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.5rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(255, 51, 102, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-button:hover {
    transform: scale(1.05) translateY(-5px);
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
    z-index: 2;
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Floating Elements */
.floating-7 {
    position: absolute;
    font-size: 4rem;
    z-index: 1;
    opacity: 0.8;
}

.f1 { color: var(--accent-yellow); top: 10%; left: 0; animation: float 4s ease-in-out infinite; }
.f2 { color: var(--secondary); bottom: 20%; right: 0; font-size: 5rem; animation: float 5s ease-in-out infinite reverse; }
.f3 { color: var(--accent-blue); top: 40%; right: -5%; font-size: 3rem; animation: float 3s ease-in-out infinite 1s; }

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

/* Shop Section */
.shop-section {
    padding: 5rem 5%;
    text-align: center;
    background: white;
    border-radius: 40px 40px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.02);
}

.section-title {
    font-size: 3.5rem;
    color: var(--accent-blue);
    margin-bottom: 3rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--bg-color);
    border-radius: 30px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--accent-yellow);
}

.product-image {
    height: 150px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.bg-yellow { background: rgba(255, 209, 102, 0.2); }
.bg-blue { background: rgba(0, 180, 216, 0.2); }
.bg-rainbow { background: linear-gradient(45deg, rgba(255,51,102,0.2), rgba(32,227,178,0.2), rgba(157,78,221,0.2)); }

.marshmallow-icon {
    font-size: 5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.m-yellow { color: var(--accent-yellow); }
.m-blue { color: var(--accent-blue); }
.m-rainbow { background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent-purple)); -webkit-background-clip: text; color: transparent; }

.product-card h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}

.desc {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.add-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 15px;
    background: var(--text-main);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.add-btn:hover {
    background: var(--primary);
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: white;
    z-index: 1000;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    color: var(--primary);
    font-size: 2rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-light);
    margin-top: 2rem;
    font-style: italic;
}

.cart-item {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.cart-item-icon {
    font-size: 2rem;
    font-family: 'Luckiest Guy', cursive;
    margin-right: 1rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.cart-item-details p {
    color: var(--primary);
    font-weight: bold;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background: white;
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.qty-btn:hover {
    background: #f0f0f0;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background: white;
}

.cart-summary {
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.summary-row:last-child {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-purple);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #ccc;
}

.min-order-alert {
    background: rgba(255, 209, 102, 0.2);
    color: #d97706;
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
    border: 1px solid #fbbf24;
}

.checkout-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 15px;
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.checkout-btn:not(:disabled):hover {
    background: #1abf96;
    transform: translateY(-2px);
}

.checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

footer {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--text-main);
    color: white;
    font-size: 0.9rem;
}

.fine-print {
    max-width: 800px;
    margin: 1.5rem auto;
    padding: 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.75rem;
    color: #a0aabf;
    line-height: 1.6;
    text-align: justify;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
        padding-bottom: 2rem;
        min-height: auto;
        gap: 2rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 1rem;
    }
    
    .shop-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    .hero-title .highlight {
        font-size: 4rem;
    }
}

/* Age Gate */
.age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.age-gate-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 5px solid var(--accent-yellow);
}

.age-gate-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-yes, .btn-no {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
}

.btn-yes {
    background: var(--secondary);
    color: white;
}

.btn-yes:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(25, 130, 196, 0.4);
}

.btn-no {
    background: #ccc;
    color: #333;
}

.btn-no:hover {
    background: var(--primary);
    color: white;
}

/* Out of Stock & Waitlist */
.product-card.out-of-stock {
    opacity: 0.8;
    filter: grayscale(0.5);
    border-color: #ddd;
}
.product-card.out-of-stock:hover {
    transform: none;
    box-shadow: var(--shadow);
    border-color: #ddd;
}
.product-card.out-of-stock .product-image {
    filter: grayscale(1);
}
.out-of-stock-badge {
    background: #6c757d;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.notify-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}
.notify-form input {
    padding: 0.8rem;
    border: 2px solid #ccc;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    outline: none;
}
.notify-form input:focus {
    border-color: var(--accent-purple);
}
.notify-btn {
    padding: 0.8rem;
    background: var(--accent-purple);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.notify-btn:not(:disabled):hover {
    background: #7b2cbf;
}
.notify-btn:disabled {
    opacity: 0.9;
    cursor: default;
}
