* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
}

/* Common fade-in effect for all sections */
.image-container,
.main,
.changing-container {
    opacity: 0; /* Start hidden */
    transform: translateY(50px); /* Start slightly lower */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* When section comes into view, make it visible */
.image-container.show,
.main.show,
.changing-container.show {
    opacity: 1;
    transform: translateY(0);
}



/****************        Navbar*/
.navbar {
    background: transparent;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 999;

}


.navbar__container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
}

#navbar__logo {
    background-image: url('/images/logo.PNG');
    /*color: #131313; */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 300px;
    height: 50px;
    font-family: "Lato", serif;
    display: flex; /*Used to be flex*/
    text-indent: -9999px;
    margin-left: -60px; 
    overflow: hidden;
    /*align-items: center;*/
    cursor: pointer;
    margin-top: 10px;
    /*text-decoration: none;
    font-size: 2.5rem; */
}

.fa-gem {
    margin-right: 0.5rem;
}

.navbar__menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
}

.navbar__item {
    height: 80px;
}

.navbar__links {
    color: #131313;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%;
}

.navbar__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    width: auto;
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 8px 16px;
    height: 100%;
    width: 100%;
    border: none;
    outline: none;
    border-radius: 4px;
    background: #131313;
    color: white;
}

.button:hover {
    background: red;
}

.navbar__links:hover {
    color: red;
    text-underline-position: below;
}

@media screen and (max-width: 960px) {
    .navbar__container {
        display: flex;
        justify-content: space-between;
        height: 80px;
        z-index: 1;
        width: 100%;
        max-width: 1300px;
        padding: 0;
    }

    .navbar__menu {
        display: grid;
        grid-template-columns: auto;
        margin: 0;
        width: 100%;
        position: absolute;
        top: -1000px;
        opacity: 0;
        transition: all 0.5s ease;
        height: 50vh;
        z-index: -1;
    }

    .navbar__menu.active {
        background: white;
        top: 100%;
        opacity: 1;
        transition: all 0.5s ease;
        z-index: 99;
        height: 90vh; /*****************      CODE TO FIX NAVBAR DROPDOWN*/
        font-size: 1.6rem;
    }

    #navbar__logo {
        padding-left: 25px;
    }

    .navbar__toggle .bar {
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background: black;
    }

    .navbar__item {
        width: 100%;
    }

    .navbar__links {
        text-align: center;
        padding: 2rem;
        width: 100%;
        display: table;
        color: black;
    }

    #mobile-menu {
        position: absolute;
        top: 20%;
        right: 5%;
        transform: translate(5%, 20%);
    }

    .navbar__btn {
        padding-bottom: 2rem;
    }

    .button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80%;
        height: 80px;
        margin: 0;
    }

    .navbar__toggle .bar {
        display: block;
        cursor: pointer;
    }

    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}


/*-----------------     Dropdown menu styling          */
/* Main dropdown menu */
.dropdown__menu {
    position: absolute;
    top: 100%; /* Aligns the menu below "Products" */
    margin-left: 165px; /* Adjust this value to position your dropdown properly */
    left: 0;
    background: white;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    display: none; /* Hidden by default */
    flex-direction: row; /* Align items horizontally */
    flex-wrap: nowrap; /* Allow items to wrap if necessary */
    justify-content: flex-start; /* Align items to the left */
    gap: 5px; /* Space between items */
    padding: 5px;
    z-index: 1000; /* Ensures dropdown stays on top */
    box-sizing: border-box;
    width: 100vw; /* Adjust width as needed */
}

/* Show dropdown when hovering over Products */
.navbar__item.dropdown:hover .dropdown__menu {
    display: flex;
}

/* Style for dropdown items */
.dropdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #131313;
    font-size: 14px;
    transition: 0.3s;
    padding: 10px;
    width: 150px; /* Fixed width for each item */
}

/* Adjust image size */
.dropdown__item img {
    width: 60px;
    height: 60px;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

/* Text below image */
.dropdown__item span {
    font-size: 14px;
    display: block;
}

/* Hover effect */
.dropdown__item:hover img {
    transform: scale(1.1);
}

.dropdown__item:hover {
    color: red;
}

/* Sub-dropdown container (Interior Door) */
.sub-dropdown {
    position: relative; /* Keeps the sub-dropdown positioned within the main menu */
}

/* Sub-dropdown menu (hidden by default) */
.sub-dropdown__menu {
    position: absolute;
    top: 100%; /* Align the sub-dropdown below the parent item */
    left: 0; /* Align the sub-dropdown to the left of the parent item */
    background: white;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 10px;
    display: none; /* Hidden by default */
    flex-direction: column;
    min-width: 150px;
    max-height: 300px; /* Restrict the height */
    overflow-y: auto; /* Allow vertical scrolling if content overflows */
    z-index: 1001; /* Ensure it's above other content */
}

/* Show sub-dropdown when hovering over the parent item */
.sub-dropdown:hover .sub-dropdown__menu {
    display: flex; /* Show the sub-dropdown */
}

/* Sub-dropdown items */
.sub-dropdown__item {
    padding: 8px;
    text-decoration: none;
    color: #131313;
    font-size: 14px;
    text-align: center;
    display: block;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Hover effect for sub-dropdown items */
.sub-dropdown__item:hover {
    color: red;
    border-radius: 5px;
}

/* Ensure Menu Links Stay Visible on White Background */
.navbar__links {
    transition: color 0.3s ease;
}

.navbar__item.dropdown:hover .navbar__links {
    color: black;
}



@media (min-width: 768px) {
    .dropdown__menu {
        left: -180px; /* Moves menu further left */
    }
} 


@media screen and (max-width: 960px) {
    /* Ensure dropdown appears directly under "Products" */
    .dropdown__menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50vw;
        text-align: center;
        padding: 10px 0;
        position: absolute;
        top: 100%; /* Aligns the menu right below "Products" */
        left: 50%; /* Center horizontally */
        transform: translateX(-50%); /* Center horizontally */
        background: white;
        z-index: 10000;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
        border-radius: 10px;
    }

    /* Hide product images on mobile */
    .dropdown__item img {
        display: none;
    }

    /* Style product list */
    .dropdown__item {
        width: 100%;
        padding: 10px;
        font-size: 18px;
        font-weight: bold;
        text-align: center;
    }

    /* Ensure product names are visible */
    .dropdown__item span {
        display: inline-block;
    }

    /* Adjust Products dropdown positioning */
    .navbar__item.dropdown {
        position: relative;
    }

    /* Ensure dropdown stays directly below Products */
    .navbar__item.dropdown .dropdown__menu {
        position: absolute;
        top: 100%;
        left: 50%; /* Center horizontally */
        transform: translateX(-50%); /* Center horizontally */
        width: 50vw; /* Adjust width to match parent dropdown */
        background: white;
        display: none; /* Initially hidden */
    }

    /* Show dropdown on click */
    .navbar__item.dropdown:hover .dropdown__menu,
    .navbar__item.dropdown:focus-within .dropdown__menu {
        display: flex;
    }
}



/* ********************       Product name and images */
#prodetails {
    display: flex;
    margin-top: 90px;
    margin-bottom: 50px;
}

#prodetails .single-pro-image {
    width: 40%;
    margin-right: 50px;
    margin-left: 50px;

}

#mainimg {
    width: 100%; /* Ensures responsiveness */
    max-width: 550px; /* Adjust based on your design */
    height: 500px; /* Fixed height to prevent resizing */
    object-fit: cover; /* Ensures images fill the space without distortion */
    border-radius: 10px; /* Optional: Adds rounded corners */
}

.small-img-group {
    display: flex;
    justify-content: space-evenly; /* Evenly spaces images */
    gap: 10px; /* Add space between images */
}

.small-img-col {
    flex-basis: 24%;
    cursor: pointer;
}

.small-img {
    width: 100%;
    height: 150px; /* Set a fixed height for all images */
    object-fit: cover; /* Ensures images are cropped to fit without distortion */
    border-radius: 5px; /* Optional: adds rounded corners */
}

#prodetails .single-pro-text h4 {
    padding: 10px 0 20px 0;
    font-size: 2.2rem;
    color: rgb(180, 2, 2);
}

#prodetails .single-pro-text p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: black;
}

/* ***********               Dividing Line */
.colors-divider {
    border: none;
    border-top: 2px solid #ccc; /* Adjust thickness and color */
    margin: 15px 0; /* Adds spacing around the line */
    width: 100%; /* Ensures full width */
}


/* ********************     Recommended Colors */

#prodetails .single-pro-details {
    width: 50%;
    padding-top: 30px;
}

/*********            Styling Text for path only  */
#prodetails .single-pro-details h6 {
    font-size: 0.8rem;
    margin-bottom: 5px;
}

#prodetails .single-pro-details .colors-section h6 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

#prodetails .single-pro-details .colors-section .colors-images {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px; /* Adjust spacing between images */
    justify-content: center; /* Centers the images */
    background-color: #e3e0e0;
    padding: 10px;
    width: 510px;
}

#prodetails .single-pro-details .colors-section .colors-images .color-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the text below the image */
    text-align: center;
    width: 80px; /* Adjust width based on image size */
}

#prodetails .single-pro-details .colors-section .colors-images img {
    width: 100%; /* Makes sure the image fills its container */
    height: auto;
}

#prodetails .single-pro-details .colors-section .colors-images p {
    margin-top: 5px;
    background-color: transparent; /* Remove background */
    width: 100%; /* Ensures the text is aligned with the image */
    font-size: 1rem;
}


/* ********************     Recommended Hardware */



#prodetails .single-pro-details .hardw-container h6 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

#prodetails .single-pro-details .hardw-container .hardw-images {
    display: flex;
    flex-wrap: nowrap;
    gap: 25px; /* Adjust spacing between images */
    justify-content: center; /* Centers the images */
    background-color: #e3e0e0;
    padding: 10px;
    width: 510px;
}

#prodetails .single-pro-details .hardw-container .hardw-images .hardw-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the text below the image */
    text-align: center;
    width: 80px; /* Adjust width based on image size */
}

#prodetails .single-pro-details .hardw-container .hardw-images img {
    width: 100%; /* Makes sure the image fills its container */
    height: auto;
}

#prodetails .single-pro-details .hardw-container .hardw-images p {
    margin-top: 5px;
    background-color: transparent; /* Remove background */
    width: 100%; /* Ensures the text is aligned with the image */
    font-size: 1rem;
}

/* ********************     Recommended Glass */



#prodetails .single-pro-details .glass-container h6 {
    font-size: 1.2rem;
    margin-bottom: 0px;
}

#prodetails .single-pro-details .glass-container .glass-images {
    display: flex;
    flex-wrap: nowrap;
    gap: 50px; /* Adjust spacing between images */
    justify-content: center; /* Centers the images */
    background-color: white;
    padding: 0px;
    width: 510px;
}

#prodetails .single-pro-details .glass-container .glass-images .glass-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the text below the image */
    text-align: center;
    width: 80px; /* Adjust width based on image size */
}

#prodetails .single-pro-details .glass-container .glass-images img {
    width: 120px; /* Set a fixed width */
    height: 120px; /* Set a fixed height */
    object-fit: cover; 
}


#prodetails .single-pro-details .glass-container .glass-images p {
    margin-top: 0px;
    background-color: transparent; /* Remove background */
    width: 100%; /* Ensures the text is aligned with the image */
    font-size: 1rem;
}




/* ********************     Limitation */
.colors-limitation {
    padding-top: 20px;
}

#prodetails .single-pro-details .colors-limitation h6 {
    font-size: 1.2rem;
    margin-bottom: 0px;
}

.colors-limit-imgs {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px; /* Adjust spacing between images */
    justify-content: center;
    background-color: #e3e0e0; /* Grey background */
    padding: 10px;
    overflow-x: auto; /* Enables horizontal scrolling if needed */
}

.limit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100px; /* Adjust width based on image size */
}

.limit-item img {
    width: 60px; /* Adjust to fit your design */
    height: 60px;
    object-fit: cover;
}

.limit-item p {
    margin-top: 5px;
    font-size: 0.8rem;
    background-color: transparent;
    width: 100%;
}

@media screen and (max-width: 768px) {
    .colors-limit-imgs {
        flex-wrap: wrap; /* Allow items to wrap into new rows */
        justify-content: center; /* Center items */
        overflow-x: hidden; /* Prevent horizontal scrolling */
        width: 100%; /* Make sure it fits within the screen */
    }

    .limit-item {
        width: 22%; /* Shrink items to fit more per row */
        max-width: 90px; /* Reduce max width */
        margin-bottom: 8px; /* Space between items */
    }

    .limit-item img {
        width: 65px; /* Make images smaller */
        height: 65px;
    }

    .limit-item p {
        font-size: 0.75rem; /* Reduce text size slightly */
    }
}

@media screen and (max-width: 480px) {
    .colors-limit-imgs {
        width: 100%;
        justify-content: space-between; /* Distribute items evenly */
        padding: 5px;
    }

    .limit-item {
        width: 28%; /* Slightly bigger for better readability */
        max-width: 80px;
    }

    .limit-item img {
        width: 55px;
        height: 55px;
    }

    .limit-item p {
        font-size: 0.7rem; /* Keep text small but readable */
    }
}












@media screen and (max-width: 768px) {
    #prodetails .single-pro-details .limit-container {
        flex-direction: column; /* Stack items vertically */
        gap: 15px; /* Reduce spacing for better alignment */
        align-items: center; /* Center content */
        text-align: center; /* Center text */
    }

    #prodetails .single-pro-details .limit-container h5 {
        text-align: center; /* Center the heading */
        width: 100%; /* Ensure it doesn’t shrink */
    }

    #prodetails .single-pro-details .limit-container .limit-text {
        text-align: center; /* Ensure text is centered */
        width: 100%; /* Allow text to take full width */
    }

    #prodetails .single-pro-details .limit-container .limit-text h6 {
        text-align: center; /* Center headings */
    }

    #prodetails .single-pro-details .limit-container .limit-text p {
        text-align: center; /* Center text */
    }
}


/* ********************     Contact and Product details */

.contact-btn {
    display: flex; 
    margin-top: 10px;
    background-color: black; 
    color: white; 
    text-decoration: none; 
    padding: 7px 15px; 
    border-radius: 5px; 
    font-size: 1.2rem; 
    text-align: center;
    width: 140px;
    /*transition: background 0.3s ease-in-out;  Smooth transition */
}

.contact-btn:hover {
    background-color: red; 
}

#prodetails .single-pro-details h4 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

#prodetails .single-pro-details span {
    line-height: 25px;
    font-size: 1rem;
}

@media screen and (max-width: 768px) {
    #prodetails {
        flex-direction: column; /* Stack elements vertically */
        align-items: center; /* Center elements */
        text-align: center; /* Align text for better readability */
    }

    #prodetails .single-pro-image {
        width: 90%; /* Adjust width for mobile */
        margin: 0 auto; /* Center the image */
    }

    #prodetails .single-pro-details {
        width: 90%; /* Adjust width for better layout */
        padding-top: 20px;
    }
}




/* ********************       Footer */

.footer {
    background-color: #131313;
    color: #f4f4f4;
    padding: 20px 0;
    text-align: center;
    width: 100%;
    margin-top: 20px;
}

.footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer__links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer__link {
    color: #f4f4f4;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: grey;
}

.footer__socials {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.footer__face-icon img {
    width: 36px;
    height: auto;
    transition: transform 0.3s ease;
}

.footer__insta-icon img {
    width: 24px;
    height: auto;
    transition: transform 0.3s ease;
}

.footer__social-icon img:hover {
    transform: scale(2.0);
}

.footer__copyright {
    font-size: 0.9rem;
    color: #a9a9a9;
}