/* Products Header */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Filter Sidebar */
.filter-sidebar {
    background-color: var(--off-white);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--light-gray);
    position: relative;
}

.filter-sidebar:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gold);
    border-radius: 8px 8px 0 0;
}

.filter-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.filter-title:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--primary-gold);
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

.form-check-input:checked {
    background-color: var(--primary-gold-solid);
    border-color: var(--primary-gold-solid);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

/* Sort Dropdown */
.sort-dropdown .btn {
    background-color: var(--primary-white);
    border: 1px solid var(--light-gray);
    color: var(--primary-black);
    padding: 0.6rem 1.2rem;
    min-width: 180px;
    text-align: left;
    position: relative;
    transition: all 0.3s ease;
}

.sort-dropdown .btn:hover, .sort-dropdown .btn:focus {
    border-color: var(--primary-gold-solid);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.1);
}

.sort-dropdown .btn:after {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.dropdown-item.active, .dropdown-item:active {
    background: var(--primary-gold);
    color: var(--primary-black);
    font-weight: 600;
}

/* Dropdown Filters */
.dropdown-filter {
    margin-bottom: 2rem;
}

.dropdown-filter .btn {
    background-color: var(--primary-white);
    border: 1px solid var(--light-gray);
    color: var(--primary-black);
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.dropdown-filter .btn:hover, .dropdown-filter .btn:focus {
    border-color: var(--primary-gold-solid);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.1);
}

.dropdown-filter .btn:after {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Product Card (Full Version) */
.product-card {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: var(--primary-white);
    position: relative;
    border: 1px solid var(--light-gray);
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: transparent;
}

.product-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: var(--primary-gold);
    z-index: 2;
    transition: height 0.3s ease;
}

.product-card:hover:before {
    height: 3px;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.product-front-img, .product-back-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.product-back-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: scale(1.1);
}

.product-image-container:hover .product-front-img {
    opacity: 0;
    transform: scale(1.1);
}

.product-image-container:hover .product-back-img {
    opacity: 1;
    transform: scale(1);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-gold);
    color: var(--primary-black);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(140, 111, 28, 0.3);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(to right, #BF953F, #be9343, #B38728, #FBF5B7, #AA771C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.product-colors {
    display: flex;
    margin-bottom: 0.5rem;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    border: 2px solid var(--light-gray);
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.color-dot:hover {
    transform: scale(1.2);
    border-color: var(--primary-gold-solid);
}

/* Apply Filters Button */
.btn-apply-filters {
    background: var(--primary-gold);
    color: var(--primary-black);
    font-weight: 600;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(140, 111, 28, 0.3);
}

/* Pagination */
.pagination {
    margin-top: 3rem;
    justify-content: center;
}

.page-item.active .page-link {
    background-color: var(--primary-gold-solid);
    border-color: var(--primary-gold-solid);
    color: var(--primary-black);
}

.page-link {
    color: var(--primary-black);
    border: 1px solid var(--light-gray);
    margin: 0 0.25rem;
    border-radius: 4px !important;
}

.page-link:hover {
    background-color: var(--light-gold);
    border-color: var(--primary-gold-solid);
    color: var(--primary-black);
}

.page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-tag {
    background-color: var(--off-white);
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    padding: 0.25rem 1rem 0.25rem 1.5rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.filter-tag:before {
    content: '•';
    color: var(--primary-gold-solid);
    font-size: 1.5rem;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.filter-tag .remove-filter {
    margin-left: 8px;
    cursor: pointer;
    color: var(--text-gray);
    transition: color 0.2s;
}

.filter-tag .remove-filter:hover {
    color: var(--primary-black);
}

/* Clear Filters */
.clear-filters {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.clear-filters:hover {
    color: var(--primary-gold-solid);
}

/* Responsive */
@media (max-width: 768px) {
    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sort-dropdown {
        width: 100%;
    }
    
    .sort-dropdown .btn {
        width: 100%;
    }
}