/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #2F4F4F;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #36454F 0%, #2F4F4F 100%);
    color: #D4AF37;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo a {
    color: #D4AF37;
    text-decoration: none;
}

.tagline {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    font-style: italic;
    color: #FFD700;
    font-size: 1.1rem;
    font-weight: 300;
}

.breadcrumb {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin-top: 0.5rem;
    color: #FFD700;
    font-weight: 400;
}

.breadcrumb a {
    color: #D4AF37;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    border-radius: 15px;
    margin: 2rem 0;
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #36454F;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.hero p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #2F4F4F;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Grid */
.categories {
    padding: 2rem 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-box {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.category-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.category-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: brightness(0.7);
}

.category-box:hover .category-image img {
    filter: brightness(1);
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(54, 69, 79, 0.9));
    color: #D4AF37;
    padding: 2rem;
    text-align: center;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.category-box:hover .category-overlay {
    transform: translateY(0);
}

.category-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.category-overlay p {
    font-family: 'Poppins', sans-serif;
    color: #FFD700;
    font-size: 1rem;
    font-weight: 400;
}

/* Catalog Styles */
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

#catalog-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #36454F;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.catalog-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-selector,
.subcategory-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-selector label,
.subcategory-selector label {
    font-family: 'Poppins', sans-serif;
    color: #36454F;
    font-weight: 500;
    white-space: nowrap;
}

.category-selector select,
.subcategory-selector select {
    font-family: 'Poppins', sans-serif;
    padding: 0.5rem 1rem;
    border: 2px solid #D4AF37;
    border-radius: 5px;
    background: white;
    color: #36454F;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
}

.loading-indicator {
    font-family: 'Poppins', sans-serif;
    color: #D4AF37;
    font-weight: 500;
    display: none;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.product-item {
    position: relative;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.product-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1rem;
    text-align: center;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #36454F;
    margin-bottom: 0.5rem;
}

.product-id {
    font-family: 'Poppins', sans-serif;
    color: #D4AF37;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-price {
    font-family: 'Poppins', sans-serif;
    color: #36454F;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Sold Out Overlay */
.sold-out-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.sold-out-text {
    font-family: 'Poppins', sans-serif;
    background: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    transform: rotate(-15deg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 3rem 0;
}

.load-more-btn {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
    color: #36454F;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #36454F 0%, #2F4F4F 100%);
    color: #D4AF37;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-info h4 {
    font-family: 'Playfair Display', serif;
    color: #FFD700;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.contact-info a {
    color: #D4AF37;
    text-decoration: none;
}

.contact-info a:hover {
    color: #FFD700;
    text-decoration: underline;
}

.copyright {
    font-family: 'Poppins', sans-serif;
    color: #FFD700;
    font-size: 0.9rem;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-box {
        height: 250px;
    }
    
    .catalog-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .catalog-controls {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .category-box {
        height: 200px;
    }
    
    .catalog-controls {
        gap: 0.5rem;
    }
    
    .subcategory-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }
    
    .subcategory-selector label {
        text-align: center;
        font-size: 0.9rem;
    }
}

/* Lazy Loading Animation */
.product-item.loading {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects for Better UX */
.category-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.category-box:hover::before {
    opacity: 1;
}





/* Container for the subcategory boxes */
.subcategory-selector {
    margin-top: 15px;
}

/* Label */
.subcategory-selector label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: #333;
}

/* Boxes wrapper */
.subcategory-boxes {
    display: flex;
    gap: 12px; /* space between boxes */
}

/* Individual boxes */
.subcategory-box {
    padding: 10px 18px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    flex: 1; /* boxes are equal width */
}

/* Hover effect */
.subcategory-box:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
    transform: translateY(-2px);
}

/* Active state when selected */
.subcategory-box.active {
    background-color: #333;
    color: #fff;
    border-color: #333;
}
