:root {
    /* Modern Vibrant Color Palette */
    --primary-color: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --primary-gradient: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);

    /* Secondary Colors */
    --secondary-color: #EC4899;
    --secondary-dark: #DB2777;
    --secondary-light: #F472B6;

    /* Accent Colors */
    --accent-teal: #14B8A6;
    --accent-orange: #F59E0B;
    --accent-coral: #FB7185;

    /* Dark Backgrounds (Mobile) */
    --bg-dark: #0F172A;
    --bg-darker: #020617;
    --bg-card: #1E293B;

    /* Light Theme (Desktop) */
    --text-color: #1E293B;
    --text-secondary: #475569;
    --light-bg: #F8FAFC;
    --white: #ffffff;
    --border-color: #E2E8F0;

    /* Dark Theme Text */
    --text-light: #F1F5F9;
    --text-muted: #94A3B8;

    /* Status Colors */
    --success-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --info-color: #3B82F6;

    /* Typography - Modern Font Stack */
    --font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --container-width: 1200px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(102, 102, 241, 0.3);
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background: linear-gradient(to bottom, #FFFFFF 0%, #F8FAFC 100%);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    -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: 800;
    margin-top: 0;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

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: var(--white);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--border-color);
}

.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: var(--secondary-color);
    font-size: 0.95rem;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-bar {
    position: relative;
    width: 300px;
}

.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;
}

.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.875rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 1rem;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 102, 241, 0.4);
}

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

.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: var(--white);
    padding: 5rem 0 2rem;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

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

.footer-brand p {
    color: var(--text-color);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-col h3 {
    color: var(--secondary-color);
    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: var(--text-color);
    font-size: 0.95rem;
}

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

.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;
}

body.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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

body.dark-mode .social-link:hover {
    color: var(--primary-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;
}

.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;
    max-width: 800px;
    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 */
body.dark-mode .checkout-section {
    background-color: var(--bg-dark) !important;
}

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

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

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

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

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

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

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

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

body.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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

body.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;
}

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

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

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

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

body.dark-mode .stat-card,
body.dark-mode .recent-orders,
body.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);
}

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

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

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

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

body.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;
}

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

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

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

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

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

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

body.dark-mode .profile-card,
body.dark-mode .orders-card,
body.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);
}

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

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

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

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

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

body.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;
}

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

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

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

body.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;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        order: 3;
        background-color: var(--white);
    }

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

    .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        text-align: center;
        display: block;
    }

    .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) {

    /* 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: var(--bg-darker) !important;
        padding: 1rem 0 !important;
        border-bottom-color: rgba(255, 255, 255, 0.1) !important;
        width: 100%;
    }

    .logo {
        font-size: 1.25rem;
        color: var(--white) !important;
    }

    .nav-link {
        color: var(--text-light) !important;
        padding: 0.875rem 0;
        font-size: 0.9rem;
    }

    .nav-links {
        background-color: var(--bg-darker) !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: var(--bg-darker) !important;
        border-top-color: rgba(255, 255, 255, 0.1) !important;
        padding: 3rem 0 1.5rem;
    }

    .footer-brand p,
    .footer-links a {
        color: var(--text-muted);
        font-size: 0.875rem;
    }

    .footer-col h3 {
        color: var(--text-light);
        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;
    }

    /* 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-sidebar {
    background: #0f172a;
    color: white;
    padding: 2rem 1rem;
    position: sticky;
    top: 73px;
    height: calc(100vh - 73px);
    overflow-y: auto;
}

.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: 0.75rem;
    padding: 0.75rem 1rem;
    color: #94a3b8;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-link-admin:hover,
.nav-link-admin.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

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

.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: 85px;
    left: 1rem;
    z-index: 999;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.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: 73px;
        height: calc(100vh - 73px);
        z-index: 1002;
        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(4, 1fr);
    gap: 2rem;
}

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

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

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

.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;
    height: 300px;
    overflow: hidden;
}

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

.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: var(--primary-color);
}

.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;
}