.filter-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 10px 30px;
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn.active {
    background: #0580fb;
    color: white;
}

.filter-btn:hover:not(.active) {
    background: #e0e0e0;
}

.search-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 60px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    box-shadow: 0 8px 30px rgba(57, 160, 219, 0.15);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 20px;
    color: #adb5bd;
    font-size: 1.2rem;
}

.search-input {
    flex: 1;
    padding: 16px 80px 16px 50px;
    border: none;
    background: transparent;
    font-size: 1rem;
    border-radius: 60px;
    outline: none;
}

.clear-search {
    position: absolute;
    right: 110px;
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.clear-search:hover {
    color: var(--brand-orange);
}

.search-btn-brand {
    background: var(--brand-blue);
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    margin: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn-brand:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(57, 160, 219, 0.3);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .search-input {
        padding: 12px 70px 12px 45px;
        font-size: 0.9rem;
    }

    .search-btn-brand {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .clear-search {
        right: 90px;
    }
}

/* Popular Products Slider Styles */
.popular-slider-wrapper {
    margin-bottom: 3rem;
    position: relative;
}


.section-title-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.slider-controls {
    display: flex;
    gap: 10px;
}

.slider-prev-btn,
.slider-next-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.slider-prev-btn:hover,
.slider-next-btn:hover {
    background-color: var(--brand-blue);
    border-color: transparent;
    color: white;
    transform: scale(1.05);
}

.popular-slider-main {
    position: relative;
    overflow: hidden;
}

.popular-slider-container {
    overflow: hidden;
    position: relative;
    padding-bottom: 10px;
    border-radius: 20px;
}

.popular-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.popular-product-card {
    flex: 0 0 calc(25% - 15px);
    /* 4 products visible at a time */
    min-width: calc(25% - 15px);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    justify-content: center;
    border-radius: 20px;
}

@media (max-width: 1200px) {
    .popular-product-card {
        flex: 0 0 calc(33.333% - 14px);
        min-width: calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .popular-product-card {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    .popular-product-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

.popular-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}


.product-info {
    padding: 15px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #eb652f;
}

.old-price {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #adb5bd;
}

.buy-now-btn {
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background-color: var(--brand-orange);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 5px;
}

.buy-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(57, 160, 219, 0.3);
    color: white;
    text-decoration: none;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--brand-orange);
    width: 25px;
    border-radius: 10px;
}

.dot:hover {
    background: var(--brand-blue);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .section-title-brand {
        font-size: 1.3rem;
    }

    .slider-prev-btn,
    .slider-next-btn {
        width: 35px;
        height: 35px;
    }
}

/* ========== BRAND COLOR SYSTEM ========== */
:root {
    --brand-blue: #0580fb;
    --brand-orange: #eb652f;
    --brand-blue-dark: #2c7ab0;
    --brand-orange-dark: #c45122;
    --brand-gradient: linear-gradient(135deg, var(--brand-blue), var(--brand-orange));
    --brand-gradient-reverse: linear-gradient(135deg, var(--brand-orange), var(--brand-blue));
    --brand-gradient-soft: linear-gradient(135deg, var(--brand-blue)15, var(--brand-orange)15);
}


* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}



/* Brand Gradient Text */
.brand-gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.brand-gradient-text-small {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Premium Category Cards */
.category-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.5s ease;
    background: linear-gradient(to bottom right, #0480fb 60%, #eb652f 40%);
}

.image-container2 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.5s ease;
    background-color: #fff;
}

.btn-primary {
    background-color: #0480fb;
    color: white;
    border-radius: 50px;
    padding: 8px 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
}

.category-img {
    max-height: 150px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.1));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    position: relative;
    border-radius: 15px;
}

.popular-img {
    max-height: 130px;
    width: auto;
    object-fit: contain;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    position: relative;
    border-radius: 15px;
}

.category-card:hover .category-img {
    border-radius: 100%;
}

.animate-card {
    animation: fadeInScale 0.5s ease-out forwards;
    opacity: 0;
    transform: scale(0.9);
    max-height: 295px !important;
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Brand Sticky Header */
.sticky-header-brand {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px 0;
    z-index: 100;
    border-bottom: 2px solid transparent;
    border-image: var(--brand-gradient);
    border-image-slice: 1;
}

/* Brand Progress Bar */
.progress-container-brand {
    width: 100%;
    height: 3px;
    background: #e9ecef;
    margin-top: 20px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-brand {
    height: 100%;
    background: var(--brand-gradient);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

/* Brand Back Button */
.back-btn-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border-radius: 50px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(57, 160, 219, 0.2);
}

.back-btn-brand:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(57, 160, 219, 0.15);
    color: var(--brand-orange);
    border-color: var(--brand-orange);
}

.back-btn-brand i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--brand-blue);
}

.back-btn-brand:hover i {
    transform: translateX(-3px);
    color: var(--brand-orange);
}

/* Category Label */
.category-label-brand {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 4px 12px;
    display: inline-block;
}

/* Brand Control Buttons */
.control-btn-brand {
    background: white;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
}

.control-btn-brand:hover,
.control-btn-brand.active {
    background: var(--brand-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

/* Brand Outline Button */
.btn-brand-outline {
    background: transparent;
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-brand-outline:hover {
    background: var(--brand-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

/* Brand Spinner */
.brand-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid rgba(57, 160, 219, 0.2);
    border-top-color: var(--brand-blue);
    border-right-color: var(--brand-orange);
    border-radius: 50%;
    animation: spin-brand 0.8s linear infinite;
}

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

.loader-wrapper-brand {
    padding: 60px 20px;
}

/* Empty State */
.empty-state-modern {
    background: white;
    border-radius: 30px;
    padding: 60px 20px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

.floating-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Products Views */
.products-container.grid-view .product-card {
    transition: all 0.3s ease;
}

.products-container.list-view {
    display: flex;
    flex-direction: column;
}

.products-container.list-view .product-card {
    width: 100%;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .category-stats {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .sticky-header-brand .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .view-controls {
        justify-content: center;
    }

    .category-info {
        order: -1;
    }
}