/* Premium Category Dropdown Styles */
.categories-dropdown-menu {
    min-width: 260px;
    border-radius: 12px;
    padding: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.categories-dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.95rem;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.categories-dropdown-menu .dropdown-item:hover {
    background-color: #C2402D !important;
    color: #ffffff !important;
}

.categories-dropdown-menu .dropdown-item i {
    transition: transform 0.2s ease;
}

.categories-dropdown-menu .dropdown-item:hover i {
    transform: translateX(4px);
    opacity: 1 !important;
}

.categories-dropdown-menu .dropdown-divider {
    margin: 8px 0;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

#navbarCategoriesDropdown {
    border-radius: 24px;
    padding: 8px 20px;
    font-weight: 500;
    border-color: rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

#navbarCategoriesDropdown:hover, #navbarCategoriesDropdown:focus, #navbarCategoriesDropdown[aria-expanded="true"] {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
    .navbar-search-input-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 575.98px) {
    .navbar-search-input-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .flex-grow-1.d-flex {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        padding: 10px 0;
    }

    #navbarCategoriesDropdown {
        width: 100%;
        justify-content: center;
    }
}

/* Categories Page CSS */
.categories-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: .5rem;
    margin-bottom: 1px;
}

.categories-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.categories-header .lead {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 0;
}

.category-card {
    transition: all 0.2s ease-in-out;
    border: 1px solid #dee2e6;
    overflow: hidden;
}

.category-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15) !important;
    transform: translateY(-2px);
}

.category-image-wrapper {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: #f8f9fa;
}

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

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

.category-image-placeholder {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-card .card-title {
    font-size: 1.1rem;
    padding: 1rem 1.25rem 0.5rem;
}

.category-card .card-body.subcategory-container {
    padding: 0.5rem 1.25rem 1.25rem;
}

.subcategory-link {
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s ease;
    display: inline-block;
}

.subcategory-link:hover {
    color: #0d6efd;
}

.subcategory-link i {
    font-size: 0.75rem;
    opacity: 0.6;
}
/* Categories Product Page*/
.category-products-breadcrumb {
    margin-bottom: 1rem;
}

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

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: #C2402D;
}

.breadcrumb-item.active {
    color: #212529;
    font-weight: 700;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #adb5bd;
    font-weight: bold;
}

.category-products-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.25), transparent 34%),
        linear-gradient(135deg, #20263C 0%, #303957 52%, #C2402D 100%);
    box-shadow: 0 18px 38px rgba(32, 38, 60, 0.16);
}

.category-products-hero::before,
.category-products-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.category-products-hero::before {
    width: 220px;
    height: 220px;
    right: -70px;
    bottom: -110px;
    background: rgba(255, 255, 255, 0.12);
}

.category-products-hero::after {
    width: 100px;
    height: 100px;
    left: 42%;
    top: -50px;
    background: rgba(255, 255, 255, 0.10);
}

.category-products-hero-content,
.category-products-hero-badge {
    position: relative;
    z-index: 1;
}

.category-products-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.category-products-kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.16);
}

.category-products-hero h1 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.category-products-hero p {
    margin: 0.55rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.5;
}

.category-products-hero-badge {
    min-width: 112px;
    height: 112px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.category-products-hero-badge span {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
}

.category-products-hero-badge small {
    margin-top: 0.3rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.category-products-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.35rem 0 1rem;
}

.category-products-toolbar h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #212529;
}

.category-products-toolbar p {
    margin: 0.2rem 0 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.category-preloader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    margin: 1.25rem 0;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    color: #6c757d;
}

.category-preloader .spinner-border {
    width: 2rem;
    height: 2rem;
    color: #C2402D;
}

.category-preloader p {
    margin: 0;
    font-weight: 600;
}

#offers-container {
    margin-top: 1rem;
}

.product-card img {
    height: 190px;
    padding: 18px;
    background: linear-gradient(180deg, #fff, #f8f9fa);
}


.empty-products {
    padding: 3rem 1.5rem;
    margin-top: 1rem;
    text-align: center;
    border: 1px dashed rgba(15, 23, 42, 0.16);
    border-radius: 22px;
    background: #fff;
}

.empty-products i {
    font-size: 2.4rem;
    color: #C2402D;
}

.empty-products h3 {
    margin: 0.75rem 0 0.35rem;
    color: #212529;
    font-weight: 800;
}

.empty-products p {
    margin: 0 0 1.2rem;
    color: #6c757d;
}

.category-load-more-wrapper {
    display: flex;
    justify-content: center;
    margin: 1.75rem 0 0.5rem;
}

.load-more-btn {
    min-width: 160px;
    border: 0;
    border-radius: 999px;
    padding: 0.78rem 1.4rem;
    color: #fff;
    background: linear-gradient(135deg, #C2402D, #ef7b5f);
    box-shadow: 0 12px 24px rgba(194, 64, 45, 0.22);
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.load-more-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(194, 64, 45, 0.28);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 768px) {

    .category-products-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.35rem;
        border-radius: 20px;
    }

    .category-products-hero-badge {
        width: 100%;
        min-height: 84px;
        height: auto;
        flex-direction: row;
        justify-content: center;
        gap: 0.55rem;
        border-radius: 16px;
    }

    .category-products-hero-badge span {
        font-size: 1.75rem;
    }

    .product-card img {
        height: 170px;
    }
}
