/* Centralized CSS for Masoko Tips Application */

:root {
    --primary-color: #1C592B;
    --primary-light: #81C784;
    --primary-dark: #388E3C;
    --secondary-color: #8BC34A;
    --secondary-light: #FFB74D;
    --secondary-dark: #F57C00;
    --accent-color: #2196F3;
    --background-color: #F5F5F5;
    --surface-color: #FFFFFF;
    --text-primary: #212121;
    --text-secondary: #757575;
    --error-color: #D32F2F;
    --success-color: #388E3C;
    --primary-color-rgb: 28, 89, 43;
}

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
}

/* Navbar Styles */
.navbar {
    transition: all 0.3s ease;
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    padding: 0;
    min-height: auto;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Fix zoom level issues */
.navbar > .container-fluid {
    min-height: auto;
    flex-direction: column;
}

.navbar > .container-fluid > div {
    min-height: auto;
    flex-shrink: 0;
}

/* Ensure navbar sections maintain structure at all zoom levels */
.navbar .d-flex {
    min-height: auto;
    flex-shrink: 0;
    align-items: center;
}

.navbar .w-100 {
    width: 100% !important;
    min-width: 100%;
}

.navbar .py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.navbar .py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.navbar .border-bottom {
    border-bottom: 1px solid #dee2e6 !important;
}

.navbar .border-top {
    border-top: 1px solid #dee2e6 !important;
}

/* Fix search bar at all zoom levels */
.navbar .flex-grow-1 {
    flex-grow: 1 !important;
    min-width: 0;
    max-width: 500px;
}

/* Fix navbar top row layout */
.navbar .d-flex.align-items-center.justify-content-between.w-100 {
    gap: 1rem !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Ensure logo section doesn't shrink */
.navbar .navbar-brand {
    flex-shrink: 0;
    margin-right: 1.5rem;
}

/* Ensure search section is properly sized */
.navbar .flex-grow-1.mx-4 {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 500px;
}

/* Ensure right actions section is properly positioned */
.navbar .d-flex.align-items-center.gap-3 {
    flex-shrink: 0;
    margin-left: auto;
}

.navbar .mx-4 {
    margin-left: 1.5rem !important;
    margin-right: 1.5rem !important;
}

/* Ensure proper spacing between elements */
.navbar .gap-3 {
    gap: 1rem !important;
}

.navbar .gap-4 {
    gap: 1.5rem !important;
}

.navbar .me-4 {
    margin-right: 1.5rem !important;
}

/* Fix dropdown positioning */
.navbar .dropdown {
    position: relative;
    z-index: 999999 !important;
}

/* Additional navbar fixes */
.navbar .input-group {
    max-width: 500px;
}

.navbar .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px 0 0 8px;
    transition: all 0.3s ease;
}

.navbar .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.navbar .btn {
    border-radius: 0 8px 8px 0;
    border: 2px solid var(--success-color);
    border-left: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.navbar .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Navbar structure fixes */
.navbar .container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    overflow: visible;
    min-width: 0;
}

/* Ensure navbar doesn't cut off content */
.navbar {
    overflow: visible;
    min-width: 0;
}

/* Match landing page navbar exactly */
.navbar .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    max-width: none;
    width: 100%;
}

.navbar .container-fluid > div {
    min-height: auto;
    flex-shrink: 0;
}

/* Ensure exact width matching */
.navbar .w-100 {
    width: 100% !important;
    min-width: 100%;
    max-width: 100%;
}

/* Add proper spacing like landing page */
.navbar .me-4 {
    margin-right: 1.5rem !important;
}

.navbar .mx-4 {
    margin-left: 1.5rem !important;
    margin-right: 1.5rem !important;
}

.navbar .flex-grow-1.mx-4 {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 500px;
}

/* Match landing page navbar structure exactly */
.navbar .d-flex.align-items-center.justify-content-between.w-100 {
    gap: 0 !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-width: 100%;
}

.navbar .d-flex.align-items-center.justify-content-between.w-100.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.navbar .d-flex.align-items-center.justify-content-between.w-100.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.navbar .border-bottom {
    border-bottom: 1px solid #dee2e6 !important;
}

.navbar .position-relative {
    position: relative;
}

.navbar .position-absolute {
    position: absolute;
}

.navbar .top-0 {
    top: 0;
}

.navbar .start-100 {
    left: 100%;
}

.navbar .translate-middle {
    transform: translate(-50%, -50%);
}

.navbar .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.navbar .rounded-pill {
    border-radius: 50rem;
}

.navbar .bg-danger {
    background-color: #dc3545 !important;
}

.navbar .bg-primary {
    background-color: var(--primary-color) !important;
}

.navbar .text-muted {
    color: #6c757d !important;
}

.navbar .fs-5 {
    font-size: 1rem !important;
}

/* Ensure icons are not too large */
.navbar .btn-link i {
    font-size: 1rem;
    line-height: 1;
}

/* Navbar spacer fix for fixed navbar */
.navbar + div[style*="height: 120px"] {
    height: 120px !important;
    display: block !important;
}

/* Mobile navbar fixes */
.navbar .navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar .navbar-toggler:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

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

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--primary-dark) !important;
    text-decoration: none;
}

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

.brand-tips {
    color: var(--success-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    font-weight: 600;
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
}

.navbar .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.navbar .dropdown-menu {
    background: white !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    margin-top: 5px !important;
    padding: 0 !important;
    min-width: 200px !important;
    z-index: 999999 !important;
    position: absolute !important;
    overflow: hidden !important;
}

.navbar .dropdown-menu-end {
    right: 0;
    left: auto;
}

.navbar .dropdown-item {
    color: #6c757d !important;
    padding: 0.75rem 1.5rem !important;
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
    margin: 0 !important;
    text-decoration: none !important;
    background: white !important;
}

.navbar .dropdown-item:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateX(5px);
    text-decoration: none;
}

.navbar .dropdown-header {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    padding: 0.5rem 1.5rem !important;
    background: white !important;
    margin: 0 !important;
}

.navbar .dropdown-divider {
    margin: 0 !important;
    background: white !important;
    border-top: 1px solid #e9ecef !important;
}

.navbar .btn-link {
    text-decoration: none;
    transition: all 0.3s ease;
    color: #6c757d;
    padding: 0.5rem;
    border-radius: 8px;
}

.navbar .btn-link:hover {
    transform: translateY(-1px);
    color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 4px;
}

.navbar .btn-outline-primary {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    background-color: transparent !important;
    transition: all 0.3s ease;
}

.navbar .btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(var(--primary-color-rgb), 0.2);
}

.navbar .btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.navbar .btn-success:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* All Categories button styling - match landing page */
.navbar .btn-success.dropdown-toggle {
    background-color: var(--success-color);
    border-color: var(--success-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar .btn-success.dropdown-toggle:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* Fix phone icon color and right actions positioning */
.navbar .text-primary {
    color: var(--primary-color) !important;
}

.navbar .text-muted {
    color: #6c757d !important;
}

/* Force phone icon to be blue */
.navbar .d-none.d-lg-block.text-muted {
    color: var(--primary-color) !important;
    font-weight: 500;
}

.navbar .d-none.d-lg-block.text-muted i {
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
}

.navbar .d-none.d-lg-block.text-muted:hover i {
    color: var(--primary-color) !important;
}

.navbar .d-none.d-lg-block.text-muted:hover {
    color: var(--primary-color) !important;
}

/* Add focus state for login button */
.navbar .btn-outline-primary:focus {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    background-color: transparent !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

/* Fix right actions section positioning */
.navbar .d-flex.align-items-center.gap-3 {
    gap: 1rem !important;
    flex-shrink: 0;
    min-width: max-content;
    margin-left: auto;
    justify-content: flex-end;
    overflow: visible;
    position: relative;
    z-index: 5;
}

/* Ensure right actions don't get clipped */
.navbar .d-flex.align-items-center.justify-content-between.w-100 {
    overflow: visible;
    min-width: 0;
    position: relative;
    z-index: 1;
}

/* Ensure right actions container doesn't get cut off */
.navbar .d-flex.align-items-center.justify-content-between.w-100 {
    overflow: visible;
    min-width: 0;
}

/* ===== RESPONSIVE DESIGN - Match Landing Page Exactly ===== */

/* Responsive Breakpoints */
@media (max-width: 1199px) {
    .navbar .phone-info {
        display: none !important;
    }
    
    .navbar .search-section {
        max-width: 400px;
    }
    
    .navbar .right-section {
        gap: 15px;
    }
}

@media (max-width: 991px) {
    .navbar .search-section {
        max-width: 300px;
    }
    
    .navbar .navbar-top-row {
        padding: 0.75rem 0;
    }
    
    .navbar .navbar-bottom-row {
        padding: 0.5rem 0;
    }
    
    .navbar .logo-section .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar .action-btn {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar .auth-buttons .btn {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 767px) {
    .navbar .search-section {
        max-width: 250px;
    }
    
    .navbar .navbar-top-row {
        padding: 0.5rem 0;
    }
    
    .navbar .navbar-bottom-row {
        padding: 0.25rem 0;
    }
    
    .navbar .logo-section .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar .action-btn {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
    
    .navbar .auth-buttons .btn {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 575px) {
    .navbar .search-section {
        max-width: 200px;
    }
    
    .navbar .navbar-top-row {
        padding: 0.25rem 0;
    }
    
    .navbar .navbar-bottom-row {
        padding: 0.25rem 0;
    }
    
    .navbar .logo-section .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar .action-btn {
        font-size: 0.75rem;
        padding: 0.15rem 0.3rem;
    }
    
    .navbar .auth-buttons .btn {
        font-size: 0.75rem;
        padding: 0.15rem 0.3rem;
    }
}

/* Responsive Navigation Menu */
@media (max-width: 991px) {
    .navbar .nav-menu,
    .navbar .d-flex.gap-4 {
        display: none !important;
    }
    
    .navbar .navbar-toggler {
        display: block !important;
    }
    
    .navbar .categories-section {
        margin-right: auto;
    }
}

@media (min-width: 992px) {
    .navbar .nav-menu,
    .navbar .d-flex.gap-4 {
        display: flex !important;
    }
    
    .navbar .navbar-toggler {
        display: none !important;
    }
}

/* Additional specific selectors for Home About Contact */
@media (max-width: 991px) {
    .navbar .d-flex.align-items-center.gap-4 {
        display: none !important;
    }
    
    .navbar .nav-link[href="#about"],
    .navbar .nav-link[href="#contact"] {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .navbar .d-flex.align-items-center.gap-4 {
        display: flex !important;
    }
    
    .navbar .nav-link[href="#about"],
    .navbar .nav-link[href="#contact"] {
        display: inline-block !important;
    }
}

/* Force hide Home About Contact on small screens */
@media (max-width: 991px) {
    .navbar .d-flex.align-items-center.justify-content-between.w-100.py-2 .d-flex.align-items-center.gap-4 {
        display: none !important;
    }
}

/* Ensure hamburger is visible on small screens */
@media (max-width: 991px) {
    .navbar .navbar-toggler {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Hide main navigation on small screens but keep mobile menu accessible */
@media (max-width: 991px) {
    .navbar .d-flex.align-items-center.gap-4 {
        display: none !important;
    }
    
    /* Keep mobile menu navigation links accessible */
    .navbar .collapse .nav-link[href="#about"],
    .navbar .collapse .nav-link[href="#contact"],
    .navbar .collapse .nav-link[href="{{ route('landing') }}"] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        position: static !important;
        left: auto !important;
    }
}

/* Show navigation elements on large screens */
@media (min-width: 992px) {
    .navbar .d-flex.align-items-center.gap-4,
    .navbar .d-flex.align-items-center.gap-4 *,
    .navbar .nav-link[href="#about"],
    .navbar .nav-link[href="#contact"],
    .navbar .nav-link[href="{{ route('landing') }}"] {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        height: auto !important;
    }
}

/* Responsive fixes for zoom levels */
@media screen and (min-resolution: 1dppx) {
    .navbar .d-flex {
        align-items: center !important;
    }
    
    .navbar .container-fluid {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* High DPI display fixes */
@media (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
    .navbar .py-3 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .navbar .py-2 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
}

/* Fix individual button positioning */
.navbar .btn-link {
    flex-shrink: 0;
    min-width: auto;
    padding: 0.5rem;
    margin: 0 0.25rem;
}

.navbar .btn {
    flex-shrink: 0;
    min-width: auto;
    white-space: nowrap;
    height: auto;
    line-height: 1.5;
    padding: 0.375rem 0.75rem;
}

/* Ensure auth buttons don't get cut off */
.navbar .d-flex.gap-2 {
    gap: 0.5rem !important;
    flex-shrink: 0;
    margin-left: 0.5rem;
    min-width: max-content;
    justify-content: flex-end;
}

/* Fix login button positioning and width - match landing page exactly */
.navbar .btn-outline-primary.btn-sm,
.navbar .btn-success.btn-sm {
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 80px !important;
    width: auto !important;
    margin: 0 0.25rem;
    position: relative;
    z-index: 10;
    padding: 0.375rem 0.75rem !important;
    font-size: 0.875rem !important;
}

/* Prevent login button hover cut-off */
.navbar .btn-outline-primary.btn-sm:hover,
.navbar .btn-outline-primary.btn-sm:focus {
    position: relative;
    z-index: 20;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(var(--primary-color-rgb), 0.2);
    min-width: 80px !important;
}

/* Ensure auth buttons container has proper overflow and width */
.navbar .d-flex.gap-2 {
    gap: 0.75rem !important;
    flex-shrink: 0;
    margin-left: 0.75rem;
    min-width: max-content;
    justify-content: flex-end;
    overflow: visible;
    position: relative;
    z-index: 5;
}

/* Force auth buttons to have proper width like landing page */
.navbar .d-flex.gap-2 .btn-outline-primary.btn-sm,
.navbar .d-flex.gap-2 .btn-success.btn-sm {
    min-width: 80px !important;
    width: auto !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 0.875rem !important;
    text-align: center;
}

/* Ensure right actions don't get cut off */
.navbar .right-section {
    margin-left: auto;
    flex-shrink: 0;
}

/* Fix phone section styling - make it blue like landing page */
.navbar .d-none.d-lg-block.text-muted {
    color: var(--primary-color) !important;
    font-weight: 500;
}

.navbar .d-none.d-lg-block.text-muted i {
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
}

.navbar .d-none.d-lg-block.text-muted:hover i {
    color: var(--primary-color) !important;
}

.navbar .d-none.d-lg-block.text-muted:hover {
    color: var(--primary-color) !important;
}

/* Login button styling - match landing page blue color exactly */
.navbar .btn-outline-primary {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    background-color: transparent !important;
    transition: all 0.3s ease;
}

.navbar .btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(var(--primary-color-rgb), 0.2);
}

.navbar .btn-outline-primary:focus {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    background-color: transparent !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

/* Fix button sizing and spacing - match landing page exactly */
.navbar .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

.navbar .btn {
    height: auto;
    line-height: 1.5;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.navbar .btn-link {
    height: auto;
    line-height: 1.5;
    padding: 0.25rem 0.5rem;
    border: none;
    background: transparent;
    box-shadow: none;
    font-size: 0.875rem;
}

/* Remove borders from cart/wishlist specifically */
.navbar .btn-link[href*="cart"],
.navbar .btn-link[href*="wishlist"],
.navbar .btn-link[href="#"] {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.navbar .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.navbar .btn-link:hover {
    transform: translateY(-2px);
}

.navbar .input-group .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px 0 0 8px;
    transition: all 0.3s ease;
}

.navbar .input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.navbar .input-group .btn {
    border-radius: 0 8px 8px 0;
    border: 2px solid var(--success-color);
    border-left: none;
}

.navbar #mobileMenu {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.navbar #mobileMenu .input-group {
    margin-bottom: 1rem;
}

.navbar #mobileMenu .d-flex.flex-column {
    gap: 0.5rem;
}

.navbar #mobileMenu .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar #mobileMenu .nav-link:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

.navbar #mobileMenu .py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.navbar #mobileMenu .py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.navbar #mobileMenu .nav-link {
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
}

.navbar #mobileMenu .nav-link:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Text Colors */
.text-primary {
    color: var(--primary-color) !important;
}

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

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

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

.border-left-primary {
    border-left: 4px solid var(--primary-color) !important;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1rem 1rem 0 0 !important;
    padding: 1.5rem;
}

/* Sidebar Styles */
.sidebar {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 0.5rem;
}

.main-content {
    padding: 2rem;
}

/* Footer Styles */
.footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-brand h4 {
    font-weight: 700;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

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

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-info .contact-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.newsletter-signup .input-group {
    max-width: 300px;
}

.newsletter-signup .form-control {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 6px 0 0 6px;
}

.newsletter-signup .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-signup .btn {
    border-radius: 0 6px 6px 0;
    border: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .footer-bottom-links {
        justify-content: center;
        margin-top: 15px;
    }
    
    .footer-bottom .text-md-end {
        text-align: center !important;
    }
}

/* Hover Effects */
.nav-link:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

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

        .subcategory-count i {
            color: var(--primary-color);
            font-size: 0.9rem;
        }

        /* ========================================
           CATEGORIES INDEX PAGE STYLES
           ======================================== */
        
        .categories-page {
            background-color: #f8f9fa;
            min-height: 100vh;
        }

        /* Page Header */
        .page-header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
            color: white;
            padding: 80px 0 60px 0;
            text-align: center;
            margin-top: 0;
            position: relative;
            box-shadow: 0 4px 20px rgba(28, 89, 43, 0.2);
        }

        .page-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
            pointer-events: none;
        }

        .main-title {
            font-size: 48px;
            font-weight: 700;
            margin: 0 0 20px 0;
            line-height: 1.2;
            padding-top: 0;
        }

        .subtitle {
            font-size: 18px;
            opacity: 0.9;
            margin: 0 auto 30px auto;
            line-height: 1.6;
            max-width: 600px;
            padding: 0 20px;
        }

        .back-btn {
            display: inline-block;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            text-decoration: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 500;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.3);
            margin-top: 10px;
        }

        .back-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            color: white;
            transform: translateY(-2px);
        }

        /* Categories Section */
        .categories-section {
            padding: 80px 0;
            background: white;
        }

        .categories-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .category-item {
            background: white;
            border: 1px solid #e9ecef;
            border-radius: 12px;
            padding: 30px;
            text-align: center;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            position: relative;
            overflow: hidden;
        }

        .category-item:hover {
            border-color: var(--primary-color);
            box-shadow: 0 4px 20px rgba(28, 89, 43, 0.15);
            transform: translateY(-5px);
        }

        .category-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--primary-color);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .category-item:hover::before {
            transform: scaleX(1);
        }

        /* Category Icon */
        .category-icon {
            width: 80px;
            height: 80px;
            background: var(--primary-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            color: white;
            font-size: 32px;
            transition: all 0.3s ease;
        }

        .category-item:hover .category-icon {
            background: var(--primary-dark);
            transform: scale(1.1);
        }

        /* Category Info */
        .category-info {
            margin-bottom: 25px;
        }

        .category-title {
            font-size: 24px;
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 12px;
            line-height: 1.3;
        }

        .category-desc {
            color: #6c757d;
            font-size: 15px;
            line-height: 1.5;
            margin-bottom: 20px;
            min-height: 45px;
        }

        .category-meta {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 8px;
            background: #f8f9fa;
            color: #6c757d;
            padding: 8px 12px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 500;
        }

        .meta-item i {
            color: var(--primary-color);
            font-size: 12px;
        }

        /* Category Action */
        .category-action {
            margin-top: 20px;
        }

        .action-btn {
            display: inline-block;
            background: var(--primary-color);
            color: white;
            text-decoration: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 500;
            font-size: 14px;
            transition: all 0.3s ease;
            border: none;
            width: 100%;
            text-align: center;
        }

        .action-btn:hover {
            background: var(--primary-dark);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(28, 89, 43, 0.3);
        }

        /* Categories Index Responsive Design */
        @media (max-width: 768px) {
            .main-title {
                font-size: 36px;
            }
            
            .subtitle {
                font-size: 16px;
            }
            
            .categories-grid {
                grid-template-columns: 1fr;
                gap: 20px;
                padding: 0 20px;
            }
            
            .categories-section {
                padding: 60px 0;
            }

            .page-header {
                padding: 50px 0;
            }
        }

        @media (max-width: 480px) {
            .main-title {
                font-size: 28px;
            }

            .page-header {
                padding: 40px 0;
            }
            
            .category-item {
                padding: 20px;
            }
            
            .category-meta {
                flex-direction: column;
                gap: 10px;
            }
        }

        /* ========================================
           CATEGORIES INDEX PAGE ADDITIONAL FIXES
           ======================================== */
        
        /* Ensure proper grid layout */
        .categories-grid {
            display: grid !important;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
            gap: 30px !important;
            max-width: 1200px !important;
            margin: 0 auto !important;
        }

        /* Fix category item dimensions and spacing */
        .category-item {
            background: white !important;
            border: 1px solid #e9ecef !important;
            border-radius: 12px !important;
            padding: 30px !important;
            text-align: center !important;
            transition: all 0.3s ease !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
            position: relative !important;
            overflow: hidden !important;
            min-height: 300px !important;
            display: flex !important;
            flex-direction: column !important;
            justify-content: space-between !important;
        }

        /* Fix category icon sizing */
        .category-icon {
            width: 80px !important;
            height: 80px !important;
            background: var(--primary-color) !important;
            border-radius: 50% !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            margin: 0 auto 20px !important;
            color: white !important;
            font-size: 32px !important;
            transition: all 0.3s ease !important;
            flex-shrink: 0 !important;
        }

        /* Fix category info spacing */
        .category-info {
            margin-bottom: 25px !important;
            flex: 1 !important;
            display: flex !important;
            flex-direction: column !important;
        }

        /* Fix category title sizing */
        .category-title {
            font-size: 24px !important;
            font-weight: 600 !important;
            color: var(--primary-color) !important;
            margin-bottom: 12px !important;
            line-height: 1.3 !important;
            word-wrap: break-word !important;
            overflow-wrap: break-word !important;
        }

        /* Fix category description */
        .category-desc {
            color: #6c757d !important;
            font-size: 15px !important;
            line-height: 1.5 !important;
            margin-bottom: 20px !important;
            min-height: 45px !important;
            word-wrap: break-word !important;
            overflow-wrap: break-word !important;
        }

        /* Fix category meta */
        .category-meta {
            display: flex !important;
            justify-content: center !important;
            gap: 20px !important;
            flex-wrap: wrap !important;
            margin-bottom: 20px !important;
        }

        .meta-item {
            display: flex !important;
            align-items: center !important;
            gap: 8px !important;
            background: #f8f9fa !important;
            color: #6c757d !important;
            padding: 8px 12px !important;
            border-radius: 20px !important;
            font-size: 13px !important;
            font-weight: 500 !important;
            white-space: nowrap !important;
        }

        .meta-item i {
            color: var(--primary-color) !important;
            font-size: 12px !important;
        }

        /* Fix category action button */
        .category-action {
            margin-top: auto !important;
        }

        .action-btn {
            display: inline-block !important;
            background: var(--primary-color) !important;
            color: white !important;
            text-decoration: none !important;
            padding: 12px 24px !important;
            border-radius: 8px !important;
            font-weight: 500 !important;
            font-size: 14px !important;
            transition: all 0.3s ease !important;
            border: none !important;
            width: 100% !important;
            text-align: center !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }

        .action-btn:hover {
            background: var(--primary-dark) !important;
            color: white !important;
            transform: translateY(-2px) !important;
            box-shadow: 0 4px 15px rgba(28, 89, 43, 0.3) !important;
        }

        /* Fix page header */
        .page-header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
            color: white !important;
            padding: 80px 0 60px 0 !important;
            text-align: center !important;
            margin-top: 0 !important;
            position: relative !important;
            box-shadow: 0 4px 20px rgba(28, 89, 43, 0.2) !important;
        }

        .main-title {
            font-size: 48px !important;
            font-weight: 700 !important;
            margin: 0 0 20px 0 !important;
            line-height: 1.2 !important;
            padding-top: 0 !important;
        }

        .subtitle {
            font-size: 18px !important;
            opacity: 0.9 !important;
            margin: 0 auto 30px auto !important;
            line-height: 1.6 !important;
            max-width: 600px !important;
            padding: 0 20px !important;
        }

        .back-btn {
            display: inline-block !important;
            background: rgba(255, 255, 255, 0.2) !important;
            color: white !important;
            text-decoration: none !important;
            padding: 12px 24px !important;
            border-radius: 8px !important;
            font-weight: 500 !important;
            transition: all 0.3s ease !important;
            border: 1px solid rgba(255, 255, 255, 0.3) !important;
            margin-top: 10px !important;
        }

        .back-btn:hover {
            background: rgba(255, 255, 255, 0.3) !important;
            color: white !important;
            transform: translateY(-2px) !important;
        }

        /* Fix categories section */
        .categories-section {
            padding: 80px 0 !important;
            background: white !important;
        }

        /* ========================================
           CATEGORIES SHOW PAGE STYLES
           ======================================== */
        
        .category-page {
            background-color: #f8f9fa;
        }

        /* Hero Section */
        .category-hero {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
            color: white;
            padding: 60px 0;
        }

        .breadcrumb-nav {
            margin-bottom: 30px;
        }

        .breadcrumb {
            background: transparent;
            padding: 0;
            margin: 0;
        }

        .breadcrumb-item {
            font-size: 14px;
        }

        .breadcrumb-link {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .breadcrumb-link:hover {
            color: white;
        }

        .breadcrumb-item.active {
            color: white;
            font-weight: 500;
        }

        .category-title {
            font-size: 48px;
            font-weight: 700;
            margin-bottom: 20px;
            line-height: 1.2;
        }

        .category-description {
            font-size: 18px;
            opacity: 0.9;
            margin-bottom: 40px;
            line-height: 1.6;
            max-width: 600px;
        }

        .category-stats {
            display: flex;
            gap: 40px;
            flex-wrap: wrap;
        }

        .stat-item {
            text-align: center;
        }

        .stat-number {
            font-size: 32px;
            font-weight: 700;
            line-height: 1;
            margin-bottom: 8px;
        }

        .stat-label {
            font-size: 14px;
            opacity: 0.8;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .category-icon {
            width: 120px;
            height: 120px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            color: white;
            font-size: 48px;
        }

        /* Subcategories Section */
        .subcategories-section {
            padding: 80px 0;
            background: white;
        }

        .section-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .section-title {
            font-size: 36px;
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 16px;
        }

        .section-subtitle {
            font-size: 18px;
            color: #6c757d;
            margin: 0;
        }

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

        .subcategory-card {
            background: white;
            border: 1px solid #e9ecef;
            border-radius: 16px;
            padding: 30px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .subcategory-card:hover {
            border-color: var(--primary-color);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            transform: translateY(-5px);
        }

        .card-icon {
            width: 80px;
            height: 80px;
            background: var(--primary-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            color: white;
            font-size: 32px;
        }

        .card-content {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .subcategory-name {
            font-size: 22px;
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 12px;
            line-height: 1.3;
        }

        .subcategory-description {
            color: #6c757d;
            font-size: 15px;
            line-height: 1.5;
            margin-bottom: 20px;
            flex: 1;
        }

        .card-meta {
            margin-bottom: 25px;
        }

        .product-count {
            background: #e8f5e8;
            color: var(--primary-color);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
        }

        .card-action {
            margin-top: auto;
        }

        .explore-btn {
            display: inline-block;
            background: var(--primary-color);
            color: white;
            text-decoration: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 500;
            font-size: 14px;
            transition: all 0.3s ease;
            border: none;
            width: 100%;
            text-align: center;
        }

        .explore-btn:hover {
            background: var(--primary-light);
            color: white;
            transform: translateY(-2px);
        }

        /* Products Grid */
        .products-grid-section {
            background: white;
            padding: 60px 0;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
            margin-top: 40px;
        }

        .product-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            border: 1px solid #e9ecef;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            border-color: var(--primary-color);
        }

        .product-image {
            height: 200px;
            position: relative;
            overflow: hidden;
        }

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

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

        .product-placeholder {
            width: 100%;
            height: 100%;
            background: #f8f9fa;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #adb5bd;
            font-size: 32px;
        }

        .product-details {
            padding: 20px;
        }

        .product-name {
            font-size: 16px;
            font-weight: 600;
            color: #212529;
            margin-bottom: 10px;
            line-height: 1.3;
        }

        .product-name a {
            color: inherit;
            text-decoration: none;
        }

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

        .product-price {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 10px;
        }

        .product-seller {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 15px;
            font-size: 14px;
            color: #6c757d;
        }

        .seller-name {
            font-weight: 600;
            color: #495057;
        }

        .product-actions {
            text-align: center;
        }

        .btn-view-details {
            display: inline-block;
            background: var(--primary-color);
            color: white;
            text-decoration: none;
            padding: 10px 20px;
            border-radius: 6px;
            font-weight: 500;
            font-size: 13px;
            transition: all 0.3s ease;
            width: 100%;
        }

        .btn-view-details:hover {
            background: var(--primary-light);
            color: white;
            transform: translateY(-2px);
        }

        /* No Results */
        .no-subcategories,
        .no-products {
            text-align: center;
            padding: 60px 20px;
            color: #6c757d;
        }

        .no-subcategories h3,
        .no-products h3 {
            color: var(--primary-color);
            margin-bottom: 16px;
        }

        .no-subcategories p,
        .no-products p {
            color: #6c757d;
            font-size: 16px;
            margin-bottom: 30px;
        }

        /* Categories Show Responsive Design */
        @media (max-width: 768px) {
            .category-title {
                font-size: 36px;
            }
            
            .category-description {
                font-size: 16px;
            }
            
            .subcategories-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .products-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .category-stats {
                gap: 30px;
            }
            
            .section-title {
                font-size: 28px;
            }
        }

        @media (max-width: 480px) {
            .category-hero {
                padding: 40px 0;
            }
            
            .subcategories-section {
                padding: 60px 0;
            }
            
            .subcategory-card {
                padding: 20px;
            }
            
            .category-stats {
                flex-direction: column;
                gap: 20px;
            }
        }

        /* ========================================
           SUBCATEGORY PAGE STYLES
           ======================================== */
        
        .subcategory-page {
            background-color: #f8f9fa;
        }

        /* Hero Section */
        .subcategory-hero {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
            color: white;
            padding: 60px 0;
        }

        .subcategory-title {
            font-size: 48px;
            font-weight: 700;
            margin-bottom: 20px;
            line-height: 1.2;
        }

        .subcategory-description {
            font-size: 18px;
            opacity: 0.9;
            margin-bottom: 40px;
            line-height: 1.6;
            max-width: 600px;
        }

        .subcategory-stats {
            display: flex;
            gap: 40px;
            flex-wrap: wrap;
        }

        .subcategory-icon {
            width: 120px;
            height: 120px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            color: white;
            font-size: 48px;
        }

        /* Main Content Section */
        .main-content-section {
            padding: 60px 0;
            background: white;
        }

        /* Left Sidebar - Categories */
        .sidebar-categories {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            padding: 16px;
            position: sticky;
            top: 20px;
        }

        .sidebar-header {
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 2px solid #f0f0f0;
            position: relative;
        }

        .sidebar-header::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 40px;
            height: 2px;
            background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
            border-radius: 1px;
        }

        .sidebar-title {
            font-size: 18px;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 6px;
            letter-spacing: -0.5px;
        }

        .sidebar-subtitle {
            font-size: 13px;
            color: #7f8c8d;
            margin: 0;
            font-weight: 400;
        }

        /* Clean categories list - Farmart style */
        .categories-list {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .categories-list .category-item {
            display: flex;
            align-items: center;
            margin: 0;
            padding: 14px 20px;
            background: none;
            border: none;
            border-radius: 8px;
            text-decoration: none;
            color: #555;
            transition: all 0.3s ease;
            margin-bottom: 6px;
            position: relative;
            overflow: hidden;
        }

        .categories-list .category-item:hover {
            color: var(--primary-color);
            background: rgba(28, 89, 43, 0.06);
            transform: translateX(4px);
        }

        .categories-list .category-item:last-child {
            margin-bottom: 0;
        }

        /* Clean text layout - no icons */
        .categories-list .category-item .category-content {
            display: block;
            padding: 0;
            margin: 0;
            flex: 1;
            text-align: left;
            width: 100%;
        }

        .categories-list .category-item .category-name {
            font-size: 16px;
            font-weight: 500;
            margin: 0;
            padding: 0;
            line-height: 1.4;
            position: relative;
            text-align: left;
            color: inherit;
            width: 100%;
        }

        /* Current category - appealing highlight */
        .category-item.current-category {
            background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
            border: none !important;
            color: white !important;
            font-weight: 600 !important;
            padding: 14px 18px !important;
            margin: 0 !important;
            min-height: auto !important;
            box-shadow: 0 6px 20px rgba(28, 89, 43, 0.3);
            transform: translateX(0);
        }

        .category-item.current-category .category-name {
            color: white !important;
            font-weight: 600 !important;
            font-size: 17px;
            text-align: left;
        }



        /* Back button - simple style */
        .back-to-parent {
            margin-top: 16px;
            padding-top: 12px;
            border-top: 1px solid #e9ecef;
        }

        .btn-back {
            display: inline-block;
            background: none;
            color: var(--primary-color);
            text-decoration: none;
            padding: 6px 0;
            font-size: 13px;
            font-weight: 500;
            transition: color 0.2s ease;
        }

        .btn-back:hover {
            color: var(--primary-dark);
            background: none;
        }

        /* Custom Scrollbar for Sidebar */
        .sidebar-categories::-webkit-scrollbar {
            width: 6px;
        }

        .sidebar-categories::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }

        .sidebar-categories::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 3px;
        }

        .sidebar-categories::-webkit-scrollbar-thumb:hover {
            background: var(--primary-light);
        }

        /* Sidebar Optimizations */
        @media (max-width: 1200px) {
            .sidebar-categories {
                padding: 16px;
            }
            
            .category-item {
                padding: 8px;
                margin-bottom: 4px;
                min-height: 44px;
            }
            
            .category-icon {
                width: 32px;
                height: 32px;
                font-size: 14px;
                margin-right: 10px;
            }
            
            .category-name {
                font-size: 13px;
            }
            
            .category-count {
                font-size: 11px;
            }
        }

        @media (max-width: 768px) {
            .sidebar-categories {
                position: static;
                margin-bottom: 24px;
            }
            
            .category-item {
                padding: 10px;
                margin-bottom: 6px;
                min-height: 48px;
            }
            
            .category-icon {
                width: 36px;
                height: 36px;
                font-size: 16px;
                margin-right: 12px;
            }
        }

        /* Right Panel - Products */
        .products-panel {
            background: white;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            padding: 32px;
        }

        .products-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 32px;
            padding-bottom: 24px;
            border-bottom: 1px solid #e9ecef;
        }

        .header-left {
            flex: 1;
        }

        .products-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 8px;
        }

        .products-subtitle {
            font-size: 16px;
            color: #6c757d;
            margin: 0;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .view-options {
            display: flex;
            background: #f8f9fa;
            border-radius: 8px;
            padding: 4px;
        }

        .view-btn {
            background: transparent;
            border: none;
            padding: 8px 12px;
            border-radius: 6px;
            color: #6c757d;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .view-btn.active,
        .view-btn:hover {
            background: var(--primary-color);
            color: white;
        }

        .sort-select {
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 8px 12px;
            font-size: 14px;
            color: var(--primary-color);
            background: white;
        }

        .sort-select:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.2rem rgba(28, 89, 43, 0.25);
        }

        /* Products Grid */
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 24px;
            margin-bottom: 40px;
        }

        .product-card {
            background: white;
            border: 1px solid #e9ecef;
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.3s ease;
            position: relative;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .product-card:hover {
            border-color: var(--primary-color);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            transform: translateY(-5px);
        }

        .product-image {
            height: 200px;
            position: relative;
            overflow: hidden;
        }

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

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

        .featured-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            background: var(--secondary-color);
            color: white;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 600;
            z-index: 2;
        }

        .product-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .product-card:hover .product-overlay {
            opacity: 1;
        }

        .quick-view-btn,
        .wishlist-btn {
            background: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .quick-view-btn:hover,
        .wishlist-btn:hover {
            background: var(--primary-color);
            color: white;
            transform: scale(1.1);
        }

        .product-details {
            padding: 20px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .product-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .product-category {
            font-size: 12px;
            color: #6c757d;
            background: #f8f9fa;
            padding: 4px 8px;
            border-radius: 12px;
        }

        .product-featured {
            font-size: 11px;
            color: var(--secondary-color);
            background: rgba(139, 195, 74, 0.1);
            padding: 4px 8px;
            border-radius: 12px;
            font-weight: 600;
        }

        .product-name {
            font-size: 18px;
            font-weight: 600;
            color: #212529;
            margin-bottom: 12px;
            line-height: 1.3;
            height: 48px;
            overflow: hidden;
        }

        .product-seller {
            color: #6c757d;
            font-size: 14px;
            margin-bottom: 16px;
        }

        .product-price-section {
            margin-bottom: 20px;
        }

        .product-price {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 8px;
        }

        .product-stock {
            color: #28a745;
            font-size: 13px;
        }

        .product-actions {
            margin-top: auto;
            display: flex;
            gap: 12px;
        }

        .btn-view-details,
        .btn-contact-seller {
            flex: 1;
            padding: 10px 16px;
            border-radius: 8px;
            font-weight: 500;
            font-size: 13px;
            text-decoration: none;
            text-align: center;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
        }

        .btn-view-details {
            background: var(--primary-color);
            color: white;
        }

        .btn-view-details:hover {
            background: var(--primary-light);
            color: white;
            transform: translateY(-2px);
        }

        .btn-contact-seller {
            background: transparent;
            color: var(--primary-color);
            border: 1px solid var(--primary-color);
        }

        .btn-contact-seller:hover {
            background: var(--primary-color);
            color: white;
            transform: translateY(-2px);
        }

        /* No Products State */
        .no-products {
            text-align: center;
            padding: 80px 20px;
        }

        .no-products h3 {
            color: var(--primary-color);
            margin-bottom: 16px;
        }

        .no-products p {
            color: #6c757d;
            font-size: 16px;
            margin-bottom: 30px;
        }

        /* Pagination */
        .pagination-wrapper {
            text-align: center;
            margin-top: 40px;
        }

        .pagination-wrapper .pagination {
            justify-content: center;
        }

        .pagination-wrapper .page-link {
            color: var(--primary-color);
            border-color: #dee2e6;
        }

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

        /* CTA Section */
        .cta-section {
            padding: 60px 0;
            background: var(--primary-color);
            color: white;
            text-align: center;
        }

        .cta-content h3 {
            font-size: 28px;
            font-weight: 600;
            margin-bottom: 16px;
        }

        .cta-content p {
            font-size: 16px;
            opacity: 0.9;
            margin-bottom: 30px;
        }

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

        .cta-buttons .btn {
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .cta-buttons .btn:hover {
            transform: translateY(-2px);
        }

        /* Subcategory Responsive Design */
        @media (max-width: 991px) {
            .sidebar-categories {
                position: static;
                margin-bottom: 30px;
            }
            
            .products-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 20px;
            }
            
            .header-right {
                width: 100%;
                justify-content: space-between;
            }
        }

        @media (max-width: 768px) {
            .subcategory-title {
                font-size: 36px;
            }
            
            .subcategory-description {
                font-size: 16px;
            }
            
            .products-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .subcategory-stats {
                gap: 30px;
            }
            
            .products-title {
                font-size: 24px;
            }
            
            .cta-buttons {
                flex-direction: column;
                align-items: center;
            }
            
            .cta-buttons .btn {
                width: 100%;
                max-width: 250px;
            }
            
            .main-content-section {
                padding: 40px 0;
            }
            
            .products-panel {
                padding: 20px;
            }
        }

        @media (max-width: 480px) {
            .subcategory-hero {
                padding: 40px 0;
            }
            
            .subcategory-stats {
                flex-direction: column;
                gap: 20px;
            }
            
            .sidebar-categories {
                padding: 16px;
            }
            
            .category-item {
                padding: 12px;
            }
            
            .product-actions {
                flex-direction: column;
                gap: 8px;
            }
        }

        /* ========================================
           ADDITIONAL SUBCATEGORY PAGE STYLES
           ======================================== */
        
        /* Breadcrumb Styles */
        .breadcrumb-nav {
            margin-bottom: 30px;
        }

        .breadcrumb {
            background: transparent;
            padding: 0;
            margin: 0;
        }

        .breadcrumb-item {
            font-size: 14px;
        }

        .breadcrumb-link {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .breadcrumb-link:hover {
            color: white;
        }

        .breadcrumb-item.active {
            color: white;
            font-weight: 500;
        }

        /* Product Placeholder */
        .product-placeholder {
            width: 100%;
            height: 100%;
            background: #f8f9fa;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #adb5bd;
            font-size: 32px;
        }

        /* List View Support */
        .products-grid.list-view .product-card {
            display: flex;
            flex-direction: row;
        }

        .products-grid.list-view .product-image {
            width: 200px;
            height: 150px;
            flex-shrink: 0;
        }

        .products-grid.list-view .product-details {
            flex: 1;
            padding: 20px;
        }

        /* ========================================
           SUBCATEGORY PAGE FIXES
           ======================================== */
        
        /* Ensure proper spacing and layout */
        .subcategory-page {
            min-height: 100vh;
        }

        /* Fix sidebar positioning */
        .sidebar-categories {
            position: sticky;
            top: 20px;
            z-index: 10;
        }

        /* Ensure product cards have proper dimensions */
        .product-card {
            min-height: 400px;
            display: flex;
            flex-direction: column;
        }

        .product-image {
            min-height: 200px;
            position: relative;
            overflow: hidden;
        }

        .product-details {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        /* Fix button styling */
        .btn-view-details,
        .btn-contact-seller {
            display: inline-block;
            text-align: center;
            text-decoration: none;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            border-radius: 8px;
        }

        .btn-view-details {
            background: var(--primary-color);
            color: white;
            padding: 10px 16px;
        }

        .btn-contact-seller {
            background: transparent;
            color: var(--primary-color);
            border: 1px solid var(--primary-color);
            padding: 10px 16px;
        }

        /* Ensure proper grid layout */
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 24px;
            margin-bottom: 40px;
        }

        /* Fix category item styling */
        .category-item {
            display: flex;
            align-items: center;
            padding: 16px;
            margin-bottom: 12px;
            background: #f8f9fa;
            border-radius: 12px;
            text-decoration: none;
            color: inherit;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            cursor: pointer;
        }

        .category-item:hover {
            background: white;
            border-color: var(--primary-color);
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(28, 89, 43, 0.1);
        }

        .category-item.current-category {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        /* Fix category icon styling */
        .category-icon {
            width: 48px;
            height: 48px;
            background: var(--primary-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 16px;
            color: white;
            font-size: 20px;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .category-item.current-category .category-icon {
            background: white;
            color: var(--primary-color);
        }

        /* Fix category content styling */
        .category-content {
            flex: 1;
            min-width: 0;
        }

        .category-name {
            font-size: 16px;
            font-weight: 600;
            color: var(--primary-color);
            margin: 0 0 4px 0;
            line-height: 1.3;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .category-item.current-category .category-name {
            color: white;
        }

        .category-count {
            font-size: 13px;
            color: #6c757d;
        }

        .category-item.current-category .category-count {
            color: rgba(255, 255, 255, 0.8);
        }

        /* Fix products panel styling */
        .products-panel {
            background: white;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            padding: 32px;
            height: 100%;
        }

        .products-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 32px;
            padding-bottom: 24px;
            border-bottom: 1px solid #e9ecef;
        }

        .header-left {
            flex: 1;
        }

        .products-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 8px;
        }

        .products-subtitle {
            font-size: 16px;
            color: #6c757d;
            margin: 0;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .view-options {
            display: flex;
            background: #f8f9fa;
            border-radius: 8px;
            padding: 4px;
        }

        .view-btn {
            background: transparent;
            border: none;
            padding: 8px 12px;
            border-radius: 6px;
            color: #6c757d;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .view-btn.active,
        .view-btn:hover {
            background: var(--primary-color);
            color: white;
        }

        .sort-select {
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 8px 12px;
            font-size: 14px;
            color: var(--primary-color);
            background: white;
        }

        .sort-select:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.2rem rgba(28, 89, 43, 0.25);
        }

        /* Fix product meta and actions */
        .product-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .product-category {
            font-size: 12px;
            color: #6c757d;
            background: #f8f9fa;
            padding: 4px 8px;
            border-radius: 12px;
        }

        .product-featured {
            font-size: 11px;
            color: var(--secondary-color);
            background: rgba(139, 195, 74, 0.1);
            padding: 4px 8px;
            border-radius: 12px;
            font-weight: 600;
        }

        .product-name {
            font-size: 18px;
            font-weight: 600;
            color: #212529;
            margin-bottom: 12px;
            line-height: 1.3;
            height: 48px;
            overflow: hidden;
        }

        .product-seller {
            color: #6c757d;
            font-size: 14px;
            margin-bottom: 16px;
        }

        .product-price-section {
            margin-bottom: 20px;
        }

        .product-price {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 8px;
        }

        .product-stock {
            color: #28a745;
            font-size: 13px;
        }

        .product-actions {
            margin-top: auto;
            display: flex;
            gap: 12px;
        }

        /* Fix featured badge and overlay */
        .featured-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            background: var(--secondary-color);
            color: white;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 600;
            z-index: 2;
        }

        .product-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .product-card:hover .product-overlay {
            opacity: 1;
        }

        .quick-view-btn,
        .wishlist-btn {
            background: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .quick-view-btn:hover,
        .wishlist-btn:hover {
            background: var(--primary-color);
            color: white;
            transform: scale(1.1);
        }

        /* Fix no products and pagination */
        .no-products {
            text-align: center;
            padding: 80px 20px;
        }

        .no-products h3 {
            color: var(--primary-color);
            margin-bottom: 16px;
        }

        .no-products p {
            color: #6c757d;
            font-size: 16px;
            margin-bottom: 30px;
        }

        .pagination-wrapper {
            text-align: center;
            margin-top: 40px;
        }

        .pagination-wrapper .pagination {
            justify-content: center;
        }

        .pagination-wrapper .page-link {
            color: var(--primary-color);
            border-color: #dee2e6;
        }

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

        /* Fix CTA section */
        .cta-section {
            padding: 60px 0;
            background: var(--primary-color);
            color: white;
            text-align: center;
        }

        .cta-content h3 {
            font-size: 28px;
            font-weight: 600;
            margin-bottom: 16px;
        }

        .cta-content p {
            font-size: 16px;
            opacity: 0.9;
            margin-bottom: 30px;
        }

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

        .cta-buttons .btn {
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .cta-buttons .btn:hover {
            transform: translateY(-2px);
        }

        /* Fix back button styling */
        .back-to-parent {
            padding-top: 20px;
            border-top: 1px solid #e9ecef;
        }

        .btn-back {
            display: block;
            width: 100%;
            background: var(--primary-color);
            color: white;
            text-decoration: none;
            padding: 12px 16px;
            border-radius: 8px;
            font-weight: 500;
            text-align: center;
            transition: all 0.3s ease;
        }

        .btn-back:hover {
            background: var(--primary-light);
            color: white;
            transform: translateY(-2px);
        }

        /* Fix sidebar header styling */
        .sidebar-header {
            margin-bottom: 24px;
            padding-bottom: 20px;
            border-bottom: 1px solid #e9ecef;
        }

        .sidebar-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 8px;
        }

        .sidebar-subtitle {
            font-size: 14px;
            color: #6c757d;
            margin: 0;
        }

        .categories-list {
            margin-bottom: 24px;
        }

        /* Ensure proper spacing for main content */
        .main-content-section {
            padding: 60px 0;
            background: white;
        }

        /* Fix hero section styling */
        .subcategory-hero {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
            color: white;
            padding: 60px 0;
        }

        .subcategory-title {
            font-size: 48px;
            font-weight: 700;
            margin-bottom: 20px;
            line-height: 1.2;
        }

        .subcategory-description {
            font-size: 18px;
            opacity: 0.9;
            margin-bottom: 40px;
            line-height: 1.6;
            max-width: 600px;
        }

        .subcategory-stats {
            display: flex;
            gap: 40px;
            flex-wrap: wrap;
        }

        .stat-item {
            text-align: center;
        }

        .stat-number {
            font-size: 32px;
            font-weight: 700;
            line-height: 1;
            margin-bottom: 8px;
        }

        .stat-label {
            font-size: 14px;
            opacity: 0.8;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .subcategory-icon {
            width: 120px;
            height: 120px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            color: white;
            font-size: 48px;
        }

        /* ========================================
           CART PAGE STYLES
           ======================================== */
        
        .cart-page {
            background-color: #f8f9fa;
            min-height: 100vh;
        }

        /* Cart Header */
        .cart-header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
            color: white;
            padding: 60px 0;
        }

        .cart-title {
            font-size: 48px;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .cart-subtitle {
            font-size: 18px;
            opacity: 0.9;
            margin: 0;
        }

        .cart-summary-mini {
            text-align: right;
        }

        .cart-count {
            font-size: 16px;
            opacity: 0.8;
            margin-bottom: 5px;
        }

        .cart-total {
            font-size: 24px;
            font-weight: 700;
        }

        /* Cart Content */
        .cart-content {
            padding: 60px 0;
        }

        .cart-items-container {
            background: white;
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
        }

        .cart-items-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid #e9ecef;
        }

        .cart-items-header h3 {
            color: var(--primary-color);
            margin: 0;
            font-size: 24px;
        }

        /* Cart Items */
        .cart-items {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .cart-item {
            display: flex;
            gap: 20px;
            padding: 25px;
            border: 1px solid #e9ecef;
            border-radius: 12px;
            background: white;
            transition: all 0.3s ease;
        }

        .cart-item:hover {
            border-color: var(--primary-color);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .item-image {
            width: 120px;
            height: 120px;
            border-radius: 8px;
            overflow: hidden;
            flex-shrink: 0;
        }

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

        .item-placeholder {
            width: 100%;
            height: 100%;
            background: #f8f9fa;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #adb5bd;
            font-size: 24px;
        }

        .item-details {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .item-info h4 {
            margin: 0 0 8px 0;
            font-size: 18px;
            font-weight: 600;
            color: #212529;
        }

        .item-info h4 a {
            color: inherit;
            text-decoration: none;
        }

        .item-info h4 a:hover {
            color: var(--primary-color);
        }

        .item-category,
        .item-seller {
            font-size: 14px;
            color: #6c757d;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .item-price {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .price-per-unit {
            font-size: 14px;
            color: #6c757d;
        }

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

        .item-quantity {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .item-quantity label {
            font-weight: 600;
            color: #495057;
            font-size: 14px;
        }

        .quantity-controls {
            display: flex;
            align-items: center;
            gap: 10px;
            max-width: 150px;
        }

        .quantity-btn {
            width: 35px;
            height: 35px;
            border: 1px solid #dee2e6;
            background: white;
            border-radius: 6px;
            font-size: 14px;
            color: var(--primary-color);
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

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

        .quantity-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .quantity-input {
            width: 60px;
            height: 35px;
            text-align: center;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
        }

        .stock-info {
            font-size: 12px;
        }

        .item-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .item-actions .btn {
            font-size: 12px;
            padding: 6px 12px;
        }

        /* Cart Actions */
        .cart-actions {
            padding-top: 30px;
            border-top: 1px solid #e9ecef;
        }

        /* Empty Cart */
        .empty-cart {
            background: white;
            border-radius: 16px;
            padding: 80px 30px;
            text-align: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .empty-cart h3 {
            color: var(--primary-color);
            margin-bottom: 15px;
        }

        .empty-cart p {
            color: #6c757d;
            margin-bottom: 30px;
            font-size: 16px;
        }

        /* Order Summary */
        .order-summary {
            background: white;
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 20px;
        }

        .summary-title {
            color: var(--primary-color);
            margin-bottom: 25px;
            font-size: 20px;
            font-weight: 600;
        }

        .summary-items {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-bottom: 25px;
        }

        .summary-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #f8f9fa;
        }

        .summary-item.total {
            border-bottom: none;
            font-size: 18px;
            font-weight: 700;
            color: var(--primary-color);
            padding-top: 20px;
            border-top: 2px solid #e9ecef;
        }

        .summary-item.discount {
            color: #28a745;
            font-weight: 600;
        }

        .shipping-options select {
            border: 1px solid #dee2e6;
            border-radius: 6px;
            padding: 6px 12px;
            font-size: 14px;
            background: white;
        }

        /* Promo Code */
        .promo-code {
            margin-bottom: 25px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 12px;
        }

        .promo-code h4 {
            font-size: 16px;
            color: #495057;
            margin-bottom: 15px;
        }

        .promo-code .input-group {
            gap: 10px;
        }

        .promo-code .form-control {
            border: 1px solid #dee2e6;
            border-radius: 6px;
            padding: 10px 15px;
        }

        /* Checkout Button */
        .checkout-btn {
            margin-bottom: 20px;
            padding: 15px 20px;
            font-weight: 600;
            border-radius: 8px;
        }

        /* Security Info */
        .security-info {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding-top: 20px;
            border-top: 1px solid #e9ecef;
        }

        .security-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            color: #6c757d;
        }

        /* Cart Responsive Design */
        @media (max-width: 768px) {
            .cart-title {
                font-size: 36px;
            }
            
            .cart-item {
                flex-direction: column;
                text-align: center;
            }
            
            .item-image {
                width: 100%;
                height: 200px;
            }
            
            .item-actions {
                justify-content: center;
            }
            
            .cart-actions .row {
                text-align: center;
            }
            
            .cart-actions .col-md-6 {
                margin-bottom: 15px;
            }
            
            .order-summary {
                position: static;
                margin-top: 30px;
            }
        }

        @media (max-width: 480px) {
            .cart-header {
                padding: 40px 0;
            }
            
            .cart-content {
                padding: 40px 0;
            }
            
            .cart-items-container,
            .order-summary {
                padding: 20px;
            }
            
            .cart-item {
                padding: 20px;
            }
        }

        /* ========================================
           CHECKOUT PAGE STYLES
           ======================================== */
        
        .checkout-page {
            background-color: #f8f9fa;
            min-height: 100vh;
        }

        /* Checkout Header */
        .checkout-header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
            color: white;
            padding: 60px 0;
        }

        .checkout-title {
            font-size: 48px;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .checkout-subtitle {
            font-size: 18px;
            opacity: 0.9;
            margin: 0;
        }

        .guest-notice {
            background: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 8px;
            padding: 15px 20px;
            margin-top: 20px;
            color: white;
            font-size: 14px;
        }

        /* Checkout Breadcrumbs */
        .breadcrumb-nav {
            margin-bottom: 20px;
        }

        .breadcrumb {
            background: transparent;
            padding: 0;
            margin: 0;
        }

        .breadcrumb-link {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .breadcrumb-link:hover {
            color: white;
        }

        /* Checkout Content */
        .checkout-content {
            padding: 60px 0;
        }

        .checkout-form {
            background: white;
            border-radius: 16px;
            padding: 40px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        /* Checkout Steps */
        .checkout-step {
            margin-bottom: 40px;
            border: 1px solid #e9ecef;
            border-radius: 12px;
            overflow: hidden;
        }

        .step-header {
            background: #f8f9fa;
            padding: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            border-bottom: 1px solid #e9ecef;
        }

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

        .step-title h3 {
            margin: 0;
            font-size: 20px;
            color: var(--primary-color);
        }

        .step-title p {
            margin: 0;
            color: #6c757d;
            font-size: 14px;
        }

        .step-content {
            padding: 30px;
        }

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

        .form-label {
            font-weight: 600;
            color: #495057;
            margin-bottom: 8px;
        }

        .form-control {
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 12px 15px;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
        }

        /* Shipping Methods */
        .shipping-methods {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .shipping-method {
            border: 2px solid #e9ecef;
            border-radius: 8px;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .shipping-method:hover {
            border-color: var(--primary-color);
        }

        .shipping-method input[type="radio"] {
            display: none;
        }

        .shipping-method input[type="radio"]:checked + .shipping-label {
            background: rgba(var(--primary-color-rgb), 0.1);
            border-color: var(--primary-color);
        }

        .shipping-label {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            margin: 0;
        }

        .method-name {
            font-weight: 600;
            color: #495057;
            margin-bottom: 5px;
        }

        .method-time {
            font-size: 14px;
            color: #6c757d;
        }

        .method-price {
            font-weight: 600;
            color: var(--primary-color);
            font-size: 18px;
        }

        /* Payment Methods */
        .payment-methods {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .payment-method {
            border: 2px solid #e9ecef;
            border-radius: 8px;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .payment-method:hover {
            border-color: var(--primary-color);
        }

        .payment-method input[type="radio"] {
            display: none;
        }

        .payment-method input[type="radio"]:checked + .payment-label {
            background: rgba(var(--primary-color-rgb), 0.1);
            border-color: var(--primary-color);
        }

        .payment-label {
            display: flex;
            align-items: center;
            padding: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            margin: 0;
            gap: 15px;
        }

        .payment-icon {
            width: 50px;
            height: 50px;
            background: #f8f9fa;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: var(--primary-color);
        }

        .payment-name {
            font-weight: 600;
            color: #495057;
            margin-bottom: 5px;
        }

        .payment-desc {
            font-size: 14px;
            color: #6c757d;
        }

        /* Order Summary Sidebar */
        .order-summary-sidebar {
            background: white;
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 20px;
        }

        .summary-title {
            color: var(--primary-color);
            margin-bottom: 25px;
            font-size: 24px;
        }

        .summary-items {
            margin-bottom: 25px;
        }

        .summary-item {
            display: flex;
            gap: 15px;
            padding: 15px 0;
            border-bottom: 1px solid #e9ecef;
        }

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

        .item-image {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            overflow: hidden;
            flex-shrink: 0;
        }

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

        .item-placeholder {
            width: 100%;
            height: 100%;
            background: #f8f9fa;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #adb5bd;
        }

        .item-details {
            flex: 1;
        }

        .item-name {
            font-weight: 600;
            color: #495057;
            margin-bottom: 5px;
            font-size: 14px;
        }

        .item-quantity {
            font-size: 12px;
            color: #6c757d;
            margin-bottom: 5px;
        }

        .item-price {
            font-weight: 600;
            color: var(--primary-color);
        }

        .summary-totals {
            border-top: 1px solid #e9ecef;
            padding-top: 20px;
            margin-bottom: 25px;
        }

        .total-line {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            color: #495057;
        }

        .total-line.total {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary-color);
            border-top: 1px solid #e9ecef;
            padding-top: 15px;
            margin-top: 15px;
            margin-bottom: 0;
        }

        .security-info {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 25px;
        }

        .security-item {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
            font-size: 14px;
            color: #495057;
        }

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

        .place-order-btn {
            font-size: 18px;
            font-weight: 600;
            padding: 15px;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .place-order-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        /* Checkout Responsive Design */
        @media (max-width: 768px) {
            .checkout-title {
                font-size: 32px;
            }

            .checkout-form {
                padding: 20px;
            }

            .step-content {
                padding: 20px;
            }

            .order-summary-sidebar {
                margin-top: 30px;
            }
        }

        /* ========================================
           CHECKOUT SUCCESS PAGE STYLES
           ======================================== */
        
        .success-page {
            background-color: #f8f9fa;
            min-height: 100vh;
        }

        /* Success Header */
        .success-header {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            color: white;
            padding: 80px 0;
        }

        .success-icon {
            font-size: 80px;
            margin-bottom: 30px;
            opacity: 0.9;
        }

        .success-title {
            font-size: 48px;
            font-weight: 700;
            margin-bottom: 15px;
        }

        .success-subtitle {
            font-size: 18px;
            opacity: 0.9;
            margin-bottom: 25px;
        }

        .order-number {
            background: rgba(255, 255, 255, 0.2);
            padding: 15px 30px;
            border-radius: 50px;
            display: inline-block;
            font-size: 18px;
        }

        /* Order Details */
        .order-details {
            padding: 60px 0;
        }

        .order-info-card {
            background: white;
            border-radius: 16px;
            padding: 40px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
        }

        .card-title {
            color: var(--primary-color);
            margin-bottom: 30px;
            font-size: 24px;
            border-bottom: 2px solid #e9ecef;
            padding-bottom: 15px;
        }

        /* Order Items */
        .order-items {
            margin-bottom: 40px;
        }

        .order-item {
            display: flex;
            gap: 20px;
            padding: 20px 0;
            border-bottom: 1px solid #e9ecef;
        }

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

        .item-image {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            overflow: hidden;
            flex-shrink: 0;
        }

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

        .item-placeholder {
            width: 100%;
            height: 100%;
            background: #f8f9fa;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #adb5bd;
            font-size: 24px;
        }

        .item-details {
            flex: 1;
        }

        .item-name {
            font-size: 18px;
            font-weight: 600;
            color: #495057;
            margin-bottom: 8px;
        }

        .item-description {
            color: #6c757d;
            margin-bottom: 10px;
            font-size: 14px;
        }

        .item-meta {
            display: flex;
            gap: 20px;
            font-size: 14px;
            color: #6c757d;
        }

        .item-total {
            text-align: right;
            align-self: center;
        }

        .total-price {
            font-size: 18px;
            font-weight: 600;
            color: var(--primary-color);
        }

        /* Customer Info */
        .customer-info {
            margin-bottom: 40px;
        }

        .customer-info h4 {
            color: var(--primary-color);
            margin-bottom: 20px;
        }

        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
        }

        /* Shipping & Payment */
        .shipping-payment-info {
            margin-bottom: 40px;
        }

        .shipping-payment-info h4 {
            color: var(--primary-color);
            margin-bottom: 15px;
        }

        .method-card {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .method-name {
            font-weight: 600;
            color: #495057;
        }

        .method-cost {
            font-weight: 600;
            color: var(--primary-color);
        }

        .payment-status .badge {
            font-size: 12px;
        }

        /* Order Notes */
        .order-notes h4 {
            color: var(--primary-color);
            margin-bottom: 15px;
        }

        .order-notes p {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            margin: 0;
        }

        /* Order Summary Card */
        .order-summary-card {
            background: white;
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 20px;
        }

        .summary-details {
            margin-bottom: 25px;
            padding-bottom: 20px;
            border-bottom: 1px solid #e9ecef;
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            color: #495057;
        }

        .summary-row:last-child {
            margin-bottom: 0;
        }

        .summary-totals {
            margin-bottom: 30px;
        }

        .total-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            color: #495057;
        }

        .total-row.total {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary-color);
            border-top: 2px solid #e9ecef;
            padding-top: 15px;
            margin-top: 15px;
            margin-bottom: 0;
        }

        /* Next Steps */
        .next-steps {
            margin-bottom: 30px;
        }

        .next-steps h4 {
            color: var(--primary-color);
            margin-bottom: 20px;
        }

        .step {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
        }

        .step:last-child {
            margin-bottom: 0;
        }

        .step-icon {
            width: 40px;
            height: 40px;
            background: rgba(var(--primary-color-rgb), 0.1);
            color: var(--primary-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .step-text strong {
            color: #495057;
            display: block;
            margin-bottom: 5px;
        }

        .step-text p {
            color: #6c757d;
            font-size: 14px;
            margin: 0;
        }

        /* Action Buttons */
        .action-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
        }

        .btn-block {
            width: 100%;
            text-align: center;
            padding: 12px;
            font-weight: 600;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .btn-block:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        }

        /* Badges */
        .badge {
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .badge-info {
            background-color: #17a2b8;
            color: white;
        }

        .badge-warning {
            background-color: #ffc107;
            color: #212529;
        }

        /* Checkout Success Responsive Design */
        @media (max-width: 768px) {
            .success-title {
                font-size: 32px;
            }

            .success-icon {
                font-size: 60px;
            }

            .order-info-card {
                padding: 20px;
            }

            .order-item {
                flex-direction: column;
                gap: 15px;
            }

            .item-total {
                text-align: left;
            }

            .info-grid {
                grid-template-columns: 1fr;
            }

            .order-summary-card {
                margin-top: 30px;
            }
        }

        /* ========================================
           ADMIN LAYOUT STYLES
           ======================================== */
        
        /* Admin CSS Variables */
        :root {
            --admin-primary-color: #1C592B;
            --admin-secondary-color: #FF9800;
            --admin-accent-color: #2196F3;
            --admin-success-color: #4CAF50;
            --admin-warning-color: #FF9800;
            --admin-danger-color: #F44336;
            --admin-dark-color: #343A40;
            --admin-light-color: #F8F9FA;
            --admin-gray-color: #6C757D;
        }
        
        /* Admin Body */
        .admin-body {
            font-family: 'Poppins', sans-serif;
            background-color: #F8F9FA;
        }
        
        /* Admin Navbar */
        .admin-navbar {
            background: var(--admin-primary-color) !important;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        /* Admin Sidebar */
        .admin-sidebar {
            background: var(--admin-primary-color);
            min-height: 100vh;
            box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        }
        
        .admin-sidebar .nav-link {
            color: rgba(255, 255, 255, 0.8);
            padding: 0.75rem 1rem;
            border-radius: 0.375rem;
            margin: 0.25rem 0.5rem;
            transition: all 0.3s ease;
        }
        
        .admin-sidebar .nav-link:hover,
        .admin-sidebar .nav-link.active {
            background-color: rgba(255, 255, 255, 0.1);
            color: white;
        }
        
        .admin-sidebar .nav-link i {
            width: 20px;
            margin-right: 0.5rem;
        }
        
        /* Admin Main Content */
        .admin-main-content {
            margin-left: 250px;
            padding: 2rem;
            transition: margin-left 0.3s ease;
        }

        /* Admin Dashboard Content Fixes */
        .admin-main-content {
            margin-left: 250px;
            padding: 2rem;
            transition: margin-left 0.3s ease;
            margin-top: 80px; /* Add top margin to account for fixed navbar */
        }

        /* Admin Page Header */
        .admin-page-header {
            margin-top: 20px;
            margin-bottom: 30px;
            padding: 20px 0;
        }

        .admin-page-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--admin-primary-color);
            margin-bottom: 10px;
        }

        .admin-page-subtitle {
            font-size: 1.1rem;
            color: var(--admin-gray-color);
            margin-bottom: 0;
        }

        /* Admin Welcome Message */
        .admin-welcome {
            background: linear-gradient(135deg, var(--admin-primary-color) 0%, #2d5a3a 100%);
            color: white;
            padding: 30px;
            border-radius: 12px;
            margin-bottom: 30px;
            box-shadow: 0 4px 15px rgba(28, 89, 43, 0.2);
        }

        .admin-welcome h1 {
            font-size: 2rem;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .admin-welcome p {
            font-size: 1.1rem;
            opacity: 0.9;
            margin-bottom: 0;
        }
        
        /* Admin Cards */
        .admin-card {
            border: none;
            border-radius: 0.75rem;
            box-shadow: 0 4px 6px rgba(0,0,0,0.07);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        
        .admin-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        }
        
        .admin-card-header {
            background: var(--admin-primary-color);
            color: white;
            border-radius: 0.75rem 0.75rem 0 0 !important;
            border: none;
        }
        
        /* Admin Buttons */
        .admin-btn-primary {
            background: var(--admin-primary-color);
            border-color: var(--admin-primary-color);
        }
        
        .admin-btn-primary:hover {
            background: #155724;
            border-color: #155724;
        }
        
        .admin-btn-secondary {
            background: var(--admin-secondary-color);
            border-color: var(--admin-secondary-color);
        }
        
        .admin-btn-secondary:hover {
            background: #E68900;
            border-color: #E68900;
        }
        
        /* Admin Borders */
        .admin-border-left-primary {
            border-left: 4px solid var(--admin-primary-color) !important;
        }
        
        .admin-border-left-success {
            border-left: 4px solid var(--admin-success-color) !important;
        }
        
        .admin-border-left-info {
            border-left: 4px solid var(--admin-accent-color) !important;
        }
        
        .admin-border-left-warning {
            border-left: 4px solid var(--admin-warning-color) !important;
        }
        
        /* Admin Text Colors */
        .admin-text-primary {
            color: var(--admin-primary-color) !important;
        }
        
        .admin-text-success {
            color: var(--admin-success-color) !important;
        }
        
        .admin-text-info {
            color: var(--admin-accent-color) !important;
        }
        
        .admin-text-warning {
            color: var(--admin-warning-color) !important;
        }
        
        /* Admin Backgrounds */
        .admin-bg-gradient-dark {
            background: var(--admin-primary-color) !important;
        }
        
        /* Admin Stats Cards */
        .admin-stats-card {
            background: #fff;
            border: 1px solid #e9ecef;
        }
        
        /* Admin Tables */
        .admin-table {
            border-radius: 0.5rem;
            overflow: hidden;
        }
        
        .admin-table thead th {
            background: var(--admin-primary-color);
            color: white;
            border: none;
            font-weight: 600;
        }
        
        /* Admin Badges */
        .admin-badge {
            font-size: 0.75rem;
            padding: 0.5rem 0.75rem;
        }
        
        /* Admin Form Controls */
        .admin-form-control:focus {
            border-color: var(--admin-primary-color);
            box-shadow: 0 0 0 0.2rem rgba(28, 89, 43, 0.25);
        }
        
        /* Admin Alerts */
        .admin-alert {
            border-radius: 0.5rem;
            border: none;
        }
        
        /* Admin Responsive Design */
        @media (max-width: 768px) {
            .admin-main-content {
                margin-left: 0;
                padding: 1rem;
                margin-top: 70px; /* Adjust for mobile navbar height */
            }
            
            .admin-sidebar {
                position: fixed;
                left: -250px;
                z-index: 1000;
                transition: left 0.3s ease;
            }
            
            .admin-sidebar.show {
                left: 0;
            }

            .admin-page-title {
                font-size: 2rem;
            }

            .admin-welcome {
                padding: 20px;
            }

            .admin-welcome h1 {
                font-size: 1.5rem;
            }
        }

        /* Admin Welcome Message */
        .admin-welcome p {
            font-size: 1.1rem;
            opacity: 0.9;
            margin-bottom: 0;
        }

        /* Admin Dashboard Content Structure */
        .admin-dashboard-content {
            padding: 20px 0;
        }

        .admin-stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .admin-stat-card {
            background: white;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            border-left: 4px solid var(--admin-primary-color);
        }

        .admin-stat-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .admin-stat-icon {
            width: 60px;
            height: 60px;
            background: rgba(28, 89, 43, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 15px;
            color: var(--admin-primary-color);
            font-size: 24px;
        }

        .admin-stat-number {
            font-size: 2rem;
            font-weight: 700;
            color: var(--admin-primary-color);
            margin-bottom: 5px;
        }

        .admin-stat-label {
            color: var(--admin-gray-color);
            font-size: 0.9rem;
            font-weight: 500;
        }

        /* ========================================
           PRODUCTS SHOW PAGE STYLES
           ======================================== */
        
        .product-details-page {
            background-color: #f8f9fa;
            min-height: 100vh;
        }

        /* Product Hero Section */
        .product-hero {
            padding: 60px 0;
            background: white;
        }

        /* Product Image */
        .product-image-container {
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
        }

        .product-main-image {
            width: 100%;
            height: 500px;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .product-image-container:hover .product-main-image {
            transform: scale(1.02);
        }

        .product-image-placeholder {
            width: 100%;
            height: 500px;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #adb5bd;
            font-size: 48px;
        }

        .product-image-placeholder p {
            margin-top: 16px;
            font-size: 16px;
            color: #6c757d;
        }

        .featured-badge {
            position: absolute;
            top: 20px;
            left: 20px;
            background: var(--secondary-color);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            z-index: 10;
        }

        /* Enhanced Product Image Gallery */
        .product-image-main {
            position: relative;
            overflow: hidden;
        }

        .image-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .product-image-main:hover .image-overlay {
            opacity: 1;
        }

        .zoom-btn {
            background: white;
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            font-size: 18px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .zoom-btn:hover {
            background: var(--primary-color);
            color: white;
            transform: scale(1.1);
        }

        .product-image-thumbnails {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

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

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

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

        .thumbnail-placeholder {
            width: 80px;
            height: 80px;
            background: #f8f9fa;
            border: 2px dashed #dee2e6;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #adb5bd;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .thumbnail-placeholder:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
        }

        .product-status-badges {
            position: absolute;
            top: 20px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 5px;
            z-index: 10;
        }

        .product-status-badges .badge {
            font-size: 10px;
            padding: 4px 8px;
            border-radius: 12px;
            font-weight: 600;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        /* Product Info */
        .product-info {
            padding: 20px 0;
        }

        .product-breadcrumb {
            margin-bottom: 30px;
        }

        .breadcrumb {
            background: transparent;
            padding: 0;
            margin: 0;
        }

        .breadcrumb-item {
            font-size: 14px;
        }

        .breadcrumb-link {
            color: var(--primary-color);
            text-decoration: none;
            transition: color 0.3s ease;
        }

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

        .breadcrumb-item.active {
            color: #6c757d;
            font-weight: 500;
        }

        .product-title {
            font-size: 36px;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 20px;
            line-height: 1.2;
        }

        .product-price {
            font-size: 32px;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 25px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 12px;
            border-left: 4px solid var(--primary-color);
        }
        
        .total-price {
            font-size: 1.2rem;
            font-weight: 600;
            color: #28a745;
            margin-bottom: 20px;
            padding: 15px 20px;
            background: #f8f9fa;
            border-radius: 12px;
            border-left: 4px solid #28a745;
        }

        /* Product Meta */
        .product-meta {
            margin-bottom: 30px;
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
            color: #6c757d;
            font-size: 15px;
        }

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

        /* Enhanced Product Specifications */
        .product-specifications {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 12px;
            margin: 20px 0;
        }

        .product-specifications h4 {
            color: var(--primary-color);
            margin-bottom: 15px;
            font-size: 18px;
        }

        .specs-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }

        .spec-item {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid #e9ecef;
        }

        .spec-label {
            font-weight: 600;
            color: #495057;
        }

        .spec-value {
            color: #6c757d;
        }

        /* Product Rating Summary */
        .product-rating-summary {
            background: white;
            padding: 20px;
            border-radius: 12px;
            margin: 20px 0;
            border: 1px solid #e9ecef;
        }

        .rating-overview {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
        }

        .average-rating {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .stars {
            display: flex;
            gap: 2px;
        }

        .rating-text {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .rating-number {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary-color);
        }

        .rating-label {
            font-size: 12px;
            color: #6c757d;
        }

        .rating-stats {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }

        .reviews-count {
            color: #6c757d;
            font-size: 14px;
        }

        /* Product Description */
        .product-description {
            margin-bottom: 30px;
            padding: 25px;
            background: #f8f9fa;
            border-radius: 12px;
        }

        .product-description h4 {
            color: var(--primary-color);
            font-weight: 600;
            margin-bottom: 15px;
            font-size: 18px;
        }

        .product-description p {
            color: #495057;
            line-height: 1.6;
            margin: 0;
            font-size: 15px;
        }

        /* Product Actions */
        .product-actions {
            margin-bottom: 30px;
        }

        .quantity-selector {
            margin-bottom: 20px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 10px;
            border: 1px solid #e9ecef;
        }

        .quantity-selector label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--primary-color);
        }

        .quantity-controls {
            display: flex;
            align-items: center;
            gap: 10px;
            max-width: 150px;
        }

        .quantity-btn {
            width: 40px;
            height: 40px;
            border: 1px solid #dee2e6;
            background: white;
            border-radius: 8px;
            font-size: 18px;
            font-weight: 600;
            color: var(--primary-color);
            cursor: pointer;
            transition: all 0.3s ease;
        }

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

        .quantity-input {
            width: 60px;
            height: 40px;
            text-align: center;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
        }

        .stock-info {
            margin-top: 8px;
            font-size: 12px;
            color: #28a745;
            font-weight: 500;
        }

        /* Enhanced Action Buttons - High Specificity */
        .product-details-page .product-info .action-buttons {
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: wrap !important;
            gap: 15px !important;
            margin-bottom: 20px !important;
        }
        
        .product-details-page .product-info .action-buttons .btn {
            margin-right: 10px !important;
            margin-bottom: 10px !important;
            float: none !important;
            display: inline-block !important;
        }
        
        /* Override any conflicting Bootstrap styles */
        .product-details-page .product-info .action-buttons .btn-primary,
        .product-details-page .product-info .action-buttons .btn-outline-primary,
        .product-details-page .product-info .action-buttons .btn-outline-success {
            display: inline-block !important;
            float: none !important;
            width: auto !important;
        }

        .action-buttons .btn {
            flex: 1;
            min-width: 120px;
            padding: 12px 20px;
            font-weight: 600;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .action-buttons .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        }

        /* Social Sharing */
        .social-sharing {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 15px 0;
            border-top: 1px solid #e9ecef;
        }

        .share-label {
            font-weight: 600;
            color: #495057;
            margin-right: 10px;
        }

        .social-sharing .btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .social-sharing .btn:hover {
            transform: scale(1.1);
        }

        .wishlist-btn {
            padding: 15px 25px;
            border-radius: 10px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

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

        .add-to-cart-btn {
            padding: 15px 30px;
            border-radius: 10px;
            font-weight: 600;
            font-size: 16px;
            transition: all 0.3s ease;
            flex: 1;
            min-width: 200px;
        }

        .add-to-cart-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(28, 89, 43, 0.3);
        }

        /* Seller Info */
        .product-seller-info {
            padding: 25px;
            background: #f8f9fa;
            border-radius: 12px;
            border: 1px solid #e9ecef;
        }

        .product-seller-info h5 {
            color: var(--primary-color);
            font-weight: 600;
            margin-bottom: 20px;
            font-size: 18px;
        }

        .seller-card {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .seller-avatar {
            width: 60px;
            height: 60px;
            background: var(--primary-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
        }

        .seller-details h6 {
            font-weight: 600;
            color: #212529;
            margin-bottom: 5px;
            font-size: 16px;
        }

        .seller-details p {
            color: #6c757d;
            margin-bottom: 15px;
            font-size: 14px;
        }

        /* Related Products */
        .related-products {
            padding: 80px 0;
            background: #f8f9fa;
        }

        .section-title {
            text-align: center;
            font-size: 32px;
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 50px;
        }

        .related-products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
        }

        .related-product-card {
            background: white;
            border: 1px solid #e9ecef;
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .related-product-card:hover {
            border-color: var(--primary-color);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            transform: translateY(-5px);
        }

        .related-product-image {
            height: 180px;
            position: relative;
            overflow: hidden;
        }

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

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

        .related-product-placeholder {
            width: 100%;
            height: 100%;
            background: #f8f9fa;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #adb5bd;
            font-size: 32px;
        }

        .related-product-info {
            padding: 20px;
        }

        /* Enhanced Product Reviews Section */
        .product-reviews {
            background: white;
            padding: 60px 0;
            margin-top: 60px;
        }

        .section-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .section-subtitle {
            color: #6c757d;
            font-size: 16px;
            margin: 0;
        }

        /* Review Summary */
        .review-summary {
            background: #f8f9fa;
            padding: 30px;
            border-radius: 16px;
            margin-bottom: 40px;
        }

        .rating-breakdown {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .rating-bar {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .rating-progress {
            flex: 1;
            height: 8px;
            background: #e9ecef;
            border-radius: 4px;
            overflow: hidden;
        }

        .progress-bar {
            height: 100%;
            background: var(--primary-color);
            border-radius: 4px;
            transition: width 0.3s ease;
        }

        .rating-count {
            min-width: 40px;
            text-align: right;
            color: #6c757d;
            font-size: 14px;
        }

        /* Write Review Form */
        .write-review-form {
            background: #f8f9fa;
            padding: 30px;
            border-radius: 16px;
            margin-bottom: 40px;
        }

        .write-review-form h4 {
            color: var(--primary-color);
            margin-bottom: 20px;
            font-size: 20px;
        }

        .review-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .rating-input {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .rating-input label {
            font-weight: 600;
            color: #495057;
            margin: 0;
        }

        .star-rating {
            display: flex;
            gap: 5px;
        }

        .star-rating input[type="radio"] {
            display: none;
        }

        .star-label {
            cursor: pointer;
            font-size: 24px;
            color: #dee2e6;
            transition: color 0.3s ease;
        }

        .star-label:hover,
        .star-label:hover ~ .star-label,
        .star-rating input[type="radio"]:checked ~ .star-label {
            color: #ffc107;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .form-group label {
            font-weight: 600;
            color: #495057;
            margin: 0;
        }

        .form-control {
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 12px 16px;
            font-size: 14px;
            transition: border-color 0.3s ease;
        }

        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
            outline: none;
        }

        /* Reviews List */
        .reviews-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .review-item {
            background: white;
            padding: 25px;
            border-radius: 12px;
            border: 1px solid #e9ecef;
            transition: all 0.3s ease;
        }

        .review-item:hover {
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }

        .review-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 15px;
        }

        .reviewer-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }

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

        .reviewer-name {
            color: var(--primary-color);
            margin: 0;
            font-size: 16px;
        }

        .review-rating {
            display: flex;
            gap: 2px;
            margin-top: 5px;
        }

        .review-date {
            color: #6c757d;
            font-size: 14px;
        }

        .review-content {
            color: #495057;
        }

        .review-title {
            color: var(--primary-color);
            margin-bottom: 10px;
            font-size: 16px;
        }

        .review-text {
            line-height: 1.6;
            margin: 0;
        }

        .no-reviews {
            text-align: center;
            padding: 40px;
            color: #6c757d;
        }

        .no-reviews i {
            font-size: 48px;
            margin-bottom: 15px;
            color: #adb5bd;
        }

        /* Product Recommendations */
        .product-recommendations {
            background: #f8f9fa;
            padding: 60px 0;
        }

        .recommendations-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-top: 40px;
        }

        .recommendation-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .recommendation-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .recommendation-image {
            height: 200px;
            position: relative;
            overflow: hidden;
        }

        .recommendation-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

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

        .recommendation-placeholder {
            width: 100%;
            height: 100%;
            background: #f8f9fa;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #adb5bd;
            font-size: 32px;
        }

        .featured-badge-small {
            position: absolute;
            top: 10px;
            left: 10px;
            background: var(--secondary-color);
            color: white;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 10px;
            font-weight: 600;
        }

        .recommendation-info {
            padding: 20px;
        }

        .recommendation-name {
            font-size: 16px;
            font-weight: 600;
            color: #212529;
            margin-bottom: 10px;
            line-height: 1.3;
            height: 42px;
            overflow: hidden;
        }

        .recommendation-price {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 10px;
        }

        .recommendation-rating {
            display: flex;
            align-items: center;
            gap: 5px;
            margin-bottom: 15px;
        }

        .recommendation-rating .rating-count {
            color: #6c757d;
            font-size: 12px;
        }

        /* Image Modal */
        .image-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 9999;
        }

        .modal-overlay {
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .modal-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
        }

        .modal-image {
            width: 100%;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
        }

        .modal-close {
            position: absolute;
            top: -40px;
            right: 0;
            background: white;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            font-size: 24px;
            color: #333;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .modal-close:hover {
            background: #f8f9fa;
            transform: scale(1.1);
        }

        /* Login to Review */
        .login-to-review {
            text-align: center;
            padding: 30px;
            background: #f8f9fa;
            border-radius: 16px;
            margin-bottom: 40px;
        }

        .login-to-review p {
            margin: 0;
            color: #6c757d;
            font-size: 16px;
        }

        .login-to-review a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
        }

        .login-to-review a:hover {
            text-decoration: underline;
        }

        .related-product-name {
            font-size: 16px;
            font-weight: 600;
            color: #212529;
            margin-bottom: 10px;
            line-height: 1.3;
            height: 42px;
            overflow: hidden;
        }

        .related-product-price {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 15px;
        }

        /* Products Show Responsive Design */
        @media (max-width: 768px) {
            .product-hero {
                padding: 40px 0;
            }
            
            .product-title {
                font-size: 28px;
            }
            
            .product-price {
                font-size: 24px;
                padding: 15px;
            }
            
            .action-buttons {
                flex-direction: column;
            }
            
            .add-to-cart-btn {
                min-width: auto;
            }
            
            .related-products-grid {
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                gap: 20px;
            }
            
            .section-title {
                font-size: 24px;
            }
        }

        @media (max-width: 480px) {
            .product-main-image,
            .product-image-placeholder {
                height: 300px;
            }
            
            .product-info {
                padding: 10px 0;
            }
            
            .product-description,
            .product-seller-info {
                padding: 20px;
            }
            
            .seller-card {
                flex-direction: column;
                text-align: center;
            }
        }

        .sidebar-categories {
            background: white;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            padding: 14px;
            position: sticky;
            top: 20px;
            height: fit-content;
            max-height: calc(100vh - 40px);
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .sidebar-categories > *:last-child {
            margin-bottom: 0;
        }

        .sidebar-categories > * {
            margin-bottom: 0;
        }

        /* Ensure minimal spacing between sidebar sections */
        .sidebar-header + .categories-list {
            margin-top: 0;
        }

        .categories-list + .back-to-parent {
            margin-top: 0;
        }

        /* Compact styling for current category */
        .category-item.current-category .category-icon {
            width: 32px;
            height: 32px;
            font-size: 14px;
            margin-right: 10px;
        }

        .category-item.current-category .category-name {
            font-size: 13px;
            margin-bottom: 1px;
            line-height: 1.1;
        }

        .category-item.current-category .category-count {
            font-size: 11px;
            line-height: 1.1;
        }

        /* Final spacing optimizations */
        .category-item.current-category {
            margin: 0;
            padding: 6px 8px;
            min-height: 40px;
        }

        .category-item.current-category + .back-to-parent {
            margin-top: 0;
            padding-top: 8px;
        }

        /* Hide empty category items completely */
        .category-item:empty,
        .category-item:blank {
            display: none !important;
        }

        /* Ensure current category has no bottom margin */
        .category-item.current-category {
            margin-bottom: 0 !important;
            margin-top: 0 !important;
        }

        /* Ensure back button has minimal top spacing */
        .back-to-parent {
            margin-top: 0 !important;
            padding-top: 8px !important;
        }

        /* Complete spacing elimination */
        .sidebar-categories .categories-list:last-child {
            margin-bottom: 0 !important;
        }

        .sidebar-categories .category-item:last-child {
            margin-bottom: 0 !important;
        }

        .sidebar-categories .categories-list + .back-to-parent {
            margin-top: 0 !important;
            padding-top: 8px !important;
        }

        /* Ensure no gaps between elements */
        .sidebar-categories > * {
            margin-bottom: 0 !important;
        }

        .sidebar-categories > *:last-child {
            margin-bottom: 0 !important;
        }

        /* Eliminate all whitespace and gaps */
        .sidebar-categories {
            font-size: 0;
            line-height: 0;
        }

        .sidebar-categories > * {
            font-size: 14px;
            line-height: 1.4;
        }

        /* Ensure categories list has no gaps */
        .categories-list {
            margin: 0 !important;
            padding: 0 !important;
            display: flex;
            flex-direction: column;
            gap: 0 !important;
        }

        .categories-list > * {
            margin: 0 !important;
            padding: 0 !important;
        }

        .categories-list .category-item {
            margin-bottom: 6px !important;
        }

        .categories-list .category-item:last-child {
            margin-bottom: 0 !important;
        }

        /* Current category - absolutely no spacing */
        .category-item.current-category {
            margin: 0 !important;
            padding: 6px 8px !important;
            min-height: 40px !important;
            border: none !important;
            background: var(--primary-color) !important;
            color: white !important;
        }

        /* Ensure no gap between current category and back button */
        .category-item.current-category + .back-to-parent {
            margin-top: 0 !important;
            padding-top: 8px !important;
            border-top: 1px solid #e9ecef;
        }

        /* Back button minimal spacing */
        .back-to-parent {
            margin: 0 !important;
            padding: 8px 0 0 0 !important;
        }



        /* Ensure back button has zero top margin */
        .category-item.current-category + .back-to-parent {
            margin-top: 0 !important;
            padding-top: 8px !important;
            border-top: 1px solid #e9ecef !important;
        }

        /* Compact spacing for current category */
        .category-item.current-category {
            margin: 0 !important;
            margin-bottom: 0 !important;
        }

        /* Ensure minimal spacing */
        .sidebar-categories > * {
            flex-shrink: 0 !important;
        }





        /* Clean approach - fix spacing without breaking layout */
        .category-item.current-category {
            margin: 0 !important;
            padding: 8px 10px !important;
            min-height: 48px !important;
            display: flex !important;
            align-items: center !important;
            background: var(--primary-color) !important;
            color: white !important;
            border: none !important;
        }

        .category-item.current-category .category-icon {
            width: 36px !important;
            height: 36px !important;
            font-size: 16px !important;
            margin-right: 12px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }

        .category-item.current-category .category-content {
            flex: 1 !important;
            display: flex !important;
            flex-direction: column !important;
            justify-content: center !important;
        }

        .category-item.current-category .category-name {
            margin: 0 !important;
            padding: 0 !important;
            font-size: 14px !important;
            line-height: 1.2 !important;
            font-weight: 500 !important;
        }

        .category-item.current-category .category-count {
            margin: 0 !important;
            padding: 0 !important;
            font-size: 12px !important;
            line-height: 1.2 !important;
            opacity: 0.9 !important;
        }

        /* Fix spacing between current category and back button */
        .category-item.current-category + .back-to-parent {
            margin-top: 0 !important;
            padding-top: 8px !important;
            border-top: 1px solid #e9ecef !important;
        }

        /* Ensure back button has minimal spacing */
        .back-to-parent {
            margin: 0 !important;
            padding: 8px 0 0 0 !important;
        }

        /* Ensure back button has minimal spacing */
        .back-to-parent {
            margin: 0 !important;
            padding: 8px 0 0 0 !important;
        }

        /* Ensure categories list has minimal spacing */
        .categories-list {
            margin-bottom: 8px !important;
        }

        .categories-list:last-child {
            margin-bottom: 0 !important;
        }

        /* Ensure perfect Farmart-style layout */
        .sidebar-categories {
            display: block;
        }

        .categories-list {
            display: block;
        }

        .categories-list .category-item {
            display: block;
            width: 100%;
        }

        .categories-list .category-item .category-content {
            display: block;
            width: 100%;
        }

        .categories-list .category-item .category-name {
            display: block;
            width: 100%;
        }

        .categories-list .category-item .category-count {
            display: block;
            width: 100%;
        }

        /* Remove any remaining card-like styling */
        .category-item {
            box-shadow: none !important;
            border: none !important;
            background: none !important;
            border-radius: 0 !important;
            min-height: auto !important;
            height: auto !important;
        }

        /* Back button - appealing style */
        .back-to-parent {
            margin-top: 20px;
            padding-top: 16px;
            border-top: 2px solid #f0f0f0;
            position: relative;
        }

        .back-to-parent::before {
            content: '';
            position: absolute;
            top: -2px;
            left: 0;
            width: 30px;
            height: 2px;
            background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
            border-radius: 1px;
        }

        .btn-back {
            display: inline-flex;
            align-items: center;
            background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
            color: white;
            text-decoration: none;
            padding: 10px 16px;
            font-size: 13px;
            font-weight: 600;
            border-radius: 8px;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(28, 89, 43, 0.15);
        }

        .btn-back:hover {
            color: white;
            background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(28, 89, 43, 0.25);
        }

        .btn-back i {
            margin-right: 8px;
            font-size: 12px;
        }

        /* Enhanced sidebar appearance */
        .sidebar-categories {
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            border: 1px solid #e9ecef;
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
            padding: 20px;
            position: sticky;
            top: 20px;
            backdrop-filter: blur(10px);
        }

        /* Smooth animations for category items */
        .categories-list .category-item {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .categories-list .category-item:hover {
            transform: translateX(6px) scale(1.02);
        }

        /* Enhanced current category */
        .category-item.current-category {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
            box-shadow: 0 6px 20px rgba(28, 89, 43, 0.3);
            transform: translateX(0) scale(1.02);
        }

        .category-item.current-category:hover {
            transform: translateX(0) scale(1.02);
            box-shadow: 0 8px 25px rgba(28, 89, 43, 0.4);
        }

        /* Contact & About Pages Styles */
        .contact-info-card,
        .contact-form-card,
        .mission-card,
        .vision-card,
        .story-section,
        .value-card,
        .stats-section,
        .team-card,
        .cta-section {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .contact-info-card:hover,
        .contact-form-card:hover,
        .mission-card:hover,
        .vision-card:hover,
        .story-section:hover,
        .value-card:hover,
        .team-card:hover,
        .cta-section:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
        }
        
        .contact-item {
            border-left: 3px solid transparent;
            padding-left: 15px;
            transition: border-color 0.3s ease;
        }
        
        .contact-item:hover {
            border-left-color: var(--bs-primary);
        }
        
        .value-card .value-icon {
            transition: transform 0.3s ease;
        }
        
        .value-card:hover .value-icon {
            transform: scale(1.1);
        }
        
        .team-avatar .avatar-placeholder {
            transition: transform 0.3s ease;
        }
        
        .team-card:hover .team-avatar .avatar-placeholder {
            transform: scale(1.05);
        }
        
        .stat-number {
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }
        
        .map-placeholder {
            min-height: 300px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        .faq-section .accordion-button:not(.collapsed) {
            background-color: var(--bs-primary);
            color: white;
        }
        
        .faq-section .accordion-button:focus {
            box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
        }

        /* Legal Pages Styles */
        .policy-content,
        .terms-content,
        .cookie-content {
            line-height: 1.7;
        }

        .policy-content h2,
        .terms-content h2,
        .cookie-content h2 {
            color: var(--bs-primary);
            border-bottom: 2px solid #e9ecef;
            padding-bottom: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .policy-content h4,
        .terms-content h4,
        .cookie-content h4 {
            color: var(--bs-secondary);
            font-weight: 600;
            margin-top: 1.5rem;
        }

        .policy-content ul,
        .terms-content ul,
        .cookie-content ul {
            padding-left: 1.5rem;
        }

        .policy-content li,
        .terms-content li,
        .cookie-content li {
            margin-bottom: 0.5rem;
        }

        .policy-content .contact-info,
        .terms-content .contact-info,
        .cookie-content .contact-info {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-left: 4px solid var(--bs-primary);
        }

        .policy-content .table,
        .terms-content .table,
        .cookie-content .table {
            font-size: 0.9rem;
        }

        .policy-content .table th,
        .terms-content .table th,
        .cookie-content .table th {
            background-color: var(--bs-primary);
            color: white;
            font-weight: 600;
        }

        .policy-content .table td,
        .terms-content .table td,
        .cookie-content .table td {
            vertical-align: middle;
        }

        .policy-content a,
        .terms-content a,
        .cookie-content a {
            color: var(--bs-primary);
            text-decoration: none;
        }

        .policy-content a:hover,
        .terms-content a:hover,
        .cookie-content a:hover {
            text-decoration: underline;
        }

        /* Help Center Styles */
        .search-section {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border: 1px solid #dee2e6;
        }

        .help-category-card,
        .guide-card,
        .trouble-card {
            transition: all 0.3s ease;
            border: 1px solid #e9ecef;
        }

        .help-category-card:hover,
        .guide-card:hover,
        .trouble-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            border-color: var(--bs-primary);
        }

        .help-category-card i,
        .guide-card i {
            transition: transform 0.3s ease;
        }

        .help-category-card:hover i,
        .guide-card:hover i {
            transform: scale(1.1);
        }

        .faq-section .accordion-button {
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
            border: 1px solid #e9ecef;
            font-weight: 600;
        }

        .faq-section .accordion-button:not(.collapsed) {
            background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
            color: white;
            border-color: var(--bs-primary);
        }

        .faq-section .accordion-button:focus {
            box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
        }

        .faq-section .accordion-body {
            background: #ffffff;
            border: 1px solid #e9ecef;
            border-top: none;
        }

        .trouble-card h5 {
            font-weight: 600;
        }

        .trouble-card ul {
            padding-left: 1.2rem;
        }

        .trouble-card li {
            margin-bottom: 0.3rem;
        }

        .contact-support {
            background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
        }

        .support-option {
            padding: 1rem;
            border-radius: 0.5rem;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
        }

        .support-option:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
            transition: all 0.3s ease;
        }

        .search-section .input-group {
            max-width: 500px;
            margin: 0 auto;
        }

        .search-section .form-control {
            border: 2px solid #e9ecef;
            border-right: none;
        }

        .search-section .form-control:focus {
            border-color: var(--bs-primary);
            box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
        }

        .search-section .btn {
            border: 2px solid var(--bs-primary);
            border-left: none;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .help-category-card,
            .guide-card,
            .trouble-card {
                margin-bottom: 1rem;
            }

            .contact-support .row {
                text-align: center;
            }

            .support-option {
                margin-bottom: 1rem;
            }
        }

/* Market News Section Styles */
.market-news-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: #28a745 #e9ecef;
}

.market-news-scroll::-webkit-scrollbar {
    height: 6px;
}

.market-news-scroll::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 3px;
}

.market-news-scroll::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 3px;
}

.market-news-card {
    min-width: 300px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.market-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.news-location {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-date {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Market Information Page Styles */
.market-information-page {
    background-color: #f8f9fa;
}

.market-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d7a4a 100%);
    color: white;
    padding: 2.5rem 0;
}

.market-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.market-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.market-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.market-icon {
    color: rgba(255, 255, 255, 0.8);
}

.market-icon i {
    font-size: 3rem;
}

.category-filter-section {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.filter-container {
    text-align: center;
}

.filter-title {
    margin-bottom: 1rem;
    color: #495057;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    background: white;
    color: #6c757d;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.market-news-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    color: #495057;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-placeholder {
    width: 100%;
    height: 100%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 3rem;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffc107;
    color: #212529;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.news-category {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-description {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-location {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.news-actions {
    text-align: center;
}

.btn-read-more {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-read-more:hover {
    background: #2d7a4a;
}

.no-news {
    text-align: center;
    padding: 4rem 0;
}

/* News Detail Modal Styles */
.news-detail-content {
    padding: 1rem 0;
}

.news-detail-image {
    text-align: center;
}

.news-detail-meta {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.news-detail-title {
    color: #495057;
    font-weight: 700;
    line-height: 1.3;
}

.news-detail-description {
    line-height: 1.8;
    color: #495057;
}

.news-detail-description .lead {
    font-size: 1.1rem;
    font-weight: 500;
}

.full-article-content {
    line-height: 1.8;
    color: #495057;
    font-size: 1rem;
}

.full-article-content p {
    margin-bottom: 1rem;
}

.full-article-content h1, 
.full-article-content h2, 
.full-article-content h3, 
.full-article-content h4, 
.full-article-content h5, 
.full-article-content h6 {
    color: #495057;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.full-article-content ul, 
.full-article-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.full-article-content li {
    margin-bottom: 0.5rem;
}

.full-article-content blockquote {
    border-left: 4px solid #28a745;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #6c757d;
}

.news-detail-actions {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

/* Responsive adjustments for market news */
@media (max-width: 768px) {
    .market-news-scroll {
        gap: 0.5rem;
    }
    
    .market-news-card {
        min-width: 250px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .market-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .news-detail-meta .d-flex {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start !important;
    }
}