/* Multi-Vendor eCommerce Main Stylesheet - Dark Theme */

/* Root Variables - Black, Gray, White Theme */
:root {
    /*--primary-color: #000000;*/
    --primary-color: #FF8000;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    /*--info-color: #17a2b8;*/
    --info-color: #FF8000;
    --light-color: #f8f9fa;
    /*--dark-color: #000000;*/
    --dark-color: #4C1F7A;
    --white: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 2px 4px rgba(0,0,0,.1);
    --border-radius: 0.375rem;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #333333;
    background-color: var(--light-color);
}
a {
    text-decoration: none;
    color: #333333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--dark-color);
    color: var(--white);
    padding: 5px 0;
    font-size: 0.875rem;
}

.header-main {
    padding: 1rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.search-bar {
    flex: 1;
    /*max-width: 500px;*/
    margin: 0 2rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #333;
}

.user-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cart-icon {
    position: relative;
    text-decoration: none;
    color: var(--dark-color);
    font-size: 1.25rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1;
}

/*.btn:hover {*/
/*    background: #333;*/
/*    transform: translateY(-1px);*/
/*}*/

.btn-secondary {
    background: var(--secondary-color);
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: var(--success-color);
}

.btn-success:hover {
    background: #1e7e34;
}

.btn-danger {
    background: var(--danger-color);
}

.btn-danger:hover {
    background: #c82333;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

/*.form-control {*/
/*    width: 100%;*/
/*    padding: 0.75rem;*/
/*    border: 2px solid var(--border-color);*/
/*    border-radius: var(--border-radius);*/
/*    font-size: 1rem;*/
/*    outline: none;*/
/*    transition: border-color 0.3s ease;*/
/*}*/

/*.form-control:focus {*/
/*    border-color: var(--primary-color);*/
/*    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);*/
/*}*/

/*.form-select {*/
/*    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");*/
/*    background-repeat: no-repeat;*/
/*    background-position: right 0.75rem center;*/
/*    background-size: 16px 12px;*/
/*    appearance: none;*/
/*}*/

.form-error {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1rem 1.5rem;
    background: var(--light-color);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.card-body {
    /*padding: 1.5rem;*/
}

.card-footer {
    padding: 1rem 1.5rem;
    background: var(--light-color);
    border-top: 1px solid var(--border-color);
}

/* Product Card */
.product-card {
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.product-info {
    padding: 1rem;
}

.product-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    text-decoration: none;
}

.product-title:hover {
    color: var(--primary-color);
}

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.product-seller {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    /*margin: 0 -0.75rem;*/
}

.col {
    flex: 1;
    padding: 0 0.75rem;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 2rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #495057;
    color: #adb5bd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .search-bar {
        order: 3;
        margin: 0;
        width: 100%;
    }

    .user-actions {
        order: 2;
    }

    .col-3, .col-4, .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .col-3, .col-4, .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .product-image {
        height: 200px;
    }

    .btn {
        /*width: 100%;*/
        margin-bottom: 0.5rem;
        border:2px solid var(--primary-color);
    }
}

/* Loading Spinner */
.spinner {
    border: 4px solid var(--light-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    gap: 0.5rem;
}

.pagination a, .pagination span {
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.pagination .current {
    background: var(--primary-color);
    color: var(--white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}

/* Mobile Navigation Styles - Add to your style.css */

/* Hide mobile nav by default */
.mobile-nav {
    display: none;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    /* Hide desktop navigation on mobile */
    .desktop-nav {
        display: none;
    }

    /* Show mobile navigation */
    .mobile-nav {
        display: block;
    }

    /* Hide header top on mobile */
    .header-top {
        display: none;
    }

    /* Mobile navbar */
    .mobile-navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
    }

    /* Mobile logo */
    .mobile-logo {
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--primary-color);
        text-decoration: none;
    }

    /* Mobile actions container */
    .mobile-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    /* Mobile cart icon */
    .mobile-cart-icon {
        position: relative;
        color: var(--dark-color);
        font-size: 1.25rem;
        text-decoration: none;
    }

    .mobile-cart-icon .cart-count {
        position: absolute;
        top: -8px;
        right: -8px;
        background: var(--danger-color);
        color: var(--white);
        border-radius: 50%;
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Hamburger menu button */
    .mobile-menu-toggle {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 30px;
        height: 30px;
        justify-content: center;
    }

    .hamburger-line {
        width: 25px;
        height: 3px;
        background: var(--dark-color);
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    /* Hamburger animation when active */
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Mobile menu overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile menu content */
    .mobile-menu-content {
        position: absolute;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        padding: 2rem 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .mobile-menu-overlay.active .mobile-menu-content {
        transform: translateX(0);
    }

    /* Mobile search */
    .mobile-search {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-search-wrapper {
        display: flex;
        border: 2px solid var(--border-color);
        border-radius: var(--border-radius);
        overflow: hidden;
    }

    .mobile-search-input {
        flex: 1;
        padding: 0.75rem;
        border: none;
        outline: none;
        font-size: 1rem;
    }

    .mobile-search-btn {
        background: var(--primary-color);
        color: var(--white);
        border: none;
        padding: 0.75rem 1rem;
        cursor: pointer;
    }

    /* Mobile menu list */
    .mobile-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu-list > li {
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-list > li:last-child {
        border-bottom: none;
    }

    .mobile-menu-list > li > a {
        display: block;
        padding: 1rem 0;
        color: var(--dark-color);
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 500;
        transition: color 0.3s ease;
    }

    .mobile-menu-list > li > a:hover {
        color: var(--primary-color);
    }

    .mobile-menu-list > li > a i {
        width: 24px;
        margin-right: 0.75rem;
        color: var(--secondary-color);
    }

    /* Mobile menu sections */
    .mobile-menu-section {
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-section-title {
        padding: 1rem 0;
        color: var(--dark-color);
        font-size: 1.1rem;
        font-weight: 500;
        cursor: pointer;
        position: relative;
        transition: color 0.3s ease;
    }

    .mobile-menu-section-title::after {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
    }

    .mobile-menu-section.active .mobile-menu-section-title::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .mobile-menu-section-title:hover {
        color: var(--primary-color);
    }

    .mobile-menu-section-title i {
        width: 24px;
        margin-right: 0.75rem;
        color: var(--secondary-color);
    }

    /* Mobile submenu */
    .mobile-submenu {
        list-style: none;
        padding: 0;
        margin: 0;
        display: none;
        background: var(--light-color);
        margin-bottom: 1rem;
        border-radius: var(--border-radius);
    }

    .mobile-submenu li {
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-submenu li:last-child {
        border-bottom: none;
    }

    .mobile-submenu a {
        display: block;
        padding: 0.75rem 1rem;
        color: var(--dark-color);
        text-decoration: none;
        font-size: 0.95rem;
        transition: all 0.3s ease;
    }

    .mobile-submenu a:hover {
        color: var(--primary-color);
        background: rgba(0, 123, 255, 0.1);
    }

    .mobile-submenu a i {
        width: 20px;
        margin-right: 0.5rem;
        color: var(--secondary-color);
        font-size: 0.9rem;
    }

    /* Mobile divider */
    .mobile-divider {
        height: 1px;
        background: var(--border-color);
        margin: 0.5rem 0;
    }

    /* Mobile login button */
    .mobile-login-btn {
        background: var(--primary-color);
        color: var(--white) !important;
        border-radius: var(--border-radius);
        padding: 1rem !important;
        text-align: center;
        margin-bottom: 1rem;
    }

    .mobile-login-btn:hover {
        background: #0056b3;
        color: var(--white) !important;
    }

    /* Mobile menu footer */
    .mobile-menu-footer {
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border-color);
    }

    .mobile-contact-info p {
        margin: 0.5rem 0;
        color: var(--secondary-color);
        font-size: 0.9rem;
    }

    .mobile-contact-info i {
        width: 20px;
        margin-right: 0.5rem;
        color: var(--primary-color);
    }

    /* Prevent body scroll when menu is open */
    body.mobile-menu-open {
        overflow: hidden;
    }

    /* Text color utilities for mobile */
    .text-danger {
        color: var(--danger-color) !important;
    }

    .text-success {
        color: var(--success-color) !important;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .navbar {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        width: 100%;
        margin: 1rem 0 0 0;
    }

    .nav-menu {
        gap: 1rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .mobile-menu-content {
        width: 95%;
        padding: 1.5rem 1rem;
    }

    .mobile-logo {
        font-size: 1.25rem;
    }

    .mobile-search-input,
    .mobile-search-btn {
        padding: 0.6rem;
    }

    .mobile-menu-list > li > a {
        padding: 0.875rem 0;
        font-size: 1rem;
    }

    .mobile-menu-section-title {
        padding: 0.875rem 0;
        font-size: 1rem;
    }

    .mobile-submenu a {
        padding: 0.625rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Smooth transitions for better UX */
* {
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-list a,
.mobile-submenu a,
.mobile-menu-section-title {
    -webkit-tap-highlight-color: rgba(0, 123, 255, 0.2);
}

/* Fix for iOS Safari bottom padding */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-menu-content {
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .mobile-menu-content {
        /*background: #1a1a1a;*/
        /*color: #ffffff;*/
    }

    .mobile-search-input {
        /*background: #2a2a2a;*/
        /*color: #ffffff;*/
    }

    .mobile-submenu {
        /*background: #2a2a2a;*/
    }
}

/* Enhanced Dropdown Styles - Add this to your CSS file */

/* Desktop Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    position: relative;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
}

.dropdown-toggle::after {
    content: '\f107'; /* FontAwesome down arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
    border-top: none;
}

.dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    z-index: 1000;
    border: 1px solid var(--border-color);
    margin-top: 0.25rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-menu.active,
.dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    font-size: 0.9rem;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background: var(--light-color);
    color: var(--primary-color);
    border-bottom-color: var(--border-color);
    padding-left: 1.25rem;
}

.dropdown-menu a i {
    width: 20px;
    margin-right: 0.5rem;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.dropdown-menu a:hover i {
    color: var(--primary-color);
}

/* Mobile Dropdown Styles */
@media (max-width: 768px) {
    .mobile-menu .dropdown {
        display: block;
        width: 100%;
    }

    .mobile-menu .dropdown-toggle {
        display: block;
        width: 100%;
        padding: 0.75rem 1rem;
        text-align: left;
        background: none;
        border: none;
        color: var(--dark-color);
    }

    .mobile-menu .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(0, 0, 0, 0.05);
        margin: 0;
        padding: 0;
        transform: none;
        opacity: 1;
    }

    .mobile-menu .dropdown-menu.active {
        display: block;
    }

    .mobile-menu .dropdown-menu a {
        padding: 0.75rem 2rem;
        font-size: 0.875rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .mobile-menu .dropdown-menu a:hover {
        background: rgba(0, 0, 0, 0.1);
        padding-left: 2.25rem;
    }
}

/* Dropdown Divider */
.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
    border: none;
}

/* Animation for smooth transitions */
.dropdown-menu {
    animation-duration: 0.3s;
    animation-fill-mode: both;
}

.dropdown.active .dropdown-menu {
    animation-name: slideDown;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for better UX */
.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Focus states for accessibility */
.dropdown-toggle:focus,
.dropdown-menu a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Right-aligned dropdown menus */
.dropdown-menu.dropdown-menu-right {
    left: auto;
    right: 0;
}

/* Category-specific styling */
.nav-menu .dropdown-menu {
    border-top: 2px solid var(--primary-color);
}

/* User menu specific styling */
.user-actions .dropdown-menu {
    border-top: 2px solid var(--success-color);
    min-width: 180px;
}

.user-actions .dropdown-menu a {
    font-size: 0.875rem;
}

/* Admin/Seller dropdown styling */
.admin-header .dropdown-menu,
.seller-header .dropdown-menu {
    border-top: 2px solid var(--danger-color);
}

/* Loading state for dropdowns */
.dropdown-menu.loading {
    opacity: 0.7;
    pointer-events: none;
}

.dropdown-menu.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.category-list{
    padding: 10px 0;
}
.category-icon{
    text-align: center;
}
.category-icon .category-name{
    display: inline-block;
    color:#333;
}