/* Catalog Styles */
.rounded-20 { border-radius: 20px !important; }
.shadow-hover {
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    background: #fff;
}
.shadow-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
}

/* Product Card */
.modern-product-card {
    position: relative;
    overflow: hidden;
}
.img-container {
    padding: 20px;
    text-align: center;
}
.img-container img {
    max-height: 180px;
    object-fit: contain;
}
.product-name {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    height: 2.8rem;
    overflow: hidden;
    display: block;
}

/* Badges */
.badges-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}
.badge-sale {
    background: #ff4d4f;
    color: #fff;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
}
.badge-new {
    background: #52c41a;
    color: #fff;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    margin-left: 5px;
}

/* Filters */
.filter-card label {
    font-size: 0.9rem;
    color: #444;
}
.filter-input {
    border-radius: 10px;
    border-color: #eee;
    font-size: 0.85rem;
}
.custom-checkbox input {
    margin-right: 10px;
}
.filter-scroll-list {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}
.filter-scroll-list::-webkit-scrollbar { width: 4px; }
.filter-scroll-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }

.old-price {
    text-decoration: line-through;
    font-size: 0.85rem;
    margin-right: 10px;
}
.current-price {
    font-size: 1.15rem;
}
.filter-header {
    cursor: pointer;
    user-select: none;
}

.rotate-icon {
    transition: transform 0.3s ease;
}

.filter-header[aria-expanded="false"] .rotate-icon {
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
    display: inline-block;
}

.filter-header[aria-expanded="true"] .rotate-icon {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
    display: inline-block;
}
.filter-scroll-list {
    max-height: 200px;
    overflow-y: auto;
    padding-left: 2px;
}

.filter-scroll-list::-webkit-scrollbar {
    width: 4px;
}
.filter-scroll-list::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
}
.category-hero {
    background: #fff;
    min-height: 200px;
}

.hero-image-container {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, #ffffff, transparent);
    z-index: 1;
}

.hero-ac-unit {
    position: relative;
    z-index: 2;
    max-width: 80%;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 768px) {
    .category-hero h1 { font-size: 1.5rem; }
    .category-hero .p-5 { padding: 1.5rem !important; }
}


.category-card {
    border-radius: 20px;
    text-decoration: none !important;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.category-card:hover {

}

.category-img-wrapper {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-img-wrapper img {
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

.category-title {
    font-size: 1.1rem;
    line-height: 1.3;
}

.main_container .categories_v1 {
    justify-content: center;
}
.hover-top {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-top:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.badge-sale-mini {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff3b30;
    color: #fff;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
    z-index: 5;
}

.btn-add-mini {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    background: #f0f7ff;
    color: #0075FF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-add-mini:hover {
    background: #0075FF;
    color: #fff;
}

.product-name-mini {
    font-size: 0.9rem;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.filter-horizontal-bar { min-height: 54px; }
.filter-unit { flex: 1; min-width: 100px; }
.custom-minimal-select {
    border: none;
    width: 100%;
    font-weight: 600;
    font-size: 0.85rem;
    outline: none;
    background: transparent;
    cursor: pointer;
}
.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .category-hero {
        min-height: auto !important;
        padding: 20px 0;
    }
    .category-hero h1 {
        font-size: 1.4rem !important;
    }
    .category-hero .col-md-5 {
        padding: 20px !important;
        text-align: center;
    }
    .category-hero .btn-xs {
        width: 100%;
        max-width: 200px;
        margin: 10px auto 0;
    }
}

@media (max-width: 768px) {
    .filter-horizontal-bar {
        flex-direction: column !important;
        border-radius: 20px !important;
        padding: 15px !important;
        gap: 10px;
    }

    .filter-unit {
        border-right: none !important;
        border-bottom: 1px solid #eee;
        width: 100%;
        padding: 10px 0 !important;
        text-align: center;
    }

    .filter-unit:last-of-type {
        border-bottom: none;
    }

    .custom-minimal-select {
        width: 100%;
        font-size: 16px !important;
        text-align-last: center;
    }

    .filter-horizontal-bar .btn-icon {
        width: 100% !important;
        border-radius: 10px !important;
        margin-left: 0 !important;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .category-card {
        padding: 15px !important;
    }
    .category-img-wrapper {
        height: 80px !important;
    }
    .category-title {
        font-size: 0.9rem !important;
    }
}

 .rotate-icon {
     transition: transform 0.3s ease;
 }

@media (max-width: 991px) {
    .filter-card {
        box-shadow: none !important;
        border: 1px solid #eee;
        margin-top: 10px;
    }
    .custom-control-label {
        padding-top: 2px;
        font-size: 16px;
        display: block;
        width: 100%;
    }
    .category-info h2,.category-info h3{
        font-size: 21px;
    }
}
@media (max-width: 576px) {
    .category-info {
        padding: 8px !important;
        border-radius: 15px !important;
    }

    .category-info h2, .category-info h3 {
        font-size: 1.25rem !important;
    }
}
.catalog-toolbar {
    border: 1px solid rgba(0,0,0,0.05);
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50px;
    padding: 4px 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #495057;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
}

.chip-label {
    color: #6c757d;
    margin-right: 4px;
}

.chip-value {
    font-weight: 600;
}

.filter-chip .text-danger {
    font-size: 10px;
    margin-left: 5px;
}

.btn-clear-all {
    font-size: 13px;
    color: #dc3545;
    font-weight: 600;
    text-decoration: underline;
    margin-left: 5px;
}

.btn-clear-all:hover {
    color: #a71d2a;
}

.sort-dropdown .btn {
    background: #fff;
    font-weight: 500;
}

.rounded-15 { border-radius: 15px !important; }
.rounded-20 { border-radius: 20px !important; }

@media (max-width: 768px) {
    .catalog-toolbar {
        padding: 10px !important;
    }

    .filter-chip {
        padding: 3px 10px;
        font-size: 12px;
        margin-right: 5px;
        margin-bottom: 5px;
    }

    .active-filters {
        justify-content: flex-start;
    }

    .sort-dropdown {
        width: 100%;
    }

    .sort-dropdown .btn {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}
.badge-primary.rounded-pill {
    background-color: #3490dc;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.active-filters .text-muted.small {
    font-style: italic;
    opacity: 0.8;
}

.filter-disabled {
    pointer-events: none;
}

.filter-disabled .custom-control-label {
    color: #a0a0a0;
}

.custom-control-label small {
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 1px 4px;
}

.filter-scroll-list {
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
}
