* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
html, body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
    position: relative;
}

/* Ensure containers don't cause overflow */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 15px; /* Consistent padding */
    overflow-x: hidden;
}
/* Header Styles */
header {
    position: fixed;
    width: 100%;
    height: 110px;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    padding: 15px 6%;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 300px;

    height: auto;
}

.nav-links ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
}

.nav-links ul li {
    list-style: none;
    margin: 0 15px;
    position: relative;
}

.nav-links ul li a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links ul li a:hover {
    color: #4db8ff;
}

/* Mobile Menu Icons */
nav .fa-bars,
nav .fa-times {
    display: none;
}

/* Icon and Text Styles */
.nav-icon {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.nav-icon i {
    font-size: 18px;
    margin-right: 8px;
}

.nav-text {
    display: inline-block;
    font-size: 16px;
    margin-left: 5px;
}

/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropbtn {
    cursor: pointer;
    display: flex !important;
    align-items: center;
    gap: 5px;
}

.fa-chevron-down {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1500;
    top: 100%;
    left: 0;
    margin-top: 5px;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: #4db8ff;
    border-left-color: #4db8ff;
    padding-left: 20px;
}

/* Safety Banner */
.safety-banner {
    background-color: #ffcc00;
    color: #333;
    text-align: center;
    padding: 10px 0;
    font-size: 16px;
    font-weight: bold;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 40px 6% 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.footer-section h3 {
    margin-bottom: 20px;
}

.footer-section ul li {
    list-style: none;
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #4db8ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* Responsive Styles */
@media screen and (max-width: 1300px) {
    .nav-links {
        position: fixed;
        background: white;
        height: 100vh;
        width: 250px;
        top: 0;
        right: -250px;
        padding-top: 60px;
        z-index: 1000;
        transition: 0.5s;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links ul li {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Show "Show All Products" button on mobile */
    #showAllProductsBtn {
        display: block;
        padding: 10px 15px;
        color: #333;
        text-decoration: none;
        cursor: pointer;
    }

    .nav-icon {
        padding: 12px 20px;
        width: 100%;
        justify-content: flex-start;
    }

    .nav-text {
        display: inline-block;
        margin-left: 15px;
        font-size: 16px;
    }

    .nav-icon i {
        font-size: 18px;
        width: 20px;
        text-align: center;
    }
    
    /* Mobile dropdown styles */
    .dropdown .mobile-arrow {
        display: inline-block;
        margin-left: auto;
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    .dropdown.active .mobile-arrow {
        transform: rotate(180deg);
    }

    .dropdown-content {
        position: static;
        background: #f9f9f9;
        box-shadow: none;
        padding-left: 45px;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .dropdown.active .dropdown-content {
        max-height: 500px; /* Adjust as needed */
        display: block;
    }

    .dropdown-content a {
        padding: 10px 15px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Mobile menu toggle buttons */
    nav .fa-bars,
    .nav-links .fa-times {
        display: block;
        font-size: 24px;
        color: #333;
        cursor: pointer;
    }

    .nav-links .fa-times {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    /* Fix menu overlay to cover entire screen */
    .menu-overlay {
        position: fixed;
        width: 100vw;
        height: 100vh;
    }

    /* Improve tap targets for mobile */
    .nav-links ul li a,
    button,
    .social-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Fix font size to prevent zoom on iOS */
    input, textarea, select {
        font-size: 16px !important;
    }
}

@media screen and (min-width: 1299px) {
    .nav-links {
        position: static;
        height: auto;
        width: auto;
        padding-top: 0;
        background: transparent;
    }
    
    .nav-icon {
        padding: 10px 15px;
        height: auto;
        width: auto;
        border-radius: 5px;
        justify-content: center;
    }

    .nav-icon:hover {
        background-color: #f0f0f0;
        transform: translateY(2px);
        color: #4db8ff;
    }

    .nav-icon i {
        font-size: 18px;
        margin-right: 5px;
    }

    /* Hide mobile arrow for dropdown */
    .mobile-arrow {
        display: none;
    }
    
    .dropdown:hover .dropdown-content {
        display: block;
    }
    
    .dropdown-content::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 0;
        width: 100%;
        height: 10px;
    }
    
    .dropdown:hover .fa-chevron-down {
        transform: rotate(180deg);
    }
}
