/* ============================================================
   PACKWOODS - MAIN STYLESHEET
   Premium Cannabis Brand Theme
   Dark theme with gold accents
   ============================================================ */

/* ============================================================
   1. RESET & BASE STYLES
   Resets browser defaults and sets up the foundation
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #f5f5f5;
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   2. AGE VERIFICATION POPUP
   Legal requirement - shows before site content
   ============================================================ */

.age-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
    transition: opacity 0.5s ease;
}

.age-popup.hidden {
    opacity: 0;
    pointer-events: none;
}

.age-popup-content {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 480px;
    width: 90%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.age-popup-logo h1 {
    font-size: 32px;
    font-weight: 800;
    color: #d4af37;
    margin-bottom: 2px;
}

.age-popup-logo p {
    color: #888;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.age-popup-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.age-popup-text {
    color: #aaa;
    font-size: 15px;
    margin-bottom: 30px;
    line-height: 1.7;
}

.age-popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.age-btn {
    padding: 14px 45px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.age-yes {
    background: #d4af37;
    color: #0a0a0a;
}

.age-yes:hover {
    background: #e8c44a;
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
}

.age-no {
    background: transparent;
    color: #aaa;
    border: 2px solid #333;
}

.age-no:hover {
    border-color: #d4af37;
    color: #fff;
}

.age-popup-footer {
    margin-top: 25px;
    font-size: 12px;
    color: #666;
}

.age-popup-footer a {
    color: #d4af37;
    text-decoration: underline;
}

.age-popup-footer a:hover {
    color: #e8c44a;
}

/* ============================================================
   3. HEADER / NAVIGATION
   Main navigation bar
   ============================================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    background: linear-gradient(135deg, #d4af37, #f5e17a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-list a {
    font-size: 14px;
    font-weight: 600;
    color: #aaa;
    transition: color 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-list a:hover,
.nav-list a.active {
    color: #d4af37;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.header-cart {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-link {
    color: #fff;
    font-size: 20px;
    position: relative;
    transition: color 0.3s ease;
}

.cart-link:hover {
    color: #d4af37;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #d4af37;
    color: #0a0a0a;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* ============================================================
   4. HERO SECTION
   Big banner on the homepage
   ============================================================ */

.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1208 50%, #0d0d0d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.hero-tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.hero h1 {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 30%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: #aaa;
    max-width: 500px;
    line-height: 1.8;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.btn-primary {
    background: #d4af37;
    color: #0a0a0a;
}

.btn-primary:hover {
    background: #e8c44a;
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #333;
}

.btn-secondary:hover {
    border-color: #d4af37;
    color: #d4af37;
    transform: translateY(-3px);
}

.btn-small {
    padding: 10px 24px;
    font-size: 13px;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    width: 100%;
    object-fit: cover;
    height: 450px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

/* ============================================================
   5. CATEGORIES SECTION
   Shows all 4 product categories
   ============================================================ */

.categories {
    padding: 80px 0;
    background: #0a0a0a;
}

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

.section-header h2 {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.section-header p {
    color: #888;
    font-size: 17px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.category-card {
    background: #141414;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 25px;
    text-align: center;
    display: block;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.category-image {
    height: 200px;
    overflow: hidden;
    background: #1a1a1a;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 18px 0 6px;
}

.category-card p {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
}

.category-link {
    font-size: 14px;
    font-weight: 600;
    color: #d4af37;
    transition: all 0.3s ease;
}

.category-card:hover .category-link {
    color: #e8c44a;
}

/* ============================================================
   6. FEATURED PRODUCTS
   Showcases best-selling products
   ============================================================ */

.featured {
    padding: 80px 0;
    background: linear-gradient(180deg, #0a0a0a, #0d0d0d);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: #141414;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.product-image {
    position: relative;
    height: 220px;
    background: #1a1a1a;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #d4af37;
    color: #0a0a0a;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.new {
    background: #ff6b6b;
    color: #fff;
}

.product-badge.top-rated {
    background: #4ecdc4;
    color: #fff;
}

.product-badge.exclusive {
    background: #6c5ce7;
    color: #fff;
}

.product-info {
    padding: 18px 20px 20px;
}

.product-brand {
    font-size: 11px;
    font-weight: 700;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.product-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.product-type {
    color: #d4af37;
}

.product-description {
    font-size: 13px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    color: #d4af37;
}

/* ============================================================
   7. ABOUT BRAND SECTION
   Tells your brand story
   ============================================================ */

.about-brand {
    padding: 80px 0;
    background: #0d0d0d;
    border-top: 1px solid rgba(212, 175, 55, 0.05);
    border-bottom: 1px solid rgba(212, 175, 55, 0.05);
}

.about-brand-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.about-brand-text h2 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 18px;
    line-height: 1.2;
}

.about-brand-text p {
    font-size: 16px;
    color: #999;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-brand-text .btn {
    margin-top: 10px;
}

.about-brand-image img {
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 400px;
    object-fit: cover;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

/* ============================================================
   8. FOOTER
   Bottom of the page
   ============================================================ */

.footer {
    background: #060606;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

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

.footer-brand p {
    color: #777;
    font-size: 14px;
    line-height: 1.8;
    max-width: 300px;
    margin: 16px 0 20px;
}

.footer-social {
    display: flex;
    gap: 14px;
}

.footer-social a {
    color: #555;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: #d4af37;
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

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

.footer-links ul li a {
    font-size: 14px;
    color: #777;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #d4af37;
}

.footer-contact ul li {
    font-size: 14px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact ul li i {
    color: #d4af37;
    width: 18px;
}

.footer-contact ul li a {
    color: #777;
    transition: color 0.3s ease;
}

.footer-contact ul li a:hover {
    color: #d4af37;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #555;
}

.footer-disclaimer {
    margin-top: 8px;
    font-size: 12px !important;
    color: #444 !important;
}

/* ============================================================
   9. ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   10. RESPONSIVE DESIGN - Mobile & Tablet Friendly
   ============================================================ */

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image img {
        height: 300px;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .about-brand-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-brand-text .btn {
        display: inline-block;
    }
    
    .about-brand-image img {
        height: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        padding: 20px;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }
    
    .nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-list a {
        font-size: 16px;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 34px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .age-popup-content {
        padding: 30px 20px;
    }
    
    .age-popup-content h2 {
        font-size: 22px;
    }
    
    .age-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact ul li {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    .hero-image img {
        height: 200px;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 14px;
    }
    
    .product-card {
        max-width: 100%;
    }
}