:root {
    /* Artisan Market - Beige Artisanal Theme */
    --primary-color: #C4A36E;
    /* Beige doré artisanal */
    --primary-dark: #A68A52;
    /* Beige foncé */
    --primary-light: #E8D5B0;
    /* Beige clair */
    --primary-gradient: linear-gradient(135deg, #C4A36E 0%, #A68A52 100%);

    /* Secondary Colors */
    --secondary-color: #5C4A32;
    /* Brun artisanal */
    --secondary-dark: #3E2F1E;
    --secondary-light: #8B7355;

    /* Accent Colors */
    --accent-color: #D4A853;
    /* Or chaud pour étoiles/highlights */
    --accent-red: #FF5252;
    /* For sale/error */

    /* Backgrounds */
    --bg-body: #FFFDF8;
    --bg-light: #FAF6F0;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F5EFE3;

    /* Text Colors */
    --text-color: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --text-white: #FFFFFF;

    /* Borders */
    --border-color: #E0D8CC;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-full: 9999px;

    /* Typography */
    --font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;
    /* Modern, geometric */

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-green: 0 4px 15px rgba(196, 163, 110, 0.4);

    --container-width: 1280px;
}

/* Accessibility: screen-reader-only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* Layout */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Navbar */
.navbar {
    background-color: #343434 !important;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

/* Home Page Navbar Specific Styles */
.home-page .navbar {
    background-color: #343434 !important;
}

.home-page .navbar .nav-link,
.home-page .navbar .logo,
.home-page .navbar .logo span,
.home-page .navbar .icon-btn,
.home-page .navbar .search-icon,
.home-page .navbar .navbar-toggler {
    color: #FFFFFF !important;
}

.home-page .navbar .search-input {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-page .navbar .search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}


.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: #FFFFFF;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    background-color: var(--light-bg);
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    background-color: var(--white);
    border-color: var(--border-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.nav-icons {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.icon-btn {
    position: relative;
    font-size: 1.25rem;
    color: var(--secondary-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 20px;
}

.icon-btn:hover {
    color: var(--primary-color);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
}

/* Buttons - Modern Gradient Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.95rem;
    line-height: 1;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-color);
    /* Usually dark text on bright lime looks better, or white if dark green */
    color: white;
    /* Let's stick to white for now, but check contrast */
    box-shadow: 0 4px 6px rgba(196, 163, 110, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(196, 163, 110, 0.35);
}

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

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
}

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

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

.btn-block {
    display: flex;
    width: 100%;
}

/* Footer */
.footer {
    background-color: #343434;
    padding: 5rem 0 2rem;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    color: #e2e8f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: #cbd5e1;
    margin-top: 1rem;
    max-width: 300px;
}

.footer-col h3 {
    color: #f8fafc;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    color: #94a3b8;
    font-size: 1.25rem;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Dark Mode Toggle */
.dark-mode-toggle-section {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.dark-mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 102, 241, 0.4);
}

.dark-mode-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 102, 241, 0.5);
}

.dark-mode-toggle i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.dark-mode-toggle:hover i {
    transform: rotate(20deg);
}

/* Dark Mode Styles */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dark-mode {
    background: linear-gradient(to bottom, var(--bg-dark) 0%, var(--bg-darker) 100%) !important;
    background-color: var(--bg-dark) !important;
    color: var(--text-light) !important;
}

.dark-mode .navbar {
    background-color: var(--bg-darker) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .logo,
.dark-mode .nav-link {
    color: var(--text-light) !important;
}

.dark-mode .nav-link:hover {
    color: var(--primary-light) !important;
}

.dark-mode .search-input {
    background-color: var(--bg-card) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-light) !important;
}

.dark-mode .search-input::placeholder {
    color: var(--text-muted) !important;
}

.dark-mode .icon-btn {
    color: var(--text-light) !important;
}

.dark-mode .icon-btn:hover {
    color: var(--primary-light) !important;
}

.dark-mode .footer {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .footer-brand p,
.dark-mode .footer-links a {
    color: var(--text-muted) !important;
}

.dark-mode .footer-links a:hover {
    color: var(--primary-light) !important;
}

.dark-mode .footer-col h3 {
    color: var(--text-light) !important;
}

.dark-mode .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-muted) !important;
}

.dark-mode .dark-mode-toggle-section {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .form-control {
    background-color: var(--bg-card) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-light) !important;
}

.dark-mode .form-control::placeholder {
    color: var(--text-muted) !important;
}

.dark-mode .form-label {
    color: var(--text-light) !important;
}

.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6 {
    color: var(--text-light) !important;
}

.dark-mode .social-link {
    color: var(--text-muted) !important;
}

.dark-mode .social-link:hover {
    color: var(--primary-light) !important;
}

/* Product Detail Dark Mode Overrides */
.dark-mode .product-detail-section {
    background: transparent !important;
}

.dark-mode .thumb-item {
    background: var(--bg-card) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .thumb-item.active {
    border-color: var(--primary-color) !important;
}

.dark-mode .main-image-box {
    background: var(--bg-card) !important;
}

.dark-mode .wishlist-btn {
    background: var(--bg-card) !important;
    color: var(--text-light) !important;
}

.dark-mode .back-btn {
    background: var(--bg-card) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-light) !important;
}

.dark-mode .back-btn:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.dark-mode .quantity-picker {
    background: var(--bg-card) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .size-circle-btn {
    background: var(--bg-card) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-light) !important;
}

/* Auth Section Styles */
.auth-section {
    padding: 4rem 0;
    background-color: var(--light-bg);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.auth-header p {
    color: #64748b;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.form-control.with-icon {
    padding-left: 2.75rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

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

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

.demo-accounts {
    margin-top: 1.5rem;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: left;
}

.demo-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.demo-credentials {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #64748b;
}

.demo-credentials i {
    width: 16px;
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* Home Page Styles */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background-image 1s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-text-center h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 800;
}

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

.hero-text-center p {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 500px;
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 2rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-light:hover {
    background: white;
    color: var(--secondary-color);
}

.features-section {
    padding: 3rem 0;
    background-color: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    background-color: #e0f2fe;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.categories-section {
    padding: 5rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.category-card {
    position: relative;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    display: block;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
}

.category-overlay h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.category-overlay span {
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.category-card:hover .category-overlay span {
    opacity: 1;
    transform: translateY(0);
}

.products-section {
    padding-bottom: 5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-section {
    padding: 5rem 0;
    background-color: #f8fafc;
}

.newsletter-box {
    background-color: #f0f9ff;
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    margin: 0 auto;
}

.newsletter-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto 0;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    width: auto !important;
}

/* Product Index Styles */
.page-layout {
    display: flex;
    gap: 3rem;
}

@media (max-width: 992px) {
    .page-layout {
        flex-direction: column;
        gap: 2rem;
    }
}

.sidebar-filters {
    width: 250px;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .sidebar-filters {
        width: 100%;
    }
}

.filter-group {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.filter-group h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.filter-list li {
    margin-bottom: 0.5rem;
}

.filter-list a {
    display: block;
    padding: 0.5rem;
    border-radius: 6px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.filter-list a:hover,
.filter-list a.active {
    background-color: var(--light-bg);
    color: var(--primary-color);
    font-weight: 500;
}

.products-content {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .products-header div {
        width: 100%;
        justify-content: space-between;
    }

    #product-search {
        width: 100% !important;
    }
}

/* Product Show Styles */
.product-detail-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.main-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    margin-bottom: 1rem;
}

.main-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumbnail-item.active,
.thumbnail-item:hover {
    border-color: var(--primary-color);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-category-label {
    text-transform: uppercase;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.product-name {
    font-size: 2.5rem;
    margin: 0.5rem 0 1rem;
    line-height: 1.2;
}

.product-price-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-price-large .old-price {
    font-size: 1.25rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 400;
}

.product-description {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.stock-status {
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-features {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feature-item {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.feature-item i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Cart Styles */
.cart-section {
    padding: 3rem 0 5rem;
    background-color: var(--light-bg);
    min-height: 60vh;
}

.cart-layout {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.cart-items {
    flex: 2;
    min-width: 300px;
}

.cart-sidebar {
    flex: 1;
    min-width: 300px;
}

.cart-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-collapse: collapse;
}

.cart-table th {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
}

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

.cart-product-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-product-info img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-product-name {
    font-weight: 600;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.cart-product-variant {
    font-size: 0.85rem;
    color: #64748b;
}

.cart-total-price {
    font-weight: 700;
    color: var(--primary-color);
}

.btn-remove {
    color: #ef4444;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.cart-summary {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.summary-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

.summary-row.total {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

.empty-cart-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

/* Checkout Styles */
.checkout-section {
    padding: 3rem 0 5rem;
    background-color: var(--light-bg);
    min-height: 80vh;
}

.checkout-layout {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.checkout-form-col {
    flex: 2;
    min-width: 300px;
}

.checkout-summary-col {
    flex: 1;
    min-width: 300px;
}

.checkout-card,
.checkout-summary-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.checkout-summary-card {
    position: sticky;
    top: 100px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

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

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.payment-option {
    border: 2px solid var(--primary-color);
    background-color: #f0f9ff;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.payment-radio {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.payment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.payment-title {
    font-weight: 600;
    color: var(--secondary-color);
}

.payment-desc {
    font-size: 0.85rem;
    color: #64748b;
}

.payment-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.summary-items {
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.item-info {
    display: flex;
    flex-direction: column;
}

.item-name {
    font-weight: 500;
}

.item-qty {
    font-size: 0.85rem;
    color: #64748b;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Dark Mode Overrides for Checkout */
.dark-mode .checkout-section {
    background-color: var(--bg-dark) !important;
}

.dark-mode .checkout-card,
.dark-mode .checkout-summary-card {
    background: var(--bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-mode .card-header {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .card-header h3,
.dark-mode .payment-title,
.dark-mode .item-name,
.dark-mode .summary-row {
    color: var(--text-light) !important;
}

.dark-mode .payment-option {
    background-color: rgba(99, 102, 241, 0.05) !important;
    border-color: var(--primary-color) !important;
}

.dark-mode .payment-desc,
.dark-mode .item-qty,
.dark-mode .security-badges {
    color: var(--text-muted) !important;
}

.dark-mode .summary-total {
    color: var(--primary-light) !important;
}

/* Dark Mode Overrides for Cart */
.dark-mode .cart-section {
    background-color: var(--bg-dark) !important;
}

.dark-mode .cart-table,
.dark-mode .cart-summary,
.dark-mode .empty-cart {
    background: var(--bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-mode .cart-table th {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-muted) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .cart-table td {
    color: var(--text-light) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .cart-product-name,
.dark-mode .cart-summary h3,
.dark-mode .summary-row {
    color: var(--text-light) !important;
}

.dark-mode .cart-product-variant,
.dark-mode .empty-cart p {
    color: var(--text-muted) !important;
}

.dark-mode .summary-divider {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .cart-total-price,
.dark-mode .summary-row.total {
    color: var(--primary-light) !important;
}

/* Dark Mode Overrides for Product Show */
.dark-mode .product-detail-section {
    background-color: var(--bg-dark) !important;
}

.dark-mode .main-image-wrapper {
    background: var(--bg-card) !important;
}

.dark-mode .product-name,
.dark-mode .product-price-large .current-price {
    color: var(--text-light) !important;
}

.dark-mode .product-description {
    color: var(--text-muted) !important;
}

.dark-mode .product-features {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .feature-item {
    color: var(--text-muted) !important;
}

.dark-mode .product-category-label {
    color: var(--text-muted) !important;
}

/* Dark Mode Overrides for Product Index */
.dark-mode .filter-group {
    background: var(--bg-card) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.dark-mode .filter-group h3 {
    color: var(--text-light) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .filter-list a {
    color: var(--text-muted) !important;
}

.dark-mode .filter-list a:hover,
.dark-mode .filter-list a.active {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--primary-light) !important;
}

.dark-mode #product-search {
    background-color: var(--bg-card) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-light) !important;
}

.dark-mode .products-count {
    color: var(--text-muted) !important;
}

/* Dark Mode Overrides for Home Page */
.dark-mode .features-section,
.dark-mode .newsletter-section {
    background-color: var(--bg-dark) !important;
}

.dark-mode .feature-card {
    background: var(--bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-mode .feature-text h3 {
    color: var(--text-light) !important;
}

.dark-mode .feature-text p {
    color: var(--text-muted) !important;
}

.dark-mode .feature-icon {
    background-color: rgba(99, 102, 241, 0.1) !important;
}

.dark-mode .newsletter-box {
    background-color: var(--bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-mode .newsletter-box h2 {
    color: var(--text-light) !important;
}

.dark-mode .newsletter-box p {
    color: var(--text-muted) !important;
}

.dark-mode .newsletter-form input {
    background-color: var(--bg-dark) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-light) !important;
}

.dark-mode .view-all {
    color: var(--primary-light) !important;
}

/* Dark Mode for Admin Section */
.dark-mode .admin-layout {
    background-color: var(--bg-dark) !important;
}

.dark-mode .admin-sidebar {
    background: #242424 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .admin-title {
    color: var(--text-light) !important;
}

.dark-mode .stat-card,
.dark-mode .recent-orders,
.dark-mode .admin-card {
    background: var(--bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.dark-mode .stat-value {
    color: var(--text-light) !important;
}

.dark-mode .stat-info h3 {
    color: var(--text-muted) !important;
}

.dark-mode .card-header-admin {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .card-header-admin h2 {
    color: var(--text-light) !important;
}

.dark-mode .admin-table th {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-muted) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .admin-table td {
    color: var(--text-light) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .admin-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

.dark-mode .btn-icon {
    color: var(--text-muted) !important;
}

.dark-mode .btn-icon:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--primary-light) !important;
}

.dark-mode .admin-sidebar-toggle {
    background: var(--bg-card) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-light) !important;
}

/* Chart Section Specifics */
.chart-section {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dark-mode .chart-section {
    background: var(--bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-actions .badge {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Readability Improvements */
.admin-title {
    color: var(--secondary-color);
    font-weight: 700;
}

.stat-info h3 {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stat-value {
    color: var(--secondary-color);
    font-weight: 700;
}

.dark-mode .admin-title,
.dark-mode .stat-value {
    color: var(--text-light) !important;
}

.status-badge {
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Dark Mode for Profile Section */
.dark-mode .profile-section,
.dark-mode .auth-section {
    background-color: var(--bg-dark) !important;
}

.dark-mode .profile-card,
.dark-mode .orders-card,
.dark-mode .auth-card {
    background: var(--bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.dark-mode .profile-header {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .profile-header h2,
.dark-mode .section-subtitle,
.dark-mode .auth-header h1 {
    color: var(--text-light) !important;
}

.dark-mode .profile-header p,
.dark-mode .auth-header p,
.dark-mode .demo-credentials,
.dark-mode .empty-state {
    color: var(--text-muted) !important;
}

.dark-mode .order-id {
    background: rgba(99, 102, 241, 0.1) !important;
    color: var(--primary-light) !important;
}

.dark-mode .order-total {
    color: var(--text-light) !important;
}

.dark-mode .avatar-placeholder {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%) !important;
    border-color: var(--bg-card) !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05) !important;
}

.dark-mode .profile-avatar img {
    border-color: var(--bg-card) !important;
}

.dark-mode .auth-footer {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .demo-accounts {
    background: rgba(255, 255, 255, 0.02) !important;
}

.dark-mode .input-icon {
    color: var(--text-muted) !important;
}


/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background-color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-danger {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* Responsive */
.navbar-toggler {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar-content {
        flex-wrap: wrap;
        padding-bottom: 0;
    }

    .navbar-toggler {
        display: block;
        order: 1;
    }

    .logo {
        order: 0;
    }

    .nav-right {
        order: 2;
        width: 100%;
        justify-content: space-between;
        margin-top: 1rem;
        padding-bottom: 1rem;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        order: 3;
        background-color: #343434 !important;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: center;
        display: block;
        color: #FFFFFF !important;
    }

    .search-bar {
        width: 100%;
        max-width: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .hero-text-center h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-buttons {
        justify-content: center;
        gap: 1rem;
    }
}

/* Mobile Portrait Styles (< 576px) - Modern Dark Theme */
@media (max-width: 575px) {
    .dashboard-content-grid {
        display: flex !important;
        flex-direction: column;
    }

    /* Apply Dark Theme for Mobile - Force with !important */
    body {
        background-color: var(--bg-dark) !important;
        background: var(--bg-dark) !important;
        color: var(--text-light) !important;
        overflow-x: hidden !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    * {
        box-sizing: border-box;
    }

    /* Navbar Mobile Dark */
    .navbar {
        background-color: #343434 !important;
        padding: 1rem 0 !important;
        border-bottom-color: rgba(255, 255, 255, 0.1) !important;
        width: 100%;
    }

    .features-split-grid {
        display: flex !important;
        flex-direction: column;
    }

    .logo {
        font-size: 1.25rem;
        color: #FFFFFF !important;
    }

    .nav-link {
        color: #FFFFFF !important;
        padding: 0.875rem 0;
        font-size: 0.9rem;
    }

    .nav-links {
        background-color: #343434 !important;
    }

    .search-input {
        background-color: var(--bg-card) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        color: var(--text-light) !important;
        padding: 0.625rem 1rem 0.625rem 2.5rem;
    }

    .search-input::placeholder {
        color: var(--text-muted) !important;
    }

    .icon-btn {
        color: var(--text-light) !important;
        font-size: 1.125rem;
    }

    /* Container Mobile */
    .container {
        padding: 0 1rem;
    }

    /* Hero Section - Scrollable */
    .hero-section {
        min-height: 50vh;
        height: auto;
        max-height: 70vh;
        overflow-y: auto;
        scroll-behavior: smooth;
    }

    .hero-text-center h1 {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-text-center p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        align-items: center;
        justify-content: center;
    }

    .hero-buttons .btn {
        width: auto !important;
        padding: 0.875rem 1.5rem;
        min-height: 44px;
    }

    /* Features Section */
    .features-section {
        background-color: var(--bg-dark) !important;
        padding: 2rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        background: var(--bg-card) !important;
        padding: 1.25rem;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .feature-text h3 {
        color: var(--text-light) !important;
        font-size: 1rem;
    }

    .feature-text p {
        color: var(--text-muted) !important;
        font-size: 0.85rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.5rem;
        color: var(--text-light) !important;
        margin-bottom: 1.25rem;
    }

    /* Categories Section */
    .categories-section {
        background-color: var(--bg-dark) !important;
        padding: 2.5rem 0;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-card {
        height: 200px;
        border-radius: 12px;
    }

    /* Products Section */
    .products-section {
        background-color: var(--bg-dark) !important;
        padding: 2.5rem 0;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-card {
        background: var(--bg-card) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        border-radius: 12px;
    }

    .product-category {
        color: var(--text-muted) !important;
        font-size: 0.75rem;
    }

    .product-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .product-title a {
        color: var(--text-light) !important;
    }

    .product-price {
        color: var(--text-light) !important;
        font-size: 1rem;
    }

    .btn-icon-circle {
        background-color: var(--primary-color) !important;
        color: white !important;
        width: 40px;
        height: 40px;
    }

    /* Newsletter Section */
    .newsletter-section {
        background-color: var(--bg-dark) !important;
        padding: 2.5rem 0;
    }

    .newsletter-box {
        background: var(--bg-card) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .newsletter-box h2 {
        color: var(--text-light) !important;
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .newsletter-box p {
        color: var(--text-muted) !important;
        font-size: 0.9rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        align-items: center;
    }

    .newsletter-form input {
        background-color: var(--bg-dark) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        color: var(--text-light) !important;
        padding: 0.875rem 1rem;
        min-height: 44px;
    }

    .newsletter-form input::placeholder {
        color: var(--text-muted) !important;
    }

    /* Footer */
    .footer {
        background-color: #343434 !important;
        border-top-color: rgba(255, 255, 255, 0.1) !important;
        padding: 3rem 0 1.5rem;
    }

    .footer-brand p,
    .footer-links a {
        color: #e2e8f0 !important;
        font-size: 0.875rem;
    }

    .footer-col h3 {
        color: #f8fafc !important;
        font-size: 0.875rem;
    }

    .footer-grid {
        display: block !important;
        text-align: center !important;
    }

    .footer-col,
    .footer-brand {
        margin-bottom: 2.5rem !important;
    }

    .footer-brand p {
        margin: 1rem auto 0 !important;
        max-width: 100% !important;
    }

    .social-links {
        justify-content: center !important;
    }

    .footer-links {
        text-align: center !important;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        font-size: 0.8rem;
    }

    /* Buttons Mobile */
    .btn {
        min-height: 44px;
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
        border-radius: 8px;
    }

    .btn-primary {
        background-color: var(--primary-color);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

    .btn-block {
        width: 100%;
    }

    /* Forms Mobile */
    .form-control {
        background-color: var(--bg-card);
        border-color: rgba(255, 255, 255, 0.1);
        color: var(--text-light);
        min-height: 44px;
        font-size: 1rem;
    }

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

    .form-label {
        color: var(--text-light);
        font-size: 0.9rem;
    }

    /* Checkout Layout Mobile */
    .checkout-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .checkout-sidebar {
        order: -1;
        /* Summary first on mobile */
    }

    .summary-card {
        position: static !important;
    }

    .checkout-main {
        order: 1;
    }

    .mobile-only-btn {
        display: block !important;
    }

    /* Hide desktop button in sidebar on mobile */
    .checkout-sidebar .btn-primary {
        display: none !important;
    }

    /* Cards Mobile */
    .profile-card,
    .orders-card,
    .admin-card {
        background: var(--bg-card);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 12px;
    }

    /* Typography Mobile */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        color: var(--text-light);
    }

    .page-title {
        font-size: 1.5rem;
        color: var(--text-light);
    }

    /* Alerts Mobile */
    .alert-success {
        background-color: rgba(16, 185, 129, 0.1);
        border-color: rgba(16, 185, 129, 0.3);
        color: #6EE7B7;
    }

    .alert-danger {
        background-color: rgba(239, 68, 68, 0.1);
        border-color: rgba(239, 68, 68, 0.3);
        color: #FCA5A5;
    }

    /* Product Image Wrapper Mobile */
    .product-image-wrapper {
        height: 250px;
        border-radius: 12px 12px 0 0;
    }

    /* Section Header Mobile */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .view-all {
        color: var(--primary-light);
        font-size: 0.9rem;
    }

    /* Profile Layout Mobile */
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .profile-section {
        background-color: var(--bg-dark);
        padding: 2rem 0;
    }

    .profile-header h2 {
        color: var(--text-light);
        font-size: 1.25rem;
    }

    .profile-header p {
        color: var(--text-muted);
    }

    /* Admin Mobile */
    .admin-main {
        background-color: var(--bg-dark);
        padding: 1.5rem 1rem;
    }

    .admin-title {
        color: var(--text-light);
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        background: var(--bg-card);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .stat-value {
        color: var(--text-light);
    }

    .admin-table {
        font-size: 0.85rem;
    }

    .admin-table th {
        background: var(--bg-card);
        color: var(--text-muted);
        padding: 0.75rem 1rem;
        font-size: 0.7rem;
    }

    .admin-table td {
        color: var(--text-light);
        padding: 0.75rem 1rem;
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }

    .admin-table tr:hover td {
        background-color: rgba(255, 255, 255, 0.02);
    }

    /* No Products State */
    .no-products {
        background: var(--bg-card);
        color: var(--text-muted);
        padding: 3rem 1.5rem;
    }

    /* Empty State */
    .empty-state {
        color: var(--text-muted);
    }

    /* Status Badges Mobile - Keep visible colors */
    .status-badge,
    .badge-status {
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem;
    }
}

/* Profile Styles */
.profile-section {
    padding: 3rem 0 5rem;
    background-color: var(--light-bg);
    min-height: 80vh;
}

.profile-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.profile-card,
.orders-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover,
.orders-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 0 0 4px var(--primary-color);
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 3rem;
    color: #94a3b8;
    font-weight: 700;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #e2e8f0;
}

.profile-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
    font-weight: 700;
}

.profile-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.section-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.order-id {
    font-family: 'Monaco', 'Consolas', monospace;
    font-weight: 600;
    color: var(--primary-color);
    background: #eff6ff;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.order-total {
    font-weight: 700;
    color: var(--text-color);
}

.badge-status {
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-pending {
    background-color: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
}

.status-completed {
    background-color: #f0fdf4;
    color: #15803d;
    border: 1px solid #dcfce7;
}

.status-cancelled {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fee2e2;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    color: #64748b;
    padding: 3rem 0;
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

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

/* Enhanced Admin Styles */
.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 73px);
    /* Subtract navbar height */
    background-color: #f1f5f9;
}

/* --- Admin UI Consolidation --- */
.admin-sidebar {
    background-color: #343434 !important;
    color: #ffffff !important;
    width: 280px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    min-height: 100vh;
    z-index: 100;
}

.sidebar-header {
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

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

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

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link-admin {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-link-admin:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

.nav-link-admin.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    border-left-color: var(--primary-color) !important;
}

.nav-link-admin i {
    width: 20px;
    text-align: center;
    color: inherit;
}

/* Navbar in Admin Context */
.admin-body .navbar {
    background-color: #343434 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-body .nav-link,
.admin-body .logo,
.admin-body .icon-btn,
.admin-body .navbar-content i {
    color: #ffffff !important;
}

.admin-body .nav-link:hover {
    color: var(--primary-color) !important;
}


.admin-main {
    padding: 2rem;
    overflow-x: hidden;
}

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

.admin-title {
    font-size: 1.875rem;
    color: #1e293b;
    margin: 0;
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.bg-blue-light {
    background: #e0f2fe;
    color: #0284c7;
}

.bg-green-light {
    background: #dcfce7;
    color: #16a34a;
}

.bg-purple-light {
    background: #f3e8ff;
    color: #9333ea;
}

.bg-orange-light {
    background: #ffedd5;
    color: #ea580c;
}

.stat-info h3 {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

/* Recent Orders / Tables */
.recent-orders,
.admin-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

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

.card-header-admin h2 {
    font-size: 1.25rem;
    margin: 0;
    color: #1e293b;
}

.table-responsive {
    overflow-x: auto;
}

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

.admin-table th {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.95rem;
}

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

.admin-table tr:hover td {
    background-color: #f8fafc;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff7ed;
    color: #c2410c;
}

.status-paid {
    background: #f0fdf4;
    color: #15803d;
}

.status-shipped {
    background: #eff6ff;
    color: #1d4ed8;
}

.status-cancelled {
    background: #fef2f2;
    color: #b91c1c;
}

.btn-icon {
    color: #64748b;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

/* Admin Responsive */
.admin-sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    line-height: 1;
}

.admin-sidebar-close {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

@media (max-width: 1024px) {
    .admin-sidebar-close {
        display: block;
    }
}

.admin-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.admin-sidebar-overlay.active {
    display: block;
}

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

    .admin-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 1100;
        transition: left 0.3s ease;
        width: 280px;
    }

    .admin-sidebar.active {
        left: 0;
    }

    .admin-sidebar-toggle {
        display: block;
    }
}

/* Product Grid & Cards (Global) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--bg-light);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    z-index: 2;
}

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

.badge-new {
    background-color: #7ED321;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-title a {
    color: var(--secondary-color);
}

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

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.old-price {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: #94a3b8;
    margin-right: 0.5rem;
}

.btn-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    transition: all 0.2s;
}

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

.page-title {
    font-size: 2rem;
    margin: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.products-count {
    color: #64748b;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    background: var(--light-bg);
    border-radius: 12px;
    color: #64748b;
}

.no-products i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    border-radius: 8px;
    background-color: white;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pagination .page-link:hover {
    background-color: var(--light-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.pagination .page-item.disabled .page-link {
    background-color: var(--light-bg);
    color: var(--text-muted);
    cursor: not-allowed;
    border-color: var(--border-color);
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
}

/* Dark Mode Pagination Overrides */
.dark-mode .pagination .page-link {
    background-color: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.dark-mode .pagination .page-link:hover {
    background-color: var(--bg-darker);
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.dark-mode .pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.dark-mode .pagination .page-item.disabled .page-link {
    background-color: var(--bg-darker);
    color: var(--text-muted);
    border-color: rgba(255, 255, 255, 0.05);
}

/* Contact Page Styles */
.contact-section {
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.contact-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-info-col {
    flex: 1;
    min-width: 300px;
}

.contact-form-col {
    flex: 1.5;
    min-width: 300px;
}

.contact-title {
    margin-bottom: 1.5rem;
}

.contact-description {
    color: #64748b;
    margin-bottom: 2rem;
}

.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-title {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.info-text {
    color: #64748b;
}

.contact-form-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-row-custom {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group-custom {
    flex: 1;
    margin-bottom: 1.5rem;
}

.form-row-custom .form-group-custom {
    margin-bottom: 0;
}

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

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--white);
    color: var(--text-color);
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Dark Mode Overrides for Contact Page */
.dark-mode .contact-info-card,
.dark-mode .contact-form-card {
    background: var(--bg-card);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .contact-description,
.dark-mode .info-text {
    color: var(--text-muted);
}

.dark-mode .form-label-custom {
    color: var(--text-light);
}

.dark-mode .form-control {
    background-color: var(--bg-dark);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.dark-mode .form-control:focus {
    border-color: var(--primary-color);
    background-color: var(--bg-dark);
}

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

.input-auto-width {
    width: auto !important;
    padding: 0.75rem !important;
}

/* Navbar Container Override */
.navbar .container {
    margin: 0 20px !important;
    max-width: none !important;
}

/* Promotional Banner */
.promo-section {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 4rem 0;
    margin: 3rem 20px;
    border-radius: 1rem;
    overflow: hidden;
    color: white;
}

.promo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.promo-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.promo-text {
    flex: 1;
    min-width: 300px;
}

.promo-badge {
    background-color: #9333ea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: bold;
    font-size: 0.875rem;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.promo-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.promo-discount {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    font-style: italic;
    color: #f472b6;
}

.promo-discount .highlight {
    color: #db2777;
}

.promo-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 500px;
}

.promo-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.promo-actions .btn-light {
    background-color: #9333ea;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.promo-actions .btn-light:hover {
    background-color: #7e22ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.promo-code {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-family: monospace;
    font-size: 1.1rem;
}

.promo-timer {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timer-circle {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.timer-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

#countdown {
    font-size: 4rem;
    font-weight: 700;
    font-family: monospace;
    line-height: 1;
}

.timer-unit {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .promo-section {
        text-align: center;
        margin: 2rem 1rem;
    }

    .promo-content {
        justify-content: center;
    }

    .promo-text h2,
    .promo-discount {
        font-size: 2rem;
    }

    .promo-actions {
        justify-content: center;
        flex-direction: column;
    }

    .timer-circle {
        width: 250px;
        height: 250px;
    }

    #countdown {
        font-size: 3rem;
    }
}

.nos-promos-style {
    padding-left: 2px !important;
    padding-right: 2px !important;
}

/* Styles removed in favor of consolidation above */

.admin-main {
    flex: 1;
    padding: 2rem;
    overflow-x: hidden;
}

/* Consolidated admin toggle in Admin Responsive section */

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.bg-blue-light {
    background-color: #eff6ff;
    color: #3b82f6;
}

.bg-green-light {
    background-color: #f0fdf4;
    color: #22c55e;
}

.bg-purple-light {
    background-color: #faf5ff;
    color: #a855f7;
}

.bg-orange-light {
    background-color: #fff7ed;
    color: #f97316;
}

.admin-sidebar-overlay.active {
    display: block;
}

/* Header Mobile Refinements */
@media (max-width: 768px) {
    .header-search {
        flex: 1;
        min-width: 0;
    }

    .header-actions {
        gap: 0.5rem;
    }
}

/* Checkout Mobile Refinements */
@media (max-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .checkout-sidebar {
        order: -1;
        /* Show summary first on mobile for better UX */
    }

    .summary-card {
        position: static !important;
    }
}

@media (max-width: 576px) {
    .form-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Homepage Redesign --- */

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 40%, rgba(255, 255, 255, 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    color: #2c3e50;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Section Common */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    padding-bottom: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Categories Round */
.categories-circles {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.category-circle-item {
    text-align: center;
    text-decoration: none;
}

.category-circle-img-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 4px solid var(--white);
}

.category-circle-item:hover .category-circle-img-wrapper {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-circle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-circle-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.category-circle-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Product Card Redesign */
.product-card {
    background: var(--white);
    border-radius: var(--border-radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.product-image-wrapper {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background: #f8f9fa;
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 1.25rem;
}

.product-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.product-rating {
    color: var(--accent-color);
    font-size: 0.85rem;
}

/* Why Choose Us Split */
.features-split-section {
    background: #F0Fdf4;
    /* Very light green */
    padding: 5rem 0;
}

.features-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-icon-box {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Newsletter Dark */
.newsletter-dark {
    background: #1a1a1a;
    padding: 5rem 0;
    color: white;
    text-align: center;
    border-radius: var(--border-radius-lg);
    margin: 3rem auto;
    position: relative;
    overflow: hidden;
}

.newsletter-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.2) 0%, transparent 100%);
}

.newsletter-input-group {
    display: flex;
    max-width: 500px;
    margin: 2rem auto 0;
    gap: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem 1.25rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-btn {
    background: var(--primary-color);
    color: #1a1a1a;
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}


/* --- Product Catalog Redesign --- */

/* Sidebar */
.sidebar-filters {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 700;
}

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

.filter-list li {
    margin-bottom: 0.75rem;
}

.filter-list li a {
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.filter-list li a:hover,
.filter-list li a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.filter-list li a::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 0.75rem;
    transition: all 0.2s;
}

.filter-list li a:hover::before,
.filter-list li a.active::before {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.filter-list li a.active::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='14px' height='14px'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

/* Color Swatches (Visual Only for now) */
.color-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 0 0 1px var(--border-color);
    transition: transform 0.2s;
}

.color-swatch:hover,
.color-swatch.active {
    transform: scale(1.2);
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* Price Range (Visual) */
.price-range-slider {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    position: relative;
    margin: 2rem 0 1rem;
}

.price-range-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--primary-color);
    width: 50%;
    /* Dummy width */
}

/* Layout */
.page-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
}

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

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

.products-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}


/* --- Utilities & Buttons --- */
.btn-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.2s;
    text-decoration: none;
}

.btn-icon-circle:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(15deg);
}

/* --- Product Detail Redesign --- */
.product-detail-container {
    padding: 4rem 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery */
.product-gallery-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
    background: #f8f9fa;
}

.product-gallery-thumbs {
    display: flex;
    gap: 1rem;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    border: 2px solid transparent;
    object-fit: cover;
}

.gallery-thumb.active {
    border-color: var(--primary-color);
}

/* Product Info */
.product-detail-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.product-detail-price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 1rem 0 2rem;
}

.product-short-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.product-meta {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: var(--border-radius-md);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.meta-item i {
    color: var(--primary-color);
    width: 20px;
}

/* Add to Cart Area */
.add-to-cart-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.qty-input {
    width: 80px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-full);
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-add-cart {
    flex: 1;
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    border-radius: var(--border-radius-full);
    padding: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(196, 163, 110, 0.4);
}