/* Modern CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    padding-top: 180px;
    background: var(--bg-light);
    line-height: 1.6;
}

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

/* Header */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.top-bar {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 100%);
    padding: 10px 0;
    font-size: 13px;
    color: white;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.9);
}

.top-bar a:hover {
    color: white;
}

.main-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

/* Logo */
.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Search Form */
.search-form {
    position: relative;
    max-width: 450px;
    margin: 0 auto;
}

.search-form input {
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 12px 24px;
    width: 100%;
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-light);
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-form button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0 24px;
    font-weight: 500;
    transition: var(--transition);
}

.search-form button:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    transform: scale(1.02);
}

/* Main Menu */
.main-menu {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

/* Remove all list markers from menus */
.main-menu ul,
.main-menu li,
.main-menu .nav,
.main-menu .nav-item,
.dropdown-menu,
.dropdown-menu ul,
.dropdown-menu li,
nav ul,
nav li,
.nav,
.nav-item {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0;
    margin-left: 0;
}

.main-menu ul::marker,
.main-menu li::marker,
.main-menu .nav-item::marker,
.dropdown-menu::marker,
.dropdown-menu li::marker,
.dropdown-menu ul::marker,
nav ul::marker,
nav li::marker,
.nav::marker,
.nav-item::marker,
ul.dropdown-menu li::marker {
    display: none !important;
    content: none !important;
    font-size: 0 !important;
    color: transparent !important;
}

/* Extra specific rules for dropdown items */
.dropdown-menu > li,
ul.dropdown-menu > li,
.main-menu .dropdown-menu li {
    list-style: none !important;
    list-style-type: none !important;
    display: block;
}

.dropdown-menu > li::before,
ul.dropdown-menu > li::before {
    content: none !important;
    display: none !important;
}

.main-menu .nav-link {
    color: var(--text-dark) !important;
    padding: 15px 20px !important;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    transition: var(--transition);
}

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

/* Mega Menu */
.mega-menu {
    position: static !important;
}

.mega-menu .dropdown-menu {
    width: 100%;
    border: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-top: 0 !important;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-menu h5 {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.mega-menu-list {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    margin-bottom: 8px;
    list-style: none !important;
    list-style-type: none !important;
}

.mega-menu-list li::marker {
    display: none;
    content: none;
}

.mega-menu-list li a {
    color: var(--text-medium);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 14px;
}

.mega-menu-list li a:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 16px;
}

/* Dropdown Menu */
.dropdown-menu {
    margin-top: 0 !important;
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
    display: none;
    padding: 8px;
    list-style: none;
}

.dropdown-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.dropdown-menu li {
    list-style: none;
}

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

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

/* Hero Slider */
.hero-slider {
    max-width: 1400px;
    height: 400px;
    margin: 40px auto;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
}

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

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slider-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border: 2px solid white;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot:hover {
    transform: scale(1.2);
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Category Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.category-card {
    position: relative;
    height: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--bg-white);
    transition: var(--transition);
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-card-image-container {
    height: 270px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg-white);
}

.category-card img {
    width: auto;
    height: auto;
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: var(--transition);
}

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

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    transition: var(--transition);
}

.category-card:hover .category-overlay {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
}

.category-overlay h3 {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Product Cards */
.product-card {
    background: var(--bg-white);
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card a {
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.product-image-wrapper {
    height: 260px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    overflow: hidden;
}

.product-image {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: var(--transition);
}

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

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: var(--shadow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.product-info {
    padding: 1.25rem;
    text-align: center;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.product-price {
    margin-bottom: 0.75rem;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-right: 8px;
}

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

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
}

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

/* Stats and References Combined Section */
.stats-references {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-text {
    color: var(--text-medium);
    font-weight: 500;
    font-size: 1rem;
}

.references-title {
    text-align: center;
    margin: 3rem 0 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.reference-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.reference-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.8;
    transition: var(--transition);
    padding: 10px;
}

.reference-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    position: relative;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 4px;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.card-header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-header.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}

.alert-info {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--primary-dark);
    border-left: 4px solid var(--primary);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
    color: #047857;
    border-left: 4px solid var(--success);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
    color: #b45309;
    border-left: 4px solid var(--accent);
}

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

.badge.bg-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

/* Form Controls */
.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Footer */
footer {
    background: linear-gradient(180deg, var(--secondary) 0%, #0a0f1a 100%);
    color: white;
    padding: 5rem 0 2rem;
}

footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: white;
    padding-left: 5px;
}

footer ul li {
    margin-bottom: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    padding-left: 0;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary);
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--text-medium);
}

/* Pagination */
.pagination {
    gap: 8px;
}

.page-link {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.page-link:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
}

/* Cart Badge */
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1400px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-slider {
        max-width: 100%;
        margin: 30px 15px;
        border-radius: var(--radius);
    }
}

@media (max-width: 992px) {
    body {
        padding-top: 160px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .header-contact {
        text-align: center;
        margin-top: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 280px;
        margin: 20px 10px;
    }

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

    .category-card {
        height: 260px;
    }

    .category-card-image-container {
        height: 210px;
    }

    .search-form {
        margin: 1rem auto;
    }

    .mega-menu .dropdown-menu {
        overflow-y: auto;
        max-height: 80vh;
        margin-top: 0 !important;
    }

    .product-image-wrapper {
        height: 220px;
    }

    .reference-logos {
        gap: 1.5rem;
    }

    .reference-logo {
        height: 60px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 100px;
    }

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

    .category-card {
        height: 280px;
    }

    .category-card-image-container {
        height: 230px;
    }

    .product-image-wrapper {
        height: 200px;
    }

    .stat-item {
        padding: 1rem 0.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }

    .btn {
        padding: 10px 20px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

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

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

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

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

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

/* ================================================
   FRONTEND PANEL FIX - Account/Dealer Panel Styles
   ================================================ */

/* Sidebar List Group Fix */
.list-group-item {
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
}

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

.list-group-item:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.list-group-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: transparent;
}

.list-group-item.active:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    color: white;
}

.list-group-item i {
    width: 20px;
    text-align: center;
}

/* Pagination Fix - Smaller Icons */
.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    font-size: 14px;
}

.pagination .page-link svg {
    width: 14px !important;
    height: 14px !important;
}

.pagination .page-link i {
    font-size: 12px;
}

/* Laravel default pagination SVG icon fix */
.pagination svg {
    width: 14px !important;
    height: 14px !important;
    fill: currentColor;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    padding: 8px 14px;
}

/* Table Styling */
.table {
    font-size: 14px;
}

.table th {
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
    padding: 12px;
}

.table td {
    padding: 12px;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

/* Card Fixes */
.card-header.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    border: none;
}

.card-header.bg-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%) !important;
    border: none;
}

.card-header.bg-white {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

/* Stats Card Borders */
.border-start.border-primary { border-color: var(--primary) !important; }
.border-start.border-success { border-color: var(--success) !important; }
.border-start.border-warning { border-color: var(--accent) !important; }
.border-start.border-danger { border-color: var(--danger) !important; }
.border-start.border-info { border-color: #0ea5e9 !important; }

.border-4 { border-width: 4px !important; }

/* Progress Bar */
.progress {
    background-color: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
}

/* Quick Action Buttons */
.btn-light {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

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

/* Form Improvements */
.input-group-text {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-right: none;
    color: var(--text-medium);
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    border-color: var(--border-color);
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary);
}

.input-group:focus-within .form-control {
    border-color: var(--primary);
}

/* Main Menu Fix */
.main-menu .nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-menu .nav-item {
    position: relative;
    list-style: none;
}

.main-menu .dropdown-menu {
    min-width: 200px;
    list-style: none;
    padding-left: 8px;
}

.main-menu .dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-menu .dropdown-menu li {
    list-style: none;
    list-style-type: none;
}

.main-menu .dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
}

/* Mega Menu Improvements */
.mega-menu .dropdown-menu {
    padding: 30px;
}

.mega-menu h5 {
    font-size: 15px;
    margin-bottom: 15px;
}

.mega-menu h5 a {
    color: var(--text-dark);
    text-decoration: none;
}

.mega-menu h5 a:hover {
    color: var(--primary);
}

/* Fix for mobile menu */
@media (max-width: 991px) {
    .main-menu .nav {
        flex-direction: column;
    }

    .main-menu .nav-link {
        padding: 12px 16px !important;
        border-bottom: 1px solid var(--border-color);
    }

    .mega-menu .dropdown-menu {
        position: relative !important;
        width: 100% !important;
        box-shadow: none;
        padding: 15px;
    }

    .mega-menu .dropdown-menu .row {
        flex-direction: column;
    }

    .mega-menu .dropdown-menu .col-md-3 {
        margin-bottom: 20px;
    }
}

/* Account Panel Specific */
.bg-light {
    background-color: var(--bg-light) !important;
}

/* Badge in List Group */
.list-group-item .badge {
    font-size: 11px;
    padding: 4px 8px;
}

/* Timeline styling for order tracking */
.order-timeline::before {
    background: var(--border-color);
}

.timeline-icon.completed {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.timeline-icon.current {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.timeline-content {
    background: var(--bg-light);
}

.timeline-content.current {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

/* Top bar cart badge fix */
.top-bar .cart-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: 1;
}

.top-bar a.d-inline-flex {
    white-space: nowrap;
}

/* Alert improvements */
.alert-dismissible .btn-close {
    padding: 1rem;
}

/* Empty state styling */
.text-center.py-5 i.fa-4x {
    opacity: 0.3;
}

.text-center.py-5 h5 {
    color: var(--text-medium);
    margin-top: 1rem;
}

/* Filter cards */
.card.shadow-sm {
    border: 1px solid var(--border-color);
}

/* Button group fix */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-radius: 10px 0 0 10px;
}

.btn-group .btn:last-child {
    border-radius: 0 10px 10px 0;
}

/* Small buttons */
.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 8px;
}

/* Outline buttons hover states */
.btn-outline-success:hover {
    background: var(--success);
    border-color: var(--success);
}

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

.btn-outline-info:hover {
    background: #0ea5e9;
    border-color: #0ea5e9;
}

/* Fix text colors */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--accent) !important; }
.text-info { color: #0ea5e9 !important; }
.text-muted { color: var(--text-light) !important; }

/* Border radius utilities */
.rounded { border-radius: var(--radius) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }

/* Shadow utilities */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* Font size for table badges */
.table .badge {
    font-size: 12px;
    font-weight: 500;
}

/* Quote/Invoice status badges */
.badge.fs-6 {
    font-size: 13px !important;
    padding: 8px 16px;
}
