/* Products Page Styles */

/* Ensure proper inheritance */
* {
    box-sizing: border-box;
}

.products-page {
    background: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 120px 0 50px;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.breadcrumb {
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--gold-primary);
}

.separator {
    margin: 0 10px;
}

.current {
    color: var(--gold-primary);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.product-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.filter-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-tab {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-tab.active {
    background: var(--gold-primary);
    color: var(--bg-primary);
    border-color: var(--gold-primary);
}

.filter-tab:hover:not(.active) {
    border-color: var(--border-color);
    color: var(--text-primary);
    background: var(--hover-overlay);
}

.filter-tab:focus {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

.products-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.filters-sidebar {
    background: var(--input-bg);
    padding: 25px;
    border-radius: 10px;
    height: fit-content;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.filter-header:hover {
    color: var(--gold-primary);
}

.filter-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.filter-header i {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.filter-content {
    padding: 10px 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    overflow: hidden;
    max-height: 1000px;
    opacity: 1;
}

.filter-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0;
}

.sort-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sort-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sort-option input[type="radio"] {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.sort-option input[type="radio"]:checked + .checkmark {
    border-color: var(--gold-primary);
    background: var(--gold-primary);
}

.sort-option input[type="radio"]:checked + .checkmark:after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-dark);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.price-inputs {
    display: flex;
    gap: 15px;
}

.price-input {
    flex: 1;
}

.price-input label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.price-input input {
    width: 100%;
    padding: 8px 12px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.filter-option:hover {
    color: var(--text-primary);
}

.filter-option input[type="radio"] {
    display: none;
}

.filter-option .radio-circle {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-option input[type="radio"]:checked + .radio-circle {
    border-color: var(--gold-primary);
    background: transparent;
}

.filter-option input[type="radio"]:checked + .radio-circle:after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-primary);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Material Options */
.material-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.material-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.material-option:hover {
    color: var(--text-primary);
}

.material-option input[type="radio"] {
    display: none;
}

.material-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.material-option input[type="radio"]:checked + .material-swatch {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Ensure proper spacing on very large screens */
@media (min-width: 1400px) {
    .products-grid {
        gap: 40px;
    }
}

.product-card {
    
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
   
    overflow: hidden;
}

.product-card:hover {
    background: var(--bg-secondary);
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
    border-color: var(--border-color);
    box-shadow: var(--shadow-dark);
}

.product-image {
    width: 100%;
    height: 250px;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
    background: var(--bg-primary);
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-colors {
    position: relative;
    
    left: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
  
    padding: 8px 12px;
    border-radius: 20px;
    
}

.color-option {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.color-option.active {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.4);
    transform: scale(1.1);
}

.color-option:hover:not(.active) {
    border-color: var(--text-muted);
    transform: scale(1.05);
}

.color-count {
    font-size: 0.75rem;
    color: var(--text-primary);
    margin-left: 2px;
    font-weight: 500;
}

.product-information {
    padding: 20px;
}

/* Ensure proper link handling */
.product-card,
.product-card:visited {
    color: inherit;
    text-decoration: none;
}

.product-card:focus {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

.product-information h3 {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: -0.01em;
}

/* Responsive Design for Products Page */
@media (max-width: 1200px) {
    .products-content {
        gap: 25px;
    }
}

@media (max-width: 1024px) {
    .products-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .filters-sidebar {
        order: 2;
    }
    
    .products-grid {
        order: 1;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-page {
        padding: 100px 0 30px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filters-sidebar {
        padding: 20px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-info h3 {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
}