/* CSS Variables for Brown Theme */
:root {
    --primary-brown: #6F4E37; /* Main brown color */
    --primary-brown-dark: #5A3D2C; /* Darker shade for hover */
    --primary-brown-light: #8B6A55; /* Lighter shade for accents */
    --background-light: #F5F1EE; /* Light off-white for backgrounds */
    --background-dark: #E6D9D1; /* Slightly darker for contrast */
    --text-color: #3E2D21; /* Dark brown for text */
    --white: #FFFFFF; /* Pure white */
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-light);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation Bar */
/* Navigation Bar - REFINED VERSION */
nav {
    background-color: var(--background-dark);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 25px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    background-color: rgba(230, 217, 209, 0.95);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
    position: relative;
    text-decoration: none;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-brown);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-links li a:hover {
    color: var(--primary-brown);
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a.active {
    color: var(--primary-brown);
}

.nav-links li a.active::after {
    width: 100%;
}

/* Get a Quote button in nav */
.nav-links .nav-cta {
    background-color: var(--primary-brown);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    margin-left: 15px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-brown);
}

.nav-links .nav-cta:hover {
    background-color: transparent;
    color: var(--primary-brown);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(111, 78, 55, 0.2);
}

.nav-links .nav-cta::after {
    display: none;
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    background: none;
    border: none;
    padding: 8px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background-color: rgba(111, 78, 55, 0.1);
    color: var(--primary-brown);
}

.hamburger.active {
    color: var(--primary-brown);
    transform: rotate(90deg);
}

/* Responsive Navigation */
@media (max-width: 992px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-links {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(230, 217, 209, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        gap: 0;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .nav-links li a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
        border-radius: 8px;
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .nav-links li a:hover {
        background-color: rgba(111, 78, 55, 0.1);
    }

    .nav-links li a::after {
        display: none;
    }

    .nav-links .nav-cta {
        margin: 20px 0 10px;
        padding: 14px 24px;
        font-size: 1.1rem;
        width: 100%;
        max-width: 250px;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hamburger {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero img.active {
    opacity: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    padding: 20px;
    border-radius: var(--border-radius);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--white);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons button {
    background-color: var(--primary-brown);
    color: var(--white);
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.hero-buttons button:hover {
    background-color: var(--primary-brown-dark);
}

/* Who We Are Section - BALANCED VERSION */
.who-we-are-section {
    background-color: var(--background-light);
    padding: 80px 30px; /* Increased but not too much */
    text-align: center;
}

.who-we-are-section h2 {
    font-size: 2.4rem; /* Slightly larger but not huge */
    margin-bottom: 40px;
    color: var(--primary-brown);
    position: relative;
    padding-bottom: 15px;
}

.who-we-are-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-brown);
    border-radius: 2px;
}

.who-we-are-section > p {
    max-width: 850px;
    margin: 0 auto 50px;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Balanced width */
    gap: 30px; /* Good spacing between cards */
    padding: 0 15px;
}

.card {
    background-color: var(--white);
    padding: 35px 25px; /* Comfortable but not huge */
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card i {
    font-size: 48px; /* Slightly larger but reasonable */
    color: var(--primary-brown);
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(111, 78, 55, 0.08);
    border-radius: 12px;
}

.card h3 {
    font-size: 1.5rem;
    margin: 15px 0 20px;
    color: var(--text-color);
    font-weight: 600;
}

.card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #5D4037;
    margin-bottom: 0;
}

/* Our Work Section */
.our-work-section {
    background-color: var(--background-dark);
    padding: 40px 20px;
    text-align: center;
}

.our-work-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-brown);
}

.portfolio-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.portfolio-card h3 {
    margin: 15px 0 10px;
    color: var(--primary-brown);
}

.portfolio-card a {
    color: var(--primary-brown);
    font-weight: 600;
}

/* Get a Quote Section - CLEAN RESTYLE */
.quote-section {
    background-color: var(--background-light);
    padding: 80px 20px;
    text-align: center;
}

.quote-section h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.quote-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-brown);
    border-radius: 2px;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 850px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(111, 78, 55, 0.08);
    border: 1px solid rgba(111, 78, 55, 0.1);
}

.quote-form h3 {
    color: var(--text-color);
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: left;
    padding-left: 15px;
    position: relative;
}

.quote-form h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background: var(--primary-brown);
    border-radius: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 10px;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    padding: 16px 20px;
    border: 1.5px solid rgba(111, 78, 55, 0.15);
    border-radius: 10px;
    width: 100%;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: rgba(245, 241, 238, 0.5);
    color: var(--text-color);
}

.quote-form input::placeholder,
.quote-form select,
.quote-form textarea::placeholder {
    color: #8a7c72;
    opacity: 0.8;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    border-color: var(--primary-brown);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(111, 78, 55, 0.1);
    outline: none;
}

.quote-form textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

/* File input styling */
.quote-form input[type="file"] {
    padding: 14px;
    border: 2px dashed rgba(111, 78, 55, 0.2);
    background: rgba(111, 78, 55, 0.02);
    cursor: pointer;
}

.quote-form input[type="file"]:hover {
    border-color: rgba(111, 78, 55, 0.4);
    background: rgba(111, 78, 55, 0.05);
}

/* Checkbox styling */
.quote-form label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-color);
    margin-top: 10px;
    padding-left: 5px;
}

.quote-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-brown);
}

/* Submit button */
.quote-form button[type="submit"] {
    background: var(--primary-brown);
    color: var(--white);
    padding: 18px 40px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    letter-spacing: 0.5px;
}

.quote-form button[type="submit"]:hover {
    background: var(--primary-brown-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(111, 78, 55, 0.25);
}

.quote-form button[type="submit"]:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quote-section {
        padding: 60px 15px;
    }
    
    .quote-form {
        padding: 35px;
        gap: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .quote-form h3 {
        font-size: 1.2rem;
    }
    
    .quote-form input,
    .quote-form select,
    .quote-form textarea {
        padding: 14px 18px;
    }
    
    .quote-form button[type="submit"] {
        padding: 16px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .quote-form {
        padding: 25px;
    }
    
    .quote-section h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
}

/* Clients Section */
/* Clients Section */
.clients-section {
    background-color: var(--background-dark);
    padding: 40px 20px;
    text-align: center;
}

.clients-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-brown);
}

.clients-slider {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.clients-container {
    display: flex;
    width: max-content; /* Make the container as wide as its content */
    animation: scroll 40s linear infinite; /* Default speed */
}

.client {
    min-width: 150px;
    text-align: center;
    margin: 0 20px;
}

.client img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    transition: var(--transition);
}

.client img:hover {
    transform: scale(1.1);
}

.client-name {
    margin-top: 10px;
    font-weight: bold;
    color: var(--text-color);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Scroll halfway */
}

/* Speed Controls */
.speed-controls {
    margin-top: 20px;
}

.speed-controls button {
    margin: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: var(--primary-brown);
    color: white;
    border: none;
    border-radius: 5px;
    transition: var(--transition);
}

.speed-controls button:hover {
    background-color: var(--primary-brown-dark);
}

/* Footer Section */
/* Footer Section */
footer {
    background-color: var(--primary-brown);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    padding: 40px 20px;
    flex-wrap: wrap;
    gap: 30px; /* Add space between columns */
}

.footer-links, .footer-social, .footer-subscribe, .footer-contact {
    flex: 1;
    min-width: 200px;
    margin: 10px 0; /* Reduce margin for better spacing */
}

.footer-links h3, .footer-social h3, .footer-subscribe h3, .footer-contact h3 {
    margin-bottom: 15px; /* Add space below headings */
    font-size: 1.25rem; /* Slightly larger headings */
}

.footer-links p, .footer-contact p {
    margin: 10px 0; /* Consistent spacing between paragraphs */
    font-size: 0.9rem; /* Slightly smaller text for better readability */
}

.footer-social i {
    font-size: 24px;
    margin-right: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.footer-social i:hover {
    color: var(--background-light);
}

.footer-subscribe input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    width: 100%; /* Full width on mobile */
    margin-bottom: 10px; /* Space between input and button */
    font-size: 0.9rem; /* Smaller font size for better fit */
}

.footer-subscribe button {
    padding: 10px 15px;
    background-color: var(--primary-brown-dark);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    width: 100%; /* Full width on mobile */
    font-size: 0.9rem; /* Smaller font size for better fit */
}

.footer-subscribe button:hover {
    background-color: var(--primary-brown);
}

/* Responsive Footer */
@media (max-width: 768px) {
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px; /* Reduce padding for mobile */
    }

    .footer-links, .footer-social, .footer-subscribe, .footer-contact {
        min-width: 100%; /* Full width on mobile */
    }

    .footer-social i {
        margin: 0 10px; /* Center social icons */
    }

    .footer-subscribe input,
    .footer-subscribe button {
        width: 80%; /* Slightly narrower for better aesthetics */
        margin: 0 auto 10px; /* Center and add space */
    }
}

/* product details */
/* pop up */
/* Modal Styles */
/* Modal styles */
/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto; /* Enable scrolling for the overlay */
    padding: 20px 0; /* Add padding to ensure the modal card is fully visible */
}

.modal-content {
    background-color: #fff;
    margin: 5% auto; /* Center the modal */
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    overflow: visible; /* Allow content to overflow naturally */
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Lock the main page when the modal is open */
body.overlay-open {
    overflow: hidden;
}
  /* Message Styles */
  #modalMessage {
    font-size: 18px;
    margin: 20px 0;
    padding: 10px;
    border-radius: 6px;
  }
  
  .success {
    color: #28a745; /* Green for success */
    background-color: #e8f5e9; /* Light green background */
    border: 1px solid #c3e6cb;
  }
  
  .error {
    color: #dc3545; /* Red for error */
    background-color: #f8d7da; /* Light red background */
    border: 1px solid #f5c6cb;
  }
  
  /* Button Styles */
  button[type="submit"] {
    background-color: var(--primary-brown-dark);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  button[type="submit"]:hover {
    background-color: var(--primary-brown-light);
  }
  
  /* Form Styles (Optional Enhancements) */
  .quote-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .quote-form input,
  .quote-form select,
  .quote-form textarea {
    padding: 10px;
    border: 1px solid var(--white);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
  }
  
  .quote-form input:focus,
  .quote-form select:focus,
  .quote-form textarea:focus {
    border-color: var(--primary-brown);
    outline: none;
  }
  
  .quote-form textarea {
    resize: vertical;
    min-height: 100px;
  }

  /* Scroll-to-Top Arrow Styles */
.scroll-to-top {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px; /* Position above the footer */
    right: 20px; /* Position from the right edge */
    background-color: var(--primary-brown-dark); /* Blue background */
    color: var(--white); /* White arrow */
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Circular shape */
    text-align: center;
    line-height: 40px; /* Center the arrow vertically */
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add a shadow */
    transition: background-color 0.3s ease, opacity 0.3s ease;
    z-index: 1000; /* Ensure it's above other elements */
  }
  
  .scroll-to-top:hover {
    background-color: var(--primary-brown-light); /* Darker blue on hover */
  }
  
  .scroll-to-top.show {
    display: block; /* Show the arrow when the 'show' class is added */
  }

  /* General Styles */
/* product detais pdet */
/* General Styles */


body {
    font-family: 'Inter', sans-serif;
}

.productdetails_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Top Section */
.productdetails_top {
    display: flex;
    gap: 60px;
    margin-bottom: 60px;
}

/* Slideshow */
.productdetails_slideshow {
    flex: 1;
    position: relative;
}

.slideshow_main {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.slideshow_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slideshow_image.active {
    opacity: 1;
}

/* Feint Arrows */
.slideshow_arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none; /* Allow clicks to pass through */
}

.arrow_left, .arrow_right {
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent */
    border: none;
    color: var(--primary-brown);
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: opacity 0.3s ease;
    pointer-events: all; /* Enable clicks */
}

.arrow_left:hover, .arrow_right:hover {
    background-color: rgba(255, 255, 255, 0.8); /* More visible on hover */
}

/* Thumbnails */
.slideshow_thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    overflow-x: auto;
    padding-bottom: 10px; /* Space for scrollbar */
}

.thumbnail {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow);
}

.thumbnail.active {
    border-color: var(--primary-brown);
}

.thumbnail .more {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    font-size: 1rem;
    border-radius: var(--border-radius);
}

/* Key Details */
.productdetails_keydetails {
    flex: 1;
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.productdetails_title {
    font-size: 2.5rem;
    margin: 0 0 24px;
    color: var(--text-color);
    font-weight: 700;
}

.productdetails_price {
    font-size: 1.75rem;
    margin: 0 0 20px;
    color: var(--primary-brown);
    font-weight: 600;
}

.productdetails_shortdesc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 24px;
}

.productdetails_features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.productdetails_features li {
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.productdetails_features li::before {
    content: '•';
    color: var(--primary-brown);
    margin-right: 8px;
    font-size: 1.5rem;
}

.productdetails_cta {
    background-color: var(--primary-brown);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    margin-bottom: 12px;
    width: 100%;
}

.productdetails_cta:hover {
    background-color: var(--primary-brown-dark);
    transform: translateY(-2px);
}

.productdetails_learnmore {
    color: var(--primary-brown);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.productdetails_learnmore:hover {
    text-decoration: underline;
}

/* Bottom Section */
.productdetails_bottom {
    margin-top: 60px;
}

.productdetails_description,
.productdetails_specifications,
.productdetails_reviews,
.productdetails_shipping,
.productdetails_related {
    margin-bottom: 60px;
}

.productdetails_description h2,
.productdetails_specifications h2,
.productdetails_reviews h2,
.productdetails_shipping h2,
.productdetails_related h2 {
    font-size: 1.75rem;
    color: var(--text-color);
    margin-bottom: 24px;
    font-weight: 700;
}

.productdetails_description p,
.productdetails_specifications ul,
.productdetails_shipping p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.productdetails_specifications ul {
    list-style: none;
    padding: 0;
}

.productdetails_specifications li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.productdetails_specifications li::before {
    content: '•';
    color: var(--primary-brown);
    margin-right: 8px;
    font-size: 1.5rem;
}

.reviews_summary {
    margin-bottom: 24px;
}

.reviews_rating {
    font-size: 1.25rem;
    color: var(--primary-brown);
    font-weight: 600;
}

.reviews_count {
    font-size: 0.9rem;
    color: var(--text-color);
}

.review {
    margin-bottom: 24px;
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.review_rating {
    color: var(--primary-brown);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.review_author {
    margin: 0 0 12px;
    font-size: 1.25rem;
    color: var(--text-color);
    font-weight: 600;
}

.review_text {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
}

.productdetails_readreviews {
    color: var(--primary-brown);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.productdetails_readreviews:hover {
    text-decoration: underline;
}

/* Related Products */
.related_products {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.related_product {
    text-align: center;
    background-color: var(--white);
    padding: 16px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-color);
    flex: 1 1 calc(33.333% - 40px);
    max-width: calc(33.333% - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.related_product:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.related_product img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 12px;
}

.related_product_name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.related_product_price {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-brown);
}

.viewall_btn {
    background-color: var(--primary-brown);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    margin-top: 24px;
}

.viewall_btn:hover {
    background-color: var(--primary-brown-dark);
    transform: translateY(-2px);
}

/* Image Gallery Overlay */
.gallery_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it appears above everything else */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery_overlay.active {
    opacity: 1;
    visibility: visible;
}

.gallery_close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.gallery_close:hover {
    color: var(--primary-brown);
}

.gallery_images {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 20px;
    max-width: 1200px;
    padding: 20px;
}

.gallery_images img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery_images img:hover {
    transform: scale(1.05);
}

/* Lightbox for Image Zoom */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001; /* Above the gallery overlay */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox_close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox_close:hover {
    color: var(--primary-brown);
}

.lightbox_image {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--border-radius);
}

/* Responsive Design */
@media (max-width: 768px) {
    .productdetails_top {
        flex-direction: column;
        gap: 20px;
    }

    .slideshow_main {
        height: 300px; /* Smaller height for mobile */
    }

    .related_products {
        gap: 10px;
    }

    .related_product {
        flex: 1 1 calc(50% - 20px); /* 2 cards per row on mobile */
        max-width: calc(50% - 20px);
    }

    .gallery_images {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 480px) {
    .related_product {
        flex: 1 1 100%; /* 1 card per row on small mobile */
        max-width: 100%;
    }

    .gallery_images {
        grid-template-columns: repeat(1, 1fr); /* 1 column on mobile */
    }
}

.gallery_images img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform 0.3s ease;
    display: none; /* Hide all images by default */
}

.gallery_images img.active {
    display: block; /* Show the active image */
}

/* view all reviews overlay */
/* Overlay styles */

/* Disable scrolling on the body when the overlay is open */
body.overlay-open {
    overflow: hidden;
}

/* Overlay styles */
.overlay {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed positioning to cover the entire screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
    z-index: 1000; /* Ensure it's on top of other content */
    overflow-y: auto; /* Enable scrolling inside the overlay */
}

.overlay-content {
    background-color: #fff;
    margin: 5% auto; /* Center the overlay */
    padding: 20px;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

.close-btn:hover {
    color: #000;
}
/* enquiry form */
/* Form Styles */
/* Form styles */
#enquiryForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#enquiryForm label {
    font-weight: bold;
    margin-bottom: 5px;
}

#enquiryForm input,
#enquiryForm select,
#enquiryForm textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

#enquiryForm textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 100px;
}

#enquiryForm button {
    padding: 10px;
    background-color: #28a745; /* Green color for submit button */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#enquiryForm button:hover {
    background-color: #218838; /* Darker green on hover */
}

/* Modal content styles */

/* Loader and processing text styles */
#loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
    animation: rotate 1s linear infinite;
    margin: 20px auto;
}

#processingText {
    text-align: center;
    margin-top: 10px;
    font-size: 16px;
    color: var(--text-color);
}

/* Success and error message styles */
#modalMessage {
    font-size: 18px;
    margin: 20px 0;
    padding: 10px;
    border-radius: 6px;
    display: none; /* Hidden by default */
}


#enquiryForm button:hover {
    background-color: var(--primary-brown-light);
}

/* loader */
/* Loader styles */
/* Loader styles */
.loader {
    box-sizing: border-box;
    position: relative;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
  }
  .loader:after, .loader:before {
    content: "";
    width: 24px;
    height: 24px;
    position: absolute;
    border-radius: 50%;
    background: var(--primary-brown-light);
    animation: spin 1s linear infinite;
    transform-origin: 0px 100%;
  }
  .loader:before {
    transform-origin: 0 50%;
    background: var(--primary-brown-dark);
  }
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
      
/* Center the loader and processing text */
#loader, #processingText {
    text-align: center;
}

/* review modal */
/* Form Styles */
#reviewForm label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
    text-align: left;
}

#reviewForm input,
#reviewForm select,
#reviewForm textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

#reviewForm textarea {
    resize: vertical;
    min-height: 100px;
}

#reviewForm button {
    background-color: var(--primary-brown-dark);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#reviewForm button:hover {
    background-color: var(--primary-brown-light);
}


/* Processing Text */
#reviewProcessingText {
    text-align: center;
    margin-top: 10px;
    font-size: 16px;
    color: var(--text-color);
    display: none; /* Hidden by default */
}

/* Add Review Link Styles */
#addReviewLink {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-brown-dark), var(--primary-brown-light));
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#addReviewLink::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    border-radius: 50%;
    opacity: 0;
}

#addReviewLink:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#addReviewLink:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

#addReviewLink:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Optional: Add an icon */
#addReviewLink i {
    margin-right: 8px;
}
