/* Ambe Ecommerce - Modern UI */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #0ea5e9;
    --secondary-light: #38bdf8;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --success: #10b981;
    --success-light: #34d399;
    --danger: #ef4444;
    --danger-light: #f87171;
    --warning: #f59e0b;
    --info: #06b6d4;

    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-cool: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-fresh: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --gradient-navbar: linear-gradient(135deg, #6366f1 0%, #7c3aed 50%, #8b5cf6 100%);
    --gradient-footer: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 15px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.06), 0 5px 40px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.08), 0 10px 60px rgba(0,0,0,0.05);
    --shadow-glow: 0 0 30px rgba(99,102,241,0.15);
    --shadow-card-hover: 0 20px 40px rgba(99,102,241,0.12), 0 8px 20px rgba(0,0,0,0.06);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

::selection {
    background: rgba(99,102,241,0.2);
    color: var(--gray-900);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ===== NAVBAR ===== */
.navbar {
    background: var(--gradient-navbar) !important;
    backdrop-filter: blur(20px);
    border: none;
    padding: 0.75rem 0;
    box-shadow: 0 4px 30px rgba(99,102,241,0.2);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    background: rgba(255,255,255,0.2);
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
}

.navbar-brand img {
    filter: brightness(1.1);
}

.navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #fff !important;
    background: rgba(255,255,255,0.12);
}

.navbar .dropdown-menu {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    margin-top: 0.5rem;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.navbar .dropdown-item {
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all var(--transition-fast);
}

.navbar .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.08));
    color: var(--primary);
    transform: translateX(4px);
}

.navbar .dropdown-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Search Bar */
.navbar .form-control {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.navbar .form-control::placeholder {
    color: rgba(255,255,255,0.6);
}

.navbar .form-control:focus {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
    color: #fff;
}

.navbar .btn-outline-light {
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-full);
    padding: 0.5rem 0.85rem;
    color: rgba(255,255,255,0.9);
    transition: all var(--transition-fast);
}

.navbar .btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    transform: scale(1.05);
}

.navbar-toggler {
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.4rem 0.65rem;
    border-radius: var(--radius-sm);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
}

/* ===== BUTTONS ===== */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.4;
    letter-spacing: 0.2px;
    border: none;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.3);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(99,102,241,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99,102,241,0.4);
    color: #fff;
    filter: brightness(1.08);
}

.btn-primary:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

.btn-primary.disabled,
.btn-primary:disabled {
    background: var(--gray-300);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-primary.disabled:hover,
.btn-primary:disabled:hover {
    transform: none;
    box-shadow: none;
    filter: none;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    position: relative;
    z-index: 1;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
    border-radius: inherit;
}

.btn-outline-primary:hover {
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.25);
}

.btn-outline-primary:hover::before {
    transform: scaleX(1);
}

.btn-outline-secondary {
    border: 2px solid var(--gray-300);
    color: var(--gray-600);
    background: transparent;
    border-radius: var(--radius-md);
}

.btn-outline-secondary:hover {
    background: var(--gray-800);
    border-color: var(--gray-800);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30,41,59,0.2);
}

.btn-outline-danger {
    border: 2px solid var(--danger);
    color: var(--danger);
    background: transparent;
    position: relative;
    z-index: 1;
}

.btn-outline-danger::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--danger), #dc2626);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
    border-radius: inherit;
}

.btn-outline-danger:hover {
    color: #fff;
    border-color: var(--danger);
    transform: translateY(-2px);
}

.btn-outline-danger:hover::before {
    transform: scaleX(1);
}

.btn-light {
    background: #fff;
    color: var(--gray-800);
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-light:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
    transform: translateY(-2px);
}

.btn-responsive {
    min-height: 44px;
    padding: 12px 24px;
    font-size: 0.95rem;
}

.btn-responsive.btn-lg {
    min-height: 52px;
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-responsive.btn-sm {
    min-height: 36px;
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-text-wrap {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-group-responsive {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.action-buttons .btn {
    flex: 1;
    min-width: 140px;
}

/* Loading button */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ===== CARDS ===== */
.card {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: var(--gradient-primary);
    border-bottom: none;
    padding: 1rem 1.25rem;
    color: #fff;
    font-weight: 600;
}

/* ===== MODERN PRODUCT CARDS ===== */
.modern-product-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--gray-100);
}

.modern-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(99,102,241,0.15);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge-sale {
    background: var(--gradient-warm);
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 3px 12px rgba(245,158,11,0.35);
}

.badge-featured {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 3px 12px rgba(239,68,68,0.35);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, var(--gray-50), #fff);
}

.product-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, #fff, transparent);
    z-index: 1;
    pointer-events: none;
}

.product-image {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform var(--transition-slow);
}

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

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
    line-height: 1.35;
}

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

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.feature-tag {
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    color: var(--gray-600);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid var(--gray-200);
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    margin-bottom: 12px;
    border-top: 1px solid var(--gray-100);
}

.product-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.product-view-btn {
    flex: 1;
    text-align: center;
    border-radius: var(--radius-full) !important;
    padding: 9px 16px !important;
    font-size: 0.82rem !important;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-current {
    font-size: 1.35rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-original {
    font-size: 0.9rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-wishlist {
    background: none;
    border: 2px solid var(--gray-200);
    color: var(--gray-400);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    cursor: pointer;
    flex-shrink: 0;
}

.btn-wishlist:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239,68,68,0.06);
    transform: scale(1.1);
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== FORMS ===== */
.form-control {
    font-family: 'Inter', sans-serif;
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-200);
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    background: #fff;
    color: var(--gray-800);
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
    background: #fff;
}

.form-select {
    font-family: 'Inter', sans-serif;
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-200);
    padding: 0.65rem 2.5rem 0.65rem 1rem;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    color: var(--gray-700);
    font-weight: 500;
}

.form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
    border-color: var(--primary-light);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
    cursor: pointer;
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.form-text {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ===== BADGES ===== */
.badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.4em 0.75em;
    border-radius: var(--radius-full);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.badge.bg-primary {
    background: var(--gradient-primary) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.badge.bg-light {
    background: #fff !important;
    color: var(--gray-700) !important;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

/* ===== ALERTS ===== */
.alert {
    border-radius: var(--radius-md);
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(5,150,105,0.08));
    color: #065f46;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(220,38,38,0.08));
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

.alert-info {
    background: linear-gradient(135deg, rgba(6,182,212,0.08), rgba(99,102,241,0.08));
    color: #155e75;
    border-left: 4px solid var(--info);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(234,88,12,0.08));
    color: #92400e;
    border-left: 4px solid var(--warning);
}

.alert-dismissible .btn-close {
    padding: 1rem;
    opacity: 0.6;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--gradient-hero);
    border-radius: var(--radius-xl);
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

/* Dynamic hero banner carousel — fixed height for ALL slides */
#heroBannerCarousel .carousel-item {
    height: 520px;
}

.hero-banner-slide {
    height: 100%;
    padding: 3rem 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-banner-slide::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-banner-slide::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -8%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-banner-slide .row {
    width: 100%;
}

@media (max-width: 768px) {
    #heroBannerCarousel .carousel-item {
        height: 480px;
    }
    .hero-banner-slide {
        padding: 2rem 1.5rem;
    }
    .hero-banner-slide h1 {
        font-size: 1.8rem !important;
    }
    .hero-banner-slide .lead {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    #heroBannerCarousel .carousel-item {
        height: auto;
        min-height: 340px;
    }
}

/* ===== CATEGORY CARDS ===== */
.category-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.75rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99,102,241,0.15);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all var(--transition-base);
}

.category-icon i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: all var(--transition-base);
}

.category-card:hover .category-icon {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.category-card:hover .category-icon i {
    color: #fff;
}

/* ===== FEATURE SECTION ===== */
.feature-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
    height: 100%;
}

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

.feature-card .feature-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: all var(--transition-base);
}

.feature-card:nth-child(1) .feature-icon-wrapper {
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
}
.feature-card:nth-child(1) .feature-icon-wrapper i { color: var(--primary); }

.feature-card:nth-child(2) .feature-icon-wrapper {
    background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(5,150,105,0.1));
}
.feature-card:nth-child(2) .feature-icon-wrapper i { color: var(--success); }

.feature-card:nth-child(3) .feature-icon-wrapper {
    background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(234,88,12,0.1));
}
.feature-card:nth-child(3) .feature-icon-wrapper i { color: var(--accent); }

.feature-card:nth-child(4) .feature-icon-wrapper {
    background: linear-gradient(135deg, rgba(6,182,212,0.1), rgba(14,165,233,0.1));
}
.feature-card:nth-child(4) .feature-icon-wrapper i { color: var(--info); }

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(-3deg);
}

.feature-card h5 {
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--gray-500);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== FILTER SIDEBAR ===== */
.filter-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: sticky;
    top: 90px;
}

.filter-card .card-header {
    background: var(--gradient-primary);
    color: #fff;
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: none;
}

.filter-card .card-body {
    padding: 1.25rem;
}

.filter-card h6 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-100);
}

.filter-card .form-check {
    padding: 0.35rem 0;
    padding-left: 1.75rem;
}

/* ===== PAGINATION ===== */
.pagination {
    gap: 4px;
}

.page-link {
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.5rem 0.85rem;
    transition: all var(--transition-fast);
}

.page-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    font-size: 0.88rem;
}

.breadcrumb-item a {
    color: var(--primary);
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--gray-500);
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--gray-300);
}

/* ===== PRODUCT DETAIL ===== */
.product-detail-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: linear-gradient(145deg, var(--gray-50), #fff);
}

.product-detail-image img {
    transition: transform var(--transition-slow);
}

.product-detail-image:hover img {
    transform: scale(1.03);
}

.thumbnail-image {
    border-radius: var(--radius-sm) !important;
    border: 2px solid var(--gray-200);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.thumbnail-image:hover {
    border-color: var(--primary-light);
    transform: scale(1.05);
}

.thumbnail-image.active {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}

.price-section {
    background: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(139,92,246,0.04));
    border-radius: var(--radius-md);
    border: 1px solid rgba(99,102,241,0.1);
}

.spec-item {
    font-size: 0.9rem;
    color: var(--gray-700);
    padding: 0.4rem 0;
}

.spec-item i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.spec-item strong {
    color: var(--gray-800);
}

/* ===== FOOTER ===== */
footer {
    background: var(--gradient-footer) !important;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

footer h5,
footer h6 {
    color: #fff;
    font-weight: 700;
}

footer p,
footer a.text-light {
    color: rgba(255,255,255,0.65) !important;
    transition: color var(--transition-fast);
    font-size: 0.9rem;
}

footer a.text-light:hover,
footer a.text-decoration-none:hover {
    color: rgba(255,255,255,1) !important;
}

footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7) !important;
    transition: all var(--transition-base);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

footer .social-links a:hover {
    background: var(--gradient-primary);
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(99,102,241,0.3);
}

footer hr {
    border-color: rgba(255,255,255,0.08);
}

footer ul li {
    margin-bottom: 0.4rem;
}

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

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

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

.fade-in {
    animation: fadeInUp 0.5s ease;
}

.hover-lift {
    transition: all var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* ===== PRODUCT GALLERY ===== */
.product-gallery img {
    border-radius: var(--radius-lg);
}

.product-thumbnail {
    cursor: pointer;
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.product-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ===== SEARCH SUGGESTIONS ===== */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.search-suggestion-item:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(139,92,246,0.04));
    color: var(--primary);
}

/* ===== CART & WISHLIST ===== */
.cart-item {
    border-bottom: 1px solid var(--gray-100);
    padding: 1.25rem 0;
    transition: all var(--transition-fast);
}

.cart-item:last-child { border-bottom: none; }

.cart-item:hover {
    background: rgba(99,102,241,0.02);
    border-radius: var(--radius-sm);
}

.wishlist-item {
    transition: all var(--transition-fast);
    border-radius: var(--radius-md);
    padding: 0.75rem;
}

.wishlist-item:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.03), rgba(139,92,246,0.03));
}

/* ===== QUANTITY INPUT ===== */
.quantity-input {
    max-width: 100px;
    text-align: center;
    border-radius: var(--radius-sm);
}

/* ===== STAR RATINGS ===== */
.star-rating { color: var(--accent); }
.star-rating .fa-star {
    cursor: pointer;
    transition: all var(--transition-fast);
}
.star-rating .fa-star:hover { color: #e6950a; transform: scale(1.15); }

/* ===== AUTH PAGES ===== */
.auth-card {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    max-width: 420px;
    margin: 2rem auto;
}

.auth-card .auth-header {
    background: var(--gradient-primary);
    padding: 2rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.auth-card .auth-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-card .auth-header h4 {
    font-weight: 700;
    margin: 0;
    position: relative;
}

.auth-card .auth-header i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    opacity: 0.9;
}

.auth-card .auth-body {
    padding: 2rem;
}

.auth-card .btn-primary {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
}

/* Password hints */
.password-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.password-hints small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--gray-400);
    background: var(--gray-50);
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.password-hints small i {
    font-size: 0.6rem;
    color: var(--success);
}

/* Hide Django's default helptext UL */
.auth-card .helptext,
.auth-card ul.helptext,
.auth-card .form-text ul {
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar-brand { font-size: 1.2rem; }

    .hero-section { padding: 2.5rem 1.5rem; }
    .hero-section h1 { font-size: 1.8rem; }
    .hero-section .lead { font-size: 1rem; }

    .modern-product-card { margin-bottom: 16px; }
    .product-image { height: 200px; }

    .product-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .product-actions { justify-content: center; }

    .btn-responsive {
        padding: 14px 20px;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 8px;
    }

    .btn-group-responsive {
        flex-direction: column;
        width: 100%;
    }

    .btn-group-responsive .btn,
    .action-buttons .btn {
        width: 100%;
        min-width: auto;
    }

    .display-4 { font-size: 2rem; }
    .lead { font-size: 1rem; }

    .category-card { padding: 1.25rem 0.75rem; }
    .feature-card { padding: 1.5rem 1rem; }
}

@media (max-width: 480px) {
    .btn-responsive {
        font-size: 0.85rem;
        padding: 12px 16px;
    }

    .product-image { height: 180px; }
    .hero-section { padding: 2rem 1rem; }
}

/* ===== SECTION HEADINGS ===== */
.section-heading {
    font-weight: 800;
    color: var(--gray-900);
    position: relative;
    display: inline-block;
}

.section-subheading {
    color: var(--gray-500);
    font-size: 1rem;
    font-weight: 400;
}

/* ===== MISC LEGACY ===== */
.product-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

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

.phone-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.phone-image {
    height: 280px;
    object-fit: cover;
    background: linear-gradient(145deg, var(--gray-50), #fff);
}

.bg-gradient-primary {
    background: var(--gradient-hero) !important;
}

.price-display { font-size: 1.2rem; font-weight: bold; }
.original-price { text-decoration: line-through; color: var(--gray-400); font-size: 0.9rem; }
.sale-price { color: var(--danger); }
.brand-badge { font-size: 0.7rem; font-weight: 600; padding: 0.25rem 0.5rem; border-radius: 6px; }
.mobile-specs { font-size: 0.8rem; line-height: 1.4; }
.mobile-specs .row > div { padding: 2px 8px; }
.spec-icon { color: var(--gray-500); width: 14px; text-align: center; }
.price-tag { font-size: 1.1rem; font-weight: 700; }

/* ===== EMPTY STATE ===== */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state i {
    font-size: 3.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: block;
}

.empty-state h4 {
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-500);
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

/* ===== STAFF PANEL ===== */
.staff-sidebar {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: sticky;
    top: 90px;
}

.staff-sidebar-header {
    background: var(--gradient-primary);
    color: #fff;
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.staff-nav {
    padding: 0.5rem;
}

.staff-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.staff-nav-link:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(139,92,246,0.06));
    color: var(--primary);
    transform: translateX(3px);
}

/* ===== OFFERS & PROMOTIONS ===== */

/* Offer cards on homepage */
.offer-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.offer-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99,102,241,0.15);
}

.offer-card-badge {
    position: absolute;
    top: 12px;
    right: -28px;
    transform: rotate(45deg);
    padding: 4px 36px;
    font-size: 0.62rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.offer-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--primary);
}

.offer-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gray-800);
    margin-bottom: 0.35rem;
}

.offer-card-discount {
    font-weight: 800;
    font-size: 1.25rem;
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.offer-card-desc {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.offer-coupon-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(5,150,105,0.08));
    border: 1.5px dashed var(--success);
    color: var(--success);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 0.5rem;
}

.offer-coupon-tag:hover {
    background: rgba(16,185,129,0.15);
}

.offer-auto-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.08));
    color: var(--primary);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.offer-card-expiry {
    color: var(--gray-400);
    font-size: 0.72rem;
    margin-top: auto;
}

/* Product card offer tags */
.product-offer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.offer-tag-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    border: 1.5px solid;
    background: transparent;
}

/* Product detail offer badge */
.offer-detail-badge {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    margin-top: 2px;
}

.offer-coupon-inline {
    display: inline-block;
    background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(5,150,105,0.08));
    border: 1.5px dashed var(--success);
    color: var(--success);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: monospace;
}

.offer-coupon-inline:hover {
    background: rgba(16,185,129,0.15);
}

.staff-nav-link.active {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}

.staff-nav-link i {
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
}

/* Staff Stat Cards */
.staff-stat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-base);
}

.staff-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.staff-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.25rem;
}

.staff-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.staff-stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Staff Tables */
.staff-table {
    font-size: 0.88rem;
}

.staff-table thead th {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-100);
    color: var(--gray-600);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.staff-table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-50);
    color: var(--gray-700);
}

.staff-table tbody tr {
    transition: background var(--transition-fast);
}

.staff-table tbody tr:hover {
    background: rgba(99,102,241,0.02);
}

/* Staff responsive */
@media (max-width: 992px) {
    .staff-sidebar {
        position: static;
        margin-bottom: 1rem;
    }
    .staff-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    .staff-nav-link {
        flex: 1;
        justify-content: center;
        min-width: 100px;
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    .staff-nav hr { display: none; }
}
