/* Product Banner */
.product-banner {
    background: 
                url('../images/banner1.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 40px;
}
#modalMainImage {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

#modalMainImage.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}
.product-banner h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.product-banner p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Category Navigation */
.category-nav {
    background: #f8f8f8;
    padding: 20px 0;
    position: sticky;
    top: 80px;
    z-index: 90;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 5px;
    gap: 10px;
}

.category-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-btn:hover {
    background: #cdb332;
      color: #fff !important;
}

.category-btn.active {
  color: #fff;
    border-bottom-color: #9f1515;
    background: #cdb332;
}

/* Product Grid */
.product-listing {
    padding: 40px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.product-image {
    height: 350px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: #333;
}

.price {
    font-weight: bold;
    color: #cdb332;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
    color: #666;
}

/* Product Modal */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 50px auto;
    max-width: 900px;
    width: 90%;
    border-radius: 8px;
    padding: 30px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
}

.modal-product-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.modal-product-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image {
    height: 400px;
    overflow: hidden;
    border-radius: 5px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
}

.thumbnail-gallery img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail-gallery img:hover {
    border-color: #cdb332;
}

.modal-product-details h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.8rem;
}

.modal-product-details .price {
    font-size: 1.5rem;
    margin: 15px 0;
}

.modal-product-details .description {
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.product-meta {
    margin: 20px 0;
    font-size: 0.9rem;
    color: #666;
}

.enquiry-btn {
    padding: 12px 25px;
    font-size: 1rem;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-product-view {
        grid-template-columns: 1fr;
    }
    
    .main-image {
        height: 300px;
    }
    
    .product-banner h1 {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 480px) {
    .category-tabs {
        gap: 5px;
    }
    
    .category-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .product-image {
        height: 200px;
    }
}

html {
    scroll-behavior: smooth;
}

/* Style for active category section */
.category-section:target {
    animation: highlight 1.5s ease;
}

@keyframes highlight {
    0% { background-color: rgba(142, 108, 136, 0.1); }
    100% { background-color: transparent; }
}