/**
 * UI Style Guide - Centralized Styles
 * Jai Kisan Healthy India - B2B E-commerce Platform
 * 
 * This file contains all UI variables, colors, typography, spacing, and component styles
 * Following Material Design guidelines with refined Red/Blue professional theme
 * 
 * To change the entire website theme, modify the CSS variables in this file
 */

:root {
    /* ==========================================================================
       COLOR PALETTE
       ========================================================================== */
    
    /* Primary Colors - Professional Red Theme */
    --primary-red: #E60000;          /* Main brand color - Professional Red */
    --primary-red-light: #FF5252;    /* Lighter variant for hover states */
    --primary-red-dark: #B71C1C;     /* Darker variant for active states */
    
    /* Legacy variable names for backward compatibility */
    --primary-green: #E60000;        /* Main brand color - mapped to red */
    --primary-green-light: #FF5252;  /* Lighter variant - mapped to red light */
    --primary-green-dark: #B71C1C;   /* Darker variant - mapped to red dark */
    
    /* Secondary Colors - Professional Blue Accent */
    --secondary-blue: #1976D2;       /* Accent color - Professional Blue */
    --secondary-blue-light: #42A5F5; /* Blue 400 */
    --secondary-blue-dark: #0D47A1;  /* Blue 900 */
    
    /* Legacy variable names for backward compatibility */
    --secondary-orange: #1976D2;     /* Accent color - mapped to blue */
    --secondary-orange-light: #42A5F5; /* Blue light */
    --secondary-orange-dark: #0D47A1;  /* Blue dark */
    
    /* Neutral Colors - Refined Material Design Grays */
    --white: #FFFFFF;
    --light-gray: #F8F9FA;           /* Background sections - Subtle warm gray */
    --medium-gray: #DEE2E6;          /* Borders and dividers - Softer gray */
    --dark-gray: #6C757D;            /* Secondary text - Balanced gray */
    --charcoal: #343A40;             /* Primary text - Softer dark gray */
    --black: #000000;
    
    /* Status Colors - Harmonious Material Design */
    --success: #28A745;              /* Success messages, in stock - Professional Green */
    --warning: #FFC107;              /* Warnings, low stock - Warm Amber */
    --error: #E60000;                /* Errors, out of stock - Matches primary red */
    --info: #17A2B8;                 /* Information, promotions - Calm Cyan */
    
    /* ==========================================================================
       TYPOGRAPHY
       ========================================================================== */
    
    /* Font Families */
    --font-primary: 'Roboto', 'Segoe UI', sans-serif;    /* Main content */
    --font-secondary: 'Open Sans', 'Arial', sans-serif;  /* Secondary text */
    --font-heading: 'Poppins', 'Roboto', sans-serif;     /* Headings */
    
    /* Font Sizes */
    --text-xs: 0.75rem;    /* 12px - Labels, captions */
    --text-sm: 0.875rem;   /* 14px - Small text */
    --text-base: 1rem;     /* 16px - Body text */
    --text-lg: 1.125rem;   /* 18px - Large text */
    --text-xl: 1.25rem;    /* 20px - Subheadings */
    --text-2xl: 1.5rem;    /* 24px - Section headings */
    --text-3xl: 1.875rem;  /* 30px - Page headings */
    --text-4xl: 2.25rem;   /* 36px - Hero titles */
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* ==========================================================================
       SPACING SCALE
       ========================================================================== */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    
    /* ==========================================================================
       RESPONSIVE BREAKPOINTS
       ========================================================================== */
    --breakpoint-sm: 640px;    /* Small devices */
    --breakpoint-md: 768px;    /* Medium devices */
    --breakpoint-lg: 1024px;   /* Large devices */
    --breakpoint-xl: 1280px;   /* Extra large devices */
    --breakpoint-2xl: 1536px;  /* 2X large devices */
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

body {
    font-family: var(--font-primary);
    color: var(--charcoal);
    background-color: var(--light-gray);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-semibold);
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--charcoal);
}

/* ==========================================================================
   NAVIGATION COMPONENTS
   ========================================================================== */

.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--medium-gray);
    padding: var(--space-3) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 60px;
    display: flex;
    align-items: center;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    font-size: var(--text-2xl);
    color: var(--primary-red) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Logo Styling */
.navbar-logo {
    height: 40px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.footer-logo {
    height: 50px;
    max-width: 250px;
    width: auto;
    object-fit: contain;
}

.auth-logo {
    height: 60px;
    max-width: 300px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.nav-link {
    color: var(--charcoal) !important;
    font-weight: var(--font-medium);
    padding: var(--space-2) var(--space-4) !important;
    transition: color 0.3s ease;
}

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

/* ==========================================================================
   BUTTON COMPONENTS
   ========================================================================== */

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    padding: var(--space-3) var(--space-6);
    border-radius: 8px;
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 4px rgba(230, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--primary-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(230, 0, 0, 0.3);
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary-blue);
    color: var(--white);
    padding: var(--space-3) var(--space-6);
    border-radius: 8px;
    font-weight: var(--font-medium);
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.2);
}

.btn-secondary:hover {
    background: var(--secondary-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(25, 118, 210, 0.3);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    padding: var(--space-3) var(--space-6);
    border-radius: 8px;
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-outline:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(230, 0, 0, 0.2);
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

/* ==========================================================================
   CARD COMPONENTS
   ========================================================================== */

.card-base {
    background: var(--white);
    border-radius: 12px;
    padding: var(--space-4);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--medium-gray);
}

.card-base:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: 12px;
    padding: var(--space-4);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--medium-gray);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Category Card */
.category-card {
    background: var(--white);
    border-radius: 12px;
    padding: var(--space-6);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--medium-gray);
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: block;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    color: inherit;
}

/* Auth Card */
.auth-card {
    background: var(--white);
    border-radius: 12px;
    padding: var(--space-8);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 1px solid var(--medium-gray);
    backdrop-filter: blur(10px);
}

.auth-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Feature Card */
.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: var(--space-6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--medium-gray);
    height: 100%;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   ICON COMPONENTS
   ========================================================================== */

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-2xl);
    margin: 0 auto var(--space-4);
}

.category-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-2xl);
    margin: 0 auto var(--space-4);
}

.icon {
    width: 24px;
    height: 24px;
    color: var(--primary-red);
}

.icon-large {
    width: 48px;
    height: 48px;
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red-light));
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-banner {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: var(--space-16) 0;
}

.hero-section::before,
.hero-banner::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="30" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   FORM COMPONENTS
   ========================================================================== */

.form-input {
    background: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    transition: border-color 0.3s ease;
    width: 100%;
}

.form-input:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.15);
}

.form-label {
    color: var(--charcoal);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-2);
    display: block;
}

.search-bar {
    border-radius: 25px;
    border: 2px solid var(--medium-gray);
    padding: var(--space-3) var(--space-5);
    transition: border-color 0.3s ease;
}

.search-bar:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.15);
}

/* ==========================================================================
   PRODUCT COMPONENTS
   ========================================================================== */

.product-image {
    height: 200px;
    background: var(--light-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 3rem;
    margin-bottom: var(--space-4);
}

/* Price Display */
.price-current {
    color: var(--primary-red);
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
}

.price-original {
    color: var(--dark-gray);
    text-decoration: line-through;
    font-size: var(--text-base);
}

.price-discount {
    background: var(--error);
    color: var(--white);
    padding: var(--space-1) var(--space-2);
    border-radius: 4px;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
}

/* ==========================================================================
   CART & WISHLIST COMPONENTS
   ========================================================================== */

.cart-badge {
    background: var(--secondary-blue);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: var(--text-xs);
    position: absolute;
    top: -8px;
    right: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-icon {
    color: var(--medium-gray);
    transition: color 0.3s ease;
}

.wishlist-icon.active {
    color: var(--error);
}

/* ==========================================================================
   STATUS COMPONENTS
   ========================================================================== */

.status-in-stock {
    color: var(--success);
    font-weight: var(--font-medium);
}

.status-low-stock {
    color: var(--warning);
    font-weight: var(--font-medium);
}

.status-out-of-stock {
    color: var(--error);
    font-weight: var(--font-medium);
}

/* ==========================================================================
   LAYOUT COMPONENTS
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Grid Systems */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    padding: var(--space-8) 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-8);
}

/* ==========================================================================
   FOOTER COMPONENTS
   ========================================================================== */

.footer {
    background: var(--charcoal);
    color: var(--white);
    padding: var(--space-8) 0;
    margin-top: var(--space-16);
}

.footer .brand-logo {
    color: var(--primary-red-light);
    font-weight: var(--font-bold);
}

.footer h6 {
    color: var(--white);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    font-size: var(--text-lg);
}

.footer p {
    color: var(--light-gray);
    line-height: 1.6;
}

.footer a {
    color: var(--light-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: var(--space-1) 0;
}

.footer a:hover {
    color: var(--primary-red-light);
    transform: translateX(2px);
}

.footer .social-links a {
    color: var(--primary-red-light);
    font-size: var(--text-xl);
    margin-right: var(--space-3);
    padding: var(--space-2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background: var(--primary-red-light);
    color: var(--charcoal);
    transform: translateY(-2px);
}

.footer .contact-info {
    color: var(--light-gray);
}

.footer .contact-info i {
    color: var(--primary-red-light);
    width: 20px;
    text-align: center;
}

.footer hr {
    border-color: var(--dark-gray) !important;
    opacity: 0.3;
}

.footer .copyright {
    color: var(--medium-gray);
    font-size: var(--text-sm);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Typography Utilities */
.text-primary-red {
    color: var(--primary-red);
}

.text-primary-green {
    color: var(--primary-red);
}

.text-secondary-blue {
    color: var(--secondary-blue);
}

.text-secondary-orange {
    color: var(--secondary-blue);
}

.text-muted {
    color: var(--dark-gray);
}

/* Background Utilities */
.bg-light-custom {
    background-color: var(--light-gray);
}

.bg-primary-red {
    background-color: var(--primary-red);
}

.bg-primary-green {
    background-color: var(--primary-red);
}

.bg-secondary-blue {
    background-color: var(--secondary-blue);
}

.bg-secondary-orange {
    background-color: var(--secondary-blue);
}

/* Badge Styles */
.feature-badges .badge {
    background: var(--secondary-blue);
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    border-radius: 20px;
    font-weight: var(--font-medium);
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.2);
    transition: all 0.3s ease;
}

.feature-badges .badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(25, 118, 210, 0.3);
}

.badge.bg-secondary-blue {
    background: var(--secondary-blue) !important;
}

.badge.bg-secondary-orange {
    background: var(--secondary-blue) !important;
}

/* ==========================================================================
   ANIMATIONS & TRANSITIONS
   ========================================================================== */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, var(--light-gray) 25%, var(--medium-gray) 50%, var(--light-gray) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   DASHBOARD LAYOUT SYSTEM
   ========================================================================== */

/* Full-width responsive containers */
.dashboard-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.dashboard-container-fluid {
    width: 100%;
    padding: 0 var(--space-4);
}

/* Dashboard grid system */
.dashboard-grid {
    display: grid;
    gap: var(--space-6);
}

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

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

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

/* Stat cards responsive grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

/* Dashboard card system */
.dashboard-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.dashboard-card-header {
    background: var(--white);
    border-bottom: 1px solid var(--medium-gray);
    padding: var(--space-4) var(--space-5);
    border-radius: 12px 12px 0 0;
}

.dashboard-card-body {
    padding: var(--space-5);
}

/* Sidebar responsive design */
.dashboard-sidebar {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: var(--space-6);
}

.dashboard-main-content {
    min-height: 600px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Large screens - maximize space utilization */
@media (min-width: 1400px) {
    .dashboard-container {
        max-width: 1600px;
        padding: 0 var(--space-6);
    }

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

    .dashboard-grid-2 {
        grid-template-columns: 320px 1fr;
        gap: var(--space-8);
    }
}

/* Desktop screens */
@media (min-width: 1024px) and (max-width: 1399px) {
    .dashboard-container {
        max-width: 1200px;
    }

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

/* Tablet screens */
@media (min-width: 768px) and (max-width: 1023px) {
    .dashboard-container {
        padding: 0 var(--space-4);
    }

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

    .dashboard-grid-2 {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .dashboard-sidebar {
        position: static;
        margin-bottom: var(--space-4);
    }
}

/* Mobile screens */
@media (max-width: 767px) {
    .dashboard-container,
    .dashboard-container-fluid {
        padding: 0 var(--space-3);
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .dashboard-grid-2 {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .dashboard-sidebar {
        position: static;
        margin-bottom: var(--space-4);
    }

    .dashboard-card-header,
    .dashboard-card-body {
        padding: var(--space-3) var(--space-4);
    }

    .hero-section {
        min-height: auto;
        padding: var(--space-20) 0;
    }

    .hero-banner {
        padding: var(--space-12) 0;
    }

    .auth-card {
        margin-top: var(--space-8);
    }

    .search-bar {
        width: 100% !important;
        margin-bottom: var(--space-3);
    }
}

@media (max-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-badges {
        justify-content: center;
    }
    
    .feature-badges .badge {
        margin-bottom: var(--space-2);
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .navbar,
    .footer,
    .btn,
    .cart-badge {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero-section,
    .hero-banner {
        background: white !important;
        color: black !important;
    }
}

/* ==========================================================================
   ENHANCED PRODUCT PAGE COMPONENTS
   ========================================================================== */

/* Category Carousel */
.category-scroll-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.category-scroll {
    transition: transform 0.3s ease;
    will-change: transform;
}

.category-item {
    width: 160px;
    flex-shrink: 0;
}

.category-card {
    display: block;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: var(--space-4);
    text-decoration: none;
    border: 1px solid var(--light-gray);
    transition: var(--transition-base);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    color: inherit;
}

.category-card .category-icon {
    background: var(--primary-red-light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-3);
    font-size: 1.5rem;
    color: var(--primary-red);
}

/* Enhanced Search Bars */
.search-bar {
    border: 2px solid var(--light-gray);
    padding: var(--space-3);
    border-radius: var(--border-radius);
    font-size: var(--text-base);
    transition: var(--transition-base);
}

.search-bar:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(230, 0, 0, 0.25);
    outline: none;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-red);
    border: 1px solid var(--light-gray);
    padding: var(--space-2) var(--space-3);
    margin: 0 2px;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    text-decoration: none;
}

.pagination .page-link:hover {
    background-color: var(--primary-red-light);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
}

.pagination .page-item.disabled .page-link {
    color: var(--dark-gray);
    background-color: var(--light-gray);
    border-color: var(--light-gray);
}

/* Product States */
.add-product-btn.btn-success {
    background-color: var(--success) !important;
    border-color: var(--success) !important;
    color: var(--white) !important;
}

.add-product-btn.btn-success:hover {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

/* Dropdown Enhancements */
.dropdown-menu {
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    padding: var(--space-2);
}

.dropdown-item {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--border-radius);
    transition: var(--transition-base);
}

.dropdown-item:hover {
    background-color: var(--primary-red-light);
    color: var(--primary-red);
}

/* Results Info */
.results-info {
    color: var(--dark-gray);
    font-size: var(--text-sm);
}

/* Carousel Navigation Buttons */
#categoryPrev, #categoryNext {
    border: 2px solid var(--primary-red);
    background: var(--white);
    color: var(--primary-red);
    box-shadow: var(--shadow-card);
}

#categoryPrev:hover, #categoryNext:hover {
    background: var(--primary-red);
    color: var(--white);
}

#categoryPrev:disabled, #categoryNext:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Product Image Enhancements */
.product-image {
    height: 120px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
    font-size: 2rem;
    color: var(--primary-red);
    transition: var(--transition-base);
}

.product-card:hover .product-image {
    background: var(--primary-red-light);
}

/* ==========================================================================
   DASHBOARD COMPONENTS
   ========================================================================== */

/* Action buttons for dashboards */
.dashboard-action-btn {
    color: var(--charcoal) !important;
    background: var(--white);
    border: 1px solid var(--medium-gray);
    padding: var(--space-3) var(--space-4);
    border-radius: 8px;
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
    margin-bottom: var(--space-2);
    text-align: left;
    width: 100%;
    display: flex;
    align-items: center;
}

.dashboard-action-btn:hover {
    background: var(--light-gray);
    border-color: var(--primary-red);
    color: var(--primary-red) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(230, 0, 0, 0.15);
}

.dashboard-action-btn.active {
    background: var(--primary-red) !important;
    color: var(--white) !important;
    border-color: var(--primary-red) !important;
    box-shadow: 0 4px 8px rgba(230, 0, 0, 0.25);
}

.dashboard-action-btn i {
    margin-right: var(--space-3);
    width: 20px;
    text-align: center;
}

/* Stat cards */
.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: var(--space-6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
    font-size: var(--text-xl);
}

.stat-card .stat-number {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-1);
    line-height: 1.2;
}

.stat-card .stat-label {
    color: var(--dark-gray);
    font-size: var(--text-base);
    margin-bottom: 0;
    font-weight: var(--font-medium);
}

/* Icon background colors */
.stat-icon-bg-primary {
    background: rgba(230, 0, 0, 0.1);
    color: var(--primary-red);
}

.stat-icon-bg-blue {
    background: rgba(25, 118, 210, 0.1);
    color: var(--secondary-blue);
}

.stat-icon-bg-warning {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-custom);
}

.stat-icon-bg-success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
}

.stat-icon-bg-secondary {
    background: rgba(108, 117, 125, 0.1);
    color: var(--secondary-custom);
}

/* Dashboard navigation */
.dashboard-navbar {
    background: var(--white);
    border-bottom: 1px solid var(--medium-gray);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: var(--space-3) 0;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.dashboard-navbar .navbar-brand {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    font-size: var(--text-2xl);
    color: var(--primary-red) !important;
}

/* Navbar container alignment */
.navbar .container,
.navbar .container-fluid,
.navbar .dashboard-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding-top: 0;
    padding-bottom: 0;
}

/* Navbar brand alignment to center */
.navbar-brand {
    align-self: center;
    margin-top: 0;
    padding-top: 0;
}

/* Navbar collapse alignment to center */
.navbar .navbar-collapse {
    align-items: center;
    align-self: center;
}

/* Admin user info section - align to center */
.navbar .d-flex.align-items-center.gap-3 {
    align-items: center !important;
    justify-content: flex-end;
    margin-left: auto;
    align-self: center;
    margin-top: 0;
    padding-top: 0;
}

.navbar .d-flex.align-items-center.gap-2 {
    align-items: center !important;
    align-self: center;
    margin-top: 0;
    padding-top: 0;
}

/* Welcome back text - align to center baseline */
.navbar .d-none.d-md-block {
    line-height: 1.2;
    text-align: right;
    align-self: center;
    margin-top: 0;
    padding-top: 0;
}

.navbar .d-none.d-md-block small {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 1.1;
    font-size: 11px;
    color: var(--dark-gray);
}

.navbar .d-none.d-md-block strong {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    font-size: 13px;
    color: var(--primary-red);
    font-weight: var(--font-semibold);
}

/* Admin avatar - align to center baseline */
.admin-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
    margin-top: 0;
}

/* Logout button - align to center baseline */
.navbar .btn {
    align-self: center;
    white-space: nowrap;
    margin-top: 0;
    padding-top: 6px;
    padding-bottom: 6px;
}

/* Dashboard header section */
.dashboard-header {
    background: var(--light-gray);
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--medium-gray);
}

.dashboard-header h1 {
    color: var(--charcoal);
    font-family: var(--font-heading);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
}

.dashboard-header p {
    color: var(--dark-gray);
    font-size: var(--text-lg);
}

/* Compact Dashboard header section */
.dashboard-header-compact {
    background: var(--light-gray);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--medium-gray);
}

.dashboard-header-compact h1 {
    color: var(--charcoal);
    font-family: var(--font-heading);
    font-weight: var(--font-semibold);
    margin-bottom: 0;
}

.dashboard-header-compact .text-muted {
    color: var(--dark-gray);
    font-size: var(--text-base);
}

/* Compact Stats Grid */
.stats-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.stat-card-compact {
    background: var(--white);
    border-radius: 12px;
    padding: var(--space-4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--medium-gray);
}

.stat-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.stat-content {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.stat-icon-small {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: var(--text-lg);
}

.stat-info {
    flex-grow: 1;
}

.stat-info .stat-number {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-1);
    line-height: 1.2;
}

.stat-info .stat-label {
    color: var(--dark-gray);
    font-size: var(--text-sm);
    margin-bottom: 0;
    font-weight: var(--font-medium);
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .category-item {
        width: 140px;
    }

    .category-scroll {
        gap: var(--space-2) !important;
    }

    #categoryPrev, #categoryNext {
        width: 35px;
        height: 35px;
        font-size: var(--text-sm);
    }

    .search-bar {
        font-size: var(--text-sm);
        padding: var(--space-2);
    }

    .pagination .page-link {
        padding: var(--space-1) var(--space-2);
        font-size: var(--text-sm);
    }

    /* Mobile logo adjustments */
    .navbar-logo {
        height: 32px;
        max-width: 150px;
    }

    .footer-logo {
        height: 40px;
        max-width: 180px;
    }

    .auth-logo {
        height: 50px;
        max-width: 220px;
    }

    /* Dashboard mobile adjustments */
    .dashboard-action-btn {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-sm);
    }

    .stat-card {
        padding: var(--space-4);
    }

    .stat-card .stat-icon {
        width: 50px;
        height: 50px;
        font-size: var(--text-lg);
    }

    .stat-card .stat-number {
        font-size: var(--text-2xl);
    }

    .dashboard-header {
        padding: var(--space-4) 0;
    }

    .dashboard-header h1 {
        font-size: var(--text-2xl);
    }

    .dashboard-header p {
        font-size: var(--text-base);
    }

    .dashboard-header-compact {
        padding: var(--space-2) 0;
    }

    .dashboard-header-compact h1 {
        font-size: var(--text-lg);
    }

    .dashboard-header-compact .text-muted {
        font-size: var(--text-sm);
    }

    .stats-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .stat-card-compact {
        padding: var(--space-3);
    }

    .stat-icon-small {
        width: 32px;
        height: 32px;
        font-size: var(--text-base);
    }

    .stat-info .stat-number {
        font-size: var(--text-lg);
    }

    .stat-info .stat-label {
        font-size: var(--text-xs);
    }

    /* Mobile navbar adjustments */
    .navbar,
    .dashboard-navbar {
        padding: var(--space-2) 0;
        min-height: 50px;
    }

    .navbar .container,
    .navbar .container-fluid {
        min-height: 50px;
    }

    .admin-avatar {
        width: 35px;
        height: 35px;
    }

    .navbar .d-none.d-md-block small {
        font-size: 10px;
    }

    .navbar .d-none.d-md-block strong {
        font-size: 12px;
    }
}

/* ==========================================================================
   HERO SECTION ENHANCEMENTS
   ========================================================================== */

.hero-text-content {
    position: relative;
    z-index: 2;
}

/* Text Shadow Effects for Better Readability */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.text-shadow-strong {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

/* Promotional Text Styling */
.promotional-text {
    position: relative;
    margin-top: var(--space-6);
}

.promotional-text p {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-4) var(--space-6);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.promotional-text:hover p {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Accent Underline */
.underline-accent {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-blue), var(--secondary-blue-light));
    border-radius: 2px;
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px rgba(25, 118, 210, 0.4);
        transform: scaleX(1);
    }
    100% {
        box-shadow: 0 0 20px rgba(25, 118, 210, 0.8);
        transform: scaleX(1.1);
    }
}

/* Enhanced Text Styling */
.hero-section .text-warning {
    color: #FFD700 !important;
    font-weight: var(--font-bold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive Adjustments for Hero Text */
@media (max-width: 768px) {
    .hero-text-content {
        text-align: center;
        padding: var(--space-4);
    }
    
    .promotional-text p {
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-lg);
    }
    
    .text-shadow {
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    }
    
    .text-shadow-strong {
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    }
} 