/* ====================================
   Modern Home & Kitchen Store - Styles
   ==================================== */

/* === CSS Variables === */
:root {
    /* Option 1: Bold & Modern - Red, Black & White */
    --primary: #e31837;
    --primary-light: #ff1f45;
    --primary-dark: #b81430;
    --accent: #000000;
    --accent-light: #333333;
    --accent-dark: #000000;
    --secondary: #ff4757;
    --dark: #000000;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* === Header & Navigation === */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
    width: 100%;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    max-width: 100%;
}

.nav-brand {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
}

.nav-brand a {
    text-decoration: none;
    display: block;
}

/* Logo Image Styling */
.brand-logo-img {
    height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    /* Sharper SVG rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    shape-rendering: geometricPrecision;
}

@media (max-width: 768px) {
    .brand-logo-img {
        height: 45px;
        max-width: 160px;
    }
}

.brand-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 300;
    letter-spacing: 1px;
}

/* === Navigation Menu === */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: var(--transition);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

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

/* === Dropdown Navigation === */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    padding: 1rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    margin-top: 0.5rem;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background: var(--light-gray);
    color: var(--primary);
    transform: translateX(5px);
}

.brands-dropdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    min-width: 300px;
}

.brands-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brands-dropdown img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

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

.btn-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 123, 63, 0.3);
}

.btn-login svg {
    width: 20px;
    height: 20px;
}

.nav-link-admin {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.cart-btn {
    position: relative;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

/* === Hero Section === */
.hero {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1556911220-bff31c812dba?w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect fill="url(%23grid)" width="1200" height="600"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.btn-secondary-hero {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary-hero:hover {
    background: var(--white);
    color: var(--primary);
}

/* === CINEMATIC HERO (Home Page) === */
.hero-cinematic {
    min-height: 100vh;
    background: linear-gradient(135deg, #000 0%, #1a0a0a 50%, #2d0f0f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-cinematic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=1920&h=1080&fit=crop') center/cover;
    opacity: 0.35;
}

.hero-cinematic::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.hero-cinematic .content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.hero-cinematic .eyebrow {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-cinematic .eyebrow::before,
.hero-cinematic .eyebrow::after {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--primary);
}

.hero-cinematic h1 {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-cinematic h1 span {
    color: var(--primary);
    font-style: italic;
}

.hero-cinematic .tagline {
    font-size: 1.35rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cinematic .values {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hero-cinematic .value-item {
    text-align: center;
}

.hero-cinematic .value-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    display: block;
    margin-bottom: 0.25rem;
}

.hero-cinematic .value-sub {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.hero-cinematic .cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-hero {
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary-hero:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-outline-hero {
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline-hero:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

/* === GEOMETRIC HERO (Store Pages) === */
.hero-geometric {
    min-height: 100vh;
    background: var(--accent);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-geometric .red-block {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: var(--primary);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-geometric .content-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 4rem;
    align-items: center;
}

.hero-geometric .text-content {
    padding-right: 2rem;
}

.hero-geometric .label {
    display: inline-block;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.hero-geometric h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-geometric h1 em {
    font-style: normal;
    color: var(--primary);
    display: block;
}

.hero-geometric .description {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-geometric .action-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-geometric .btn-bold {
    padding: 1.25rem 3rem;
    background: var(--white);
    color: var(--accent);
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-geometric .btn-bold:hover {
    background: var(--primary);
    color: var(--white);
}

.hero-geometric .text-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.hero-geometric .text-link:hover {
    color: var(--white);
}

.hero-geometric .image-content {
    position: relative;
}

.hero-geometric .main-image {
    width: 100%;
    border-radius: 0;
    box-shadow: -30px 30px 0 var(--white);
}

.hero-geometric .floating-card {
    position: absolute;
    bottom: -20px;
    left: -40px;
    background: var(--white);
    padding: 1.5rem 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.hero-geometric .card-icon {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.hero-geometric .card-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1.4;
}

.hero-geometric .card-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

@media (max-width: 1024px) {
    .hero-geometric .content-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    .hero-geometric .red-block {
        width: 100%;
        height: 40%;
        clip-path: none;
        bottom: 0;
        top: auto;
    }
    .hero-geometric .image-content {
        order: -1;
    }
    .hero-geometric .floating-card {
        left: 20px;
        bottom: -10px;
    }
    .hero-cinematic h1,
    .hero-geometric h1 {
        font-size: 2.5rem;
    }
    .hero-cinematic .values {
        flex-direction: column;
        gap: 1rem;
    }
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
}

.btn-checkout {
    width: 100%;
    margin-top: 1rem;
}

/* === Sections === */
.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.brands-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.brand-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow);
    min-height: 150px;
}

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

.brand-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.brand-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
}

/* === Products Section === */
.products-section {
    padding: 4rem 0;
}

.filters-bar {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.filters-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-item label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
    background: var(--white);
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.search-filter {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    bottom: 0.875rem;
    color: var(--gray);
    pointer-events: none;
}

.results-count {
    margin-top: 1rem;
    text-align: center;
    color: var(--gray);
    font-size: 0.875rem;
}

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

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.product-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--light-gray);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-brand {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--white);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.product-stock {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-stock.low-stock {
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
}

.product-description {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    flex: 1;
    line-height: 1.5;
}

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

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

.product-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--primary);
    border-radius: 25px;
    overflow: hidden;
    background: var(--white);
}

.qty-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary-dark);
}

.qty-input {
    width: 50px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.25rem;
    appearance: textfield;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input:focus {
    outline: none;
}

.add-to-cart {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    flex: 1;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.qty-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.qty-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    color: #999;
}

/* === Cart Sidebar === */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1998;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    transition: var(--transition);
    z-index: 1999;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-family: var(--font-display);
    color: var(--primary);
}

.close-cart {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--dark);
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-empty {
    text-align: center;
    color: var(--gray);
    padding: 3rem 0;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: #e74c3c;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 2px solid var(--light-gray);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.total-amount {
    color: var(--primary);
    font-size: 1.5rem;
}

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

/* === Navigation Actions === */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
}

/* === Responsive Design === */
/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    flex-shrink: 0;
}

.mobile-only-nav-actions {
    display: none; /* Hidden on desktop, shown on mobile */
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* === Tablet Responsive === */
@media (max-width: 1024px) {
    .container {
        padding: 0 25px;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }
    
    .nav-brand {
        order: 1;
        flex: 1;
        min-width: 0;
    }
    
    .nav-actions {
        order: 3;
        gap: 0.5rem;
    }
    
    .navbar .container {
        position: relative;
    }
    
    .brand-title {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        display: none;
        z-index: 100;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        transform: none;
        margin-top: 0.5rem;
        margin-left: 1rem;
        padding: 0.5rem 0;
        background: transparent;
        min-width: auto;
        width: 100%;
    }
    
    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
    }
    
    .brands-dropdown {
        display: block;
        grid-template-columns: 1fr;
    }
    
    .mobile-only-nav-actions {
        display: flex;
        gap: 0.75rem;
        padding: 1rem 0;
        border-top: 1px solid var(--border-color);
        margin-top: 0.5rem;
        width: 100%;
        align-items: center;
    }
    
    .mobile-only-nav-actions .btn-login,
    .mobile-only-nav-actions .cart-btn {
        flex: 1;
        justify-content: center;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .btn-login {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-login svg {
        width: 16px;
        height: 16px;
    }
    
    .nav-link-admin {
        font-size: 0.875rem;
        padding: 0.5rem;
    }
    
    .cart-btn {
        padding: 0.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

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

    .brand-title {
        font-size: 1.5rem;
    }

    .brand-tagline {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }

    .brand-card {
        padding: 1.5rem;
        min-height: 120px;
    }

    .brand-logo {
        width: 60px;
        height: 60px;
    }

    .filters-group {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .filter-group select,
    .filter-group input {
        font-size: 0.875rem;
        padding: 0.625rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-card {
        max-width: 100%;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-sidebar.active {
        right: 0;
    }
    
    .cart-header {
        padding: 1rem;
    }
    
    .cart-items {
        padding: 0.5rem;
    }
    
    .cart-footer {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 400px;
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }
    
    .btn-login {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .btn-login svg {
        width: 14px;
        height: 14px;
    }
    
    .btn-login span {
        display: none;
    }
    
    .cart-count {
        font-size: 0.625rem;
        width: 16px;
        height: 16px;
    }

    .brand-title {
        font-size: 1.25rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.875rem;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .brand-card {
        padding: 1rem;
        min-height: 100px;
    }
    
    .brand-logo {
        width: 50px;
        height: 50px;
    }
    
    .filter-group label {
        font-size: 0.875rem;
    }
    
    .product-card {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.25rem;
    }
    
    .qty-controls {
        gap: 0.5rem;
    }
    
    .qty-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .qty-input {
        width: 50px;
        font-size: 0.875rem;
    }
    
    .add-to-cart {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* === Page Content Styles === */
.page-content {
    min-height: 60vh;
}

.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-section, .contact-section {
    padding: 4rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-display);
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--gray);
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    color: var(--dark);
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info h2, .contact-form-wrapper h2 {
    font-family: var(--font-display);
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

/* === Image Error Handling === */
.product-image img,
.brand-logo {
    background: var(--light-gray);
    transition: opacity 0.3s ease;
}

.product-image img[src=""],
.brand-logo[src=""] {
    opacity: 0;
}

@media (max-width: 768px) {
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none;
    }
}

/* === Login Modal === */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.login-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-container {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.4);
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255,255,255,0.1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--light-gray);
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    padding: 0.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-close:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.login-header p {
    color: var(--gray);
    font-size: 1rem;
}

.btn-google-sso {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: 2px solid #dadce0;
    background: var(--white);
    color: #3c4043;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    font-size: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.btn-google-sso:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    border-color: #c0c0c0;
}

.btn-google-sso:active {
    transform: translateY(0);
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: var(--gray);
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid #e8e8e8;
}

.login-divider span {
    padding: 0 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray);
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.login-form input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--white);
}

.login-form input:hover {
    border-color: #d1d5db;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 123, 63, 0.1);
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.login-footer p {
    color: var(--gray);
    font-size: 0.95rem;
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.login-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* === Notification System === */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.notification {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    flex-shrink: 0;
}

.notification-success {
    border-left: 4px solid #10b981;
}

.notification-success .notification-icon {
    background: #d1fae5;
    color: #059669;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-error .notification-icon {
    background: #fee2e2;
    color: #dc2626;
}

.notification-warning {
    border-left: 4px solid #f59e0b;
}

.notification-warning .notification-icon {
    background: #fef3c7;
    color: #d97706;
}

.notification-info {
    border-left: 4px solid #3b82f6;
}

.notification-info .notification-icon {
    background: #dbeafe;
    color: #2563eb;
}

.notification-content {
    flex: 1;
}

.notification-message {
    color: var(--dark);
    font-size: 0.95rem;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
    flex-shrink: 0;
}

.notification-close:hover {
    background: var(--light-gray);
    color: var(--dark);
}

/* Notification Modal (for confirm dialogs) */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.notification-modal.show {
    opacity: 1;
}

.notification-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.notification-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.notification-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.notification-modal-header h3 {
    margin: 0;
    color: var(--dark);
    font-size: 1.25rem;
}

.notification-modal-body {
    padding: 1.5rem;
}

.notification-modal-body p {
    margin: 0;
    color: var(--gray);
    line-height: 1.6;
}

.notification-modal-footer {
    padding: 1rem 1.5rem;
    background: var(--light-gray);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.notification-modal-footer .btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 1px solid #ddd;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.notification-modal-footer .btn-secondary:hover {
    background: var(--light-gray);
    border-color: var(--gray);
}

.notification-modal-footer .btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.notification-modal-footer .btn-primary:hover {
    background: var(--primary-dark);
}

@media (max-width: 768px) {
    .notification-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .notification {
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

/* === Footer === */
.footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

/* === Privacy Banner === */
.privacy-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.98);
    color: white;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.privacy-banner.show {
    transform: translateY(0);
}

.privacy-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.privacy-banner-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.privacy-banner-text strong {
    display: inline-block;
    margin-right: 0.5rem;
}

.privacy-banner-actions {
    flex-shrink: 0;
}

.privacy-banner-dismiss {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.privacy-banner-dismiss:hover {
    background: var(--light);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .privacy-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .privacy-banner-text {
        font-size: 0.85rem;
    }
}


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

.footer-section h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

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

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.85;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

/* Footer Icons - ensure white color */
.footer-icon {
    color: var(--white);
    margin-right: 0.5rem;
    font-style: normal;
}

.footer-section .contact-list li {
    color: var(--white);
    opacity: 0.9;
}

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

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section ul li a:hover {
        padding-left: 0;
    }
}

/* === Virtual Scroller / Lazy Loading === */
.products-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    gap: 1rem;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.products-loader p {
    color: var(--gray);
    font-size: 0.95rem;
}

.product-count {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 8px;
}

/* Lazy loading image placeholder */
img.lazy-image {
    transition: opacity 0.3s ease-in;
    opacity: 0.5;
}

img.lazy-image.loaded {
    opacity: 1;
}

/* Smooth product card entrance */
.product-card {
    opacity: 0;
    animation: fadeInUp 0.4s ease-out forwards;
}

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