/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light mode colors (default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --accent-color: #10b981; /* Fresh green for weed/vape theme */
    --accent-hover: #059669;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --header-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #212529;
    --footer-text: #f8f9fa;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --input-border: #ced4da;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    /* Dark mode colors */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #404040;
    --text-primary: #f8f9fa;
    --text-secondary: #e9ecef;
    --text-muted: #adb5bd;
    --accent-color: #10b981; /* Keep the same fresh green */
    --accent-hover: #34d399;
    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --header-bg: rgba(26, 26, 26, 0.95);
    --footer-bg: #0d0d0d;
    --footer-text: #f8f9fa;
    --card-bg: #2d2d2d;
    --input-bg: #404040;
    --input-border: #4d4d4d;
}

/* Typography - Urban/Modern feel for weed/vape theme */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ===== HEADER STYLES ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Logo */
.logo {
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

/* Dark/Light Mode Toggle - Center */
.theme-toggle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    color: var(--text-primary);
}

.theme-toggle-btn:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.theme-icon {
    font-size: 20px;
    line-height: 1;
}

.theme-text {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hide theme text on mobile */
@media (max-width: 768px) {
    .theme-text {
        display: none;
    }
    .theme-toggle-btn {
        padding: 8px 12px;
    }
}

/* Right side - Cart & Hamburger */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Cart Icon */
.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.cart-icon:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.cart-icon i {
    font-size: 18px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: white;
    font-size: 12px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
    transition: var(--transition);
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 350px;
    height: 100vh;
    background: var(--bg-primary);
    padding: 100px 30px 30px;
    transition: 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    z-index: 1001;
    box-shadow: -5px 0 30px var(--shadow-color);
    overflow-y: auto;
    border-left: 1px solid var(--border-color);
}

.nav-menu.active {
    right: 0;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Navigation List */
.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 15px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.nav-menu.active .nav-item {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger animation for menu items */
.nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
.nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.15s; }
.nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.2s; }
.nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.25s; }
.nav-menu.active .nav-item:nth-child(5) { transition-delay: 0.3s; }
.nav-menu.active .nav-item:nth-child(6) { transition-delay: 0.35s; }
.nav-menu.active .nav-item:nth-child(7) { transition-delay: 0.4s; }
.nav-menu.active .nav-item:nth-child(8) { transition-delay: 0.45s; }
.nav-menu.active .nav-item:nth-child(9) { transition-delay: 0.5s; }
.nav-menu.active .nav-item:nth-child(10) { transition-delay: 0.55s; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 10px;
    transition: var(--transition);
    background: var(--bg-secondary);
}

.nav-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateX(5px);
}

.nav-link i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

/* Category Dropdown */
.category-dropdown {
    margin-bottom: 15px;
}

.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-header:hover {
    background: var(--bg-tertiary);
}

.dropdown-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-header i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.dropdown-arrow {
    transition: var(--transition);
}

.dropdown-header.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 36px;
}

.dropdown-content.show {
    max-height: 300px;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    border-radius: 8px;
    margin-top: 5px;
}

.dropdown-item:hover {
    background: var(--accent-color);
    color: white;
    transform: translateX(5px);
}

/* Divider */
.nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

/* Contact Info in Menu */
.menu-contact {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.menu-contact h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.contact-item:hover {
    color: var(--accent-color);
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: auto;
    padding: 60px 0 20px;
    transition: var(--transition);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

/* Footer Columns */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-col h3 {
    color: var(--footer-text);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

/* Footer Logo */
.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.footer-logo p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Footer Links */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-links i {
    font-size: 16px;
    width: 20px;
}

/* Contact Info */
.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 14px;
}

.contact-info i {
    font-size: 18px;
    color: var(--accent-color);
    width: 24px;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.payment-item {
    background: var(--bg-tertiary);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.payment-item:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.payment-item i {
    font-size: 16px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.social-link i {
    font-size: 20px;
}

/* Newsletter */
.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: var(--input-bg);
    color: var(--text-primary);
    transition: var(--transition);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.newsletter-btn {
    width: 45px;
    height: 45px;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}

.newsletter-btn i {
    font-size: 18px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.copyright {
    color: var(--text-muted);
    font-size: 13px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
}

/* Age verification badge */
.age-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-tertiary);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    color: var(--text-muted);
}

.age-badge i {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
        padding: 0 20px;
    }

    .logo img {
        height: 40px;
    }

    .nav-menu {
        width: 100%;
        max-width: 400px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
        border-radius: 50px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
    }

    .theme-toggle-btn {
        padding: 6px 10px;
    }

    .cart-icon {
        width: 35px;
        height: 35px;
    }

    .cart-icon i {
        font-size: 16px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}