﻿/*body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f8f9fa;
    color: #343a40; 
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

h1, h2 {
    text-align: center;
    color: #495057;
    margin-bottom: 10px;
}

h1 {
    margin-bottom: 5px;
    font-size: 2.2em;
}

h2 {
    margin-top: 40px; 
    margin-bottom: 15px;
    border-bottom: 1px solid #DBC142; 
    padding-bottom: 5px;
    display: inline-block;
    margin-left:100px;
}

p {
    text-align: center;
    color: #6c757d;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


body > h2 {
    display: block; 
    text-align: center;
    border-bottom: none; 
}


.gallery-section {
    display: flex; 
    flex-wrap: wrap;
    gap: 15px; 
    justify-content: center;
    padding: 10px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.gallery-item {
    width: 200px;
    height: 200px; 
    object-fit: cover; 
    border-radius: 100px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.gallery-item:hover {
    transform: scale(1.05); 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.88);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0s linear 0.4s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease-in-out;
}

.overlay-content {
    display: block;
    max-width: 80%;
    max-height: 75%; 
    object-fit: contain;
    border-radius: 4px;

    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                opacity 0.3s ease-out;
    transition-delay: 0.1s;
}

.overlay.active .overlay-content {
    transform: scale(1);
    opacity: 1;
}

.close-btn,
.close-btn-2 {
    position: absolute;
    top: 39px;
    right: 30px;
    color: #ffffff;
    font-size: 45px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 1010; 
    padding: 5px; 
    user-select: none; 
}

.close-btn:hover,
.close-btn-2:hover {
    color: #cccccc;
    transform: scale(1.1); 
}


@media (max-width: 768px) {
    .gallery-item {
        width: 120px;
        height: 100px;
    }
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.3em; }
}

@media (max-width: 480px) {
    body { padding: 10px; }
    .gallery-section { gap: 10px; }
    .gallery-item {
        width: 100px;
        height: 80px;
    }
    .close-btn,
    .close-btn-2 {
        font-size: 35px;
        top: 15px;
        right: 15px;
    }
     .overlay-content {
        max-width: 95%;
        max-height: 80%;
    }
}*/

/*working css ends here*/




/* --- General --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    /*margin: 0;
    padding: 20px;*/
    background-color: #fff;
    color: #333;
}

.product-gallery-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

/* --- Tab Navigation --- */
.tabs-nav {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
    display: flex; /* Align tabs horizontally */
    gap: 10px; /* Space between tabs */
}

.tab-link {
    border: none;
    background: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.1em; /* Slightly larger font */
    font-weight: 500;
    color: #888; /* Inactive tab color */
    position: relative; /* For the underline */
    transition: color 0.3s ease;
    margin-bottom: -1px; /* Align underline with main border */
}

    .tab-link:hover {
        color: #555;
    }

    .tab-link.active {
        color: #111; /* Active tab color */
        font-weight: 600;
    }

        /* Active tab underline */
        .tab-link.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: #ffcc00; /* Yellow underline */
        }

/* --- Tab Content --- */
.tab-content {
    display: none; /* Hide inactive tabs */
    animation: fadeIn 0.5s ease-in-out; /* Optional fade effect */
}

    .tab-content.active {
        display: block; /* Show active tab content */
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Product Grid --- */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 55px; /* Space between product items */
    justify-content: center; /* Center items if row doesn't fill */
}

/* --- Product Item --- */
.product-item {
    width: 180px; /* Adjust width as needed */
    text-align: left; /* Align text left */
}

.product-image-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 25px; /* Increased margin for shadow */
    background-color: #f0f0f0;
    /* Keep or adjust the original elevation shadow */
    box-shadow: 8px 8px 8px 2px rgb(0 0 0 / 6%);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative; /* Crucial for pseudo-element positioning */
}

    /* The Ground Shadow */
    .product-image-wrapper::after {
        content: '';
        position: absolute;
        left: 15%; /* Adjust horizontal position */
        right: 15%; /* Adjust horizontal position */
        bottom: -10px; /* Position below the wrapper */
        height: 15px; /* Height of the shadow area */
        background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 70%); /* Gradient for soft shadow */
        filter: blur(5px); /* Blur the shadow */
        z-index: -1; /* Place it behind the image wrapper content, but visible */
        opacity: 0.6; /* Adjust shadow intensity */
        transition: opacity 0.3s ease, bottom 0.3s ease, filter 0.3s ease;
    }

    .product-image-wrapper:hover {
        /* Enhance elevation shadow slightly */
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
        /* Lift effect */
        transform: translateY(-5px);
    }

        /* Enhance ground shadow on hover */
        .product-image-wrapper:hover::after {
            opacity: 0.7;
            bottom: -15px; /* Make shadow appear further down */
            filter: blur(6px);
        }



.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Scale image to cover the circle */
    cursor: zoom-in; /* If using zoom */
}

.product-info {
    padding: 0 5px; /* Optional padding for text */
}

.product-title-rating {
    display: flex;
    justify-content: space-between; /* Title left, rating right */
    align-items: center; /* Vertically align them */
    margin-bottom: 8px;
    min-height: 25px; /* Ensure consistent height */
}

.product-title {
    font-size: 0.95em;
    font-weight: 500;
    color: #444;
    /* Prevent title from wrapping aggressively */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 5px; /* Space between title and stars */
}

.product-rating {
    font-size: 0.9em; /* Adjust star size */
    white-space: nowrap; /* Keep stars on one line */
}

    .product-rating .star {
        margin-left: 1px; /* Tiny space between stars */
    }

        .product-rating .star.filled {
            color: #ffcc00; /* Yellow for filled stars */
        }

        .product-rating .star.empty {
            color: #d0d0d0; /* Grey for empty stars */
        }

.product-category-link {
    font-size: 0.9em;
    color: #007bff; /* Blue link color */
    text-decoration: none;
    transition: color 0.3s ease;
}

    .product-category-link:hover {
        color: #0056b3;
        text-decoration: underline;
    }

/* --- Zoom Overlay Styles (Using Overlay 1 from previous code) --- */
.overlay { /* Basic overlay styles */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.88);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0s linear 0.4s;
}

    .overlay.active {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.4s ease-in-out;
    }

.overlay-content { /* Style for zoomed image */
    display: block;
    max-width: 90%;
    max-height: 75%;
    object-fit: contain;
    border-radius: 25px;
    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease-out;
    transition-delay: 0.1s;
}

.overlay.active .overlay-content {
    transform: scale(1);
    opacity: 1;
}

.close-btn-1 { /* Style for close button */
    position: absolute;
    top: 33px;
    right: 30px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 1010;
    padding: 5px;
    user-select: none;
}

    .close-btn-1:hover {
        color: #ccc;
        transform: scale(1.1);
    }


/* --- Responsive --- */
@media (max-width: 768px) {
    .product-item, .product-image-wrapper {
        width: 150px; /* Smaller items */
        height: 150px;
    }

    .product-grid {
        gap: 20px;
    }

    .tabs-nav {
        gap: 5px;
    }

    .tab-link {
        padding: 8px 10px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .product-item, .product-image-wrapper {
        width: 130px; /* Even smaller */
        height: 130px;
    }

    .product-grid {
        gap: 15px;
    }

    .product-title-rating {
        flex-direction: column;
        align-items: flex-start;
    }
    /* Stack title and rating */
    .product-rating {
        margin-top: 3px;
    }

    .tabs-nav {
        overflow-x: auto; /* Allow horizontal scroll for tabs */
    }
}
