/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Top Contact Bar */
.top-contact-bar {
    background: #1a1a1a;
    color: #fff;
    font-size: 0.9rem;
}

.top-contact-bar a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-contact-bar a:hover {
    color: #dc3545;
}

/* Navbar */
.navbar {
    background: #fff;
    padding: 1rem 0;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    color: #333 !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #dc3545 !important;
}

/* Hero Slider */
.page_mainslider .swiper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.page_mainslider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.page_mainslider .swiper-slide img {
    width: 100%;
    max-width: 100%;
    /* aspect-ratio: 16 / 9;  */
    /* Adjust based on image aspect ratio */
    object-fit: contain; /* Prevent cropping, show full image */
    /* border-radius: 8px; */
}

.page_mainslider .swiper-button-prev,
.page_mainslider .swiper-button-next {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page_mainslider .swiper-button-prev:after,
.page_mainslider .swiper-button-next:after {
    font-size: 20px;
}

.page_mainslider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
}

.page_mainslider .swiper-pagination-bullet-active {
    background: #fff;
    opacity: 1;
}

/* Responsive adjustments for Hero */
@media (max-width: 767px) {
    .page_mainslider .swiper-slide img {
        /* aspect-ratio: 4 / 3;  */
        /* Adjust for mobile to prevent stretching */
        min-height: 40vh;
    }
}

@media (max-width: 576px) {
    .page_mainslider .swiper-slide img {
        min-height: 30vh;
    }
}

/* About Section */
#about {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.about-image-wrapper img {
    transition: transform 0.3s ease;
}

.about-image-wrapper img:hover {
    transform: scale(1.05);
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
}

.card h4 {
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card p {
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive adjustments for About */
@media (max-width: 767px) {
    #about .card {
        padding: 1.5rem;
    }

    #about h2.h3 {
        font-size: 1.75rem;
    }

    #about h4.h5 {
        font-size: 1.25rem;
    }

    #about .about-image-wrapper img {
        max-height: 300px;
        object-fit: cover;
    }
}

@media (max-width: 576px) {
    #about .card {
        padding: 1rem;
    }

    #about h2.h3 {
        font-size: 1.5rem;
    }

    #about h4.h5 {
        font-size: 1.1rem;
    }
}

/* Products Section */
#products {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#products .filter-btn-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; /* Prevent wrapping to keep buttons in one line */
    justify-content: center;
    gap: 0.5rem;
    overflow-x: auto; /* Enable horizontal scrolling on mobile */
    padding: 0.5rem;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    white-space: nowrap; /* Ensure buttons stay in one line */
}

#products .filter-btn {
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 80px; /* Prevent buttons from shrinking too much */
    min-height: 44px; /* Ensure tap target size for accessibility */
}

#products .filter-btn.active,
#products .filter-btn:hover {
    background-color: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

/* Responsive adjustments for filter buttons */
@media (max-width: 768px) {
    #products .filter-btn-group {
        justify-content: flex-start; /* Align buttons to start for scrolling */
        padding: 0.5rem 1rem;
    }
    #products .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.95rem;
        min-width: 70px;
        min-height: 40px;
    }
}

@media (max-width: 576px) {
    #products .filter-btn-group {
        gap: 0.4rem;
    }
    #products .filter-btn {
        font-size: 0.9rem;
        min-width: 60px;
        min-height: 36px;
    }
}

/* Hide scrollbar for aesthetics while keeping functionality */
#products .filter-btn-group::-webkit-scrollbar {
    display: none;
}
#products .filter-btn-group {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Existing styles for image container, Swiper, etc. (unchanged) */
#products .image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 250px;
}

#products .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
}

#products .primary-img {
    opacity: 1;
}

#products .hover-img {
    opacity: 0;
}

#products .image-container:hover .primary-img {
    opacity: 0;
}

#products .image-container:hover .hover-img {
    opacity: 1;
}

#products .swiper-button-prev,
#products .swiper-button-next {
    color: #dc3545;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#products .swiper-button-prev:after,
#products .swiper-button-next:after {
    font-size: 20px;
}

#products .swiper-pagination-bullet {
    background: #dc3545;
    opacity: 0.7;
}

#products .swiper-pagination-bullet-active {
    background: #dc3545;
    opacity: 1;
}

#products .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

@media (max-width: 991px) {
    #products .image-container {
        min-height: 220px;
    }
}

@media (max-width: 767px) {
    #products .image-container {
        min-height: 200px;
    }
}

@media (max-width: 576px) {
    #products .image-container {
        min-height: 180px;
    }
}

/* Contact Form Section */
#contact-form .contact-form-cover {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#contact-form .form-control {
    border-radius: 5px;
}

#contact-form .input-group-text {
    background: #dc3545;
    color: #fff;
    border: none;
}

#contact-form .btn-primary {
    background: #dc3545;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    transition: background 0.3s ease;
}

#contact-form .btn-primary:hover {
    background: #c82333;
}

/* Social Section */
#section-social a {
    color: #333;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

#section-social a:hover {
    color: #dc3545;
}

/* Newsletter Section */
section.py-5 .btn-primary {
    background: #dc3545;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
}

section.py-5 .btn-primary:hover {
    background: #c82333;
}

section.py-5 .form-control {
    border-radius: 5px;
}

/* Gallery Section */
#gallery .swiper-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

#gallery .swiper-button-prev,
#gallery .swiper-button-next {
    color: #dc3545;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#gallery .swiper-button-prev:after,
#gallery .swiper-button-next:after {
    font-size: 20px;
}

/* Responsive adjustments for Gallery */
@media (max-width: 767px) {
    #gallery .swiper-slide img {
        height: 150px;
    }
}

@media (max-width: 576px) {
    #gallery .swiper-slide img {
        height: 120px;
    }
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #fff;
}

footer a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #dc3545;
}

footer h5 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

footer ul li {
    margin-bottom: 0.5rem;
}

/* Responsive adjustments for Footer */
@media (max-width: 767px) {
    footer h5 {
        font-size: 1.1rem;
    }

    footer ul li {
        font-size: 0.9rem;
    }
}