/* =====================================================
   CLEAN, MINIMAL LIGHT THEME - MODERN, AIRY & PROFESSIONAL
   Background: Pure White #FFFFFF, Soft Gray #F8F9FA
   Cards & Sections: #F8F9FA, White #FFFFFF
   Text Headings: Dark Charcoal #1A1A1A (Semi-bold)
   Text Body: #555555 (Regular 16px, line-height 1.6)
   Accent Color: Modern Indigo #4F46E5 (Hover: #4338CA)
   Borders: Thin 1px #E5E7EB
   Shadows: Subtle soft shadows
   Border Radius: 8px - 12px
   Fonts: 'Inter', 'Poppins', system-ui, sans-serif
===================================================== */

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

:root {
    --bg-white: #ffffff;
    --bg-soft-gray: #f8f9fa;
    --text-heading: #1a1a1a;
    --text-body: #555555;
    --text-muted: #6b7280;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-light: #eef2ff;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --card-radius: 12px;
    --btn-radius: 8px;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --transition: all 0.2s ease-in-out;
}

/* Base styling */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--bg-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Headings */
h1, h2, h3, h4, h5, h6, .cinzel-font {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1, .display-5, .display-6 {
    font-weight: 700;
}

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

a:hover {
    color: var(--accent-hover);
}

.text-gold, .text-primary {
    color: var(--accent) !important;
}

.text-saffron {
    color: #d97706 !important;
}

.text-muted-cosmic, .text-muted {
    color: var(--text-muted) !important;
}

/* Header & Navbar */
.sticky-top {
    box-shadow: var(--shadow-sm);
}

.cosmic-navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.cosmic-navbar .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-heading);
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cosmic-navbar .navbar-brand .brand-text {
    color: var(--text-heading);
}

.cosmic-navbar .nav-link {
    color: var(--text-body) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    border-radius: var(--btn-radius);
    transition: var(--transition);
}

.cosmic-navbar .nav-link:hover,
.cosmic-navbar .nav-link.active {
    color: var(--accent) !important;
    background: var(--bg-soft-gray);
}

/* Dropdown */
.cosmic-dropdown {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
}

.cosmic-dropdown .dropdown-item {
    color: var(--text-body);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.92rem;
    transition: var(--transition);
}

.cosmic-dropdown .dropdown-item:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* Cards & Sections */
.cosmic-card {
    background: var(--bg-soft-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.cosmic-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #d1d5db;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.badge-gold, .badge-primary {
    background-color: var(--accent-light);
    color: var(--accent) !important;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.badge-saffron {
    background-color: #fef3c7;
    color: #b45309 !important;
    border: 1px solid #fde68a;
}

/* Buttons */
.btn {
    border-radius: var(--btn-radius);
    padding: 10px 20px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-cosmic-gold, .btn-primary {
    background: var(--accent);
    color: #ffffff !important;
    border: 1px solid var(--accent);
    box-shadow: var(--shadow-sm);
}

.btn-cosmic-gold:hover, .btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff !important;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-cosmic-outline, .btn-outline-primary {
    background: var(--bg-white);
    color: var(--accent);
    border: 1px solid var(--border-color);
}

.btn-cosmic-outline:hover, .btn-outline-primary:hover {
    background: var(--accent-light);
    color: var(--accent-hover);
    border-color: var(--accent);
}

/* Inputs & Form Controls */
.cosmic-input,
.form-control {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-heading);
    border-radius: var(--btn-radius);
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.cosmic-input:focus,
.form-control:focus {
    background: var(--bg-white);
    border-color: var(--accent);
    color: var(--text-heading);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-label {
    color: var(--text-heading);
    font-weight: 500;
    font-size: 0.88rem;
    margin-bottom: 6px;
}

/* Product Card */
.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    overflow: hidden;
}

.product-card .card-img-wrapper {
    height: 240px;
    overflow: hidden;
    position: relative;
    background: var(--bg-soft-gray);
}

.product-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-card .badge-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.product-card .wishlist-overlay-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card .wishlist-overlay-btn:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* Accordion */
.accordion-item {
    background: var(--bg-white) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--card-radius) !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-button {
    background: var(--bg-white) !important;
    color: var(--text-heading) !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 1.1rem 1.25rem;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: var(--bg-soft-gray) !important;
    color: var(--accent) !important;
}

.accordion-button::after {
    filter: grayscale(1);
    transition: var(--transition);
}

.accordion-body {
    padding: 1.25rem;
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* User & Admin Panel Sidebars */
.user-sidebar,
.admin-sidebar {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.user-nav-link,
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-body);
    text-decoration: none;
    border-radius: var(--btn-radius);
    font-size: 0.94rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 4px;
}

.user-nav-link:hover,
.user-nav-link.active,
.admin-nav-link:hover,
.admin-nav-link.active {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
}

.user-nav-link i,
.admin-nav-link i {
    font-size: 1.1rem;
    color: var(--accent);
}

/* Tables */
.table {
    color: var(--text-body);
}

.table-cosmic {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    overflow: hidden;
}

.table-cosmic th {
    background: var(--bg-soft-gray);
    color: var(--text-heading);
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 16px;
}

.table-cosmic td {
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
    padding: 14px 16px;
}

/* Footer */
.cosmic-footer {
    background: var(--bg-soft-gray);
    color: var(--text-body);
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.cosmic-footer .footer-title {
    color: var(--text-heading);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 16px;
}

.cosmic-footer a {
    color: var(--text-body);
    text-decoration: none;
    transition: var(--transition);
}

.cosmic-footer a:hover {
    color: var(--accent);
}

.cosmic-footer .text-muted-cosmic {
    color: var(--text-muted) !important;
}

/* Breadcrumb */
.breadcrumb-cosmic .breadcrumb-item a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-cosmic .breadcrumb-item.active {
    color: var(--text-muted);
}

/* Pagination */
.pagination .page-link {
    background: var(--bg-white);
    border-color: var(--border-color);
    color: var(--text-heading);
    border-radius: var(--btn-radius);
    margin: 0 3px;
}

.pagination .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}
