/**
 * Products Page Styles
 * Custom styles for the products page
 */

/* Mobile Header Layout */
.mobile-filter-header {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-search-wrapper {
    flex: 0 1 auto;
    width: 120px;
}

.mobile-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 120px;
    justify-content: space-between;
    flex: 0 1 auto;
}

.mobile-filter-toggle:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.filter-toggle-text {
    font-size: 10px;
    font-weight: 600;
    color: #000;
}

.filter-toggle-icon {
    transition: transform 0.3s ease;
    color: #000;
}

.mobile-filter-toggle.active .filter-toggle-icon {
    transform: rotate(180deg);
}

/* Icon switching styles */
.filter-toggle-icon.hamburger-icon {
    display: block;
}

.filter-toggle-icon.xmark-icon {
    display: none;
}

.mobile-filter-toggle.active .filter-toggle-icon.hamburger-icon {
    display: none;
}

.mobile-filter-toggle.active .filter-toggle-icon.xmark-icon {
    display: block !important;
}

/* Mobile Filters Container */
.mobile-filters-container {
    display: none;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.mobile-filters-container.show {
    display: block;
}

/* Desktop Only Elements */
.desktop-only {
    display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .mobile-filter-header {
        display: flex;
    }

    .desktop-only {
        display: none;
    }

    .mobile-filters-container {
        margin-top: 10px;
    }

    /* Adjust existing mobile styles */
    .product-search-widget {
        margin-bottom: 0;
    }

    .product-filter-section {
        border-bottom: 1px solid #e9ecef;
    }

    .product-filter-section:last-child {
        border-bottom: none;
    }

    .filter-actions {
        padding: 15px;
        background: #f8f9fa;
        border-top: 1px solid #e9ecef;
    }
}

@media (min-width: 769px) {
    .mobile-filter-header {
        display: none;
    }

    .mobile-filters-container {
        display: none;
    }
}

.cta-banner {
    margin: 0;
}

.cta-banner:before {
    background-image: none;
}

.cta-banner .cta-description p {
    color: #000;
    font-size: 14px;
    font-weight: 700;
}

.cta-banner .cta-description h1 {
    font-size: 64px;
    font-weight: 700;
    color: #000;
    margin-bottom: 50px;
}

.breadcrumb {
    background: #b8b8b85c;
    font-size: 21px;
    color: #000;

    margin-bottom: 0;
}

.breadcrumb p {
    margin: 12px 0;
}

.breadcrumb>div {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .breadcrumb>div {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .breadcrumb>div {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .breadcrumb>div {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .breadcrumb>div {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .breadcrumb>div {
        max-width: 1320px;
    }
}

/* Responsive design */

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .cta-banner .cta-description h1 {
        font-size: 48px;
        margin-bottom: 30px;
    }

    .breadcrumb {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .cta-banner .cta-description {
        font-size: 10px;
    }

    .cta-banner .cta-description h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .breadcrumb {
        font-size: 14px;
    }

    .breadcrumb p {
        margin: 0 8px;
    }
}

/* Sản phẩm bán chạy */
.products-best-selling-container {
    background-image: url(../images/bg-product.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
}

.products-best-selling-container h2 {
    font-size: 21px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
}

.products-slider {
    position: relative;
    margin: 0 auto;
}

.product-slide {
    padding: 0 10px;
}

.product-item {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #dbdbdb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-image {
    border-radius: 20px;
}

.product-link>.product-image {
    position: relative;
    overflow: hidden;
}

.product-link>.product-image:after {
    content: "";
    padding-top: 100%;
    display: block;
}

.product-link>.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-image img {
    width: 100%;
    height: auto;
}

.product-price {
    padding: 0;
    font-size: 20px;
    font-weight: 700;
    color: #cb0000;
    text-align: center;
}

/* Slick slider custom styles */
.slick-prev,
.slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slick-prev:hover,
.slick-next:hover {
    background: #007cba;
    border-color: #007cba;
    color: #fff;
}

.slick-prev {
    left: -50px;
}

.slick-next {
    right: -50px;
}

.slick-prev:before,
.slick-next:before {
    font-family: "dashicons";
    font-size: 20px;
    color: #333;
}

.slick-prev:before {
    content: "\f341";
}

.slick-next:before {
    content: "\f345";
}

.slick-prev:hover:before,
.slick-next:hover:before {
    color: #fff;
}

.slick-dots {
    bottom: -50px;
}

.slick-dots li button {
    background: #f3f3f3;
}

.buy-now {
    padding: 8px 24px;
    background: #e1e1e1;
    color: #646464;
    border: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.5s ease-in-out;
    margin-bottom: 35px;
}

.buy-now:hover {
    background: #404040;
    color: #fff;
}

.products-best-selling-container .product-price {
    padding: 8px 0;
}

@media (max-width: 768px) {
    .products-best-selling-container {
        padding: 40px 0;
    }

    .products-best-selling-container h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .product-price {
        font-size: 14px;
    }

    .slick-dots {
        bottom: -20px;
    }
}

.product-search-widget {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.product-search-widget .widget-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.product-search-form {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #000;
    border-radius: 20px;
}

.product-search-field {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    background: #fff;
    transition: all 0.3s ease;
}

.product-search-field:focus {
    outline: none;
    border-color: transparent;
    box-shadow: none;
}

.product-search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #000;
    border: none;

    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-search-submit:hover {
    transform: translateY(-50%) scale(1.05);
}

.search-icon {
    width: 16px;
    height: 16px;
}

/* Responsive design */
@media (max-width: 768px) {
    .product-search-widget {
        padding: 15px;
    }

    .search-icon {
        width: 14px;
        height: 14px;
    }
}

/* Products Layout */
.products-layout {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.products-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.products-content {
    flex: 1;
    min-width: 0;
    /* Prevents flex item from overflowing */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-layout {
        flex-direction: column;
    }

    .products-sidebar {
        width: 100%;
        order: 1;
    }

    .products-content {
        order: 2;
    }
}

@media (max-width: 768px) {
    .products-layout {
        gap: 15px;
        margin-top: 20px;
    }
}

/* Product Listing Container */
.product-listing-container {
    flex: 1;
}

/* Product Listing Header */
.product-listing-header {
    margin-bottom: 20px;
}

.product-listing-header h1 {
    margin: 0 0 5px 0;
    font-size: 21px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
}

.parent-category {
    margin: 0;
    font-size: 16px;
    color: #007cba;
    font-weight: 500;
}

/* Filter Summary */
.filter-summary {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    background: #007cba;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.remove-filter {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
}

.remove-filter:hover {
    color: #ff6b6b;
}

.clear-all-filters {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.clear-all-filters:hover {
    background: #f8f9fa;
    color: #495057;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    min-height: 200px;
    /* Ensure minimum height to prevent layout shifts */
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    padding: 10px;
}

.product-title {
    background: linear-gradient(187deg, #000000, #808080, #000000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.product-title .product-link {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.product-item:hover .product-title {
    color: #000;
}

.product-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid #dbdbdb;
    padding: 10px 0;
    justify-content: center;
}

.list_color-options {
    margin-bottom: 0;
}

.list_color-options .color_option {
    width: 18px;
    height: 18px;
}

.list_color-options .color_option span {
    width: 14px;
    height: 14px;
}

.product-color {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.view-product-btn,
.add-to-cart-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-product-btn {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
}

.view-product-btn:hover {
    background: #e9ecef;
    color: #333;
}

.add-to-cart-btn {
    background: #007cba;
    color: #fff;
    border: 1px solid #007cba;
}

.add-to-cart-btn:hover {
    background: #005a87;
    color: #fff;
}

.out-of-stock {
    flex: 1;
    padding: 8px 12px;
    background: #f8f9fa;
    color: #999;
    text-align: center;
    border-radius: 4px;
    font-size: 13px;
}

/* No Products Found */
.no-products-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.no-products-icon {
    color: #ccc;
    margin-bottom: 20px;
}

.no-products-found h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px;
}

.no-products-found p {
    margin: 0 0 20px 0;
    color: #666;
}

.reset-filters-btn {
    background: #007cba;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.reset-filters-btn:hover {
    background: #005a87;
    color: #fff;
}

/* Pagination */
.pagination-wrapper {
    grid-column: 1 / -1;
    margin-top: 30px;
}

.pagination-wrapper .page-numbers {
    display: flex;
    justify-content: end;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-wrapper .page-numbers li {
    margin: 0;
}

.pagination-wrapper .page-numbers a,
.pagination-wrapper .page-numbers span {
    display: flex;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    border: 2px solid #646464;
    border-radius: 50%;
    text-decoration: none;
    color: black;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 700;
}

.pagination-wrapper .page-numbers a:not(.next):not(.prev):hover {
    background: #646464;
    color: #fff;
    border-color: #646464;
}

.pagination-wrapper .page-numbers a.next,
.pagination-wrapper .page-numbers a.prev {
    border: none;
    background: #fff;
}

.pagination-wrapper .page-numbers a.next:before,
.pagination-wrapper .page-numbers a.prev:before {
    content: "";
    background-image: url('data:image/svg+xml,<svg width="19" height="20" viewBox="0 0 19 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.70131 20C2.22362 20 2.55992 19.8733 2.88431 19.6984C5.26902 18.4093 7.65544 17.1234 10.0413 15.8358C12.6846 14.4098 15.3268 12.9811 17.9729 11.5589C18.4935 11.2787 18.8537 10.8927 18.9642 10.3302C19.1162 9.55754 18.776 8.87367 18.0399 8.47159C17.0553 7.93369 16.0657 7.40435 15.0784 6.8718C11.0059 4.67477 6.9284 2.48469 2.86333 0.275355C1.69167 -0.361458 0.590337 0.207984 0.193358 0.956547C-0.0601416 1.43402 -0.0487993 1.91257 0.142318 2.40822C0.965767 4.54163 1.78071 6.67824 2.59905 8.81325C2.72892 9.15117 2.86843 9.48642 2.98412 9.82862C3.01872 9.93182 3.02042 10.066 2.98185 10.1676C2.03648 12.6491 1.09393 15.1317 0.12814 17.6062C-0.37092 18.8857 0.677673 20.0037 1.70131 20Z" fill="%23646464"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 19px;
    height: 20px;
}

.pagination-wrapper .page-numbers a.prev:before {
    transform: rotate(180deg);
}

.pagination-wrapper .page-numbers .current {
    background: #646464;
    color: #fff;
    border-color: #646464;
}

/* Loading state */
.products-grid.loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 15px 0;
    }

    .list_color-options {
        justify-content: center;
    }

    .product-listing-header h1 {
        font-size: 18px;
    }

    .product-title {
        font-size: 14px;
    }

    .product-listing-container {
        margin-top: 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .filter-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-meta {
        flex-direction: column;
        gap: 5px;
    }

    .mobile-filter-toggle {
        width: 100px;
    }
}

/* Product Search Widget */
.product-search-widget {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.product-search-form {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.product-search-field {
    width: 100%;
    padding: 12px 45px 12px 15px;

    border-radius: 20px;
    font-size: 14px;
    background: transparent;
    transition: all 0.3s ease;
}

.product-search-field:focus {
    outline: none;
}

.product-search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);

    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-search-submit:hover {
    color: #005a87;
    transform: translateY(-50%) scale(1.05);
}

.search-icon {
    width: 16px;
    height: 16px;
}

/* Filter Sections */
.product-filter-section {
    padding: 20px;
    background: #fff;
}

.filter-title {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    padding-bottom: 8px;

    text-transform: uppercase;
}

/* Parent Categories Grid */
.parent-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.parent-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.parent-category-item {
    cursor: pointer;
}

.parent-category-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.parent-category-item.active {
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
}

.category-image {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.category-placeholder {
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;

    transition: all 0.3s ease;
}

.cc-filter-option,
.accessory-option {
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    background: transparent;
}

.cc-filter-option input[type="radio"]+.option-label,
.accessory-option input[type="radio"]+.option-label {
    background: #ebebeb;
}

.cc-filter-option:hover input[type="radio"]+.option-label,
.cc-filter-option input[type="radio"]:checked+.option-label,
.cc-filter-option.selected input[type="radio"]+.option-label .accessory-option:hover input[type="radio"]+.option-label,
.accessory-option input[type="radio"]:checked+.option-label,
.accessory-option.selected input[type="radio"]+.option-label {
    background: #cb0000;
    color: #fff;
    font-weight: 600;
}

.cc-filter-option input[type="radio"]:checked~.option-label,
.accessory-option input[type="radio"]:checked~.option-label {
    color: #fff;
    font-weight: 600;
}

.cc-filter-option input[type="radio"]:checked,
.accessory-option input[type="radio"]:checked {
    accent-color: #007cba;
}

.color-filter-option {
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 50%;
}

.color-filter-option:hover,
.color-filter-option.selected {
    box-shadow: inset 2px 2px 3px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-label {
    font-size: 14px;
    color: #767676;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 10px;
}

/* Color Options */
.color-options {
    display: grid;
    grid-template-columns: repeat(6, minmax(31px, 1fr));
    gap: 10px;
}

.color-option {
    display: flex;
    align-items: center;
    padding: 5px;
}

.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid lightgray;
}

/* Subcategories Grid */
.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.subcategory-item {
    display: flex;
    cursor: pointer;
    padding: 0px;
    border-radius: 10px;
    background: #ebebeb;
    border: 2px solid #ebebeb;
    transition: all 0.3s ease;
    position: relative;
    transition: all 0.3s ease;
}

.subcategory-item:hover,
.subcategory-item.active {
    background: #cb0000;
    border: 2px solid #cb0000;
}

.subcategory-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    /* Remove pointer-events: none to make it clickable */
    cursor: pointer;
    z-index: 1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.subcategory-item.active .subcategory-name,
.subcategory-item:hover .subcategory-name {
    color: #fff;
    font-weight: 600;
}

.subcategory-content {
    display: flex;
    align-items: center;
    flex: 1;
    flex-direction: column;
    justify-content: normal;
    align-items: center;
    text-align: center;
    gap: 4px;
    border-radius: 10px;
    background: transparent;
    padding-bottom: 4px;
}

.subcategory-image {
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subcategory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.subcategory-name {
    font-size: 13px;
    color: #767676;
    font-weight: 500;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.apply-filters-btn {
    flex: 1;
    background: #007cba;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-filters-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.clear-filters-btn {
    flex: 1;
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.clear-filters-btn:hover {
    background: #545b62;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .subcategory-image {
        width: 100%;
    }

    .subcategory-image img {
        width: 100%;
        height: auto;
    }

    .product-search-widget,
    .product-filter-section {
        padding: 15px;
    }

    .product-search-field {
        padding: 4px 26px 4px 12px;
        font-size: 10px;
    }

    .product-search-submit {
        padding: 4px 6px;
    }

    .search-icon {
        width: 14px;
        height: 14px;
    }

    .parent-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

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

    .color-options {
        grid-template-columns: repeat(6, 1fr);
    }

    .filter-actions {
        flex-direction: column;
    }
}

/* Filter Toggle Functionality */
.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0;
    border-bottom: 1px solid #000;
    transition: all 0.3s ease;
    user-select: none;
}

.toggle-icon {
    width: 16px;
    height: 16px;
    color: #000;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.filter-header.active .toggle-icon {
    transform: rotate(180deg);
    color: #007cba;
}

.filter-content {
    padding: 15px 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.filter-content:not(.collapsed) {
    display: block;
}

.filter-content.collapsed {
    display: none;
}

/* Animation for smooth toggle */
.filter-content {
    max-height: 1000px;
    opacity: 1;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.filter-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Responsive adjustments for toggle */
@media (max-width: 768px) {
    .filter-header {
        padding: 12px 0;
    }

    .filter-header .filter-title {
        font-size: 12px;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .toggle-icon {
        width: 14px;
        height: 14px;
    }

    .filter-content {
        padding: 12px 0;
    }
}