/* ===== All Products Page Styles ===== */
/* Matches home.html luxury jewelry design */

:root {
    --gold-primary: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dark: #AA8C2C;
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --bg-white: #ffffff;
    --bg-off-white: #fdfbf7;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

/* Section Layout */
.products-page-section {
    padding: 80px 0 120px;
    background-color: var(--bg-off-white);
    min-height: 100vh;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header - same as home.html */
.section-header {
    margin-bottom: 60px;
    position: relative;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto;
    color: var(--gold-primary);
    font-size: 14px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background-color: var(--gold-primary);
    margin: 0 15px;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 18px;
    font-style: italic;
    font-family: var(--font-heading);
}

.text-center {
    text-align: center;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding: 20px 30px;
    background: white;
    border: 1px solid var(--gold-light);
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.products-count {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--text-gray);
    font-style: italic;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sort-wrapper {
    position: relative;
}

.sort-select {
    appearance: none;
    background-color: transparent;
    border: 1px solid var(--gold-primary);
    padding: 12px 45px 12px 20px;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    min-width: 200px;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    letter-spacing: 1px;
}

.sort-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.sort-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-primary);
    pointer-events: none;
    font-size: 12px;
}

/* Products Grid - same as home.html */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 50px;
}

.product-card {
    background: white;
    transition: all 0.3s ease;
    border: 1px solid var(--gold-light);
    padding: 15px;
    position: relative;
}

.product-card:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
    transform: translateY(-5px);
}

.product-image-container {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    background-color: var(--bg-off-white);
    margin-bottom: 20px;
}

.product-image,
.product-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-image-hover {
    opacity: 0;
}

.product-card:hover .product-image-hover {
    opacity: 1;
}

.badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--gold-primary);
    color: white;
    padding: 4px 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    font-weight: 700;
}

.badge-special {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--text-dark);
    color: white;
    padding: 4px 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    font-weight: 700;
}

.product-actions {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    background-color: var(--gold-primary);
    color: white;
}

.product-details {
    text-align: center;
}

.product-category {
    font-size: 11px;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-title {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.product-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--gold-primary);
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.price-old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
    font-weight: 400;
}

.price-current {
    color: var(--gold-primary);
}

.btn-view-product {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    transition: all 0.3s ease;
    background: transparent;
    text-decoration: none;
}

.btn-view-product:hover {
    background-color: var(--gold-primary);
    border-color: var(--gold-primary);
    color: white;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 80px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 50px;
    border: 2px solid var(--gold-primary);
    background: transparent;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.btn-load-more:hover {
    background-color: var(--gold-primary);
    color: white;
}

.btn-load-more.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.btn-load-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.btn-load-more:hover i {
    transform: translateY(3px);
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: white;
    border: 1px solid var(--gold-light);
}

.empty-icon {
    font-size: 60px;
    color: var(--gold-primary);
    margin-bottom: 30px;
    opacity: 0.5;
}

.empty-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.empty-text {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    font-family: var(--font-heading);
    font-style: italic;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    border: 2px solid var(--gold-primary);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-decoration: none;
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--gold-primary);
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .products-page-section {
        padding: 60px 0 80px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .filter-bar {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .products-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .products-page-section {
        padding: 40px 0 60px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .section-divider::before,
    .section-divider::after {
        width: 40px;
    }
    
    .filter-bar {
        margin-bottom: 30px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-card {
        padding: 10px;
    }
    
    .product-details {
        padding: 5px 0;
    }
    
    .product-category {
        font-size: 9px;
        letter-spacing: 1px;
        margin-bottom: 5px;
    }
    
    .product-title {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
   .product-price {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .price-old {
        font-size: 11px;
    }
    
    .btn-view-product {
        padding: 8px 15px;
        font-size: 10px;
        letter-spacing: 1px;
    }
    
    .product-actions {
        bottom: 10px;
        right: 10px;
    }
    
    .action-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    
    .btn-load-more {
        padding: 14px 35px;
        font-size: 12px;
    }
    
    .load-more-container {
        margin-top: 50px;
    }
}

@media (max-width: 480px) {
    .products-page-section {
        padding: 30px 0 50px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .products-grid {
        gap: 10px;
    }
    
    .product-card {
        padding: 8px;
    }
    
    .product-image-container {
        margin-bottom: 12px;
    }
    
    .product-title {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .product-price {
        font-size: 13px;
    }
    
    .btn-view-product {
        padding: 6px 12px;
        font-size: 9px;
    }
    
    .sort-select {
        min-width: 160px;
        padding: 10px 35px 10px 15px;
        font-size: 12px;
    }
    
    .sort-label {
        font-size: 12px;
    }
    
    .empty-state {
        padding: 50px 15px;
    }
    
    .empty-icon {
        font-size: 40px;
    }
    
    .empty-title {
        font-size: 22px;
    }
    
    .empty-text {
        font-size: 14px;
    }
}