.productcarousel{
    display: none;
}
/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    padding: 0;
    box-sizing: border-box;
    background-color:#e4e4e4; /* Page background color */
    color: #000000;
}
/* Product Detail Styles */
.product-detail {
    padding: 30px;
    position: relative;
    top: 130px; /* Adjust based on navbar height */
    left: 0;
    right: 0;
    background-image: url(images/PickleVideo/picklebg.webp);
    background-size: cover; /* Ensures the image covers the entire area */
    background-position: center; /* Centers the image */
    /* background: #e4e4e4; */
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none; /* Hidden by default */
    overflow-y: auto;
    max-height: calc(100vh - 60px); /* Full viewport height minus navbar */
}
.displayproduct{
    display: flex;
    gap: 40px;
}
/* Hide scrollbar but keep functionality */
.product-detail::-webkit-scrollbar {
    display: none; /* For Webkit browsers */
}

.product-detail {
    -ms-overflow-style: none;  /* For Internet Explorer and Edge */
    scrollbar-width: none; /* For Firefox */
}
#detail-info {
    color: white;
    margin-top: 120px;
    margin-right: 40px;
}

#detail-image{
    /* background-color: #f8f8f8b2; */
    width: 390px;
    margin-left: 80px;
    margin-top: 60px;
    margin-bottom: 60px;
    margin-right: 30px;
}

#detail-info h2{
    padding-top: 30px;
    color: #ffffff;
    font-size: 34px;
    margin: 5px 0;
}
#detail-info p {
    margin: 5px 0;
    font-size: 18px;
}

#close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 38px;
    color: #ffffff;
    cursor: pointer;
    z-index: 1001; /* Ensure the close button is above the content */
}

#close-btn:hover {
    color: rgba(247, 247, 247, 0.767);
}


.productlist {
    margin-left: 30px;
    margin-right: 30px;
    padding: 70px 20px 10px; /* Adjusted for navbar height */
    background-color: #e4e4e4; /* Page background color */
}
.productlist-heading {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 900;
    margin-top: 140px;
    color: #bb1c2a;
}
.product-grid {
    margin-top: 100px;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 products per row */
    gap: 20px; /* Gap between products */
}

.product-item {
    background: #c7c7c7cb;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.486); /* Enhanced shadow for a soft card effect */
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: background 0.9s ease, transform 0.9s ease, box-shadow 0.9s ease;
    margin-bottom: 60px;
    font-weight: 700;
    position: relative; /* Ensure proper stacking context */
    overflow: hidden; /* Prevent the image from overflowing the box */
}

.product-item img {
    width: 100%;
    padding: 10px;
    border-radius: 8px; /* Rounded corners for the image */
   
}

/* Hover effects */
.product-item:hover {
    background-image: url(images/PickleVideo/picklebg.webp);
    background-size: cover; /* Ensures the image covers the entire area */
    background-position: center; /* Centers the image */
    /* background:#f8f8f8b2; */
    color: white;
    transform: scale(1.08);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow effect */
}
/* Responsive Styles */

/* Tablet */
@media (max-width: 1024px) {
    #navbar ul {
        flex-direction: row; /* Stack items vertically */
        align-items: center;
    }

    .product-grid {
        margin-top: 50px;
        grid-template-columns: repeat(2, 1fr); /* 2 products per row */
        gap: 15px;
    }

    #detail-info h2 {
        font-size: 28px;
    }

    #detail-info p {
        font-size: 16px;
    }
    #products{
        margin-left: 400px;
        color: #ffffff;
    }
    #contactus{
        margin-left: 90px;
        color: #ffffff;
    }

}

/* Mobile */
@media (max-width: 768px) {
    #navbar{
        height: 85px;
        background-color: black;
    }
    .product-grid {
        grid-template-columns: repeat(1, 1fr); /* 1 product per row */
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
    }
    #products{
        margin: 0px;
    }
    #contactus{
        margin: 0px;
    }
    .contact-form, .contact-image {
        width: 100%;
    }
    #products-heading{
        margin-top: 60px;
        font-size: 36px;
    }
    .displayproduct {
        flex-direction: column; /* Stack details and image vertically */
    }

    #navbar ul {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }
    #navbar a {
        padding: 10px 0;
    }

    .product-item {
        margin-bottom: 40px;
    }
    .product-detail{
        margin-top: -60px;
        margin-bottom: 30px;
    }
    #detail-image{
        width: 230px;
        margin-top: 50px;
        margin-left: 55px;
    }
    #close-btn {
        font-size: 30px;
    }
    #detail-info{
        text-align: center;
        margin-left: 40px;
    }

    #detail-info h2 {
        margin-top: -220px;
        font-size: 24px;
    }

    #detail-info p {
        font-size: 14px;
    }
    .product-item img {
        width: 70%;
       
    }
}
.toggle-button {
    color: #000000;
}
nav.scrolled .toggle-button{
    margin-top: 0px;
    color: #e4e4e4;
}

@media (max-width: 768px) {
    #products, 
    #contactus, 
    #about {
        color: #ffffff; /* Change text color to white */
    }
    .toggle-button {
        color: #ffffff;
    }
}



/* Specific Adjustment for 14-inch MacBook Pro */
@media (min-width: 1512px) and (max-width: 1512px) and (min-height: 982px) and (max-height: 982px) {
        #products-heading{
            margin-top: 200px;
            font-size: 36px;
        }
}
@media (min-width: 1440px) and (max-width: 1440px) and (min-height: 900px) and (max-height: 900px) {
    #products-heading{
        margin-top: 200px;
        font-size: 36px;
    }
}
/* Specific Adjustment for 16-inch MacBook Pro */
@media (min-width: 1792px) and (max-width: 1792px) and (min-height: 1120px) and (max-height: 1120px) {
    #products-heading{
        margin-top: 200px;
        font-size: 36px;
    }
}

/* Specific Adjustment for 21-inch iMac */
@media (min-width: 1920px) and (max-width: 1920px) and (min-height: 1080px) and (max-height: 1080px) {
    #products-heading{
        margin-top: 200px;
        font-size: 36px;
    }
}

/* Specific Adjustment for 27-inch iMac */
@media (min-width: 2560px) and (max-width: 2560px) and (min-height: 1440px) and (max-height: 1440px) {
    #products-heading{
        margin-top: 200px;
        font-size: 36px;
    }
}

@media (min-width: 1600px) and (max-width: 1600px) and (min-height: 900px) and (max-height: 900px) {
    #products-heading{
        margin-top: 200px;
        font-size: 36px;
    }
}


