body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    padding: 10px 20px;
}

.navbar-brand img {
    height: 60px;
    margin-right: 15px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.search-box {
    max-width: 500px;
}

.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-card img {
    transition: transform 0.3s ease;
}

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

.text-white-50 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.text-white-50:hover {
    color: rgba(255, 255, 255, 1) !important;
}

.text-white-50.text-decoration-none:hover {
    text-decoration: underline !important;
}

@media (max-width: 768px) {
    .search-box {
        max-width: 100%;
        margin-top: 1rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .category-card .card-body {
        padding: 1rem;
    }

    .search-container {
        max-width: 100%;
        margin: 0 1rem;
    }

    .search-wrapper {
        padding: 1px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }

    .search-input {
        padding: 10px 45px 10px 16px;
        font-size: 14px;
    }

    .search-button {
        width: 35px;
        height: 35px;
        right: 5px;
    }

    .search-button i {
        font-size: 14px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-brand img {
        height: 32px;
    }

    .search-form {
        max-width: 100%;
        margin: 0 1rem;
    }

    .search-input-modern {
        height: 44px;
        padding: 0 45px 0 16px;
        font-size: 14px;
    }

    .search-btn-modern {
        height: 36px;
        width: 36px;
        right: 4px;
        top: 4px;
    }

    .search-btn-modern i {
        font-size: 14px;
    }
}

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

footer .input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn.position-fixed.bottom-0.end-0 {
    z-index: 1000;
}

.hero-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.position-absolute.top-0.start-0.m-2 {
    z-index: 10;
}

.btn:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.sticky-top {
    top: 0;
    z-index: 1030;
}

.bg-light.py-2.border-bottom {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
}

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

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

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.text-decoration-line-through {
    text-decoration: line-through;
}

.text-primary.mb-0 {
    color: #007bff !important;
    margin-bottom: 0 !important;
}

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

.container {
    padding-left: 15px;
    padding-right: 15px;
}

.search-form {
    max-width: 500px;
    width: 100%;
    position: relative;
}

.search-input-modern {
    width: 100%;
    height: 48px;
    padding: 0 50px 0 20px;
    border: 2px solid #e1e5e9;
    border-radius: 24px;
    background: #ffffff;
    color: #1a202c;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    outline: none;
}

.search-input-modern:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #fefefe;
}

.search-input-modern::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.search-btn-modern {
    position: absolute;
    right: 4px;
    top: 4px;
    height: 40px;
    width: 40px;
    border: none;
    border-radius: 20px;
    background: #3b82f6;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn-modern:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.search-btn-modern:active {
    transform: scale(0.95);
}

.search-btn-modern i {
    font-size: 16px;
    font-weight: 600;
}

.favorite-icon-link {
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #dc3545;
    position: relative;
    display: inline-block;
}

.favorite-icon-link:hover {
    background-color: #fef2f2;
    color: #b91c1c;
    transform: scale(1.1);
}

.favorite-icon-link .badge {
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.cart-icon-link {
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #1a202c;
    position: relative;
    display: inline-block;
}

.cart-icon-link:hover {
    background-color: #f3f4f6;
    color: #3b82f6;
    transform: scale(1.1);
}

.cart-icon-link .badge {
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.g-4 > * {
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

.display-4 {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
}

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

.bg-success {
    background-color: #28a745 !important;
}

.dropdown-menu {
    z-index: 1060;
}

.text-md-end {
    text-align: right !important;
}

@media (max-width: 767.98px) {
    .text-md-end {
        text-align: left !important;
    }

    .cart-icon-link {
        padding: 6px;
        margin-left: 0.5rem;
    }

    .cart-icon-link .fs-5 {
        font-size: 1.2rem !important;
    }

    .cart-icon-link .badge {
        font-size: 10px;
        min-width: 16px;
        height: 16px;
    }
}

/* Categories Bar */
.categories-wrapper {
    position: relative;
}

.categories-bar {
    position: sticky;
    top: 72px; /* Height of navbar */
    z-index: 1020;
    background: white;
    border-bottom: 1px solid #e1e5e9;
    margin: 0 !important;
    padding: 0 !important;
}

.categories-bar .nav-link {
    padding: 12px 20px;
    font-weight: 500;
    color: #374151;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.categories-bar .nav-link:hover {
    color: #007bff;
    border-bottom-color: #007bff;
    background: #f8f9fa;
}

/* Mega Menu */
.mega-menu-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid #e1e5e9;
    z-index: 1030;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-height: 400px;
    margin: 0 !important;
}

.mega-menu-container.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu {
    display: flex;
    padding: 30px 0;
}

.mega-left {
    flex: 0 0 300px;
    border-right: 1px solid #e1e5e9;
    padding-right: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.mega-main-cats {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-main-cats .mega-cat-item {
    margin-bottom: 10px;
}

.mega-main-cats .mega-cat-item a {
    display: block;
    padding: 10px 15px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mega-main-cats .mega-cat-item a:hover {
    background: #f8f9fa;
    color: #007bff;
}

.mega-main-cats .mega-cat-item.active a {
    background: #007bff;
    color: white;
}

.mega-right {
    flex: 1;
    padding-left: 30px;
    position: relative;
}

.mega-subs {
    display: none;
}

.mega-subs.show {
    display: block;
}

.sub-cat {
    margin-bottom: 20px;
}

.sub-cat > a {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
}

.sub-cat > a:hover {
    color: #007bff;
}

.sub-sub {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.sub-sub a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.sub-sub a:hover {
    color: #007bff;
}

/* Mega Trigger Button - removed */

/* Mobile Accordion */
@media (max-width: 991.98px) {
    .categories-bar {
        display: none !important;
    }

    .mega-menu-container {
        display: none !important;
    }

    /* Add mobile menu styles if needed */
}
