/* Reset some basic styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Discount Banner */
.discount-banner {
    background-color: #ff6347;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 1.2rem;
    animation: slideDown 0.8s ease;
}

.discount-banner p {
    margin: 0;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Navigation */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

nav {
    background: #ffffff;
    padding: 10px 20px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}


.menu {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.logo a {
    font-size: 28px;
    font-weight: bold;
    color: #31344b;
    text-decoration: none;

}

.nav-links {
    display: flex;
    list-style: none;


}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 12px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

.menu-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
    margin-left: 180px;
}

#menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        flex-direction: column;
        background: #ffffff;
        width: 80%;
        max-width: 400px;
        height: 100%;
        padding-top: 60px;
        transition: left 0.3s ease;
        box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
        z-index: 500;
    }

    .nav-links li {
        margin: 20px 0;
        text-align: center;
    }

    .menu-icon {
        display: block;
        color: #000000;
    }

    #menu-toggle:checked+.menu-icon+.nav-links {
        left: 0;
    }
}










/* Product Detail Section */
.product-detail {
    padding: 80px 20px;
    background-color: #fff;
}

.product-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.product-main-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
}

.product-main-image img {
    width: 100%;
    height: auto;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.5s ease;
}

.product-main-image img.loaded {
    opacity: 1;
}

/* Hover Effect for Zoom */
.product-main-image:hover img {
    transform: scale(1.2);
}

.product-info {
    max-width: 500px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.product-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.product-location,
.product-price {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.product-price .discount-price {
    text-decoration: line-through;
    color: #aaa;
    margin-left: 10px;
}

.product-description {
    font-size: 1rem;
    margin-bottom: 20px;
}

.product-rating span {
    font-size: 1.5rem;
    color: gold;
    margin-bottom: 20px;
}

.product-button {
    padding: 10px 20px;
    background-color: #ff6347;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1rem;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.product-button:hover {
    background-color: #e55337;
}

/* Gallery Section */
.product-gallery {
    margin-top: 40px;
    text-align: center;
}

.product-gallery h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.gallery-images {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.gallery-images img {
    width: 30%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-images img:hover {
    transform: scale(1.05);
}

/* Testimonials Section */
.testimonials {
    margin-top: 50px;
    text-align: center;
}

.testimonial-carousel {
    display: flex;
    overflow: hidden;
    gap: 30px;
    margin-top: 20px;
}

.testimonial-item {
    width: 300px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

.testimonial-carousel:hover .testimonial-item {
    transform: translateX(-10px);
}

/* Comment Section */
.product-comments {
    margin-top: 40px;
}

.add-comment textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.submit-comment {
    padding: 10px 20px;
    background-color: #ff6347;
    color: white;
    border-radius: 5px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.submit-comment:hover {
    background-color: #e55337;
}

/* General Animation Setup */
.section-animate {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0s;
}

/* Keyframes for fade-in and slide-up animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay animations for each element with a staggered effect */
.section-animate:nth-child(1) {
    animation-delay: 0s;
    /* No delay for the first element */
}

.section-animate:nth-child(2) {
    animation-delay: 0.3s;
    /* 300ms delay for the second element */
}

.section-animate:nth-child(3) {
    animation-delay: 0.6s;
    /* 600ms delay for the third element */
}

.section-animate:nth-child(4) {
    animation-delay: 0.9s;
    /* 900ms delay for the fourth element */
}

/* Add more as needed for additional elements */
/* Media Queries */

/* Medium screens (tablets) */
@media (max-width: 1024px) {
    .product-container {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .product-info {
        max-width: 100%;
        padding-left: 0;
    }

    .product-title {
        font-size: 2rem;
    }

    .product-location,
    .product-price {
        font-size: 1.1rem;
    }

    .product-description {
        font-size: 1rem;
    }

    .product-gallery {
        flex-direction: column;
        gap: 10px;
    }

    .gallery-img {
        max-width: 80%;
    }

    .testimonial-carousel {
        flex-direction: column;
        align-items: center;
    }
}

/* Small screens (mobile devices) */
@media (max-width: 600px) {
    .product-container {
        padding: 15px;
    }

    .product-info {
        padding-left: 0;
    }

    .product-title {
        font-size: 1.8rem;
    }

    .product-location,
    .product-price {
        font-size: 1rem;
    }

    .product-description {
        font-size: 0.9rem;
    }

    .product-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .product-gallery {
        flex-direction: column;
        gap: 10px;
    }

    .gallery-img {
        max-width: 100%;
    }

    .testimonial-carousel {
        flex-direction: column;
    }
}

/* Zoom Hover Effect for Gallery Images */
@media (min-width: 600px) {
    .gallery-img:hover {
        transform: scale(1.1);
    }
}