/* style.css - Premium Light Theme default Design System */

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.96);
    --border-glass: rgba(15, 23, 42, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --primary-gradient: linear-gradient(135deg, #4f46e5, #9333ea);
    --secondary-gradient: linear-gradient(135deg, #0ea5e9, #2563eb);
    --accent: #4f46e5;
    --accent-glow: rgba(79, 70, 229, 0.12);
    --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

[data-theme="dark"] {
    --bg-primary: #09070f;
    --bg-secondary: #14111c;
    --bg-glass: rgba(20, 17, 28, 0.96);
    --border-glass: rgba(255, 255, 255, 0.07);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --primary-gradient: linear-gradient(135deg, #6366f1, #d946ef);
    --accent: #818cf8;
    --accent-glow: rgba(129, 140, 248, 0.25);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Base Styles */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    transition: background-color 0.2s, color 0.2s;
    overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Glassmorphism */
.glass-panel {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    box-shadow: var(--card-shadow);
}

.glass-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 12px 25px -5px var(--accent-glow);
}

/* Header & Nav */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: var(--transition);
    background: var(--bg-glass) !important;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Dropdown Menu overrides for light theme readability */
.dropdown-menu.glass-panel {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-glass) !important;
}
.dropdown-item {
    color: var(--text-primary) !important;
    transition: var(--transition);
}
.dropdown-item:hover {
    background-color: var(--accent-glow) !important;
    color: var(--accent) !important;
}

/* Form Controls - High Contrast */
.form-control, .form-select {
    background-color: var(--bg-primary) !important;
    border: 1.5px solid var(--text-muted) !important;
    color: var(--text-primary) !important;
    border-radius: 8px;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 0.25rem var(--accent-glow) !important;
    outline: none;
}

/* Text Overrides */
.text-white {
    color: var(--text-primary) !important;
}
.text-muted {
    color: var(--text-secondary) !important;
    opacity: 0.85;
}
.text-secondary {
    color: var(--text-secondary) !important;
}

/* Table styling */
.table-dark {
    --bs-table-bg: var(--bg-secondary) !important;
    --bs-table-color: var(--text-primary) !important;
    border-color: var(--border-glass) !important;
}
.table td, .table th {
    color: var(--text-primary) !important;
}

/* Accordion overrides */
.accordion-button {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}
.accordion-button:not(.collapsed) {
    color: var(--accent) !important;
    box-shadow: inset 0 -1px 0 var(--border-glass) !important;
}
.accordion-body {
    background-color: var(--bg-primary) !important;
    color: var(--text-secondary) !important;
}

/* Banner Slider */
.hero-slider {
    border-radius: 20px;
    overflow: hidden;
    margin: 20px 0;
}

.slider-item {
    height: 480px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.3));
}

[data-theme="dark"] .slider-overlay {
    background: linear-gradient(90deg, rgba(9, 7, 15, 0.9), rgba(9, 7, 15, 0.3));
}

.slider-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
    padding: 40px;
}
.slider-content h1, .slider-content p {
    color: #0f172a !important;
}
[data-theme="dark"] .slider-content h1, [data-theme="dark"] .slider-content p {
    color: #ffffff !important;
}

/* Category Grid */
.category-bubble {
    text-align: center;
    padding: 15px;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    transition: var(--transition);
}

.category-item:hover .category-bubble {
    background: var(--primary-gradient);
    color: white !important;
    transform: scale(1.05);
}

/* Product Cards */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f1f5f9;
}

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

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

.badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-gradient);
    color: white;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    z-index: 5;
}

/* Buttons */
.btn-premium {
    background: var(--primary-gradient);
    color: white !important;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow);
    opacity: 0.95;
}

/* Floating Actions */
.floating-cart-btn {
    position: fixed;
    bottom: 85px;
    right: 25px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px var(--accent-glow);
    transition: var(--transition);
}

.floating-cart-btn:hover {
    transform: translateY(-3px);
}

.floating-whatsapp {
    position: fixed;
    bottom: 155px;
    right: 25px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: translateY(-3px);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-glass);
    z-index: 1010;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
}

.mobile-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 3px;
}

.mobile-nav-item.active {
    color: var(--accent);
}

/* Loader Screen */
.page-loader {
    background: var(--bg-primary) !important;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 75px;
    }
    .slider-item {
        height: 320px;
    }
    .floating-cart-btn {
        bottom: 85px;
        right: 15px;
    }
    .floating-whatsapp {
        bottom: 155px;
        right: 15px;
    }
    .admin-content {
        padding: 15px !important;
    }
}
