/* Maverick Spice Co - Modern Premium Design */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Brand Colors - Red, White, and Blue */
    --primary-spice: #DC143C;      /* Crimson red */
    --primary-dark: #1e3a8a;       /* Deep blue */
    --accent-gold: #3b82f6;        /* Medium blue */
    --accent-warm: #EF4444;        /* Bright red */
    --accent-red: #DC2626;         /* Strong red */
    --accent-green: #6B8E23;       /* Herb green */

    /* Modern neutrals */
    --neutral-50: #FEFDFB;
    --neutral-100: #F8F6F2;
    --neutral-200: #F0ECE4;
    --neutral-300: #E5DFD4;
    --neutral-400: #C7B8A6;
    --neutral-500: #9D8B75;
    --neutral-600: #6D5D4F;
    --neutral-700: #4A3F35;
    --neutral-800: #2C1810;
    --neutral-900: #1A0F0A;

    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(44, 24, 16, 0.1);
    --shadow-md: 0 4px 16px rgba(44, 24, 16, 0.15);
    --shadow-lg: 0 8px 32px rgba(44, 24, 16, 0.2);

    /* Borders */
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--neutral-700);
    background: var(--neutral-50);
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: var(--space-sm);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

.display-1 { font-size: 4.5rem; font-weight: 700; }
.lead { font-size: 1.125rem; font-weight: 400; color: var(--neutral-600); }

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    padding: var(--space-sm) 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.55);
}

.navbar.sticky-top {
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.55);
    z-index: 1030;
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    margin-right: var(--space-sm);
}

.navbar-nav .nav-link {
    color: var(--neutral-100) !important;
    font-weight: 500;
    padding: var(--space-xs) var(--space-md) !important;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: #DC143C;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
    left: 10%;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Buttons */
.btn {
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1.5rem;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-spice) 0%, var(--accent-warm) 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-warm) 0%, var(--primary-spice) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-secondary {
    background: var(--neutral-200);
    color: var(--neutral-700);
}

.btn-secondary:hover {
    background: var(--neutral-300);
    color: var(--primary-dark);
}

.btn-outline-primary {
    border: 2px solid var(--primary-spice);
    color: var(--primary-spice);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-spice);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg,
        #FCA5A5 0%,
        #EF4444 50%,
        #991B1B 100%);
    color: white;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: white;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--neutral-200);
    margin-bottom: var(--space-xl);
    max-width: 600px;
}

.hero-section .btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
}

.hero-section .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    color: white;
}

.hero-section .btn-outline-primary {
    border-color: white;
    color: white;
}

.hero-section .btn-outline-primary:hover {
    background: white;
    color: var(--primary-spice);
    border-color: white;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius-md);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-img-top {
    transition: all 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: var(--space-md);
}

.card-title {
    font-family: var(--font-display);
    color: var(--primary-dark);
    font-weight: 600;
}

/* Product Cards */
.product-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
}

.product-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--accent-red);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 3;
}

.heat-level {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: var(--space-xs) 0;
}

.heat-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--neutral-200);
    transition: all 0.3s ease;
}

.heat-indicator.active {
    background: var(--accent-red);
    box-shadow: 0 0 8px rgba(196, 30, 58, 0.4);
}

/* Sections */
.section {
    padding: var(--space-2xl) 0;
}

.section-alt {
    background: var(--neutral-100);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-spice) 0%, var(--accent-gold) 100%);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Features */
.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-spice) 0%, var(--accent-gold) 100%);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

/* Forms */
.form-control {
    border: 2px solid var(--neutral-200);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    border-color: var(--primary-spice);
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border-left: 4px solid;
}

.alert-success {
    background: rgba(107, 142, 35, 0.1);
    color: var(--accent-green);
    border-left-color: var(--accent-green);
}

.alert-danger {
    background: rgba(196, 30, 58, 0.1);
    color: var(--accent-red);
    border-left-color: var(--accent-red);
}

.alert-warning {
    background: rgba(184, 134, 11, 0.1);
    color: var(--accent-warm);
    border-left-color: var(--accent-warm);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer h5 {
    color: white;
    margin-bottom: var(--space-md);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #DC143C;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Cart Badge */
#cart-count {
    background: var(--accent-red);
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    min-width: 1.5rem;
    text-align: center;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--neutral-200);
    border-top-color: var(--primary-spice);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 2.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .section {
        padding: var(--space-xl) 0;
    }
}

/* Heat Scale */
.heat-scale {
    max-width: 400px;
}

.heat-scale-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md);
    gap: var(--space-md);
}

.heat-scale-bar {
    flex: 1;
    height: 12px;
    background: var(--neutral-200);
    border-radius: 6px;
    overflow: hidden;
}

.heat-scale-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 6px;
}

.heat-scale-label {
    min-width: 140px;
    font-size: 0.875rem;
}

/* Utility Classes */
.text-spice { color: var(--primary-spice); }
.text-gold { color: var(--accent-gold); }
.text-warm { color: var(--accent-warm); }
.bg-spice { background-color: var(--primary-spice); }
.bg-gold { background-color: var(--accent-gold); }
.bg-warm { background-color: var(--accent-warm); }