/* Base Resets & Variables */
:root {
    --dark-blue: #081c33;      /* Deep navy for top bar, headings, and menus */
    --accent-blue: #00a8e8;     /* Bright premium medical blue accent */
    --accent-hover: #0086ba;    /* Darker blue for smooth hover states */
    --text-dark: #2c3e50;      /* Clear body text */
    --border-light: #eef2f6;   /* Light dividers */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--text-dark);
    background-color: #f8fafc;
}

/* Header Top Utility Bar */
.top-bar {
    background-color: var(--dark-blue);
    color: #ffffff;
    padding: 10px 20px;
    font-size: 13px;
}

.top-bar-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-contact span {
    margin-right: 20px;
}

.top-bar-announcement {
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Main Navigation Header Bar */
.main-nav {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Branding Logo */
.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark-blue);
    text-decoration: none;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent-blue);
}

/* Middle Navigation Links */
.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

/* Right-side Contact Action Button */
.nav-cta a {
    background-color: var(--accent-blue);
    color: #ffffff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 3px 8px rgba(0, 168, 232, 0.2);
    transition: background 0.2s ease, transform 0.1s ease;
}

.nav-cta a:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

/* Search Container Styling */
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 2000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    border: 1px solid var(--border-light);
}

.search-suggestion-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--dark-blue);
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.search-suggestion-item:hover {
    background: #f4f7f9;
}

.search-suggestion-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
}

/* Hero Banner Slider CSS */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: #041121;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(8,28,51,0.9) 0%, rgba(8,28,51,0.4) 100%);
}

.slide-content {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px;
    color: #ffffff;
    z-index: 10;
}

.slide-content h1 {
    font-size: 40px;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-content p {
    font-size: 18px;
    color: #cbd5e1;
    margin: 0 0 30px 0;
    max-width: 600px;
}

.btn-slider {
    display: inline-block;
    background: var(--accent-blue);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 30px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 13px;
    transition: background 0.3s;
}

.btn-slider:hover {
    background: var(--accent-hover);
}

/* Headlines and Section Dividers */
.section-headline {
    max-width: 1300px;
    margin: 50px auto 25px auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--accent-blue);
}

.section-headline h2 {
    margin: 0;
    color: var(--dark-blue);
    font-size: 22px;
    text-transform: uppercase;
}

.view-all-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

/* Layout Page Grid Architecture */
.product-page-container {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Product Card Elements */
.product-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.product-image-box {
    width: 100%;
    height: 220px;
    background: #ffffff;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-light);
}

.product-image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-details-box {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-name {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: var(--dark-blue);
    font-weight: 600;
    line-height: 1.4;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-detail, .btn-price {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    text-transform: uppercase;
}

.btn-detail {
    background: #f1f5f9;
    color: var(--dark-blue);
    border: 1px solid #cbd5e1;
}

.btn-detail:hover {
    background: #e2e8f0;
}

.btn-price {
    background: var(--dark-blue);
    color: #ffffff;
}

.btn-price:hover {
    background: #112d4e;
}

/* Hover-Zoom Banner Section Layout (Right above footer) */
.zoom-banner-grid {
    max-width: 1300px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.zoom-card {
    position: relative;
    height: 240px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.zoom-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.zoom-card:hover .zoom-card-bg {
    transform: scale(1.1);
}

.zoom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(8,28,51,0.8));
    z-index: 1;
}

.zoom-card-text {
    position: absolute;
    bottom: 25px;
    left: 25px;
    color: #ffffff;
    z-index: 2;
}

.zoom-card-text h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
}

.zoom-card-text span {
    font-size: 13px;
    text-decoration: underline;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Site Footer Integration Styles */
.site-footer {
    background-color: var(--dark-blue);
    color: #ffffff;
    padding: 50px 20px 20px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    font-size: 24px;
    margin-top: 0;
}

.footer-col h3 span {
    color: var(--accent-blue);
}

.footer-col h4 {
    color: var(--accent-blue);
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 20px;
}

.footer-col p {
    line-height: 1.6;
    color: #cbd5e1;
    font-size: 14px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
    color: #cbd5e1;
    font-size: 14px;
}

.footer-bottom {
    max-width: 1300px;
    margin: 40px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

/* ==========================================================================
   ADVANCED MOBILE & SMALL DISPLAY DEVICE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 991px) {
    /* Top Bar Column Scaling */
    .top-bar-container {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        padding: 4px 10px;
    }
    .top-bar-contact span {
        margin-right: 0;
        display: block;
        margin-bottom: 4px;
    }

    /* Core Navigation Container */
    .nav-container {
        padding: 15px 20px;
        position: relative;
    }

    /* Hide Desktop Action Button and Setup Default Hiding Configuration */
    .nav-cta, #sidenav-toggle {
        display: none !important;
    }

    /* Target Hamburger Burger Layout Elements */
    .menu-toggle-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 19px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 100001 !important; /* Force layout over backdrop depth */
        padding: 0;
    }
    .menu-toggle-btn span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--dark-blue) !important;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Convert Desktop Horizontal Links into a Crisp White Mobile Drawer */
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -300px !important; /* Kept off-screen until checked state activation */
        width: 300px !important;
        height: 100vh !important;
        background: #ffffff !important; /* Override layout transparency conflicts */
        box-shadow: -6px 0 25px rgba(8, 28, 51, 0.15) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding: 100px 30px 40px 30px !important;
        gap: 15px !important;
        box-sizing: border-box !important;
        z-index: 100000 !important; /* Positioned right under the menu toggle button */
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    /* Mobile Text Links Structural Constraints */
    .nav-links a {
        display: block !important;
        width: 100% !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        color: var(--dark-blue) !important; /* Enforce visibility counteracting global definitions */
        padding: 12px 0 !important;
        border-bottom: 1px solid #f1f5f9 !important;
        text-align: left !important;
    }
    .nav-links a:hover {
        color: var(--accent-blue) !important;
    }

    /* Core Backdrop Overlay Element rules */
    .sidenav-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background-color: rgba(8, 28, 51, 0.45) !important; /* Dark blue transparent overlay */
        backdrop-filter: blur(2px) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        z-index: 99999 !important; /* Layered safely right below mobile card content */
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
        display: block !important;
    }

    /* Native Checkbox Drive Toggle Operations */
    #sidenav-toggle:checked ~ .nav-container .nav-links {
        right: 0 !important; /* Drives full visibility on display */
    }
    #sidenav-toggle:checked ~ .sidenav-overlay {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Morph hamburger lines into clean 'X' Close icon */
    #sidenav-toggle:checked ~ .nav-container .menu-toggle-btn span:nth-child(1) {
        transform: translateY(8px) rotate(45deg) !important;
    }
    #sidenav-toggle:checked ~ .nav-container .menu-toggle-btn span:nth-child(2) {
        opacity: 0 !important;
    }
    #sidenav-toggle:checked ~ .nav-container .menu-toggle-btn span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) !important;
    }
}

@media (max-width: 768px) {
    /* Hero Section Responsive Typography */
    .hero-slider-container {
        height: 340px;
    }
    .slide-content h1 {
        font-size: 26px;
    }
    .slide-content p {
        font-size: 15px;
    }
    
    /* Layout components fallback sizing details */
    .zoom-banner-grid {
        grid-template-columns: 1fr;
        margin: 30px auto;
    }
    .section-headline h2 {
        font-size: 18px;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 15px;
    }
}