/* Basic Setup */
body {
    font-family: 'Josefin Sans', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f7f7f7;
    background-image: url("https://www.transparenttextures.com/patterns/cubes.png");
}

a {
    text-decoration: none;
    color: inherit;
}

.whatsapp-float {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 20px;
    left: 20px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    /* Animation */
    transition: all 0.3s ease-in-out;
    /* Center the icon */
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #FFF;
}

/* Header and Navigation */
header {
    
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
}

.navLogo .mainLogo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navLogo img {
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
}

.navIcons a {
    margin: 0 10px;
    font-size: 1.5rem;
    color: #333;
    transition: color 0.3s ease;
}

.navIcons a:hover {
    color: #e91327;
}

/* Main Navigation Menu */
.navMenu {
    display: flex;
    justify-content: center;
    background-color: #e91327;
    padding: 5px 0;
}

.navMenu ul {
    display: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    /* Allows wrapping on smaller screens */
    justify-content: center;
}

.navMenu ul li a {
    display: block;
    padding: 15px 25px;
    color: white;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-align: center;
}

.menuBar {
    display: none;
}

.navMenu ul li a:hover,
.navMenu ul li a.active {
    background-color: #e91327;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown .dropdown-content {
    display: none;
    color: #e91327;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    list-style: none;
    padding: 0;
    flex-direction: column;
    border-radius: 0 0 5px 5px;
}

.dropdown-content {
    display: none;
}

.dropdown .dropdown-content li a {
    color: #e91327;
    padding: 12px 16px;
}

.dropdown-content li a:hover {
    background-color: #e91327;
    color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: flex;
}

/* Hero Section & Swiper Slider */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #e91327;
    z-index: 0;
}

.swiper.mySwiper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: transparent;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    color: rgba(255, 255, 255, 0.7);
    font-weight: bold;
}

.swiper-pagination-bullet-active {
    background-color: #fff;
}

/* Headings & Breadcrumbs */
.mainHeading {
    text-align: center;
    font-size: 2.5rem;
    margin-top: 50px;
}

.breadCrumbs {
    padding: 20px 50px;
    background-color: rgba(255, 255, 255, 0.5);
}

.breadCrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
}

.breadCrumb a {
    color: #e91327;
}

.category {
    /* width: 80%; */
    margin: 50px 0;
}

.categoryName h1 {
    margin: 10px 0 0;
}


/* Category & Product Cards */
.categories,
.productsSection {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 20px;
    max-width: 1300px;
}

.categoryItem,
.product-link {
    background: rgba(255, 255, 255);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 280px;
}

.categoryItem:hover,
.product-link:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.15);
}

.categoryImage img,
.productImage img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.categorytitle p,
.productName {
    padding: 15px;
    font-weight: 600;
    color: #333;
}

.swiper-button-prev:after, .swiper-rtl .swiper-button-next:after {
    color: #e91327;
    font-size: 30px;
}


.price {
    font-weight: bold;
    color: #e91327;
    font-size: 1.2rem;
}

.beforePrice {
    text-decoration: line-through;
    color: #999;
    margin-left: 10px;
}

.discount {
    color: green;
    margin-left: 10px;
    font-weight: bold;
}

/* Buttons */
.viewAll,
.allCategories,
.submit-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #e91327;
    color: white;
    border: none;
    border-radius: 5px;
    margin: 20px auto;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
    text-align: center;
}

.viewAll:hover,
.allCategories:hover,
.submit-btn:hover {
    background-color: #c61021;
    transform: scale(1.05);
}

.categoruHeading {
    width: auto;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.categoruHeading .viewAll {
    margin: 0;
}

/* Footer */
footer {
    background-color: #f1f1f1;
    color: #333;
    padding: 50px 0 0;
    margin-top: 50px;
    border-top: 2px solid #e91327;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.footer-column {
    width: 22%;
    padding: 10px;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-column h3 {
    color: #e91327;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li,
.footer-column p {
    line-height: 1.6;
}

.footer-column .social-icons a {
    margin-right: 15px;
    font-size: 1.8rem;
}

.footer-column .footer_logo {
    height: 150px;
    padding: 20px 0 10px 0;
    border-radius: 50%;
}


.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #ddd;
    margin-top: 20px;
}

/* Form Styling */
.contactUsSec {
    background: rgba(255, 255, 255, 0.5);
    /* padding: 20px; */
}

.contactform {
    text-align: center;
    padding: 20px;
}

.contactUs {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.contactUs-row {
    width: 100%;
    max-width: 1200px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-inp-lab {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.top-form-sec {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.mb-3 {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.mb-3 label {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 18px;
}

.mb-3 input,
.mb-3 textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

.mb-3 input[readonly] {
    background-color: #eee;
    cursor: not-allowed;
}


/* Scroll & Animation Classes */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-20%);
    transition: all 1s;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

#back-to-top-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    background-color: #e91327;
    color: white;
    cursor: pointer;
    padding: 11.5px 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.4s, transform 0.4s;
}

#back-to-top-btn:hover {
    background-color: #c61021;
    transform: scale(1.1);
}

.view_all {
    justify-content: end;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.8rem;
    text-align: center;
    /* margin-bottom: 4rem; */
    color: var(--color-primary);
}

.masonry-wrapper {
    padding: 0px 1.5rem;
}

.masonry {
    column-count: 3;
    column-gap: 1rem;
}

.categoruHeading h2 {
    font-size: 35px;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 10px;
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s;
}

.masonry {
    column-count: 3;
    column-gap: 1rem;
}

/* Tablet */
@media (max-width: 992px) {
    .masonry {
        column-count: 2;
    }

    .hero-section {
        height: auto;
    }

    #particles-js {
        background-color: transparent;
    }
}

.swiper-button-next:after, .swiper-button-prev:after{
    color: #e91327;
}

/* Mobile */
@media (max-width: 600px) {
    .masonry {
        column-count: 1;
    }

    .hero-section {
        height: 400px;
    }
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s;
}

.masonry-item img:hover {
    transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 780px) {

    /* Stacks main nav links vertically */
    .navMenu ul {
        flex-direction: column;
    }

    /* Stacks footer columns vertically */
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-column {
        width: 90%;
        text-align: center;
    }

    /* Stacks form fields vertically for easier input */
    .top-form-sec {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .menuBar {
        display: block;
    }
    nav {
        padding: 10px 20px;
    }

    .navMenu {
        display: none;
    }

    .navMenu ul {
        flex-direction: column;
    }

    .categoruHeading {
        width: auto;
        padding: 0 40px;
    }

    #back-to-top-btn {
        right: 20px;
        border-radius: 100%;
        padding: 12px;
    }

    #back-to-top-btn i {
        padding: 0 3px;
    }

    h2 {
        font-size: 1.3rem;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-column {
        width: 90%;
        text-align: center;
    }

    .top-form-sec {
        flex-direction: column;
        gap: 15px;
    }
    .navLogo a{
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* Hide desktop nav icons when sidebar is potentially active */
@media (max-width: 480px) {
    .navLogo a{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .navIcons {
        display: none;
    }
    .menuBar {
        display: block;
    }

    .categoruHeading {
        padding: 0 40px;
    }

    .categories,
    .productsSection {
        padding: 10px 40px;
    }

    .category {
        margin: 25px 0;
    }

    .view_all {
        padding: 10px 40px 0 40px;
    }

    .categoruHeading h2 {
        font-size: 25px;
    }

}

/* Sidebar Menu (Copied from your original code) */


.btn_one {
    font-size: 30px;
    color: #333;
}

.sidebar_menu {
    position: fixed;
    left: -100%;
    top: 0;
    height: 100vh;
    width: 100%;
    background-color: rgba(255, 255, 255);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
    transition: all 0.3s linear;
}

.sidebar_menu .logo {
    position: absolute;
    /* top: 10px; */
    left: 20px;
    line-height: 50px;
}

.sidebar_menu .btn_two {
    font-size: 25px;
    line-height: 60px;
    position: absolute;
    right: 20px;
    top: 14px;
    cursor: pointer;
}

.sidebar_menu .menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
}

.sidebar_menu .menu ul {
    list-style: none;
    padding: 0;
}

.sidebar_menu .menu li {
    padding: 12px 0;
}

.sidebar_menu .menu a {
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

#check:checked~.sidebar_menu {
    left: 0;
}

.sidebar_menu .menu li:hover a {
    color: #f00909;
}

.btn_one:hover {
    color: #f00909;
    cursor: pointer;
}

.product-link a {
    border-radius: 50%;
}

.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}