.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-container .input-group {
    border-radius: 50px;
    overflow: hidden;
}

.search-container .input-group-text {
    border-radius: 50px 0 0 50px;
    padding-left: 20px;
}

.search-container .form-control {
    border: 1px solid #dee2e6;
    font-size: 1.1rem;
}

.search-container .form-control:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

.search-container .btn-primary {
    border-radius: 0 50px 50px 0;
    padding-left: 30px;
    padding-right: 30px;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    max-height: 450px;
    overflow-y: auto;
    z-index: 1050;
    margin-top: 8px;
    display: none;
}

.search-results-dropdown.show {
    display: block;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.active {
    background: #f8f9fa;
}

.search-result-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-name mark {
    background: #fff3cd;
    padding: 0 2px;
    border-radius: 2px;
}

.search-result-meta {
    font-size: 0.85rem;
    color: #666;
}

.search-result-price {
    margin-top: 4px;
}

.search-view-all {
    background: #f8f9fa;
    text-align: center;
    color: #0d6efd;
    font-weight: 500;
}

.search-view-all:hover {
    background: #e9ecef;
}

.search-no-results {
    padding: 30px;
    text-align: center;
    color: #666;
}

.filter-tag {
    padding: 6px 12px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.filter-tag .bi-x-lg {
    font-size: 0.7rem;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.5);
    margin-right: 4px;
}

.row {
    position: relative;
}

aside.col-md-4.col-lg-3 {
    height: 100%; 
}

.filter-card {
    border-radius: 12px;
    overflow: hidden;
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    z-index: 900;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.filter-card::-webkit-scrollbar {
    width: 6px;
}
.filter-card::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.filter-card::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}
.filter-card::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.filter-list {
    max-height: 250px;
    overflow-y: auto;
}

.filter-list .list-group-item {
    border-left: none;
    border-right: none;
    padding: 10px 16px;
    font-size: 0.95rem;
}

.filter-list .list-group-item:first-child {
    border-top: none;
}

.filter-list .list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.filter-list .list-group-item:hover:not(.active) {
    background-color: #f8f9fa;
}

.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0c63e4;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

.product-card-responsive {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card-responsive:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.product-img-link-wrapper {
    display: block;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-card-responsive .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-responsive:hover .card-img-top {
    transform: scale(1.05);
}

.product-title-custom {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.color-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
}

@media (max-width: 767.98px) {
    .search-container .input-group {
        flex-wrap: nowrap;
    }

    .search-container .btn-primary {
        padding-left: 15px;
        padding-right: 15px;
    }

    .search-results-dropdown {
        border-radius: 8px;
        max-height: 350px;
    }

    .search-result-img {
        width: 50px;
        height: 50px;
    }

    .product-card-responsive {
        flex-direction: row;
    }

    .product-card-responsive .product-img-link-wrapper {
        width: 40%;
        height: 140px;
        border-radius: 12px 0 0 12px;
    }

    .product-card-responsive .card-body {
        width: 60%;
    }

    .product-card-responsive .card-img-top {
        border-radius: 12px 0 0 12px;
    }

    .filter-tag {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

.filter-list::-webkit-scrollbar {
    width: 6px;
}

.filter-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.filter-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.filter-list::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}