/* Winter's Spells - Modern Gothic & Witchy E-Commerce Design System */
:root {
    --bg-main: #090a0f;
    --bg-card: #12131c;
    --bg-card-hover: #181926;
    --bg-card-glass: rgba(18, 19, 28, 0.75);
    --bg-alt: #0e0f17;
    --primary: #f8fafc;
    --primary-dim: #94a3b8;
    --accent-purple: #8b5cf6;
    --accent-purple-light: #a78bfa;
    --accent-purple-glow: rgba(139, 92, 246, 0.25);
    --accent-gold: #f59e0b;
    --accent-gold-light: #fbbf24;
    --accent-gold-glow: rgba(245, 158, 11, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(139, 92, 246, 0.3);
    --border-gold: rgba(245, 158, 11, 0.35);
    --font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px var(--accent-purple-glow);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-pill: 9999px;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--primary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 85% 65%, rgba(245, 158, 11, 0.05) 0%, transparent 45%);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(9, 10, 15, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 84px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-gold-light);
    text-shadow: 0 0 15px var(--accent-gold-glow);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold-light);
    font-size: 1.2rem;
    box-shadow: 0 0 15px var(--accent-gold-glow);
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-dim);
    position: relative;
    padding: 6px 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-gold));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.4rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px var(--accent-purple-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.btn-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #090a0f;
    box-shadow: 0 6px 20px var(--accent-gold-glow);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: var(--primary);
    border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.cart-count-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent-gold);
    color: #090a0f;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-pill);
    color: var(--accent-purple-light);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 0 15px var(--accent-purple-glow);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--primary-dim);
    max-width: 760px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 48px;
}

.hero-badges-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.hero-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--primary-dim);
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
}

.hero-badge-item i {
    color: var(--accent-gold);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.section-header p {
    color: var(--primary-dim);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto;
}

/* Category Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-tab {
    padding: 10px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    color: var(--primary-dim);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-tab:hover,
.filter-tab.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--border-accent);
    color: var(--primary);
    box-shadow: 0 0 15px var(--accent-purple-glow);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg);
}

.product-img-wrap {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #0d0e14;
    overflow: hidden;
}

.product-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(9, 10, 15, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-gold);
    color: var(--accent-gold-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-info {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-purple-light);
    font-weight: 600;
    margin-bottom: 6px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    font-size: 0.88rem;
    color: var(--primary-dim);
    line-height: 1.5;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.product-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent-gold-light);
}

.product-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Features & Story Grid */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-img {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-gold);
    box-shadow: 0 0 35px var(--accent-gold-glow);
    overflow: hidden;
}

.story-text h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--accent-gold-light);
}

.story-text p {
    color: var(--primary-dim);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.feature-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid var(--border-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple-light);
    font-size: 1.6rem;
    margin: 0 auto 20px;
}

.feature-box h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.feature-box p {
    color: var(--primary-dim);
    font-size: 0.92rem;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 28px;
}

.review-stars {
    color: var(--accent-gold);
    font-size: 1rem;
    margin-bottom: 14px;
}

.review-text {
    font-style: italic;
    color: var(--primary);
    font-size: 0.96rem;
    margin-bottom: 18px;
    line-height: 1.6;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-author-name {
    font-weight: 600;
    font-size: 0.92rem;
}

.review-verified {
    color: #10b981;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* FAQ Accordion */
.faq-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    user-select: none;
}

.faq-question i {
    color: var(--accent-purple-light);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.35s ease;
    color: var(--primary-dim);
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    padding-bottom: 20px;
    max-height: 300px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Footer */
footer {
    background: #050609;
    border-top: 1px solid var(--border-subtle);
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    color: var(--accent-gold-light);
    font-size: 1.5rem;
    margin-bottom: 14px;
}

.footer-brand p {
    color: var(--primary-dim);
    font-size: 0.92rem;
    max-width: 320px;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--primary-dim);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-gold-light);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* Slide-out Cart Drawer */
.shoppi-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.shoppi-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.shoppi-drawer {
    position: fixed;
    top: 0;
    right: -460px;
    width: 440px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border-accent);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.8);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.shoppi-drawer.open {
    right: 0;
}

.drawer-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
}

.drawer-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--accent-gold-light);
}

.drawer-close {
    background: transparent;
    border: none;
    color: var(--primary-dim);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

.drawer-close:hover {
    color: var(--primary);
}

.drawer-free-shipping {
    padding: 12px 24px;
    background: rgba(139, 92, 246, 0.12);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    color: var(--accent-purple-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-free-shipping.success {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}

.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.drawer-empty {
    text-align: center;
    padding: 60px 20px;
}

.drawer-empty .empty-icon {
    font-size: 3rem;
    color: var(--primary-dim);
    margin-bottom: 16px;
}

.drawer-empty h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.drawer-empty p {
    color: var(--primary-dim);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.drawer-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.drawer-item-img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #000;
}

.drawer-item-details {
    flex-grow: 1;
}

.drawer-item-cat {
    font-size: 0.75rem;
    color: var(--accent-purple-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drawer-item-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.drawer-item-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-gold-light);
    margin-bottom: 8px;
}

.drawer-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.04);
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: 600;
}

.qty-val {
    padding: 0 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.remove-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
}

.drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--border-subtle);
    background: #0b0c12;
}

.drawer-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.subtotal-amount {
    color: var(--accent-gold-light);
}

.btn-checkout {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #090a0f;
    font-weight: 700;
    box-shadow: 0 6px 20px var(--accent-gold-glow);
}

.btn-checkout:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.drawer-pay-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    opacity: 0.7;
}

.drawer-pay-badges img {
    height: 22px;
}

/* Product Detail Page Specific */
.product-detail-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 40px 0;
}

.product-detail-gallery img {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-gold);
    width: 100%;
    box-shadow: var(--shadow-md);
}

.product-detail-info h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--accent-gold-light);
    margin-bottom: 16px;
}

.product-detail-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 24px;
}

.product-detail-desc {
    color: var(--primary-dim);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.product-detail-features {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 32px;
}

.product-detail-features li {
    list-style: none;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--primary);
}

.product-detail-features i {
    color: var(--accent-purple-light);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse {
    animation: pulseAnim 0.6s ease;
}

@keyframes pulseAnim {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 84px;
        left: 0;
        width: 100%;
        background: rgba(9, 10, 15, 0.98);
        border-bottom: 1px solid var(--border-subtle);
        padding: 24px;
        flex-direction: column;
        gap: 18px;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .product-detail-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

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

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