
:root {
    --bg-main: #09090b;
    --bg-alt: #18181b;
    --bg-card: #27272a;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --border: #3f3f46;
    --accent: #8b5cf6; /* Vibrant Purple */
    --accent-hover: #7c3aed;
    --primary: #ef4444; /* Red accent for warnings/cart */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-main); color: var(--text-main); line-height: 1.6; }
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; }
a { color: inherit; text-decoration: none; }

/* Header */
.main-header { border-bottom: 1px solid var(--border); background: rgba(9, 9, 11, 0.9); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100; }
.header-container { max-width: 1200px; margin: 0 auto; padding: 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-family: 'Outfit'; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.main-nav { display: flex; gap: 30px; font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--accent); }
.header-actions { display: flex; gap: 20px; }
.icon-btn { font-size: 1.2rem; display: flex; align-items: center; gap: 8px; transition: color 0.2s; cursor: pointer; }
.icon-btn:hover { color: var(--accent); }
.cart-btn { position: relative; }
.cart-count { position: absolute; top: -8px; right: -8px; background: var(--primary); color: white; font-size: 0.7rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.2s; border: none; font-family: 'Inter', sans-serif; font-size: 0.95rem;}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg-card); color: white; border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.w-100 { width: 100%; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 80px 20px; align-items: center; }
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; }
.hero p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 30px; max-width: 400px; }
.badge { background: rgba(139, 92, 246, 0.1); color: var(--accent); padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; display: inline-block; margin-bottom: 20px; border: 1px solid rgba(139, 92, 246, 0.2); }
.hero-actions { display: flex; gap: 15px; }
.hero-image { height: 400px; background: var(--bg-alt); border-radius: 24px; position: relative; border: 1px solid var(--border); overflow: hidden; }
.abstract-shape { position: absolute; width: 300px; height: 300px; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); opacity: 0.2; top: 50%; left: 50%; transform: translate(-50%, -50%); filter: blur(40px); }

/* Common Sections */
.section { max-width: 1200px; margin: 0 auto; padding: 80px 20px; }
.section-title { font-size: 2rem; margin-bottom: 40px; }
.page-container { max-width: 1200px; margin: 0 auto; padding: 60px 20px; min-height: 60vh; }
.page-title { font-size: 2.5rem; margin-bottom: 10px; }
.page-subtitle { color: var(--text-muted); margin-bottom: 40px; }
.text-link { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.text-link:hover { text-decoration: underline; }

/* Category Grid */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 30px; text-align: center; transition: transform 0.2s; }
.cat-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.cat-card i { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; }
.cat-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.cat-card p { color: var(--text-muted); font-size: 0.9rem; }

/* Shop Layout */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 40px; margin-top: 40px; }
.shop-filters h3 { margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.filter-group { margin-bottom: 25px; }
.filter-group h4 { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.filter-group label { display: block; margin-bottom: 10px; font-size: 0.95rem; cursor: pointer; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 16px; padding: 20px; position: relative; display: flex; flex-direction: column; }
.product-badge { position: absolute; top: 15px; left: 15px; background: var(--accent); color: white; font-size: 0.7rem; padding: 4px 8px; border-radius: 4px; font-weight: bold; text-transform: uppercase; }
.product-img { height: 180px; background: var(--bg-main); border-radius: 12px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; }
.product-brand { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.product-details h3 { font-size: 1.1rem; margin: 5px 0 15px; line-height: 1.3; flex-grow: 1; }
.product-price { font-size: 1.25rem; font-weight: bold; font-family: 'Outfit'; margin-bottom: 15px; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.blog-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.blog-img { height: 200px; width: 100%; }
.blog-info { padding: 30px; }
.blog-tag { font-size: 0.75rem; background: rgba(255,255,255,0.1); padding: 4px 10px; border-radius: 100px; margin-bottom: 15px; display: inline-block; font-weight: 600; text-transform: uppercase;}
.blog-info h3 { font-size: 1.4rem; margin-bottom: 15px; }
.blog-info p { color: var(--text-muted); font-size: 0.95rem; }

/* Cart Page */
.cart-layout { display: grid; grid-template-columns: 1fr 350px; gap: 40px; margin-top: 40px; }
.cart-items { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 16px; padding: 30px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.cart-summary { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 30px; height: fit-content; }
.cart-summary h3 { margin-bottom: 25px; font-size: 1.5rem; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; color: var(--text-muted); }
.summary-divider { height: 1px; background: var(--border); margin: 20px 0; }
.summary-row.total { color: white; font-size: 1.25rem; font-weight: bold; margin-bottom: 25px; }
.secure-checkout { text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 8px; }

/* Auth */
.auth-container { display: flex; justify-content: center; padding: 100px 20px; }
.auth-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 40px; width: 100%; max-width: 450px; }
.auth-box h2 { font-size: 2rem; margin-bottom: 10px; }
.auth-box p { color: var(--text-muted); margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; font-weight: 500; }
.form-group input { width: 100%; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-main); color: white; font-family: 'Inter'; font-size: 1rem; }
.form-group input:focus { outline: none; border-color: var(--accent); }
.form-options { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 30px; }
.auth-footer { margin-top: 30px; text-align: center; font-size: 0.9rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 20px; }

/* Footer */
.main-footer { border-top: 1px solid var(--border); background: var(--bg-card); padding: 80px 20px 20px; margin-top: 80px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-col h3 { font-size: 1.5rem; margin-bottom: 20px; color: var(--accent); }
.footer-col h4 { margin-bottom: 20px; font-size: 1.1rem; }
.footer-col p { color: var(--text-muted); margin-bottom: 15px; font-size: 0.95rem; }
.footer-col a { display: block; color: var(--text-muted); margin-bottom: 12px; font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { max-width: 1200px; margin: 0 auto; text-align: center; color: var(--text-muted); font-size: 0.85rem; border-top: 1px solid var(--border); padding-top: 20px; }

/* Modals & Banners */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 1000; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.modal.active { display: flex; }
.modal-content { background: var(--bg-card); border: 1px solid var(--border); padding: 40px; border-radius: 16px; max-width: 500px; width: 90%; position: relative; text-align: center; }
.close-modal { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.close-modal:hover { color: white; }
.newsletter-icon { font-size: 3rem; color: var(--accent); margin-bottom: 20px; }
.newsletter-form { display: flex; gap: 10px; margin-top: 25px; margin-bottom: 15px; }
.newsletter-form input { flex-grow: 1; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-main); color: white; }
.modal-disclaimer { font-size: 0.75rem; color: var(--text-muted); }

.cookie-banner { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); background: var(--bg-card); border: 1px solid var(--border); padding: 20px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 30px; z-index: 900; max-width: 800px; width: 90%; transition: bottom 0.5s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.cookie-banner.show { bottom: 20px; }
.cookie-content { display: flex; align-items: center; gap: 15px; font-size: 0.85rem; color: var(--text-muted); }
.cookie-content i { font-size: 1.5rem; color: var(--accent); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

@media (max-width: 768px) {
    .hero, .shop-layout, .blog-grid, .cart-layout, .footer-grid { grid-template-columns: 1fr; }
    .main-nav, .hide-mobile { display: none; }
    .newsletter-form { flex-direction: column; }
    .cookie-banner { flex-direction: column; text-align: center; }
}

/* Fix pillarboxing */
.product-img { background: transparent; height: auto; min-height: 200px; padding: 0; display: block; overflow: hidden; }
.product-img img { width: 100%; height: 250px; object-fit: cover; display: block; border-radius: 12px; border: 1px solid var(--border); transition: transform 0.3s ease; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-details { padding-top: 15px; }
.product-description { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Flavour Selector */
.flavour-selector-container { margin-bottom: 15px; }
.flavour-selector-container label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-main); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.flavour-select { width: 100%; padding: 8px 12px; border-radius: 6px; border: 1px solid var(--border); background-color: var(--bg-main); color: var(--text-main); font-family: 'Inter', sans-serif; font-size: 0.9rem; cursor: pointer; outline: none; appearance: none; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23a1a1aa%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 10px top 50%; background-size: 12px auto; }
.flavour-select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2); }

/* Blog Images fix */
.blog-img { height: 220px; width: 100%; background-size: cover; background-position: center; border-bottom: 1px solid var(--border); }
