body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

header {
    background-color: #333;
    padding: 10px;
    color: #fff;
    text-align: center;
}

/* Top Section Navigation */
nav ul.menu-bar {
    display: flex;
    justify-content: space-around;
    list-style-type: none;
    padding: 0;
    margin: 0;
    background-color: #333;
    color: #fff;
}

nav ul.menu-bar li {
    margin: 10px;
}

nav ul.menu-bar li a {
    text-decoration: none;
    color: #fff;
    padding: 8px 12px;
    transition: background-color 0.3s ease;
}

nav ul.menu-bar li a:hover {
    background-color: #f4a261;
    border-radius: 5px;
}

/* Search Bar */
.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    gap: 10px;
}

.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
    gap: 10px;
    position: relative;
}

.search-bar input {
    width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}


.search-bar button {
    background-color: #2a9d8f;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #21867a;
}




/* Responsive Design */
@media (max-width: 768px) {
    nav ul.menu-bar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-bar input {
        width: 80%;
    }
}





/* Blogs Section */
.blogs-container {
    padding: 40px 20px;
    background-color: #f4f4f4;
    text-align: center;
}

.blogs-container h2 {
    margin-bottom: 30px;
    font-size: 2rem;
    color: #333;
}

.blog-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.blog-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    width: 280px;
    max-width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.blog-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.blog-card h3 {
    margin: 15px 0 10px;
    font-size: 1.25rem;
    color: #2a9d8f;
}

.blog-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-boxes {
        flex-direction: column;
        align-items: center;
    }

    .blog-card {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .blogs-container h2 {
        font-size: 1.5rem;
    }

    .blog-card img {
        height: 150px;
    }
}


/* Products Section */
.products-container {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
    position: relative;
    margin-bottom: 50px;
}

.products-container h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: #333;
}

.product-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ddd #f9f9f9;
}

.product-slider::-webkit-scrollbar {
    height: 8px;
}

.product-slider::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 10px;
}

.product-slider {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.product-card {
  scroll-snap-align: start;
}

.product-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    width: 282px;
    padding: 20px;
    flex: 0 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.product-card h4 {
    margin-bottom: 10px;
    color: #2a9d8f;
    font-size: 1.1rem;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.price-button, .spec-button {
    background-color: #2a9d8f;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    margin: 10px 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.price-button:hover {
    background-color: #21867a;
}

.spec-button {
    background-color: #f4a261;
}

.spec-button:hover {
    background-color: #e76f51;
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.3s;
}

.nav-btn:hover {
    background-color: #555;
}

.nav-btn.left {
    left: 10px;
}

.nav-btn.right {
    right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-slider {
        gap: 15px;
    }

    .product-card {
        width: 180px;
    }

    .products-container h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .product-card {
        width: 100%;
        padding: 15px;
    }

    .nav-btn {
        display: none;
    }
}


/* Modal Styles */
.modal {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000; /* Ensure it's above other content */
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px; /* Ensures max width on larger screens */
    position: fixed; /* Use fixed positioning */
    top: 50%; /* Position from the top */
    left: 50%; /* Position from the left */
    transform: translate(-50%, -50%); /* Center it */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    transition: color 0.3s;
}

.close:hover {
    color: #2a9d8f;
}

/* Form Styles */
#priceRequestForm {
    display: flex;
    flex-direction: column;
}

#priceRequestForm label {
    margin: 10px 0 5px;
}

#priceRequestForm input {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

#priceRequestForm input:focus {
    border-color: #2a9d8f;
}

#priceRequestForm button {
    background-color: #2a9d8f;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#priceRequestForm button:hover {
    background-color: #21867a;
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
    }
}




/* WhatsApp Sidebar */
.whatsapp-sidebar {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: #25d366;
    padding: 10px;
    border-radius: 5px;
    display: none;
}



/* Footer Styling */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    gap: 20px;
}

.footer-section {
    flex: 1;
    margin: 10px;
    min-width: 250px;
}

.footer-section h3 {
    margin-bottom: 15px;
    border-bottom: 2px solid #f4a261;
    padding-bottom: 5px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 8px 0;
}

.footer-section ul li a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #f4a261;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 24px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #f4a261;
}

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

.newsletter input {
    width: 70%;
    max-width: 300px;
    padding: 10px;
    border: none;
    border-radius: 4px;
}

.newsletter button {
    background-color: #f4a261;
    border: none;
    color: #fff;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.newsletter button:hover {
    background-color: #e68a4f;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .newsletter {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter input {
        width: 100%;
    }
}

.suggestions-container {
  position: absolute;
  background: white;
  border: 1px solid #ddd; /* Remove this line */
  width: calc(100% - 2px);
  z-index: 1000;
  display: none; /* Add this */
  border-top: none !important; /* Add this */
}

.suggestions-container {
  transition: opacity 0.2s ease;
  opacity: 0;
}

.search-bar:focus-within .suggestions-container {
  opacity: 1;
}


/* Add new border only when suggestions are visible */
.search-bar:focus-within .suggestions-container {
  border: 1px solid #ddd;
}

.suggestion-item {
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background-color: #f5f5f5;
}

.search-bar {
  position: relative;
  margin: 15px 0;
}

/* Menu Container */
.menu-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Menu Toggle Button */
.menu-toggle {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    padding: 8px 12px;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: #f4a261; /* Matches hover color of menu-bar links */
}

.menu-icon {
    display: inline-block;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #2a9d8f; /* Matches search button color */
    color: #fff;
}

/* Ensure header layout accommodates menu */
header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.search-bar {
    margin: 10px 10px 10px 0; /* Adjust margin to prevent overlap */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .menu-toggle {
        font-size: 1.5rem;
        padding: 6px 10px;
    }
    
    .dropdown-menu {
        min-width: 160px;
    }
    
    .dropdown-menu a {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
    
    header {
        flex-direction: column;
        align-items: center;
    }
    
    .search-bar {
        margin: 10px 0;
    }
    
    .menu-container {
        margin-top: 10px;
    }
}
