/* Products Page Styles */

/* Category Navigation */
.category-nav {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.category-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
}

.category-nav li {
    margin-right: 1rem;
    margin-bottom: -1px;
}

.category-nav li.active {
    color: #d4af37;
    border-bottom: 3px solid #d4af37;
    font-weight: 600;
}

.category-nav li.category-tab {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    color: #333;
    transition: all 0.3s ease;
    list-style: none;
}

.category-nav li.category-tab:hover {
    color: #d4af37;
}

.category-nav li.category-tab.active {
    color: #d4af37;
    border-bottom: 3px solid #d4af37;
    font-weight: 600;
}

/* Products Container */
.products-container {
    min-height: 400px;
}

.loading, .error-message, .no-products {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.2rem;
}

.error-message {
    color: #e74c3c;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Product Card */
.product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e5e5;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Product Card Header */
.product-card-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f5e6cc 0%, #f9f9f9 100%);
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-brand {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    font-family: 'Playfair Display', serif;
}

.product-category {
    font-size: 0.85rem;
    color: #666;
    background-color: rgba(212, 175, 55, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
}

/* Product Card Body */
.product-card-body {
    padding: 1.5rem 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.2rem;
    margin: 0 0 0.75rem 0;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
    min-height: 3.2em;
}

.product-type {
    color: #777;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

/* Product Card Footer */
.product-card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fafafa;
}

.product-price {
    color: #d4af37;
    font-size: 1.4rem;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
    text-align: center;
    width: 100%;
}

/* Hero Small for product page */
.hero-small {
    height: 300px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/webp/hero-background.webp');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-small .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    text-align: center;
    color: white;
}

/* Responsive styles */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    .hero-small {
        height: 200px;
    }
    
    .hero-small .section-title {
        font-size: 2.2rem;
    }
    
    .category-nav {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .product-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-card-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-name {
        font-size: 1.1rem;
        min-height: auto;
    }
    
    .hero-small .section-title {
        font-size: 1.8rem;
    }
}

