:root {
    --primary-color: #1E3A8A;
    --primary-light: #3B82F6;
    --secondary-color: #0F172A;
    --bg-light: #F8FAFC;
    --text-main: #334155;
    --text-light: #64748B;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-light);
}

nav a, .dropbtn {
    text-decoration: none;
    color: var(--text-main);
    margin-left: 30px;
    font-weight: 600;
    transition: color 0.3s ease;
    cursor: pointer;
}

nav a:hover, .dropdown:hover .dropbtn {
    color: var(--primary-light);
}

/* Dropdown */
.dropdown {
    display: inline-block;
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    top: 100%;
    left: 15px;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin-left: 0;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.btn-primary-small {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
}

.btn-primary-small:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background-color: var(--white);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero-text h1 span {
    color: var(--primary-light);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 450px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.hero-image {
    flex: 1;
}

.image-placeholder {
    width: 100%;
    max-width: 500px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Benefits */
.benefits {
    padding: 80px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.benefits h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.benefit-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.benefit-card p {
    color: var(--text-light);
}

/* Products Section */
.products-section {
    padding: 100px 0;
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
}

.products-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #CBD5E1;
    margin-bottom: 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.product-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    color: var(--text-main);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    height: 250px;
    width: 100%;
    background-color: #f1f5f9;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.product-desc {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 25px;
}

.product-btn {
    margin-top: 15px;
}

/* Hamburger */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
    margin-right: 15px;
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #1e3a8a; /* Biolab style Dark Blue */
    z-index: 9999;
    flex-direction: column;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { top: -100%; }
    to { top: 0; }
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: white;
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1e3a8a;
    cursor: pointer;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
}

.mobile-menu-title {
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 15px 20px 5px 20px;
    opacity: 0.7;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mobile-link {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-link .arrow {
    font-size: 1.2rem;
    opacity: 0.5;
}

/* Review Section */
.payment-icons-global {
    margin-top: 40px;
    color: #94A3B8;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--white);
    padding: 40px 0;
    border-top: 1px solid #E2E8F0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 20px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .container {
        padding: 0 15px;
        overflow-x: hidden;
    }
    .hero {
        padding: 40px 0;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .image-placeholder {
        height: 250px;
        border-radius: 12px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin: 0 auto 30px auto;
    }
    
    nav {
        display: none;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .products-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 15px;
        padding-bottom: 20px;
        scrollbar-width: none; /* Firefox */
        margin: 0 -15px; /* Ignore container padding for full width scroll */
        padding-left: 15px;
        padding-right: 15px;
    }
    .products-grid::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    .product-card {
        min-width: 80%;
        max-width: 300px;
        scroll-snap-align: center;
        flex: 0 0 auto;
    }
    .product-image {
        height: 200px;
    }
    .slider-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    .prev-btn { left: 5px; }
    .next-btn { right: 5px; }
}

/* Slider Buttons */
.slider-btn {
    display: none; /* Hidden on desktop */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    font-size: 1.2rem;
    color: var(--primary-color);
    z-index: 10;
    cursor: pointer;
}
.prev-btn { left: -10px; }
.next-btn { right: -10px; }

/* Checkout Page Styles */
.checkout-wrapper {
    padding: 60px 20px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.checkout-form-container, .checkout-summary-container {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.delivery-card {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delivery-card:hover {
    border-color: var(--primary-light);
    background-color: #f8fafc;
}

.delivery-card input {
    margin-right: 15px;
    transform: scale(1.2);
}

.delivery-details {
    display: flex;
    flex-direction: column;
}

.delivery-title {
    font-weight: 600;
    color: var(--secondary-color);
}

.delivery-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

@media (max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Quantity Controls for index.html */
.qty-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.qty-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 4px;
    background: var(--white);
}
.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: none;
    background: #f1f5f9;
    color: var(--secondary-color);
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s;
}
.qty-btn:hover {
    background: #e2e8f0;
}
.qty-value {
    font-weight: 600;
    font-size: 1rem;
    color: var(--secondary-color);
}
.btn-remove {
    background: none;
    border: none;
    color: #64748B;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
}
.btn-remove:hover {
    color: #ef4444;
}

