/* ==================== VARIABLES & THEMES ==================== */
:root {
    /* Core accent colors - consistent across themes */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --success-color: #22c55e;

    /* Default (Dark) Theme Variables */
    --bg-color: #0f172a;
    --bg-gradient: radial-gradient(circle at 50% -20%, #1e293b 0%, #0f172a 70%);
    --card-bg: #1e293b;
    --card-hover: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(15, 23, 42, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

[data-theme='light'] {
    --bg-color: #f8fafc;
    --bg-gradient: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
    --card-bg: #ffffff;
    --card-hover: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.85);
    --shadow-color: rgba(0, 0, 0, 0.05);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: #0f172a !important;
    /* Force a deep, solid background for readability */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.6rem 0;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.4);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-brand {
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

.nav-brand a {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand a:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
    margin-left: 2rem;
    /* Separates logo from links */
}

.nav-menu a {
    color: #ffffff !important;
    /* Ensure bright white text for maximum contrast */
    transition: all 0.3s ease;
    font-weight: 600;
    /* Increased weight for clarity */
    font-size: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    /* Fix stacked text */
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-item.dropdown:hover>a::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.btn-login,
.btn-register {
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-login {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-login:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.btn-register {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-register:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px var(--shadow-color);
    margin: 0 10px;
}

.theme-toggle:hover {
    transform: rotate(30deg) scale(1.1);
    background: var(--card-hover);
    border-color: var(--primary-color);
}

[data-theme='light'] .theme-toggle .fa-sun {
    display: none;
}

[data-theme='dark'] .theme-toggle .fa-moon {
    display: none;
}

:root:not([data-theme]) .theme-toggle .fa-moon {
    display: none;
}

/* Default is dark */

.admin-link {
    color: #fbbf24 !important;
    /* Vibrant Amber/Gold */
    font-weight: 800;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.cart-link {
    font-size: 1.1rem;
}

.user-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ==================== NAV DROPDOWN ==================== */
.nav-item.dropdown {
    position: relative;
    list-style: none;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 0.8rem 0;
    list-style: none;
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 3000;
    margin-top: 10px;
    animation: dropIn 0.3s ease-out;
}

/* Bridge to prevent losing hover when moving mouse to menu */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1.5rem !important;
    color: var(--text-main) !important;
    font-size: 0.9rem !important;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
}

.dropdown-menu li a::after {
    display: none !important;
    /* Remove the underline effect */
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color) !important;
    padding-left: 1.8rem !important;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

/* Fix for admin dropdown specific styling */
.admin-dropdown .user-dropdown-trigger {
    position: relative;
    z-index: 10;
}

.admin-dropdown:hover .user-dropdown-trigger {
    color: var(--primary-color) !important;
}

/* User's "Class giả" for alignment/fix */
.dropdown-fix {
    display: inline-block;
}

.logout-text:hover {
    color: #ef4444 !important;
}

.btn-logout i {
    font-size: 1rem;
}

/* ==================== FLASH MESSAGES ==================== */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2000;
    max-width: 400px;
}

.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--warning-color);
    color: var(--warning-color);
}

.alert-info {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.close-alert {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
}

/* ==================== PREMIUM HERO REDESIGN ==================== */
.hero-premium {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 80px;
    background-color: #050811;
}

.hero-premium-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-premium-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    filter: saturate(1.2) contrast(1.1);
}

.hero-premium-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(15, 23, 42, 0.4) 0%,
            rgba(15, 23, 42, 0.8) 50%,
            var(--bg-color) 100%);
    z-index: 2;
}

.mesh-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    z-index: 3;
    animation: float 10s infinite alternate;
}

.hero-premium-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInDown 0.8s ease;
}

.premium-headline {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    color: white;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.premium-headline span {
    background: linear-gradient(135deg, #fff 30%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-subheadline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* Glassmorphism Bike Selector */
.bike-selector-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 24px;
    display: flex;
    gap: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.selector-field {
    flex: 1;
    position: relative;
}

.selector-field i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.selector-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 14px 14px 14px 48px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.selector-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.btn-premium-search {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-premium-search:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--card-hover);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==================== PRODUCT GRID ==================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.product-card-modern {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card-modern:hover {
    transform: translateY(-15px);
    border-color: var(--primary-color);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7), 0 0 20px rgba(99, 102, 241, 0.2);
}

.product-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: 0.3s ease;
}

.product-card-modern:hover .product-image-container::after {
    opacity: 1;
}

.product-image {
    position: relative;
    background: var(--card-hover);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    font-size: 4rem;
    opacity: 0.5;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-warning {
    background: var(--warning-color);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.product-category {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--secondary-color);
}

/* ==================== PRODUCT DETAIL ==================== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.product-detail-image {
    background: var(--card-hover);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image-large {
    font-size: 10rem;
    opacity: 0.3;
}

.product-detail-name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.product-detail-category {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: 2.5rem;
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.product-detail-specs {
    background: var(--card-hover);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.spec-label {
    color: var(--text-muted);
}

.spec-value {
    font-weight: 600;
}

.in-stock {
    color: var(--success-color);
}

.out-of-stock {
    color: var(--danger-color);
}

.product-detail-description h3 {
    margin-bottom: 1rem;
}

.product-detail-actions {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-input {
    width: 80px;
    padding: 0.5rem;
    border-radius: 8px;
    background: var(--card-hover);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    text-align: center;
}

.out-of-stock-notice {
    padding: 1rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--danger-color);
    border-radius: 10px;
    color: var(--danger-color);
    margin-top: 2rem;
}

/* ==================== CART ==================== */
.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    display: grid;
    grid-template-columns: 80px 2fr 150px 120px 50px;
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.cart-item:hover {
    border-color: var(--primary-color);
}

.placeholder-image-small {
    font-size: 2.5rem;
    background: var(--card-hover);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.cart-item-name {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.cart-item-meta,
.cart-item-price {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: var(--primary-dark);
}

.qty-input {
    width: 50px;
    text-align: center;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.3rem;
    border-radius: 6px;
}

.item-total-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.item-total-weight {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-remove {
    background: var(--danger-color);
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.cart-summary {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.total-row {
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: none;
    margin-top: 1rem;
}

.summary-total {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.cart-summary .btn-block+.btn-block {
    margin-top: 1rem;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.empty-cart-icon {
    font-size: 5rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

/* ==================== CHECKOUT ==================== */
.checkout-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.checkout-form,
.checkout-summary {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.checkout-form h3 {
    margin: 2rem 0 1rem 0;
}

.checkout-form h3:first-child {
    margin-top: 0;
}

.payment-methods {
    margin-bottom: 2rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--card-hover);
    border-radius: 8px;
    cursor: pointer;
}

.checkout-items {
    margin-bottom: 1.5rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.checkout-totals {
    margin-top: 1.5rem;
}

/* ==================== AUTH PAGES ==================== */
.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    max-width: 450px;
    width: 100%;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.auth-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    background: var(--card-hover);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

select.form-control {
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23f1f5f9" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.5em;
    padding-right: 2.5rem;
    appearance: none;
}

select.form-control option {
    background: var(--card-bg);
    color: var(--text-light);
}

.required {
    color: var(--danger-color);
    font-weight: bold;
}

/* Form Validation Styles */
.form-control:required:invalid {
    border-color: rgba(239, 68, 68, 0.5);
}

.form-control:required:invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Shake animation for submit attempt with errors */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.form-control.error {
    border-color: #ef4444 !important;
    animation: shake 0.3s ease-in-out;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    display: block;
    font-weight: 500;
}

.auth-footer {
    text-align: center;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ==================== ADMIN SECTION ==================== */
.admin-section {
    padding: 4rem 0;
    /* More breathing room */
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.stat-icon {
    font-size: 3rem;
}

.stat-info h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.stat-info p {
    color: var(--text-muted);
}

.admin-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.admin-link-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.admin-link-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.admin-link-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-form-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.admin-table-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: var(--card-hover);
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-table tr:hover {
    background: var(--card-hover);
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    transform: scale(1.2);
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
    border: none;
}

.badge-processing {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    border: none;
}

.badge-completed {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success-color);
    border: none;
}

.badge-cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
    border: none;
}

.badge-admin {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.badge-user {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.edit-row,
.order-detail-row,
.update-status-row {
    background: var(--bg-color) !important;
}

.edit-form,
.order-detail,
.update-status-form {
    padding: 1.5rem;
}

.order-detail-info {
    margin: 1rem 0;
}

.update-status-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.update-status-form select {
    flex: 1;
}

/* ==================== SUCCESS PAGE ==================== */
.success-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin: 0 auto 2rem;
    color: white;
}

.success-message {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.order-info {
    background: var(--card-hover);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: left;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.info-label {
    color: var(--text-muted);
}

.info-value {
    font-weight: 600;
}

.order-next-steps {
    margin: 2rem 0;
    color: var(--text-muted);
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==================== FEATURES SECTION ==================== */
.features-section {
    background: rgba(30, 41, 59, 0.5);
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    background: var(--primary-color);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

/* ==================== ERROR PAGE ==================== */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-code {
    font-size: 8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* ==================== UTILITIES ==================== */
.text-center {
    text-align: center;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .nav-menu {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 0.5rem;
    }

    .cart-item-quantity,
    .cart-item-total {
        grid-column: 2;
    }

    .checkout-container {
        grid-template-columns: 1fr;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }
}

/* ==================== PREMIUM REDESIGN ==================== */
:root {
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary-glow: rgba(16, 185, 129, 0.5);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

body {
    font-family: 'Outfit', sans-serif;
}

/* Hero Section Premium */
.hero-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background: radial-gradient(circle at top right, #1e1b4b 0%, #0f172a 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: var(--primary-color);
    filter: blur(150px);
    opacity: 0.2;
    border-radius: 50%;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
    align-items: center;
}

.badge-premium {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: inline-block;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero-heading {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.text-gradient {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn-glow {
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-circle {
    position: absolute;
    width: 450px;
    height: 450px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: spin 30s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.floating-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.card-1 {
    top: 10%;
    left: 0;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    bottom: 15%;
    right: 0;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    padding: 10px;
    border-radius: 10px;
}

.main-bike-icon {
    font-size: 15rem;
    color: var(--text-main);
    filter: drop-shadow(0 0 50px var(--primary-glow));
    transform: rotate(-10deg);
}

/* Features Premium */
.features-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: -5rem;
    position: relative;
    z-index: 5;
    margin-bottom: 4rem;
}

.feature-box {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    text-align: center;
}

.feature-box:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.color-1 {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.color-2 {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.color-3 {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.feature-box h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Product Section Premium */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 3rem;
}

.section-title-premium {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, white, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-highlight {
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
}

.view-all-link {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
}

.view-all-link:hover {
    gap: 1rem;
}

.product-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card-premium {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s;
    position: relative;
    /* group: hover; removed */
}

.product-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.card-image-wrapper {
    position: relative;
    height: 250px;
    background: var(--card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-img-main {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.5s ease;
}

.product-card-premium:hover .card-img-main {
    transform: scale(1.08);
}

.card-image-placeholder {
    font-size: 5rem;
    color: var(--text-muted);
    opacity: 0.5;
    transition: 0.5s;
}

.product-card-premium:hover .card-image-placeholder {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    transition: 0.4s;
    opacity: 0;
    padding-bottom: 1rem;
}

.product-card-premium:hover .card-overlay {
    bottom: 0;
    opacity: 1;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--bg-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--danger-color);
    color: white;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.card-content {
    padding: 1.5rem;
}

.card-category {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.rating {
    color: var(--warning-color);
    font-size: 0.9rem;
}

/* Banner Section */
.banner-section {
    padding: 6rem 0;
    margin: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), #a855f7);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 800;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Simple Toast */
.toast-success {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1100;
        padding: 5px;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--card-bg);
        background-image: linear-gradient(180deg, var(--card-bg) 0%, var(--bg-color) 100%);
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 5rem 1.5rem 2rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        border-left: 1px solid var(--border-color);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Backdrop for mobile menu */
    .menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease;
    }

    .menu-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
        margin: 0;
        padding: 0.5rem 0;
    }

    .nav-menu li a {
        font-size: 1.15rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0.8rem 1rem;
        border-radius: 12px;
        color: var(--text-main);
        transition: all 0.2s ease;
    }

    .nav-menu li a:hover,
    .nav-menu li a.active {
        background: rgba(99, 102, 241, 0.1);
        color: var(--primary-color);
    }

    .nav-menu li a i {
        width: 24px;
        text-align: center;
        opacity: 0.8;
    }

    /* Mobile Search */
    .nav-search {
        width: 100%;
        margin-bottom: 2rem !important;
        padding: 0 !important;
    }

    .search-form {
        width: 100%;
        position: relative;
    }

    .search-input {
        width: 100% !important;
        background: var(--bg-color) !important;
        border: 1px solid var(--border-color) !important;
        padding: 12px 15px 12px 45px !important;
        border-radius: 12px !important;
        font-size: 1rem !important;
    }

    .search-btn {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        background: transparent !important;
        color: var(--text-muted) !important;
        padding: 0 !important;
    }

    /* Mobile Auth Buttons */
    .nav-menu .btn-login,
    .nav-menu .btn-register {
        display: flex !important;
        justify-content: center;
        width: 100%;
        margin-top: 0.5rem;
        padding: 1rem !important;
        font-size: 1rem;
    }

    .nav-menu .btn-login {
        border-width: 1.5px;
    }

    .user-menu {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
        padding: 1rem 0;
        border-top: 1px solid var(--border-color);
        margin-top: 1rem;
        width: 100%;
    }

    .user-menu a:first-child {
        padding: 0.8rem 1rem;
        width: 100%;
    }

    .btn-logout {
        margin-left: 0 !important;
        width: 100%;
        justify-content: center;
        padding: 0.8rem !important;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Toggle Animation */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(10px);
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }


    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-bg-glow {
        width: 300px;
        height: 300px;
        opacity: 0.1;
    }

    .hero-heading {
        font-size: 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .features-grid-premium {
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }

    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .cart-container {
        grid-template-columns: 1fr;
    }

    .checkout-container {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-areas:
            "img name"
            "img price"
            "qty total"
            "remove remove";
        gap: 0.5rem;
    }

    .cart-item-image {
        grid-area: img;
    }

    .cart-item-name {
        grid-area: name;
    }

    .cart-item-price {
        grid-area: price;
    }

    .cart-item-quantity {
        grid-area: qty;
    }

    .item-total-price {
        grid-area: total;
        text-align: right;
    }

    .btn-remove {
        grid-area: remove;
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* ==================== NEW HOMEPAGE STYLES ==================== */

/* Hero Slider Section */
.hero-slider-section {
    position: relative;
    overflow: hidden;
    min-height: 90vh;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 90vh;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text-content {
    animation: slideInLeft 0.8s ease-out;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-highlight {
    display: inline-block;
    background: white;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}



.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.btn-hero {
    padding: 1.1rem 2.8rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-hero.primary {
    background: white;
    color: #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-hero.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.btn-hero.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-hero.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.hero-visual-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 0.8s ease-out;
}

.hero-image-wrapper {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-icon {
    font-size: 18rem;
    color: rgba(255, 255, 255, 0.06);
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.05));
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 1.2rem 1.8rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}

.badge-1 {
    top: 15%;
    left: 5%;
    animation: float 5s ease-in-out infinite;
}

.badge-2 {
    bottom: 20%;
    right: 5%;
    animation: float 7s ease-in-out infinite reverse;
}

.floating-badge i {
    font-size: 1.8rem;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 12px;
    border-radius: 12px;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 10;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    border-color: white;
}

.slider-dots {
    display: flex;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.dot.active {
    background: white;
    width: 45px;
    border-radius: 6px;
}

/* Quick Stats Section */
.quick-stats-section {
    padding: 3rem 0;
    background: var(--bg-color);
    margin-top: -3rem;
    position: relative;
    z-index: 5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Categories Section */
.categories-section {
    padding: 5rem 0;
    background: var(--bg-color);
}

.section-header-modern {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title-modern {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--primary-color);
    /* Fallback for browsers that don't support background-clip: text */
    background-color: transparent !important;
    display: inline-block;
    text-shadow: 2px 2px 10px rgba(99, 102, 241, 0.2);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.category-card:hover::before {
    opacity: 0.1;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: transparent;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.category-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.category-arrow {
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Featured Products Section */
.featured-products-section {
    padding: 5rem 0;
    background: var(--bg-color);
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.view-all-btn:hover {
    gap: 1.2rem;
}

.products-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card-modern {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
}

.product-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.product-image-container {
    position: relative;
    height: 300px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    transition: transform 0.5s ease;
}

.product-card-modern:hover .product-image {
    transform: scale(1.1);
}

.product-placeholder {
    font-size: 6rem;
    color: var(--text-muted);
    opacity: 0.3;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 2;
}

.product-badge.hot {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.product-overlay-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card-modern:hover .product-overlay-actions {
    opacity: 1;
}

.quick-action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.quick-action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.product-info-modern {
    padding: 1.5rem;
}

.product-category-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.product-name-modern {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
}

.product-rating i {
    color: #fbbf24;
    font-size: 0.9rem;
}

.rating-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 0.3rem;
}

.product-meta-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.product-meta-info i {
    margin-right: 0.3rem;
}

.product-footer-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-price-modern {
    flex: 1;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.add-cart-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.add-cart-btn:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

/* Promotional Banner Section */
.promo-banner-section {
    padding: 5rem 0;
    background: var(--bg-color);
}

.promo-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.promo-content {
    position: relative;
    z-index: 2;
}

.promo-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.promo-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.promo-highlight {
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.promo-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: white;
    color: #667eea;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.promo-visual {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.circle-1 {
    width: 250px;
    height: 250px;
    animation: spin 20s linear infinite;
}

.circle-2 {
    width: 180px;
    height: 180px;
    animation: spin 15s linear infinite reverse;
}

.promo-icon {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Trust Section */
.trust-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.trust-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.trust-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.trust-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-info h4 {
        font-size: 0.9rem;
    }

    .hero-slider-section,
    .hero-slider {
        height: auto !important;
        min-height: auto !important;
    }

    .hero-slide {
        position: relative !important;
        height: auto !important;
        min-height: 450px;
        display: none;
        opacity: 1 !important;
        padding: 80px 1rem 40px;
        align-items: center;
        justify-content: center;
    }

    .hero-slide.active {
        display: flex !important;
        z-index: 1;
    }

    .hero-slide-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .hero-text-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero-product-image {
        max-height: 240px;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-banner {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-slide {
        min-height: 400px;
        padding: 70px 1.25rem 30px;
    }

    .hero-title {
        font-size: 1.95rem !important;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.6rem;
    }

    .btn-hero {
        width: 100%;
        padding: 0.75rem 1.2rem;
        font-size: 0.95rem;
    }

    .hero-product-image {
        max-height: 180px;
    }

    .stats-grid,
    .categories-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .products-grid-modern {
        grid-template-columns: 1fr;
    }

    .section-title-modern {
        font-size: 2rem;
    }

    .promo-title {
        font-size: 2.5rem;
    }

    .slider-controls {
        bottom: 1.5rem;
    }
}

/* ==================== SMOOTH SCROLL ==================== */
html {
    scroll-behavior: smooth;
}

/* ==================== IMPROVED SPACING ==================== */
.hero-slider-section {
    margin-bottom: 4rem;
}

.quick-stats-section {
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.categories-section {
    padding: 6rem 0;
    margin-bottom: 3rem;
}

.featured-products-section {
    padding: 6rem 0;
    margin-bottom: 3rem;
}

.promo-banner-section {
    padding: 6rem 0;
    margin-bottom: 3rem;
}

.trust-section {
    padding: 5rem 0;
    margin-bottom: 2rem;
}

/* Section spacing improvements */
.section {
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==================== ENHANCED FOOTER ==================== */
.footer-enhanced {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    padding: 4rem 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--primary-color);
}

.footer-links a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-bottom-enhanced {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

.footer-bottom-links span {
    color: rgba(255, 255, 255, 0.2);
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    padding: 6rem 0;
    background: var(--bg-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.section-badge {
    display: inline-block;
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.about-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-highlight-orange {
    color: #f97316;
    position: relative;
}

.text-highlight-orange::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(249, 115, 22, 0.2);
    border-radius: 4px;
    z-index: -1;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.about-features {
    display: grid;
    gap: 1.5rem;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.about-feature-item:hover {
    transform: translateX(10px);
    border-color: #f97316;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.2);
}

.feature-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #f97316, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    min-width: 80px;
}

.feature-text strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.feature-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.about-image-wrapper {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(234, 88, 12, 0.1));
    border-radius: 30px;
    overflow: hidden;
}

.about-icon {
    font-size: 15rem;
    color: rgba(249, 115, 22, 0.2);
    animation: float 6s ease-in-out infinite;
}

.image-decoration {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ea580c);
    opacity: 0.1;
}

.decoration-1 {
    width: 300px;
    height: 300px;
    top: -50px;
    right: -50px;
    animation: pulse 4s ease-in-out infinite;
}

.decoration-2 {
    width: 200px;
    height: 200px;
    bottom: -30px;
    left: -30px;
    animation: pulse 6s ease-in-out infinite reverse;
}

/* Enhanced Hero Buttons */
.btn-hero.primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
}

.btn-hero.primary:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.5);
}

/* Responsive About Section */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-wrapper {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .about-title {
        font-size: 2rem;
    }

    .about-image-wrapper {
        height: 300px;
    }

    .about-icon {
        font-size: 10rem;
    }
}

/* ==================== SEARCH BAR IN NAVIGATION ==================== */
.nav-search {
    flex: 1;
    max-width: 450px;
    min-width: 250px;
    /* Prevent disappearing */
    margin: 0 1rem;
    display: flex;
    justify-content: center;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.3rem 0.5rem;
    width: 100%;
    margin: auto;
    transition: all 0.3s ease;
}

.search-form:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.search-input {
    background: transparent;
    border: none;
    padding: 0.5rem 0.8rem;
    color: #ffffff !important;
    font-size: 1rem;
    width: 100%;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.search-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials-section {
    padding: 6rem 0;
    background: var(--bg-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.testimonial-rating {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
}

.testimonial-rating i {
    color: #fbbf24;
    font-size: 1.1rem;
}

.testimonial-text {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    color: var(--text-main);
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.author-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Testimonials */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .search-input {
        width: 150px;
    }
}

/* Hero Product Image */
.hero-product-image {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Active Filters Display */
.active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.filter-label {
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    color: var(--text-main);
    font-size: 0.9rem;
}

.remove-filter {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.remove-filter:hover {
    color: #ef4444;
}

.clear-all-filters {
    color: #ef4444;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.clear-all-filters:hover {
    color: #dc2626;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: none;
        /* Disable hover on mobile */
    }

    .nav-item.dropdown .dropdown-menu {
        position: static;
        display: block;
        background: transparent;
        box-shadow: none;
        border: none;
        padding-left: 2rem;
        width: 100%;
        backdrop-filter: none;
        animation: none;
    }

    .dropdown-toggle {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--primary-color) !important;
        margin-top: 1rem;
        padding-left: 1rem;
    }

    .dropdown-menu li a {
        padding: 0.6rem 1rem !important;
        font-size: 1rem !important;
    }

    .nav-search {
        min-width: unset;
        width: 100%;
    }
}