@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand Palette: Deep Corporate Navy + Logo Red Accent */
    --bg-color: #f4f6f9;
    --bg-white: #ffffff;
    
    /* Primary: Deep Navy (Trust, Medical, Structural) */
    --primary-color: #1b263b;     
    --primary-dark: #0d1b2a;      
    --primary-light: #e0e1dd;     
    
    /* Secondary/Accent: Logo Red (Action, Highlights) */
    --secondary-color: #d90429;   
    --secondary-dark: #8d0801;    
    
    --text-main: #1f2937;         
    --text-muted: #6b7280;        
    --text-light: #9ca3af;        
    
    --border-color: #e2e8f0;      /* Light border */
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition-smooth: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-primary {
    color: var(--primary-color);
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    text-align: center;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-dark);
    box-shadow: 0 4px 12px rgba(217, 4, 41, 0.3);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Header */
.header {
    background: var(--bg-white);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.top-bar {
    background: var(--primary-dark);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info span {
    margin-right: 1.5rem;
}

.top-bar-info i {
    margin-right: 0.5rem;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    gap: 3rem;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logo i {
    color: var(--secondary-color);
}

/* Header Search */
.header-search {
    flex: 1;
    max-width: 600px;
    position: relative;
    display: flex;
    align-items: center;
}

.header-search input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 4rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    outline: none;
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: var(--bg-color);
}

.header-search input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(217, 4, 41, 0.1);
    background: white;
}

.header-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.header-search button:hover {
    background: var(--secondary-dark);
}

.nav-bottom-bar {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

.nav-bottom-container {
    display: flex;
    justify-content: center;
    padding: 0 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links > a, .nav-item-dropdown > a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 1rem 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    position: relative;
}

.nav-links > a::after, .nav-item-dropdown > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition-smooth);
}

.nav-links > a:hover::after, .nav-links > a.active::after, .nav-item-dropdown:hover > a::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active, .nav-item-dropdown:hover > a {
    color: var(--secondary-color);
}

/* Dropdown styling */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    z-index: 100;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--secondary-color);
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem !important;
    color: var(--text-main) !important;
    font-size: 0.95rem !important;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: #fdf0f1;
    color: var(--secondary-color) !important;
    padding-left: 2rem !important;
}

.nav-actions {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-shrink: 0;
}

.action-icon {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.action-icon i {
    font-size: 1.4rem;
}

.action-text {
    font-size: 0.95rem;
    font-weight: 600;
    display: none;
}

.icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.action-icon:hover {
    color: var(--secondary-color);
}

@media (min-width: 1024px) {
    .action-text {
        display: block;
    }
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--secondary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    background-color: var(--primary-light);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-tagline {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: white;
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-wrapper img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    z-index: 1;
    max-height: 500px;
}

.hero-pattern {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary-color) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.1;
    z-index: 0;
    border-radius: var(--radius-lg);
}

/* Features Bar */
.features-bar {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.feature-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Section Common */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    text-align: center;
    cursor: pointer;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.category-card:hover .category-icon {
    background: var(--secondary-color);
    color: white;
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.category-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.product-image-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect ratio */
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.product-image-wrapper img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain; /* Better for medical products */
    padding: 1rem;
    transition: var(--transition-smooth);
}

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

.product-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--secondary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.4;
    flex: 1; /* Pushes price to bottom */
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
}

.old-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 0.5rem;
    font-weight: 400;
}

.btn-cart {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; transition: var(--transition-smooth);
}

.btn-cart:hover {
    background: var(--secondary-color);
    color: white;
}

/* Info Section (Medical Specific) */
.info-section {
    background: white;
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.info-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.info-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.info-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-list i {
    color: var(--secondary-color);
    margin-top: 0.3rem;
}

.info-list strong {
    display: block;
    color: var(--text-main);
}

/* Footer */
.footer {
    background: var(--text-main);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    display: flex; align-items: center; justify-content: center;
}

.social-link:hover {
    background: var(--primary-color);
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: white;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Mobile Elements */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
}

.mobile-menu-close {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-menu-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-search-container {
    display: none;
    padding: 0.5rem 0 1rem;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

.mobile-search {
    max-width: 100%;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-title { font-size: 2.8rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    
    /* Header Mobile Adjustments */
    .header-main {
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
    
    .desktop-search {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-search-container {
        display: block;
    }
    
    .logo {
        flex: 1;
        justify-content: center;
    }
    
    /* Off-Canvas Menu */
    .nav-bottom-bar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        background: white;
        z-index: 1001;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }
    
    .nav-bottom-bar.active {
        left: 0;
    }
    
    .nav-bottom-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
    }
    
    .mobile-menu-header, .mobile-menu-close {
        display: flex;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
        align-items: flex-start;
    }
    
    .nav-links > a, .nav-item-dropdown {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links > a::after, .nav-item-dropdown > a::after {
        display: none;
    }
    
    .nav-item-dropdown > a {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        padding-left: 1rem;
        display: none;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .nav-item-dropdown.active .dropdown-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .nav-actions { gap: 1rem; }
    .logo { font-size: 1.5rem; }
}
