/* Import Cookie Banner Styles */
@import url('cookie-banner.css');

:root {
    --color-navy: #0A192F;
    --color-navy-light: #112240;
    --color-white: #F8F9FA;
    --color-gold: #FFC107;
    --color-gold-hover: #E0A800;
    --color-text-main: #0A192F;
    --color-text-light: #64748B;
    --color-bg-light: #F1F5F9;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-text-main);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: var(--font-heading);
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.825rem;
    line-height: 1;
    height: 2rem;
    box-sizing: border-box;
}

.btn-primary {
    background-color: var(--color-navy);
    color: var(--color-white);
}

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

.btn-accent {
    background-color: var(--color-gold);
    color: var(--color-navy);
}

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

.section {
    padding: 4rem 0;
}

.grid {
    display: grid;
    gap: 2rem;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-navy);
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--color-gold);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-main);
}

.nav-link:hover {
    color: var(--color-gold);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    color: var(--color-white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

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

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Product Cards */
.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-bg-light);
}

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

.product-image {
    background-color: var(--color-bg-light);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-weight: 700;
    color: var(--color-navy);
    font-size: 1.1rem;
}

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

/* Filters */
.filter-sidebar {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-bg-light);
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-bg-light);
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.filter-option input {
    margin-right: 0.75rem;
}

/* Footer */
.footer {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: var(--color-gold);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-white);
    transition: color 0.2s ease;
}

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

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.875rem;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hamburger Toggle Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-navy);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Filter sidebar content — always visible on desktop, toggled on mobile */
.filter-sidebar-content {
    display: block;
}

/* Mobile filter toggle button (hidden on desktop) */
.filter-toggle-btn {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--color-white);
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-navy);
}

/* Layout classes — desktop values live here so media queries can override */
.shop-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
}

.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.cart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {

    /* --- Navbar --- */
    .nav-toggle {
        display: flex;
    }

    .header nav {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 999;
    }

    .header nav.open {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        padding: 0.25rem 1.5rem 1rem;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 0.875rem 0;
    }

    /* Compact cart button */
    .nav-actions .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
    }

    /* --- Hero --- */
    .hero {
        padding: 3rem 0 !important;
    }

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

    .hero p {
        font-size: 1rem;
    }

    /* --- Section padding --- */
    .section {
        padding: 2.5rem 0;
    }

    /* --- Shop layout --- */
    .shop-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .filter-toggle-btn {
        display: flex;
    }

    .filter-desktop-heading {
        display: none;
    }

    .filter-sidebar-content {
        display: none;
        margin-top: 1rem;
    }

    .filter-sidebar-content.open {
        display: block;
    }

    /* --- Product details --- */
    .product-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-info-main {
        padding: 0 0.75rem;
    }

    .product-info-main h1 {
        font-size: 1.75rem !important;
    }

    /* --- Cart --- */
    .cart-grid {
        grid-template-columns: 1fr;
    }

    .cart-heading {
        padding: 0 0.75rem;
    }

    .cart-items {
        padding: 0 0.75rem;
    }

    /* --- Checkout --- */
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    /* Remove sticky on the order summary when stacked */
    .checkout-grid > div:last-child {
        position: static !important;
    }

    .form-row-2col {
        grid-template-columns: 1fr;
    }

    /* --- Footer --- */
    .footer {
        margin-top: 2rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }
}