/* ========================================
   Cozy Kit Shop - Warm & Friendly Theme
   Light/Dark Mode Support
   ======================================== */

/* Dark Theme (Default) */
:root,
[data-bs-theme="dark"] {
    --primary: #e8a0b5;
    --primary-dark: #d4899f;
    --primary-light: #f5c4d4;
    --secondary: #b88a9c;
    --accent: #f0d4dc;

    --bg-dark: #1a1520;
    --bg-darker: #12101a;
    --bg-card: rgba(32, 28, 42, 0.95);
    --bg-card-solid: #1f1b29;
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-body: #1a1520;

    --text-primary: #f5f0f2;
    --text-secondary: #b8b0bb;
    --text-muted: #7a7580;

    --success: #7ec9a0;
    --warning: #e8c07a;
    --danger: #e08090;
    --info: #7ab8d4;

    --border-color: rgba(232, 160, 181, 0.15);
    --border-radius: 20px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --border-radius-sm: 12px;
    --border-radius-btn: 12px;

    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 4px 20px rgba(232, 160, 181, 0.15);

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

    --navbar-bg: rgba(26, 21, 32, 0.92);
    --card-hover-transform: translateY(-4px);
}

/* Light Theme */
[data-bs-theme="light"] {
    --primary: #c77d94;
    --primary-dark: #a86679;
    --primary-light: #e4a8b8;
    --secondary: #9a6b7c;
    --accent: #fdf2f5;

    --bg-dark: #faf8f9;
    --bg-darker: #f0ecee;
    --bg-card: rgba(255, 255, 255, 0.98);
    --bg-card-solid: #ffffff;
    --bg-glass: rgba(0, 0, 0, 0.02);
    --bg-body: #faf7f8;

    --text-primary: #1a1a1a;
    --text-secondary: #3d3d3d;
    --text-muted: #666666;

    --border-color: rgba(0, 0, 0, 0.08);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 4px 20px rgba(199, 125, 148, 0.1);

    --navbar-bg: rgba(255, 255, 255, 0.95);
}

/* Theme Transition */
html {
    transition: background-color 0.4s ease, color 0.4s ease;
}

html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
    transition: background-color 0.4s ease, 
                color 0.4s ease, 
                border-color 0.4s ease,
                box-shadow 0.4s ease,
                fill 0.4s ease !important;
}

/* ========================================
   Global Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 15px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

::selection {
    background: var(--primary);
    color: white;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

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

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Content Spacing */
.main-content {
    min-height: calc(100vh - 76px);
}

.main-content > .container {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Page Headers */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
}

.page-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Theme Toggle Button
   ======================================== */
.theme-toggle {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: rotate(15deg) scale(1.1);
}

.theme-toggle:active {
    transform: rotate(0deg) scale(0.95);
}

.theme-toggle i {
    position: absolute;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
                opacity 0.3s ease;
}

.theme-toggle .bi-moon-fill {
    transform: rotate(0deg) scale(1);
    opacity: 1;
}

.theme-toggle .bi-sun-fill {
    transform: rotate(-90deg) scale(0);
    opacity: 0;
}

[data-bs-theme="light"] .theme-toggle .bi-sun-fill {
    transform: rotate(0deg) scale(1);
    opacity: 1;
}

[data-bs-theme="light"] .theme-toggle .bi-moon-fill {
    transform: rotate(90deg) scale(0);
    opacity: 0;
}

/* ========================================
   Particle Background (Dark mode only)
   ======================================== */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(160deg, var(--bg-dark) 0%, #201828 50%, var(--bg-darker) 100%);
    transition: opacity 0.3s ease;
}

[data-bs-theme="light"] #particles-js {
    background: linear-gradient(160deg, #fdf8f9 0%, #f8eff2 50%, #faf5f7 100%);
}

/* Gradient Orbs */
.gradient-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

[data-bs-theme="light"] .orb {
    opacity: 0.2;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -150px;
    right: -150px;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -40px) scale(1.05); }
    50% { transform: translate(-25px, 25px) scale(0.95); }
    75% { transform: translate(-40px, -25px) scale(1.02); }
}

/* ========================================
   Hero Section with Animated Cherry Tree
   ======================================== */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 20px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Animated Cherry Tree Background */
.cherry-tree-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Sky gradient */
.cherry-tree-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        #1a0a1e 0%,
        #2d1b3d 20%,
        #4a2c5a 40%,
        #6b3a6b 60%,
        #8b4a6b 80%,
        #ab5a5b 100%
    );
}

[data-bs-theme="light"] .cherry-tree-bg::before {
    background: linear-gradient(180deg,
        #87ceeb 0%,
        #b0e0e6 20%,
        #ffe4e1 50%,
        #ffc0cb 80%,
        #ffb6c1 100%
    );
}

/* Ground */
.cherry-tree-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(180deg, transparent 0%, #1a0a0a 100%);
}

[data-bs-theme="light"] .cherry-tree-bg::after {
    background: linear-gradient(180deg, transparent 0%, #4a7c59 100%);
}

/* Cherry Tree SVG */
.cherry-tree {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    max-width: 90%;
    height: auto;
    z-index: 1;
}

/* Cherry Blossom Petals Animation */
.cherry-petals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(ellipse at center, #ffb7c5 0%, #ff69b4 50%, #ff1493 100%);
    border-radius: 50% 0 50% 50%;
    opacity: 0.8;
    animation: fall linear infinite;
    transform-origin: center;
}

[data-bs-theme="light"] .petal {
    background: radial-gradient(ellipse at center, #ffb7c5 0%, #ff69b4 50%, #ff1493 100%);
    opacity: 0.9;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(720deg) translateX(100px);
        opacity: 0;
    }
}

/* Generate multiple petals with different positions and delays */
.petal:nth-child(1) { left: 5%; animation-duration: 12s; animation-delay: 0s; }
.petal:nth-child(2) { left: 15%; animation-duration: 14s; animation-delay: 1s; width: 10px; height: 10px; }
.petal:nth-child(3) { left: 25%; animation-duration: 10s; animation-delay: 2s; }
.petal:nth-child(4) { left: 35%; animation-duration: 16s; animation-delay: 0.5s; width: 8px; height: 8px; }
.petal:nth-child(5) { left: 45%; animation-duration: 11s; animation-delay: 3s; }
.petal:nth-child(6) { left: 55%; animation-duration: 13s; animation-delay: 1.5s; width: 14px; height: 14px; }
.petal:nth-child(7) { left: 65%; animation-duration: 15s; animation-delay: 2.5s; }
.petal:nth-child(8) { left: 75%; animation-duration: 9s; animation-delay: 0.8s; width: 10px; height: 10px; }
.petal:nth-child(9) { left: 85%; animation-duration: 12s; animation-delay: 4s; }
.petal:nth-child(10) { left: 95%; animation-duration: 14s; animation-delay: 1.2s; width: 8px; height: 8px; }
.petal:nth-child(11) { left: 10%; animation-duration: 11s; animation-delay: 5s; }
.petal:nth-child(12) { left: 20%; animation-duration: 13s; animation-delay: 3.5s; width: 12px; height: 12px; }
.petal:nth-child(13) { left: 30%; animation-duration: 10s; animation-delay: 6s; }
.petal:nth-child(14) { left: 40%; animation-duration: 15s; animation-delay: 2s; width: 10px; height: 10px; }
.petal:nth-child(15) { left: 50%; animation-duration: 12s; animation-delay: 4.5s; }
.petal:nth-child(16) { left: 60%; animation-duration: 14s; animation-delay: 1s; width: 14px; height: 14px; }
.petal:nth-child(17) { left: 70%; animation-duration: 9s; animation-delay: 5.5s; }
.petal:nth-child(18) { left: 80%; animation-duration: 11s; animation-delay: 3s; width: 8px; height: 8px; }
.petal:nth-child(19) { left: 90%; animation-duration: 13s; animation-delay: 6.5s; }
.petal:nth-child(20) { left: 8%; animation-duration: 10s; animation-delay: 4s; width: 10px; height: 10px; }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

[data-bs-theme="light"] .hero-overlay {
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.3) 100%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 40px 48px;
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9) !important;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    transition: var(--transition);
    z-index: 1000;
}

.navbar.scrolled {
    background: var(--bg-card-solid);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
}

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

.nav-link {
    font-weight: 500;
    padding: 8px 14px !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
    color: var(--text-primary) !important;
}

.nav-link:hover {
    background: var(--bg-glass);
    color: var(--primary) !important;
}

.nav-sale {
    color: var(--warning) !important;
    font-weight: 600;
}

.cart-link {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

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

.dropdown-item {
    border-radius: 8px;
    padding: 10px 16px;
    transition: var(--transition);
    color: var(--text-primary);
}

.dropdown-item:hover {
    background: var(--bg-glass);
    color: var(--primary);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--border-radius-btn) !important;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-glass);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-glow {
    box-shadow: var(--shadow-glow);
}

.btn-glow:hover {
    box-shadow: var(--shadow-md);
}

.btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card button specific fixes */
.card-body .btn-block {
    font-size: 0.85rem;
    padding: 10px 12px;
}

.card-body .btn-block i {
    flex-shrink: 0;
}

.card-body form {
    margin-top: auto;
}

/* ========================================
   Product Grid - Compact Layout
   ======================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ========================================
   Cards - Compact
   ======================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: var(--card-hover-transform);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-darker);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Placeholder Image */
.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card-solid);
    position: relative;
}

.placeholder-image i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.4;
}

.placeholder-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(232, 160, 181, 0.05) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    z-index: 10;
}

.badge-sale {
    background: var(--danger);
    color: white;
}

.badge-featured {
    background: var(--warning);
    color: #2d2730;
}

.badge-new {
    background: var(--success);
    color: white;
}

.card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.card-title a {
    color: var(--text-primary);
}

.card-title a:hover {
    color: var(--primary);
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    flex: 1;
}

.card-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.price-current {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.price-original {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-discount {
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

/* ========================================
   Section Styles
   ======================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ========================================
   Feature Cards
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
    color: white;
}

.feature-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ========================================
   Shop Layout
   ======================================== */
.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    padding: 40px 0;
}

@media (max-width: 991px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
}

.shop-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    position: sticky;
    top: 90px;
    height: fit-content;
}

.sidebar-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    transition: var(--transition);
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.category-link:hover,
.category-link.active {
    background: var(--bg-glass);
    color: var(--primary);
}

.category-count {
    background: var(--bg-darker);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.shop-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 200px;
}

.search-box .form-control {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 16px;
}

.filter-select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--border-radius);
    min-width: 180px;
}

/* ========================================
   Forms
   ======================================== */
.form-control, .form-select {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    background: var(--bg-card-solid);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.15);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

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

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-family: 'Quicksand', sans-serif;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

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

/* ========================================
   Cart
   ======================================== */
.cart-table {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    padding: 14px 20px;
    background: var(--bg-darker);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    padding: 20px;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

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

.cart-product {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-product-img {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-darker);
}

.cart-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-product-name a {
    color: var(--text-primary);
    font-weight: 600;
}

.cart-price {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    color: var(--primary);
}

.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    position: sticky;
    top: 90px;
}

.cart-summary-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--text-secondary);
}

.cart-summary-total {
    font-size: 1.1rem;
    font-weight: 700;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 2px solid var(--primary);
    color: var(--text-primary);
}

.cart-summary-total span:last-child {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.4rem;
    color: var(--primary);
}

/* ========================================
   Auth Pages
   ======================================== */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

.auth-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    color: var(--primary);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group:last-of-type {
    margin-bottom: 24px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 6px;
}

/* Profile Card (wider than auth card) */
.profile-card {
    width: 100%;
    max-width: 520px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

.form-divider {
    height: 1px;
    background: var(--border-color);
    margin: 30px 0;
}

.form-section-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Order table styles */
.order-number {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    color: var(--primary);
}

.order-total {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Order item row */
.order-item-row {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

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

/* Utility - py-5 */
.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-card-solid);
    border-top: 1px solid var(--border-color);
    padding: 50px 0 25px;
    margin-top: 60px;
}

.footer-heading {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ========================================
   Admin Panel
   ======================================== */
.admin-layout {
    min-height: calc(100vh - 76px);
    background: var(--bg-darker);
}

.admin-sidebar {
    width: 240px;
    background: var(--bg-card-solid);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    position: fixed;
    height: calc(100vh - 76px);
    overflow-y: auto;
    top: 76px;
    left: 0;
    z-index: 100;
}

.admin-sidebar-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.admin-sidebar-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.admin-sidebar-footer {
    padding: 20px 25px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.admin-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-secondary);
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-size: 0.9rem;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: var(--bg-glass);
    color: var(--primary);
    border-left-color: var(--primary);
}

.admin-nav-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.admin-content {
    margin-left: 240px;
    padding: 25px;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.admin-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stat-icon-primary { background: rgba(255, 107, 157, 0.15); color: var(--primary); }
.stat-icon-success { background: rgba(0, 214, 143, 0.15); color: var(--success); }
.stat-icon-warning { background: rgba(255, 170, 0, 0.15); color: var(--warning); }
.stat-icon-info { background: rgba(0, 149, 255, 0.15); color: var(--info); }

.stat-value {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Admin Table */
.admin-table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: var(--bg-darker);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover {
    background: var(--bg-glass);
}

/* ========================================
   Announcements
   ======================================== */
.announcement-bar {
    padding: 10px 0;
    text-align: center;
    font-weight: 500;
    font-size: 13px;
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-info { background: var(--info); color: white; }
.announcement-success { background: var(--success); color: white; }
.announcement-warning { background: var(--warning); color: #2d2730; }
.announcement-danger { background: var(--danger); color: white; }

/* ========================================
   Toast Notifications
   ======================================== */
.toast {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.toast-container {
    z-index: 9999;
}

/* ========================================
   Quantity Input
   ======================================== */
.quantity-input {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary);
    color: white;
}

.quantity-input input {
    width: 50px;
    height: 40px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-weight: 600;
}

/* ========================================
   Product Detail
   ======================================== */
.product-gallery {
    position: relative;
}

.gallery-main {
    aspect-ratio: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.6;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--primary);
    opacity: 1;
}

.product-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.product-price-box {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 14px 20px;
    margin-bottom: 20px;
}

.product-price {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.product-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 767px) {
    .cart-header {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-sidebar {
        display: none;
    }

    .admin-content {
        margin-left: 0;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-title {
        font-size: 1.8rem;
    }
}

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.g-4 { gap: 1.5rem; }
.small { font-size: 0.875rem; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

/* ========================================
   Global Rounded Overrides
   ======================================== */
/* Ensure all buttons are pill-shaped */
.btn,
button.btn,
a.btn,
input[type="submit"],
input[type="button"] {
    border-radius: var(--border-radius-btn) !important;
}

.btn-sm {
    padding: 8px 20px;
    border-radius: var(--border-radius-btn) !important;
}

.btn-lg {
    padding: 14px 32px;
    border-radius: var(--border-radius-btn) !important;
}

/* Cards and containers */
.card,
.modal-content,
.dropdown-menu,
.toast,
.alert,
.badge {
    border-radius: var(--border-radius-lg) !important;
}

.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.alert-info {
    background: rgba(13, 202, 240, 0.15);
    border-color: rgba(13, 202, 240, 0.3);
    color: #0dcaf0;
}

.alert-success {
    background: rgba(25, 135, 84, 0.15);
    border-color: rgba(25, 135, 84, 0.3);
    color: #198754;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.badge {
    border-radius: var(--border-radius-btn) !important;
}

/* Form elements */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
    border-radius: var(--border-radius-sm) !important;
}

/* Nav and tabs */
.nav-pills .nav-link {
    border-radius: var(--border-radius-btn) !important;
}

.nav-tabs .nav-link {
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0 !important;
}

/* Images in cards */
.card-img-top {
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0 !important;
}

/* Pagination */
.page-link {
    border-radius: var(--border-radius-sm) !important;
}

.pagination {
    gap: 4px;
}

/* Progress bars */
.progress {
    border-radius: var(--border-radius-btn) !important;
}

.progress-bar {
    border-radius: var(--border-radius-btn) !important;
}

/* Tables */
.table-responsive,
.admin-table-wrapper {
    border-radius: var(--border-radius-lg) !important;
    overflow: hidden;
}

/* ========================================
   Admin Panel - Complete Styling Overhaul
   ======================================== */

/* Admin Cards */
.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-card-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.admin-card-body {
    padding: 1.5rem;
}

/* Stat Cards */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon-orders { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.stat-icon-pending { background: linear-gradient(135deg, var(--warning), #e0a800); }
.stat-icon-revenue { background: linear-gradient(135deg, var(--success), #1e7e34); }
.stat-icon-users { background: linear-gradient(135deg, var(--info), #117a8b); }

.stat-info h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.stat-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.stat-highlight {
    font-size: 2.5rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: var(--success);
    margin: 0;
}

/* Admin Tables */
.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 1rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: var(--bg-glass);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Thumbnails */
.table-thumbnail {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.table-thumbnail-placeholder {
    width: 48px;
    height: 48px;
    background: var(--bg-darker);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.25rem;
}

/* 3-Dot Action Button */
.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

/* Dropdown Menu Styling */
.dropdown-menu {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 160px;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-glass);
    color: var(--primary);
}

.dropdown-item.text-danger:hover {
    background: rgba(var(--danger), 0.1);
    color: var(--danger);
}

.dropdown-item form {
    width: 100%;
}

.dropdown-item button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.dropdown-divider {
    border-color: var(--border-color);
    margin: 0.25rem 0;
}

/* Coupon/Voucher Code Styling */
.coupon-code {
    font-family: 'Quicksand', monospace;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    background: var(--bg-glass);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
}

/* Font utilities */
.font-mono {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.pagination {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

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

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

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Form styling for admin */
.admin-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
}

.admin-form .form-group {
    margin-bottom: 1.25rem;
}

.admin-form .form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.admin-form .form-control,
.admin-form .form-select {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Form Actions - prevent button stretching */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.form-actions .btn {
    flex-shrink: 0;
}

/* Override pill buttons - use reasonable rounding */
.btn {
    border-radius: var(--border-radius-btn) !important;
    white-space: nowrap;
}

/* ========================================
   Light Theme Specific Overrides
   ======================================== */
[data-bs-theme="light"] {
    /* Ensure proper text contrast */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6b6b6b;
}

/* Light theme admin panel */
[data-bs-theme="light"] .admin-layout {
    background: #f5f3f4;
}

[data-bs-theme="light"] .admin-sidebar {
    background: #ffffff;
    border-right: 1px solid #e0dce0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="light"] .admin-sidebar-header {
    border-bottom: 1px solid #e0dce0;
}

[data-bs-theme="light"] .admin-sidebar-footer {
    border-top: 1px solid #e0dce0;
}

[data-bs-theme="light"] .admin-nav-link {
    color: #4a4a4a;
}

[data-bs-theme="light"] .admin-nav-link:hover,
[data-bs-theme="light"] .admin-nav-link.active {
    background: rgba(199, 125, 148, 0.1);
    color: var(--primary);
}

[data-bs-theme="light"] .admin-content {
    background: #f5f3f4;
}

/* Light theme cards */
[data-bs-theme="light"] .card,
[data-bs-theme="light"] .stat-card,
[data-bs-theme="light"] .admin-card {
    background: #ffffff;
    border-color: #e0dce0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-bs-theme="light"] .admin-card-header {
    border-bottom-color: #e0dce0;
}

/* Light theme tables */
[data-bs-theme="light"] .admin-table th {
    background: #f8f6f7;
    color: #666666;
    border-bottom-color: #e0dce0;
}

[data-bs-theme="light"] .admin-table td {
    border-bottom-color: #f0ecee;
}

[data-bs-theme="light"] .admin-table tbody tr:hover {
    background: #faf8f9;
}

/* Light theme forms */
[data-bs-theme="light"] .form-control,
[data-bs-theme="light"] .form-select {
    background: #ffffff;
    border-color: #d0ccd0;
    color: #1a1a1a;
}

[data-bs-theme="light"] .form-control:focus,
[data-bs-theme="light"] .form-select:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(199, 125, 148, 0.15);
}

[data-bs-theme="light"] .form-control::placeholder {
    color: #999999;
}

/* Light theme dropdown */
[data-bs-theme="light"] .dropdown-menu {
    background: #ffffff;
    border-color: #e0dce0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .dropdown-item {
    color: #1a1a1a;
}

[data-bs-theme="light"] .dropdown-item:hover {
    background: #f8f6f7;
    color: var(--primary);
}

/* Light theme badges */
[data-bs-theme="light"] .badge {
    font-weight: 600;
}

/* Light theme buttons */
[data-bs-theme="light"] .btn-secondary {
    background: #f0ecee;
    border: 1px solid #d0ccd0;
    color: #1a1a1a;
}

[data-bs-theme="light"] .btn-secondary:hover {
    background: #e8e4e6;
    border-color: var(--primary);
    color: var(--primary);
}

[data-bs-theme="light"] .btn-primary {
    background: var(--primary);
    color: white;
}

[data-bs-theme="light"] .btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

[data-bs-theme="light"] .btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

[data-bs-theme="light"] .btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

[data-bs-theme="light"] .btn-success {
    background: #28a745;
    color: white;
}

[data-bs-theme="light"] .btn-success:hover {
    background: #218838;
    color: white;
}

[data-bs-theme="light"] .btn-danger {
    background: #dc3545;
    color: white;
}

[data-bs-theme="light"] .btn-danger:hover {
    background: #c82333;
    color: white;
}

[data-bs-theme="light"] .btn-warning {
    background: #ffc107;
    color: #1a1a1a;
}

[data-bs-theme="light"] .btn-warning:hover {
    background: #e0a800;
    color: #1a1a1a;
}

[data-bs-theme="light"] .btn-info {
    background: #17a2b8;
    color: white;
}

[data-bs-theme="light"] .btn-info:hover {
    background: #138496;
    color: white;
}

[data-bs-theme="light"] .btn-icon {
    color: #666666;
}

[data-bs-theme="light"] .btn-icon:hover {
    background: #f0ecee;
    color: #1a1a1a;
}

/* Light theme stat icons */
[data-bs-theme="light"] .stat-icon-orders { background: rgba(199, 125, 148, 0.15); }
[data-bs-theme="light"] .stat-icon-pending { background: rgba(230, 180, 90, 0.15); }
[data-bs-theme="light"] .stat-icon-revenue { background: rgba(100, 180, 100, 0.15); }
[data-bs-theme="light"] .stat-icon-users { background: rgba(100, 160, 200, 0.15); }

/* Light theme stat info */
[data-bs-theme="light"] .stat-info h3 {
    color: #1a1a1a;
}

[data-bs-theme="light"] .stat-info p {
    color: #666666;
}

/* Light theme empty state */
[data-bs-theme="light"] .empty-state {
    background: #ffffff;
    border-color: #e0dce0;
}

[data-bs-theme="light"] .empty-state-icon {
    color: #999999;
}

/* Light theme cart */
[data-bs-theme="light"] .cart-table,
[data-bs-theme="light"] .cart-summary {
    background: #ffffff;
    border-color: #e0dce0;
}

[data-bs-theme="light"] .cart-header {
    background: #f8f6f7;
}

[data-bs-theme="light"] .cart-item {
    border-bottom-color: #f0ecee;
}

/* Light theme shop sidebar */
[data-bs-theme="light"] .shop-sidebar {
    background: #ffffff;
    border-color: #e0dce0;
}

[data-bs-theme="light"] .sidebar-title {
    border-bottom-color: #e0dce0;
}

[data-bs-theme="light"] .category-count {
    background: #f0ecee;
}

/* Light theme auth cards */
[data-bs-theme="light"] .auth-card,
[data-bs-theme="light"] .profile-card {
    background: #ffffff;
    border-color: #e0dce0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Light theme footer */
[data-bs-theme="light"] .footer {
    background: #f0ecee;
    border-top-color: #e0dce0;
}

/* Light theme pagination */
[data-bs-theme="light"] .page-item .page-link {
    background: #ffffff;
    border-color: #e0dce0;
    color: #1a1a1a;
}

[data-bs-theme="light"] .page-item .page-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Light theme alerts */
[data-bs-theme="light"] .alert-warning {
    background: rgba(255, 193, 7, 0.12);
    border-color: rgba(255, 193, 7, 0.25);
    color: #856404;
}

[data-bs-theme="light"] .alert-info {
    background: rgba(13, 202, 240, 0.12);
    border-color: rgba(13, 202, 240, 0.25);
    color: #0c5460;
}

[data-bs-theme="light"] .alert-success {
    background: rgba(25, 135, 84, 0.12);
    border-color: rgba(25, 135, 84, 0.25);
    color: #155724;
}

[data-bs-theme="light"] .alert-danger {
    background: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.25);
    color: #721c24;
}

/* Light theme feature cards */
[data-bs-theme="light"] .feature-card {
    background: #ffffff;
    border-color: #e0dce0;
}

/* Light theme quantity input */
[data-bs-theme="light"] .quantity-input {
    background: #ffffff;
    border-color: #d0ccd0;
}

/* Light theme product detail */
[data-bs-theme="light"] .gallery-main {
    background: #f8f6f7;
    border-color: #e0dce0;
}

[data-bs-theme="light"] .product-price-box {
    background: #f8f6f7;
    border-color: #e0dce0;
}

/* Light theme toast */
[data-bs-theme="light"] .toast {
    background: #ffffff;
    border-color: #e0dce0;
}

/* Light theme navbar */
[data-bs-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: #e0dce0;
}

[data-bs-theme="light"] .navbar.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Light theme scrollbar */
[data-bs-theme="light"]::-webkit-scrollbar-track {
    background: #f0ecee;
}

[data-bs-theme="light"]::-webkit-scrollbar-thumb {
    background: #c0b8c0;
}

[data-bs-theme="light"]::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ========================================
   Light Theme - Override inline rgba(255,255,255,...) styles
   These use !important to override inline styles
   ======================================== */

/* Generic border overrides for light theme */
[data-bs-theme="light"] [style*="rgba(255,255,255,0.1)"],
[data-bs-theme="light"] [style*="rgba(255, 255, 255, 0.1)"] {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Light theme hr elements */
[data-bs-theme="light"] hr {
    border-color: rgba(0, 0, 0, 0.1) !important;
    opacity: 1;
}

/* Modal content for light theme */
[data-bs-theme="light"] .modal-content {
    background: #ffffff !important;
    border-color: #e0dce0 !important;
}

[data-bs-theme="light"] .modal-header,
[data-bs-theme="light"] .modal-footer {
    border-color: #e0dce0 !important;
}

/* Accordion/collapsible sections */
[data-bs-theme="light"] .accordion-button {
    background: #f8f6f7;
    color: #1a1a1a;
}

[data-bs-theme="light"] .accordion-button:not(.collapsed) {
    background: rgba(199, 125, 148, 0.1);
    color: var(--primary);
}

[data-bs-theme="light"] .accordion-item {
    background: #ffffff;
    border-color: #e0dce0;
}

/* Order/item detail cards in light theme */
[data-bs-theme="light"] .order-detail-card,
[data-bs-theme="light"] .item-detail-card {
    background: #ffffff;
    border-color: #e0dce0;
}

/* Payment page styling */
[data-bs-theme="light"] .payment-method-card,
[data-bs-theme="light"] .payment-option {
    background: #ffffff !important;
    border-color: #e0dce0 !important;
}

[data-bs-theme="light"] .payment-method-card:hover,
[data-bs-theme="light"] .payment-option:hover {
    border-color: var(--primary) !important;
}

/* Checkout page styling */
[data-bs-theme="light"] .checkout-card,
[data-bs-theme="light"] .order-summary-card {
    background: #ffffff !important;
    border-color: #e0dce0 !important;
}

/* Light theme list groups and dividers */
[data-bs-theme="light"] .list-group-item {
    background: #ffffff;
    border-color: #e0dce0;
    color: #1a1a1a;
}

/* Light theme input groups */
[data-bs-theme="light"] .input-group-text {
    background: #f0ecee;
    border-color: #d0ccd0;
    color: #4a4a4a;
}

/* Light theme code/pre elements */
[data-bs-theme="light"] code,
[data-bs-theme="light"] pre {
    background: #f8f6f7;
    color: #1a1a1a;
}

/* Coupon/voucher code display */
[data-bs-theme="light"] .coupon-code {
    background: #f0ecee;
    color: var(--primary);
}

/* Light theme well/info boxes */
[data-bs-theme="light"] .info-box,
[data-bs-theme="light"] .well {
    background: #f8f6f7 !important;
    border-color: #e0dce0 !important;
}

/* Error page styling */
[data-bs-theme="light"] .error-card {
    background: #ffffff;
    border-color: #e0dce0;
}

/* Item detail tabs/sections */
[data-bs-theme="light"] .nav-tabs {
    border-bottom-color: #e0dce0;
}

[data-bs-theme="light"] .tab-content {
    background: #ffffff;
    border-color: #e0dce0;
}

/* Table variants */
[data-bs-theme="light"] .table {
    color: #1a1a1a;
}

[data-bs-theme="light"] .table > :not(caption) > * > * {
    background: transparent;
    border-bottom-color: #e0dce0;
}

[data-bs-theme="light"] .table-striped > tbody > tr:nth-of-type(odd) > * {
    background: #faf8f9;
}

[data-bs-theme="light"] .table-hover > tbody > tr:hover > * {
    background: #f5f3f4;
}

/* Select2 and other select plugins */
[data-bs-theme="light"] .select2-container--default .select2-selection--single,
[data-bs-theme="light"] .select2-container--default .select2-selection--multiple {
    background: #ffffff;
    border-color: #d0ccd0;
}

[data-bs-theme="light"] .select2-dropdown {
    background: #ffffff;
    border-color: #d0ccd0;
}

/* Flatpickr and date pickers */
[data-bs-theme="light"] .flatpickr-calendar {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Progress and loading states */
[data-bs-theme="light"] .spinner-border {
    color: var(--primary);
}

[data-bs-theme="light"] .placeholder {
    background: #e0dce0;
}

/* Tooltips and popovers */
[data-bs-theme="light"] .tooltip-inner {
    background: #1a1a1a;
    color: #ffffff;
}

[data-bs-theme="light"] .popover {
    background: #ffffff;
    border-color: #e0dce0;
}

[data-bs-theme="light"] .popover-header {
    background: #f8f6f7;
    border-bottom-color: #e0dce0;
}

[data-bs-theme="light"] .popover-body {
    color: #1a1a1a;
}

/* ========================================
   Badge Styling (Both Themes)
   ======================================== */
.badge {
    font-weight: 600;
    padding: 0.4em 0.8em;
    font-size: 0.75rem;
}

.badge-primary,
.bg-primary {
    background-color: var(--primary) !important;
    color: white !important;
}

.badge-secondary,
.bg-secondary {
    background-color: var(--secondary) !important;
    color: white !important;
}

.badge-success,
.bg-success {
    background-color: var(--success) !important;
    color: white !important;
}

.badge-danger,
.bg-danger {
    background-color: var(--danger) !important;
    color: white !important;
}

.badge-warning,
.bg-warning {
    background-color: var(--warning) !important;
    color: #1a1a1a !important;
}

.badge-info,
.bg-info {
    background-color: var(--info) !important;
    color: white !important;
}

/* ========================================
   Navbar Toggler (Mobile Menu)
   ======================================== */
.navbar-toggler {
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(245, 240, 242, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-bs-theme="light"] .navbar-toggler {
    border-color: #d0ccd0;
}

[data-bs-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26, 26, 26, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================
   Additional Light Theme Fixes
   ======================================== */

/* Fix body and html background */
[data-bs-theme="light"] body {
    background: var(--bg-body);
    color: var(--text-primary);
}

/* Ensure text visibility in admin tables */
[data-bs-theme="light"] .admin-table td {
    color: var(--text-primary);
}

[data-bs-theme="light"] .admin-table td strong {
    color: var(--text-primary);
}

/* Fix text-muted visibility */
[data-bs-theme="light"] .text-muted {
    color: #666666 !important;
}

/* Fix font-mono class */
[data-bs-theme="light"] .font-mono {
    color: var(--text-primary);
}

/* Avatar circle */
[data-bs-theme="light"] .avatar-circle {
    background: var(--primary);
    color: white;
}

/* Dropdown fixes for light theme */
[data-bs-theme="light"] .dropdown-menu {
    background: #ffffff;
    border: 1px solid #e0dce0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

[data-bs-theme="light"] .dropdown-item {
    color: #1a1a1a;
}

[data-bs-theme="light"] .dropdown-item:hover,
[data-bs-theme="light"] .dropdown-item:focus {
    background: #f5f3f4;
    color: var(--primary);
}

[data-bs-theme="light"] .dropdown-item.text-danger {
    color: var(--danger) !important;
}

[data-bs-theme="light"] .dropdown-item.text-success {
    color: var(--success) !important;
}

[data-bs-theme="light"] .dropdown-item.text-warning {
    color: #b38600 !important;
}

/* Fix dropdown divider */
[data-bs-theme="light"] .dropdown-divider {
    border-top-color: #e0dce0;
}

/* Fix admin card header */
[data-bs-theme="light"] .admin-card-header {
    background: transparent;
    border-bottom: 1px solid #e0dce0;
}

/* Fix stat highlight */
[data-bs-theme="light"] .stat-highlight {
    color: #2e8b57;
}

/* Fix admin title and header */
[data-bs-theme="light"] .admin-title {
    color: var(--text-primary);
}

[data-bs-theme="light"] .admin-card-title {
    color: var(--primary);
}

/* Fix collapse/accordion in light theme */
[data-bs-theme="light"] .collapse,
[data-bs-theme="light"] .collapsing {
    background: transparent;
}

/* Fix breadcrumbs */
[data-bs-theme="light"] .breadcrumb {
    background: transparent;
}

[data-bs-theme="light"] .breadcrumb-item a {
    color: var(--primary);
}

[data-bs-theme="light"] .breadcrumb-item.active {
    color: var(--text-muted);
}

/* Fix close button in modals/toasts */
[data-bs-theme="light"] .btn-close {
    filter: none;
}

/* Fix modal backdrop */
[data-bs-theme="light"] .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Fix offcanvas */
[data-bs-theme="light"] .offcanvas {
    background: #ffffff;
    color: var(--text-primary);
}

/* Fix navbar collapse background on mobile */
[data-bs-theme="light"] .navbar-collapse {
    background: transparent;
}

@media (max-width: 991.98px) {
    [data-bs-theme="light"] .navbar-collapse.show,
    [data-bs-theme="light"] .navbar-collapse.collapsing {
        background: #ffffff;
        padding: 1rem;
        border-radius: var(--border-radius);
        margin-top: 0.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
}

/* Ensure links are visible */
[data-bs-theme="light"] a {
    color: var(--primary);
}

[data-bs-theme="light"] a:hover {
    color: var(--primary-dark);
}

/* Card title links */
[data-bs-theme="light"] .card-title a {
    color: var(--text-primary);
}

[data-bs-theme="light"] .card-title a:hover {
    color: var(--primary);
}
