/* assets/css/waaraaboo.css - REDEFINED FOR MOBILE FIRST & SALES */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --primary: #0f172a;
    /* Main Text / Headings */
    --primary-light: #334155;
    --accent: #2563eb;
    /* Primary Action */
    --accent-hover: #1d4ed8;
    --bg-page: #ffffff;
    --bg-surface: #f8fafc;
    --border: #e2e8f0;

    /* Semantic */
    --success: #10b981;
    --error: #ef4444;
    --text-body: #475569;
    --text-mute: #94a3b8;

    /* Mobile First Spacing */
    --container-padding: 1rem;
    --container-max: 1200px;
    --header-height: 60px;

    /* Shadows & Radius */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-card: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --radius-lg: 16px;
}

/* 1. RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--primary);
    background: var(--bg-page);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    /* Base size for mobile legibility */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

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

/* 2. LAYOUT UTILITIES */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: 3rem 0;
}

.section-alt {
    background: var(--bg-surface);
}

/* Grid System - Mobile First */
.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    /* Default mobile */
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-sidebar {
        grid-template-columns: 280px 1fr;
    }

    .grid-product {
        grid-template-columns: 1.5fr 1fr;
    }
}

/* 3. COMPONENTS */

/* Buttons - Conversion Focused */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
    width: 100%;
    /* Full width on mobile */
}

@media (min-width: 640px) {
    .btn {
        width: auto;
    }

    /* Auto width on larger screens */
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

/* 4. HEADER & NAV (Sticky & Clean) */
.waaraaboo-header {
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Desktop Nav */
.nav-desktop {
    display: none;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    .mobile-toggle {
        display: none;
    }
}

/* Mobile Nav */
.mobile-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* 5. HERO SECTION */
.hero {
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-body);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero {
        text-align: left;
        padding: 6rem 0;
    }

    .hero-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }

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

/* 6. PRODUCT CARDS (Grid) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.product-card-img {
    aspect-ratio: 16 / 10;
    background: var(--bg-surface);
    overflow: hidden;
    position: relative;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-card-body {
    padding: 1.25rem;
}

.product-card-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.product-price {
    font-weight: 700;
    font-size: 1.125rem;
}

/* 7. PRODUCT DETAILS PAGE */
/* Sticky Buy Bar for Mobile */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem;
    border-top: 1px solid var(--border);
    z-index: 100;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .mobile-sticky-bar {
        display: none;
    }
}

/* Sidebar on Desktop */
.product-sidebar-card {
    position: sticky;
    top: 80px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
}

/* 8. PREVIEW WRAPPER */
.preview-wrapper {
    background: black;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
}

/* 9. FOOTER */
.site-footer {
    background: var(--primary);
    color: var(--text-mute);
    padding: 4rem 0 2rem;
    margin-top: auto;
    /* Push to bottom if content is short */
}

/* Ensure main content pushes footer down */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

.footer-col h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.footer-col a {
    display: block;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.payment-icons {
    display: flex;
    gap: 1rem;
    opacity: 0.7;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* 10. TYPOGRAPHY HELPERS */
.text-gradient {
    background: linear-gradient(to right, var(--accent), #1e293b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-new {
    background: var(--success);
    color: white;
}

.badge-featured {
    background: #fef3c7;
    color: #b45309;
}