/* ==========================================
   MedSen Pharmacy - Main Stylesheet
   Medical Design System with Bootstrap 5
   ========================================== */

:root {
    /* OFFICIAL MED-SEN BRAND PALETTE */
    --primary: #1FA6A0;
    /* Teal Green */
    --primary-deep: #0E4A67;
    /* Deep Medical Blue */
    --secondary: #4CB8E0;
    /* Sky Blue */
    --accent: #F28C28;
    /* Soft Orange */

    /* Medical Status Colors */
    --success: #1FA6A0;
    --danger: #e11d48;
    --warning: #f59e0b;
    --info: #4CB8E0;

    /* Neutral Colors */
    --white: #FFFFFF;
    --light-bg: #F5F7F9;
    --text-dark: #2C2C2C;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --border-color-light: #f3f4f6;

    /* Design Tokens */
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --shadow-soft: 0 4px 20px rgba(14, 74, 103, 0.08);
    --shadow-md: 0 8px 30px rgba(14, 74, 103, 0.12);
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;

    /* Legacy Compat (mapped to new palette) */
    --trust-blue: var(--primary-deep);
    --medical-green: var(--primary);
    --dark: var(--text-dark);
}

/* Global Reset for Responsiveness */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================
   Announcement Ticker Styles
   ========================================== */

.announcement-ticker-wrapper {
    background: linear-gradient(135deg, #1a2332 0%, #1f2d3e 100%);
    border-bottom: 2px solid rgba(31, 166, 160, 0.3);
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    z-index: 100;
}

.announcement-ticker {
    position: relative;
    height: 38px;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.ticker-content {
    display: flex;
    gap: 3rem;
    animation: scroll-ticker 40s linear infinite;
    white-space: nowrap;
    padding: 0 1rem;
}

@keyframes scroll-ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    letter-spacing: 0.3px;
}

.ticker-item:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: 'Inter', 'Roboto', 'Poppins', -apple-system, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* Medical Page Layout */
.medical-page {
    background-color: #ffffff;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
}

h2 {
    font-size: 1.9rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    color: #555;
    margin-bottom: 1rem;
}

.text-soft {
    color: var(--text-muted);
}

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

a:hover {
    color: var(--primary-dark);
}

/* ==========================================
   MODERN FORM STYLING
   Professional form controls matching theme
   ========================================== */

.form-select,
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 0.7rem 0.875rem !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
    background-color: #f8f9fa !important;
    color: #1e293b !important;
}

.form-select:focus,
.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus {
    border-color: #0066cc !important;
    background-color: white !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1) !important;
    outline: none !important;
}

.form-select:hover,
.form-control:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
textarea:hover {
    border-color: #0066cc !important;
    background-color: white !important;
}

/* Modern Select Dropdown */
.form-select {
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230066cc' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 1.25rem !important;
    padding-right: 2.5rem !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    border: 2px solid #0066cc !important;
}

.form-select option {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f7ff 100%);
    color: #1e293b;
    padding: 0.75rem 0.5rem;
    margin: 0.5rem 0;
    border-radius: 4px;
    font-weight: 500;
}

.form-select option:checked {
    background: linear-gradient(135deg, #0066cc 0%, #00a8a8 100%) !important;
    color: white;
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

.form-select option:hover {
    background-color: rgba(0, 102, 204, 0.1);
}

.form-select:hover {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230066cc' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    border-color: #00a8a8 !important;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.15) !important;
}

.form-select:focus {
    border-color: #0066cc !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230066cc' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15) !important;
    outline: none !important;
}

/* Form Labels */
label {
    color: #1e293b;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ==========================================
   PREMIUM MEDICAL HERO SECTION
   Full-width, video-based, professional pharmaceutical branding
   ========================================== */

:root {
    /* Med-Sen Brand Colors */
    --med-sen-blue: #0066cc;
    --med-sen-teal: #00a8a8;
    --med-sen-blue-dark: #0052a3;
    --med-sen-blue-light: #e6f0ff;
    --med-sen-teal-light: #e0f7f7;
}

.hero-premium-medical {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1e3e 0%, #1a3a52 100%);
    z-index: 1;
}

/* Hero Slider Section - Full Screen Only */
.hero-slider-section {
    min-height: 650px;
    max-height: 650px;
    overflow: hidden;
    background: transparent;
    position: relative;
    width: 100%;
    display: block;
}

/* Static Content Below Slider */
.hero-static-section {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    overflow: visible;
    background: linear-gradient(135deg, #0a1e3e 0%, #1a3a52 100%);
    z-index: 1;
    padding: 3rem 0;
}

.hero-content-below-slider {
    padding: 4rem 0 !important;
}

/* ==========================================
   Hero Slider Styles
   ========================================== */

.hero-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 5;
}

.hero-slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero-slide:hover {
    transform: scale(1.02);
}

.hero-slide-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    text-decoration: none;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
    display: none;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
    animation: slideContentFadeIn 1s ease-out;
    display: none;
}

@keyframes slideContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slide-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.hero-slide-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: rgba(255, 255, 255, 0.98);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

.hero-slide-description {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-slider-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #1FA6A0 0%, #00a8a8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(31, 166, 160, 0.3);
}

.btn-slider-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 14px 35px rgba(31, 166, 160, 0.5);
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #00a8a8 0%, #1FA6A0 100%);
}

/* Slider Navigation Buttons */
.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.hero-slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.hero-slider-btn-prev {
    left: 2rem;
}

.hero-slider-btn-next {
    right: 2rem;
}

/* Slider Indicators/Dots */
.hero-slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 20;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slider-dot.active {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
}

.hero-slider-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

/* Video Background Container */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1e3e 0%, #1a3a52 50%, #00495c 100%);
    z-index: -1;
}

.hero-video {
    display: none;
}

/* Hero Overlay - Dark gradient for text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(10, 30, 62, 0.5) 0%,
            rgba(26, 58, 82, 0.4) 50%,
            rgba(0, 102, 204, 0.2) 100%);
    z-index: 0;
    pointer-events: none;
}

/* Hero Content Wrapper */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content-left {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Trust Badges Row */
.hero-trust-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease-out backwards;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(0, 168, 168, 0.4);
    border-radius: 20px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-badge i {
    color: var(--med-sen-teal);
    font-size: 1rem;
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 168, 168, 0.6);
    transform: translateY(-2px);
}

/* Main Headline */
.hero-headline {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1.4s ease-out backwards;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

/* Subtext */
.hero-subtext {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 2rem;
    animation: fadeInUp 1.6s ease-out backwards;
    font-weight: 400;
}

/* Features Row */
.hero-features-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    animation: fadeInUp 1.8s ease-out backwards;
    max-width: 600px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(0, 168, 168, 0.1);
    border-left: 3px solid var(--med-sen-teal);
    border-radius: 6px;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.hero-feature-item i {
    font-size: 1.5rem;
    color: var(--med-sen-teal);
}

.hero-feature-item:hover {
    background: rgba(0, 168, 168, 0.2);
    transform: translateX(8px);
}

/* CTA Buttons */
.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    animation: fadeInUp 2s ease-out backwards;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--med-sen-blue) 0%, var(--med-sen-teal) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, var(--med-sen-blue-dark) 0%, #008e8e 100%);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-hero-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
    color: #ffffff;
}

/* Compliance Note */
.hero-compliance-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    animation: fadeInUp 2.2s ease-out backwards;
    font-style: italic;
}

.hero-compliance-note i {
    font-size: 1.1rem;
    color: var(--med-sen-teal);
}

/* Hero Visual Element (Right Side) */
.hero-visual-side {
    position: relative;
    z-index: 2;
}

.hero-visual-element {
    font-size: 12rem;
    color: rgba(0, 168, 168, 0.2);
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 102, 204, 0.2));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    z-index: 2;
    animation: bounce 2s ease-in-out infinite;
}

.hero-scroll-indicator i {
    font-size: 1.2rem;
}

@keyframes bounce {

    0%,
    100% {
        opacity: 0.7;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(8px);
    }
}

/* ==========================================
   MEDICAL HERO RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
    .hero-premium-medical {
        min-height: 90vh;
    }

    .hero-headline {
        font-size: clamp(1.8rem, 4vw, 2.8rem);
    }

    .hero-subtext {
        font-size: clamp(0.95rem, 1.8vw, 1.1rem);
        max-width: 100%;
    }

    .hero-features-row {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 1rem;
    }

    .hero-visual-element {
        font-size: 8rem;
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    .hero-premium-medical {
        min-height: 80vh;
    }

    .hero-video {
        object-position: center;
    }

    .hero-headline {
        font-size: clamp(1.5rem, 3.5vw, 2.2rem);
        margin-bottom: 1rem;
    }

    .hero-subtext {
        font-size: 0.95rem;
    }

    /* Hide mega menu on mobile */
    .mega-menu {
        display: none !important;
    }

    .nav-item-mega .nav-link {
        pointer-events: auto;
    }

    margin-bottom: 1.5rem;
}

.hero-trust-badges {
    gap: 0.5rem;
}

.hero-badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.hero-features-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 100%;
}

.hero-feature-item {
    padding: 0.75rem;
    font-size: 0.9rem;
}

.hero-cta-buttons {
    gap: 0.75rem;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    flex: 1;
    justify-content: center;
}

.hero-compliance-note {
    font-size: 0.85rem;
}

.hero-scroll-indicator {
    bottom: 20px;
}
}

@media (max-width: 576px) {
    .hero-premium-medical {
        min-height: 80vh;
        display: flex;
        align-items: center;
    }

    .hero-content-wrapper {
        padding: 1.5rem 0;
    }

    .hero-headline {
        font-size: clamp(1.4rem, 3vw, 1.9rem);
        line-height: 1.25;
        margin-bottom: 1rem;
        font-weight: 700;
    }

    .hero-subtext {
        font-size: 0.92rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.95);
    }

    .hero-trust-badges {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        margin-bottom: 1.5rem;
    }

    .hero-badge {
        width: 100%;
        justify-content: flex-start;
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
        border-radius: 16px;
    }

    .hero-badge i {
        font-size: 0.95rem;
    }

    .hero-features-row {
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .hero-feature-item {
        padding: 0.7rem;
        font-size: 0.85rem;
        border-radius: 6px;
        min-height: 50px;
    }

    .hero-feature-item i {
        font-size: 1.2rem;
        min-width: 24px;
    }

    .hero-cta-buttons {
        flex-direction: column;
        gap: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.85rem 1.2rem;
        font-size: 0.95rem;
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .btn-hero-primary:active {
        transform: scale(0.98);
    }

    .btn-hero-secondary:active {
        transform: scale(0.98);
    }

    .hero-compliance-note {
        font-size: 0.8rem;
        line-height: 1.5;
        padding: 0 0.5rem;
    }

    .hero-compliance-note i {
        font-size: 0.95rem;
    }

    .hero-visual-side {
        display: none !important;
    }

    .hero-scroll-indicator {
        display: none;
    }

    /* Prevent text selection on buttons */
    .btn-hero-primary,
    .btn-hero-secondary {
        user-select: none;
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Disable video on low bandwidth/mobile */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }

    .hero-premium-medical {
        background: linear-gradient(135deg, #0a1e3e 0%, #1a3a52 100%);
        background-size: cover;
        background-position: center;
    }

    .hero-content-left,
    .hero-headline,
    .hero-subtext,
    .hero-trust-badges,
    .hero-features-row,
    .hero-cta-buttons,
    .hero-compliance-note,
    .hero-visual-element {
        animation: none;
    }
}

/* Trust Indicators */
.trust-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background: #f8fbff;
    border-radius: var(--border-radius-lg);
}

.trust-indicator-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.trust-indicator-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.trust-indicator-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--med-sen-blue) 0%, var(--med-sen-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.trust-indicator-title {
    font-weight: 600;
    color: var(--dark);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.trust-indicator-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Medicine Categories Grid */
.medical-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.category-card-medical {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card-medical:hover {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--med-sen-blue) 0%, var(--med-sen-teal) 100%) 1;
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.15);
    transform: translateY(-2px);
}

.category-card-medical-icon {
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--med-sen-blue) 0%, var(--med-sen-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

/* Information Section Icons */
.info-section-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--med-sen-blue) 0%, var(--med-sen-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: inline-block;
}

.category-card-medical-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.category-card-medical-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Medical Medicine Card */
.medicine-card-medical {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.medicine-card-medical:hover {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--med-sen-blue) 0%, var(--med-sen-teal) 100%) 1;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.12);
    transform: translateY(-4px);
}

/* Medicine Card Link Wrapper */
.medicine-card-link {
    display: block;
    transition: transform var(--transition);
    cursor: pointer;
}

.medicine-card-link:hover .medicine-card-medical {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.12);
}

/* Medicine Card Image */
.medicine-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.medicine-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.medicine-image-placeholder {
    font-size: 3.5rem;
    color: var(--primary);
    opacity: 0.3;
}

/* Stock Status Badges */
.medicine-badge-stock {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.medicine-badge-stock.in-stock {
    background: linear-gradient(135deg, var(--med-sen-teal) 0%, #00a8a8 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(0, 168, 168, 0.3);
}

.medicine-badge-stock.out-stock {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

/* New Badge */
.medicine-badge-new {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--med-sen-blue) 0%, var(--med-sen-teal) 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.3);
    z-index: 10;
}

.medicine-card-medical-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color-light);
}
}

.medicine-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    letter-spacing: -0.3px;
}

.medicine-generic {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.medicine-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-color-light);
    border-bottom: 1px solid var(--border-color-light);
}

.medicine-card-medical-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.medicine-strength {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.75rem;
}

.medicine-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.medicine-badge-rx {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--badge-rx);
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.medicine-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.medicine-card-medical-body .d-grid {
    margin-top: auto;
}

/* Empty State Medical */
.empty-state-medical {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 400px;
}

.empty-state-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Alert Medical */
.alert-medical {
    background: var(--alert-soft-blue);
    border: 1px solid #bae6fd;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alert-medical-icon {
    font-size: 1.5rem;
    color: var(--info);
    flex-shrink: 0;
}

.alert-medical-content {
    flex-grow: 1;
}

.alert-medical-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.alert-medical-text {
    color: #0c4a6e;
    font-size: 0.95rem;
}

/* Navbar */
.navbar {
    background: white;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-medical {
    background-color: var(--white);
    border-bottom: 2px solid var(--border-color-light);
    box-shadow: 0 4px 12px rgba(14, 74, 103, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    padding: 0;
}

/* Navbar Container */
.navbar-container {
    display: flex !important;
    flex-direction: column;
    padding: 0 !important;
    width: 100%;
}

/* Top Row: Menu | Account - DESKTOP HIDDEN */
.navbar-top-row {
    display: none !important;
}

.navbar-toggler {
    padding: 0.25rem;
    border: none;
    display: none !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.search-icon-button {
    display: none !important;
    cursor: pointer;
    font-size: 1.3rem;
    color: #333;
}

.navbar-brand-mobile {
    display: none !important;
}

.navbar-logo-mobile {
    display: none !important;
}

.navbar-user-menu-mobile {
    display: none !important;
}

.navbar-cart-mobile {
    display: none !important;
}

.navbar-user-menu {
    display: flex;
    align-items: center;
}

.navbar-user-menu .btn-link {
    color: #333;
    padding: 0.25rem 0.5rem;
    font-size: 1.3rem;
}

/* Middle Row: Logo | Search | Cart & Account */
.navbar-middle-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.5rem !important;
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid var(--border-color-light) !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.navbar-brand-medical {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    min-width: fit-content;
}

.navbar-logo-container {
    flex-shrink: 0;
    width: auto;
}

.navbar-logo-container img {
    height: 100px;
    width: auto;
    max-width: 100%;
}

.navbar-brand-text-wrapper {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.navbar-brand-main {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.navbar-brand-sub {
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 0.5px;
}

/* Search Bar in Middle Row (Desktop) - Takes up most space */
.navbar-search-center {
    flex: 0 1 400px !important;
    min-width: 250px !important;
    max-width: 400px !important;
}

.navbar-right-desktop {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    white-space: nowrap;
}

.navbar-user-menu-desktop {
    display: flex;
    align-items: center;
}

.navbar-right-desktop .btn-link {
    color: #333;
    font-size: 1.3rem;
    padding: 0;
}

/* Search Bar Row */
.navbar-search-row {
    display: none;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color-light);
}

.search-wrapper-navbar {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-input-navbar {
    width: 100%;
    padding: 8px 35px 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 13px;
    transition: all 0.3s ease;
    background-color: #f5f5f5;
    min-height: 36px;
    box-sizing: border-box;
}

.search-input-navbar::placeholder {
    color: #999;
}

.search-input-navbar:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(31, 166, 160, 0.1);
    background-color: white;
}

.search-icon-navbar {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    font-size: 16px;
}

.search-results-dropdown-navbar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 500px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid var(--border-color-light);
    border-top: none;
    border-radius: 0 0 8px 8px;
    display: none;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 0;
}

.search-results-dropdown-navbar.active {
    display: block;
}

.search-result-item-navbar {
    display: flex;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.search-result-item-navbar:hover {
    background-color: #f8f9fa;
}

.search-result-image-navbar {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.search-result-content-navbar {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-result-name-navbar {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-category-navbar {
    font-size: 12px;
    color: #999;
}

.search-no-results-navbar {
    padding: 20px;
    text-align: center;
    color: #999;
}

/* Search Dropdown Sections */
.search-dropdown-section {
    padding: 15px;
    max-width: none;
}

.search-section {
    margin-bottom: 20px;
}

.search-section-title {
    font-weight: 700;
    font-size: 12px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding: 0 5px;
}

/* Trending Searches */
.trending-searches {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trending-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    background-color: #f5f5f5;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.trending-search-item:hover {
    background-color: #e8e8e8;
    color: var(--primary-color);
}

.trending-search-item i {
    font-size: 12px;
    color: #999;
}

/* Popular Products Grid */
.popular-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.popular-product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: center;
}

.popular-product-item:hover {
    background-color: #f9f9f9;
}

.popular-product-image-container {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
}

.popular-product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.popular-product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.popular-product-image-placeholder i {
    color: #ccc;
    font-size: 24px;
}

.popular-product-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
    white-space: normal;
}

/* Bottom Row: Navigation Links */
.navbar-bottom-row {
    padding: 0;
    border-top: 1px solid var(--border-color-light);
    background-color: #f8f9fa;
    width: 100%;
}

.navbar-bottom-row .navbar-collapse {
    padding: 0;
}

.navbar-bottom-row .navbar-nav {
    gap: 0;
    width: 100%;
    justify-content: center;
}

.navbar-bottom-row .nav-item {
    padding: 0;
}

.navbar-bottom-row .nav-link {
    padding: 0.75rem 1.2rem !important;
    font-weight: 500;
    color: #333 !important;
    transition: color 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.navbar-bottom-row .nav-link:hover {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color);
}

/* ===== MEGA MENU STYLES ===== */
.nav-item-mega {
    position: relative;
}

.nav-item-mega .nav-link {
    position: relative;
}

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    min-width: 900px;
    border-radius: 0 0 8px 8px;
    margin-top: 0;
}

.nav-item-mega:hover .mega-menu {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-menu-content {
    display: flex;
    gap: 0;
}

.mega-menu-categories {
    flex: 0 0 40%;
    border-right: 1px solid #e0e0e0;
    max-height: 500px;
    overflow-y: auto;
}

.mega-menu-medicines {
    flex: 1;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.mega-menu-category {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mega-menu-category:hover,
.mega-menu-category.active {
    background-color: #f5f5f5;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.mega-menu-medicine {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 10px 10px;
    padding: 12px 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    font-size: 0.85rem;
    text-align: center;
    position: relative;
    width: 100px;
    height: 130px;
    border: 1px solid #e0e0e0;
}

.mega-menu-medicine-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.mega-menu-medicine-img-placeholder {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 1.5rem;
    color: #999;
}

.mega-menu-medicine-name {
    transition: all 0.3s ease;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mega-menu-medicine:hover {
    background-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.2);
    border-color: var(--primary-color);
}

.mega-menu-medicine:hover .mega-menu-medicine-name {
    color: #333 !important;
}

.mega-menu-loading {
    padding: 20px;
    text-align: center;
    color: #999;
}

gap: 12px;
padding: 12px 15px;
border-bottom: 1px solid #f0f0f0;
cursor: pointer;
text-decoration: none;
color: inherit;
transition: background-color 0.2s ease;
}

.search-result-item-navbar:hover {
    background-color: #f8f9fa;
}

.search-result-image-navbar {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.search-result-content-navbar {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-result-name-navbar {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-category-navbar {
    font-size: 12px;
    color: #999;
}

.search-no-results-navbar {
    padding: 20px;
    text-align: center;
    color: #999;
}

.navbar-search-container {
    flex: 1;
    margin: 0 2rem;
    display: flex;
    justify-content: center;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 166, 160, 0.1);
    background-color: #fafbfc;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 500px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.search-results-dropdown.active {
    display: block;
}

.search-result-item {
    padding: 12px;
    border-bottom: 1px solid var(--border-color-light);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background-color: var(--light-bg);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    background-color: var(--light-bg);
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-category {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}

.navbar-brand-medical {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    padding: 0.25rem;
}

.navbar-brand-medical:hover {
    transform: translateY(-1px);
}

.navbar-logo-img {
    height: 100px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: all var(--transition);
}

.navbar-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all var(--transition);
}

.navbar-brand-medical:hover .navbar-logo-img {
    transform: scale(1.05);
}

.navbar-brand-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.1;
}

.navbar-brand-main {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--primary-deep);
}

.navbar-brand-sub {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary);
    text-transform: uppercase;
}

.nav-link {
    color: var(--text-dark) !important;
    transition: var(--transition);
    font-weight: 600;
    margin: 0 0.75rem;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius-lg);
    font-weight: 500;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
    font-size: 0.95rem;
    padding: 0.5rem 1.2rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 12px rgba(31, 166, 160, 0.2);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #1a8e89;
    /* Slightly darker Teal */
    box-shadow: 0 6px 15px rgba(31, 166, 160, 0.3);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-deep);
    border: 2px solid var(--primary-deep);
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: var(--primary-deep);
    color: var(--white);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.05rem;
}

/* Navbar Icon Buttons */
.navbar-medical .btn-link {
    color: var(--primary-deep) !important;
    text-decoration: none;
    transition: var(--transition);
}

.navbar-medical .btn-link:hover {
    color: var(--primary) !important;
    transform: translateY(-2px);
}

.navbar-medical .btn-link i {
    color: var(--primary-deep) !important;
}

.navbar-medical .btn-link:hover i {
    color: var(--primary) !important;
}

.navbar-medical .btn-outline-primary {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.navbar-medical .btn-outline-primary:hover {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    border-color: transparent !important;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
    transition: var(--transition);
    background-color: var(--white);
    overflow: hidden;
    position: relative;
}

/* Optional orange accent line as requested */
.card.accent-orange::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--secondary);
}

.card-header {
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    font-weight: 700;
    color: var(--primary-deep);
}

.card-title {
    color: var(--primary-deep);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.card-img-top {
    border-radius: calc(var(--border-radius-lg) - 1px) calc(var(--border-radius-lg) - 1px) 0 0;
    object-fit: cover;
    height: 200px;
}

/* Forms */
.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: var(--white);
    color: var(--text-dark);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(31, 166, 160, 0.1);
    outline: none;
}

label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-deep);
    font-size: 0.9rem;
}

/* Badges */
.badge {
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

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

.badge-success {
    background-color: var(--medical-green);
    color: white;
}

.badge-danger {
    background-color: var(--danger);
    color: white;
}

.badge-warning {
    background-color: var(--warning);
    color: white;
}

.badge-rx {
    background-color: #fef2f2;
    color: var(--badge-rx);
    border: 1px solid #fecaca;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    border-left: 4px solid;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alert::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.alert-primary {
    border-left-color: var(--primary);
    background-color: var(--primary-lighter);
    color: #003d99;
}

.alert-success {
    border-left: 4px solid;
    border-left-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #166534;
    font-weight: 500;
}

.alert-success::before {
    content: '✓';
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* Toast Notifications */
.toast {
    background: linear-gradient(135deg, var(--med-sen-blue) 0%, var(--med-sen-teal) 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
    border: none !important;
}

.toast-body {
    color: white !important;
    font-weight: 500;
}

/* Bootstrap Success Overrides */
.bg-success {
    background: linear-gradient(135deg, var(--med-sen-blue) 0%, var(--med-sen-teal) 100%) !important;
}

.alert-danger {
    border-left: 4px solid;
    border-left-color: #dc2626;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, rgba(220, 38, 38, 0.05) 100%);
    color: #991b1b;
}

.alert-danger::before {
    content: '!';
    background: #dc2626;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}

.alert-info {
    border-left-color: var(--info);
    background-color: var(--alert-soft-blue);
    color: #0c4a6e;
}

/* Tables */
.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: var(--light-bg);
    font-weight: 700;
    color: var(--primary-deep);
    border-top: none;
    padding: 1.25rem 1rem;
    border-bottom: 2px solid var(--border-color);
}

.table tbody td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
    border-color: var(--border-color-light);
    color: var(--text-dark);
}

.table tbody tr:hover {
    background-color: #f0faf9;
    /* Very light teal tint */
}

/* Modals */
.modal-content {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: #f8fbff;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: calc(var(--border-radius-lg) - 1px) calc(var(--border-radius-lg) - 1px) 0 0;
}

.modal-header .btn-close {
    width: 1.25em;
    height: 1.25em;
}

/* Pagination */
.pagination {
    margin-top: 1.5rem;
    gap: 0.25rem;
}

.page-link {
    color: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    transition: all var(--transition);
}

.page-link:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Footer */
.footer-medical {
    background-color: #f8fbff;
    border-top: 1px solid var(--border-color);
    padding: 2rem 0 1rem;
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Text Utilities */
.text-primary {
    color: var(--primary);
}

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

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

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

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

.text-muted {
    color: #999;
}

.text-center {
    text-align: center;
}

.text-end {
    text-align: right;
}

.text-start {
    text-align: left;
}

/* Background Utilities */
.bg-primary {
    background-color: var(--primary) !important;
}

.bg-success {
    background: linear-gradient(135deg, var(--med-sen-blue) 0%, var(--med-sen-teal) 100%) !important;
}

.bg-danger {
    background-color: var(--danger) !important;
}

.bg-warning {
    background-color: var(--warning) !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* Border Utilities */
.border-primary {
    border: 1px solid var(--primary);
}

.border-top {
    border-top: 1px solid #e0e0e0;
}

.border-bottom {
    border-bottom: 1px solid #e0e0e0;
}

/* Spacing Utilities */
.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 1.5rem;
}

/* Font Weight Utilities */
.fw-bold {
    font-weight: 700;
}

.fw-normal {
    font-weight: 400;
}

.fw-light {
    font-weight: 300;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Shadow Utilities */
.shadow {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.shadow-lg {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {

    /* Typography */
    .table {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        min-height: 44px;
        font-size: 1rem;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Forms - iOS optimization */
    .form-control,
    .form-select {
        font-size: 1rem;
        padding: 0.75rem;
        min-height: 44px;
    }

    .form-label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group>.form-control {
        width: 100%;
    }

    /* Container padding */
    .container,
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Cards and content */
    .card {
        margin-bottom: 1rem;
        border-radius: 8px;
    }

    .section-padding {
        padding: 1.5rem 0;
    }

    /* Table responsiveness */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table {
        min-width: 100%;
    }

    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
        word-break: break-word;
    }

    /* Medicine cards */
    .medicine-name {
        font-size: 0.95rem;
        word-break: break-word;
    }

    .medicine-price {
        font-size: 1.1rem;
    }

    /* Buttons */
    .btn-block,
    .d-grid>.btn {
        width: 100%;
    }

    /* Remove hover effects on touch devices */
    @media (hover: none) {

        .btn:hover,
        .card:hover {
            transform: none;
        }
    }
}

/* ==========================================
   Cart Real-time Updates
   ========================================== */

/* Loading indicators */
.loading-indicator {
    display: none;
}

.loading .loading-indicator,
.htmx-request .loading-indicator {
    display: inline;
    animation: spin 1s linear infinite;
}

.loading .btn-text,
.htmx-request .btn-text {
    display: none;
}

/* Cart badge animation */
[data-cart-badge].animate {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Cart form improvements */
.cart-form {
    margin: 0;
}

.cart-form .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
    border-color: var(--primary);
}

.cart-form .btn {
    transition: all 0.2s ease;
}

.cart-form .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* HTMX loading states */
.htmx-indicator {
    opacity: 0;
    transition: opacity 200ms ease-in;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    opacity: 1;
}

.htmx-request .htmx-indicator {
    display: inline !important;
}

/* Cart item row hover effect */
.cart-item-row {
    transition: background-color 0.2s ease;
}

.cart-item-row:hover {
    background-color: rgba(0, 102, 204, 0.05);
}

/* Smooth transitions for quantity updates */
.cart-total,
.cart-subtotal {
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {

    /* Trust Indicators */
    .trust-indicators {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .medical-categories {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {

    /* Typography */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Trust Indicators */
    .trust-indicators {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }

    .trust-indicator-item {
        padding: 1rem;
    }

    /* Medical Categories */
    .medical-categories {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .category-card-medical {
        padding: 1.5rem 1rem;
    }

    .category-card-medical-icon {
        font-size: 2rem;
    }

    .category-card-medical-name {
        font-size: 1rem;
    }

    /* Buttons */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }

    /* Forms */
    .form-control,
    .form-select {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    /* Medicine Cards */
    .medicine-card-medical {
        margin-bottom: 1rem;
    }

    .medicine-price {
        font-size: 1.1rem;
    }

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .page-link {
        padding: 0.4rem 0.65rem;
        font-size: 0.85rem;
    }

    /* Empty State */
    .empty-state-medical {
        padding: 2rem 1rem;
        min-height: 300px;
    }

    .empty-state-icon {
        font-size: 3rem;
    }

    .empty-state-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .d-flex.gap-2 {
        flex-direction: column;
    }

    /* Container Spacing */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Section Padding */
    .container.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .medicine-card-medical {
        margin-bottom: 1rem;
    }

    .medicine-card-image {
        height: 150px;
    }

    .medicine-card-medical-header {
        padding: 1rem;
    }

    .medicine-card-medical-body {
        padding: 1rem;
    }

    .medicine-name {
        font-size: 0.95rem;
    }

    .medicine-generic {
        font-size: 0.8rem;
    }

    .medicine-price {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .d-grid.gap-2 {
        gap: 0.5rem !important;
    }

    .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    /* Trust Indicators */
    .trust-indicators {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
        background: white;
        border: none;
        border-radius: 0;
    }

    .trust-indicator-item {
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        padding: 1rem;
    }

    /* Medical Categories */
    .medical-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .category-card-medical {
        padding: 1rem;
    }

    .category-card-medical-icon {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .category-card-medical-name {
        font-size: 0.9rem;
    }

    .category-card-medical-desc {
        font-size: 0.8rem;
    }

    /* Sidebar on mobile */
    .col-lg-9 {
        width: 100%;
    }

    /* Medicine Grid */
    .row.g-3 {
        gap: 1rem !important;
    }

    /* Buttons in grid */
    .d-grid.gap-2 {
        grid-template-columns: 1fr;
    }

    /* Tables */
    .table {
        font-size: 0.85rem;
    }

    .table thead th,
    .table tbody td {
        padding: 0.75rem 0.5rem;
    }

    /* Alert */
    .alert-medical {
        padding: 1rem;
        gap: 0.75rem;
    }

    .alert-medical-icon {
        font-size: 1.25rem;
    }

    .alert-medical-text {
        font-size: 0.9rem;
    }

    /* Empty State */
    .empty-state-medical {
        padding: 1.5rem 1rem;
        min-height: 250px;
    }

    .empty-state-icon {
        font-size: 2.5rem;
    }

    .empty-state-title {
        font-size: 1.1rem;
    }

    .empty-state-text {
        font-size: 0.9rem;
    }
}

/* ==========================================
   Footer Styles
   ========================================== */
.footer-medical {
    background: linear-gradient(135deg, #0066cc 0%, #00a8a8 100%);
    color: white;
    box-shadow: 0 -4px 15px rgba(0, 102, 204, 0.1);
}

.footer-medical h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.footer-medical .text-light {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color var(--transition);
}

.footer-link {
    transition: all var(--transition) !important;
    position: relative;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 1) !important;
    padding-left: 5px;
    opacity: 1;
}

.footer-medical hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 1.5rem 0;
}

.bg-white-opacity {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-medical .fab,
.footer-medical .fas {
    transition: transform var(--transition);
}

.footer-medical a i:hover {
    transform: scale(1.2);
}

/* ==========================================
   CUSTOM STYLED DROPDOWN
   Modern dropdown replacement for native select
   ========================================== */

.custom-select-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.custom-select-button {
    width: 100%;
    padding: 0.65rem 0.875rem;
    border: 2px solid #0066cc;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    appearance: none;
}

.custom-select-button:hover {
    border-color: #00a8a8;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.custom-select-button:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

.custom-select-button.open {
    border-color: #0066cc;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.custom-select-arrow {
    width: 1.25rem;
    height: 1.25rem;
    color: #0066cc;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.custom-select-button.open .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 2px solid #0066cc;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    max-height: 0;
    overflow: hidden;
    z-index: 1000;
    transition: max-height 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.15);
}

.custom-select-menu.open {
    max-height: 300px;
    visibility: visible;
    overflow-y: auto;
}

.custom-select-option {
    display: block;
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: none;
    background-color: white;
    color: #1e293b;
    text-align: left;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 400;
}

.custom-select-option:hover {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 168, 168, 0.05) 100%);
    color: #0066cc;
    font-weight: 500;
    padding-left: 1.25rem;
}

.custom-select-option.selected {
    background: linear-gradient(135deg, #0066cc 0%, #00a8a8 100%);
    color: white;
    font-weight: 600;
    padding-left: 1.25rem;
}

.custom-select-option.selected::before {
    content: '✓ ';
    font-weight: bold;
    margin-right: 0.25rem;
}

/* Scrollbar styling for dropdown menu */
.custom-select-menu::-webkit-scrollbar {
    width: 6px;
}

.custom-select-menu::-webkit-scrollbar-track {
    background: transparent;
}

.custom-select-menu::-webkit-scrollbar-thumb {
    background: #0066cc;
    border-radius: 3px;
}

.custom-select-menu::-webkit-scrollbar-thumb:hover {
    background: #00a8a8;
}

/* Responsive */
@media (max-width: 576px) {
    .custom-select-menu.open {
        max-height: 250px;
    }

    .custom-select-button {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }

    .custom-select-option {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }
}

.filters-medical-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(10, 58, 64, 0.05);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.filters-medical-card:hover {
    box-shadow: 0 8px 30px rgba(10, 58, 64, 0.08);
}

.filters-medical-card-header {
    background: var(--primary-deep);
    color: white;
    padding: 1.5rem;
    border: none;
    position: relative;
}

.filters-medical-card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-deep) 100%);
}

.filters-medical-card-header h5 {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
}

.filters-medical-card-header i {
    font-size: 1rem;
    opacity: 0.9;
}

.filters-medical-body {
    padding: 1.5rem;
}

/* Filter Group */
.filter-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--border-color);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group label {
    font-weight: 600;
    color: var(--primary-deep);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.75rem;
    display: block;
}

/* Professional Search Container */
.professional-search-container {
    position: relative;
    margin-bottom: 0.5rem;
}

.professional-search-field {
    width: 100%;
    padding: 0.8rem 3.5rem 0.8rem 1rem !important;
    /* Increased padding on right for icon */
    border: 1.5px solid var(--border-color) !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    background-color: #f8fafb !important;
    color: var(--text-dark) !important;
    font-weight: 500 !important;
}

.professional-search-field:focus {
    border-color: var(--primary) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(31, 166, 160, 0.1) !important;
}

.search-icon-inside {
    position: absolute;
    right: 1.2rem;
    /* Moved to right side */
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 5;
}

.professional-search-field:focus+.search-icon-inside {
    color: var(--primary-deep);
    transform: translateY(-50%) scale(1.1);
}

/* Form Controls Customization */
.filter-group .form-select {
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    background-color: #ffffff;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.filter-group .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(31, 166, 160, 0.1);
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-range-inputs .form-control {
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    text-align: center;
}

.price-range-inputs .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(31, 166, 160, 0.1);
}

.filter-group .form-select:hover,
.filter-group .form-control:hover {
    border-color: #00a8a8;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

/* Price Range Container */
.price-range-inputs {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.price-range-inputs .form-control {
    flex: 1;
}

.price-range-inputs .text-muted {
    font-weight: 500;
    color: #64748b;
}

/* Filter Buttons */
.filter-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.btn-apply-filters {
    background: linear-gradient(135deg, #0066cc 0%, #00a8a8 100%);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

.btn-apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    color: white;
    text-decoration: none;
}

.btn-clear-filters {
    background-color: white;
    color: #0066cc;
    border: 2px solid #0066cc;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-clear-filters:hover {
    background-color: rgba(0, 102, 204, 0.05);
    border-color: #0066cc;
    color: #0066cc;
    text-decoration: none;
}

/* Filter Info Box */
.filter-info-medical {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f7f5 100%);
    border: 2px solid #0066cc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.75rem;
    animation: slideInUp 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.1);
    transition: all 0.3s ease;
}

.filter-info-medical:hover {
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.15);
    transform: translateY(-2px);
}

.filter-info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.filter-info-medical i {
    color: white;
    font-size: 1.15rem;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0066cc 0%, #00a8a8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.filter-info-medical-title {
    font-weight: 700;
    color: #0066cc;
    font-size: 1rem;
    margin: 0;
    letter-spacing: -0.3px;
}

.filter-info-medical-text {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.filter-info-medical-text p {
    margin: 0;
}

.medicine-badge-rx {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 0.3rem 0.65rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.medicine-badge-rx:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.35);
}

.medicine-badge-rx i {
    font-size: 0.7rem;
    margin: 0;
}

/* Filter Result Count */
.medicine-result-count {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.medicine-result-count strong {
    color: #0066cc;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 992px) {
    .filters-medical-card {
        margin-bottom: 2rem;
    }

    .filter-group {
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
    }
}

@media (max-width: 576px) {
    .filters-medical-card-header h5 {
        font-size: 1rem;
    }

    .filter-buttons-group {
        flex-direction: row;
        gap: 0.5rem;
    }

    .btn-apply-filters,
    .btn-clear-filters {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .no-print {
        display: none;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ==========================================
   MEDICINE DETAIL PAGE STYLING
   ========================================== */

.breadcrumb-medical {
    border-bottom: 2px solid #e6f0ff;
    padding-bottom: 1.5rem;
}

.breadcrumb-medical .breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-medical .breadcrumb-item a {
    color: var(--primary);
    font-weight: 500;
}

.breadcrumb-medical .breadcrumb-item.active {
    color: var(--text-muted);
}

/* Medicine Detail Images */
.medicine-detail-images {
    position: sticky;
    top: 100px;
}

.medicine-main-image {
    position: relative;
    margin-bottom: 1.5rem;
}

.medicine-main-image .image-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.medicine-main-image .image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.medicine-image-placeholder-large {
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.2;
}

/* Thumbnail Slider */
.medicine-thumbnail-slider {
    padding: 0 0.5rem;
}

.thumbnail-track {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 2px solid #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

/* Medicine Detail Header */
.medicine-detail-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1.5rem;
}

.medicine-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.medicine-detail-generic {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.medicine-detail-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Rating Display */
.medicine-detail-rating {
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    border-radius: 12px;
    border: 1px solid #e6f0ff;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
    font-size: 1.25rem;
    color: #fbbf24;
}

.rating-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.rating-count {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Medicine Price */
.medicine-detail-price {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.original-price {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-badge {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Stock Status */
.medicine-detail-status .badge {
    font-size: 1rem;
}

/* Add to Cart */
.medicine-add-to-cart form {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.quantity-input {
    width: 120px;
    border-radius: 8px;
    border: 2px solid #e6f0ff;
    padding: 0.75rem;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition);
}

.quantity-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 10px;
}

/* Quick Info Grid */
.medicine-quick-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    border-radius: 12px;
    border: 1px solid #e6f0ff;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    min-width: 120px;
}

.info-label i {
    font-size: 1.25rem;
}

.info-value {
    color: var(--dark);
    font-weight: 500;
    flex: 1;
}

@media (max-width: 768px) {
    .medicine-quick-info {
        grid-template-columns: 1fr;
    }
}

/* Detail Tabs */
.medicine-detail-tabs {
    margin-top: 3rem;
}

.medicine-tabs {
    border-bottom: 2px solid #e6f0ff;
    gap: 0;
}

.medicine-tabs .nav-link {
    color: var(--text-muted);
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    padding: 1rem 1.5rem;
    transition: all var(--transition);
    position: relative;
}

.medicine-tabs .nav-link:hover {
    color: var(--primary);
}

.medicine-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background-color: transparent;
}

.medicine-tab-content {
    padding-top: 2rem;
}

.tab-pane-content {
    line-height: 1.8;
    color: var(--dark);
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: var(--dark);
    font-weight: 500;
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Reviews Section */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.review-item {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    border-radius: 12px;
    border: 1px solid #e6f0ff;
    border-left: 4px solid var(--primary);
    transition: all var(--transition);
}

.review-item:hover {
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
    transform: translateX(4px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.review-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.review-user-name {
    font-weight: 700;
    color: var(--dark);
}

.review-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fbbf24;
    font-weight: 600;
}

.review-rating i {
    font-size: 1rem;
}

.review-title {
    color: var(--dark);
    font-weight: 700;
    margin-top: 0.75rem;
}

.review-comment {
    color: var(--dark);
    line-height: 1.6;
    margin-top: 0.75rem;
}

/* Related Products Section */
.related-products-section {
    padding-top: 2rem;
    border-top: 2px solid #e6f0ff;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--med-sen-blue) 0%, var(--med-sen-teal) 100%);
    border-radius: 2px;
}

.related-products-slider {
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 992px) {
    .medicine-detail-images {
        position: static;
    }

    .medicine-main-image .image-container {
        min-height: 300px;
    }

    .medicine-detail-title {
        font-size: 1.5rem;
    }

    .current-price {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .medicine-quick-info {
        grid-template-columns: 1fr;
    }

    .medicine-detail-header {
        padding-bottom: 1rem;
    }

    .medicine-detail-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .current-price {
        font-size: 1.75rem;
    }

    .medicine-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .review-header {
        flex-direction: column;
    }

    .review-date {
        white-space: normal;
    }
}

/* ==========================================
   VIDEO SECTION STYLING
   ========================================== */

.video-section-medical {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 50%, #e6f7f5 100%);
    border-radius: 20px;
    border-top: 4px solid var(--med-sen-blue);
    border-bottom: 4px solid var(--med-sen-teal);
    box-shadow: 0 10px 40px rgba(0, 102, 204, 0.1);
    position: relative;
    overflow: hidden;
}

.video-section-medical::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 168, 168, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.video-section-medical::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--med-sen-blue) 0%, var(--med-sen-teal) 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.section-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.video-section-title {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--med-sen-blue) 0%, var(--med-sen-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video-section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-weight: 500;
}

/* Video Container */
.video-container-wrapper {
    position: relative;
    z-index: 1;
}

.video-frame {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--white);
    background: var(--white);
    z-index: 1;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    overflow: hidden;
    background: var(--primary-deep);
}

.video-placeholder-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 2;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    color: var(--primary);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.15);
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 15px 45px rgba(31, 166, 160, 0.4);
}

.video-play-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 168, 168, 0.4);
    }

    70% {
        box-shadow: 0 0 0 25px rgba(0, 168, 168, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 168, 168, 0);
    }
}

/* Video Modal */
.video-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease-in-out;
    overflow: hidden;
}

.video-modal[style*="display: flex"] {
    display: flex !important;
}

body.video-modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

body.video-modal-open .navbar {
    display: none !important;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 50px 150px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal-content iframe {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    display: block;
    border: none;
}

@media (max-height: 700px) {
    .video-modal-content iframe {
        height: 400px !important;
    }
}

@media (max-width: 768px) {
    .video-modal-content iframe {
        height: 300px !important;
    }
}

.video-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 100001;
    backdrop-filter: blur(10px);
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Steps List */
.video-section-content {
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.video-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem 1.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 20px;
    border: 1px solid rgba(0, 102, 204, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 102, 204, 0.06);
    position: relative;
    overflow: hidden;
}

.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--med-sen-blue) 0%, var(--med-sen-teal) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-item:hover::before {
    opacity: 1;
}

.step-item:hover {
    box-shadow: 0 8px 32px rgba(0, 102, 204, 0.15);
    transform: translateY(-4px);
    border-color: rgba(0, 102, 204, 0.2);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #0066cc 0%, #00a8a8 100%);
    color: white;
    border-radius: 16px;
    font-size: 1.75rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.25);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-item:hover .step-number {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 102, 204, 0.35);
}

.step-content {
    position: relative;
    z-index: 2;
}

.step-content h5 {
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.step-content p {
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.step-content p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
    .video-section-title {
        font-size: 2.2rem;
        background: linear-gradient(135deg, var(--med-sen-blue) 0%, var(--med-sen-teal) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .video-section-content {
        padding: 0;
        margin-top: 2rem;
    }

    .video-section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .video-section-medical {
        padding: 2.5rem 1.5rem !important;
        margin: 2rem 0 !important;
    }

    .section-badge {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .video-section-title {
        font-size: 1.75rem;
    }

    .video-section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .video-play-button {
        width: 75px;
        height: 75px;
        font-size: 1.8rem;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .step-number {
        margin: 0 auto;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .video-modal-content {
        border-radius: 12px;
    }

    .video-modal-close {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        top: 15px;
        right: 15px;
    }
}

/* =====================================
   CART STYLING
   ===================================== */

.cart-items-card {
    background: white;
    border: 1px solid #e6f0ff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.08);
    transition: all 0.3s ease;
}

.cart-items-card:hover {
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.12);
}

.cart-card-header {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f7f5 100%);
    padding: 1.25rem;
    border-bottom: 2px solid #e6f0ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-card-header h5 {
    color: var(--med-sen-blue);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.cart-card-header .badge {
    background: linear-gradient(135deg, var(--med-sen-blue) 0%, var(--med-sen-teal) 100%);
    padding: 0.5rem 0.75rem;
    font-weight: 600;
}

.cart-items-list {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

.cart-item-card {
    display: grid;
    grid-template-columns: 80px 1fr 100px 120px 50px;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fafbff 0%, #f8f9ff 100%);
    border: 1px solid #e6f0ff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.cart-item-card:hover {
    background: linear-gradient(135deg, #f5f8ff 0%, #f0f5ff 100%);
    border-color: var(--med-sen-blue);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    border: 1px solid #e6f0ff;
}

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

.cart-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f7ff;
    color: #ccc;
    font-size: 1.5rem;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.cart-item-name a {
    color: var(--med-sen-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.cart-item-name a:hover {
    color: var(--med-sen-teal);
    text-decoration: underline;
}

.cart-item-generic {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0;
}

.cart-item-quantity {
    text-align: center;
}

.quantity-form {
    display: flex;
    justify-content: center;
}

.quantity-input {
    width: 70px;
    padding: 0.5rem;
    border: 2px solid #e6f0ff;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.quantity-input:focus {
    border-color: var(--med-sen-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.cart-item-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.price-per-unit {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}

.price-subtotal {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--med-sen-blue);
}

.cart-item-actions {
    text-align: center;
}

.btn-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.btn-remove:hover {
    background: #ffe6e6;
    color: #c0392b;
    transform: scale(1.1);
}

@media (max-width: 1200px) {
    .cart-item-card {
        grid-template-columns: 70px 1fr 80px 100px 40px;
        gap: 1rem;
        padding: 1rem;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
    }

    .cart-item-name {
        font-size: 0.95rem;
    }

    .quantity-input {
        width: 60px;
        padding: 0.4rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .cart-items-list {
        padding: 1rem;
        gap: 0.75rem;
    }

    .cart-item-card {
        grid-template-columns: 60px 1fr 60px;
        gap: 0.75rem;
        padding: 1rem;
    }

    .cart-item-image {
        width: 60px;
        height: 60px;
    }

    .cart-item-quantity {
        order: 5;
        grid-column: 2;
        margin-top: 0.5rem;
    }

    .cart-item-price {
        order: 4;
        text-align: left;
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
    }

    .price-subtotal {
        text-align: right;
    }

    .cart-item-actions {
        order: 6;
        grid-column: 3;
    }

    .quantity-input {
        width: 50px;
        padding: 0.35rem;
        font-size: 0.85rem;
    }

    .btn-remove {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .cart-item-name {
        font-size: 0.9rem;
    }

    .cart-item-generic {
        font-size: 0.8rem;
    }
}

.coupon-section {
    background: white;
    border: 1px solid #e6f0ff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.08);
    transition: all 0.3s ease;
}

.coupon-section:hover {
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.12);
}

.coupon-header {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f7f5 100%);
    padding: 1.25rem;
    border-bottom: 2px solid #e6f0ff;
}

.coupon-header h5 {
    color: var(--med-sen-blue);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.coupon-content {
    padding: 1.5rem;
}

.coupon-input-group {
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    gap: 0;
}

.coupon-input {
    border: 2px solid #e6f0ff;
    padding: 0.75rem 1rem;
    font-weight: 500;
    flex: 1;
}

.coupon-input:focus {
    border-color: var(--med-sen-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    outline: none;
}

.coupon-input-group .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0;
}

.coupon-applied-badge {
    background: linear-gradient(135deg, #f0fdf4 0%, #e6f7f5 100%);
    border: 2px solid #00a8a8;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.coupon-badge-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #047857;
    font-weight: 600;
}

.coupon-badge-content i {
    font-size: 1.25rem;
}

.btn-remove-coupon {
    background: none;
    border: none;
    color: #047857;
    cursor: pointer;
    margin-left: auto;
    font-size: 1.25rem;
    padding: 0;
    transition: transform 0.2s;
}

.btn-remove-coupon:hover {
    transform: scale(1.2);
}

.order-summary-card {
    background: white;
    border: 1px solid #e6f0ff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.08);
    transition: all 0.3s ease;
}

.order-summary-card:hover {
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.12);
}

.order-summary-card.sticky-top {
    position: sticky;
    top: 100px;
    z-index: 500;
}

.summary-header {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f7f5 100%);
    padding: 1.25rem;
    border-bottom: 2px solid #e6f0ff;
}

.summary-header h5 {
    color: var(--med-sen-blue);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.summary-content {
    padding: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e6f0ff;
}

.summary-row.total-row {
    border-bottom: none;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 2px solid #e6f0ff;
    padding-bottom: 1rem;
}

.summary-label {
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-value {
    color: var(--dark);
    font-weight: 600;
}

.discount-row .summary-value {
    color: #00a8a8;
    font-weight: 700;
}

.total-label {
    font-size: 1.1rem;
    color: var(--dark);
}

.total-value {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--med-sen-blue) 0%, var(--med-sen-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.savings-badge {
    margin-top: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fecaca 100%);
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    color: #92400e;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.summary-buttons {
    padding: 1.5rem;
    border-top: 1px solid #e6f0ff;
}

.btn-checkout {
    background: linear-gradient(135deg, var(--med-sen-blue) 0%, var(--med-sen-teal) 100%);
    border: none;
    font-weight: 600;
    padding: 0.85rem;
    color: white;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.3);
    color: white;
}

@media (max-width: 991px) {
    .navbar-middle-row {
        display: none !important;
    }

    .navbar-top-row {
        display: flex !important;
    }

    .navbar-brand-mobile {
        display: flex !important;
    }

    .search-icon-button {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .coupon-form {
        flex-direction: column;
    }

    .coupon-input-group {
        flex-direction: column;
    }

    .coupon-input-group .btn {
        width: 100%;
    }

    .summary-row {
        padding: 0.6rem 0;
    }

    .total-value {
        font-size: 1.25rem;
    }

    .cart-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-card-header h5 {
        margin-bottom: 0.5rem;
    }

    /* ===== HERO SLIDER ON MOBILE ===== */
    .hero-slider-section {
        min-height: 220px;
        max-height: 2200px;
        position: relative;
        overflow: hidden;
        margin: 0 !important;
        padding: 0 !important;
    }

    .hero-slider-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: 5;
    }

    .hero-slider-wrapper {
        display: flex;
        height: 100%;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }

    .hero-slide {
        min-width: 100%;
        height: 100%;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
        padding: 0 !important;
    }

    .hero-slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        background: rgba(255, 255, 255, 0.25);
        border: 2px solid rgba(255, 255, 255, 0.4);
        z-index: 20;
    }

    .hero-slider-btn-prev {
        left: 0.75rem;
    }

    .hero-slider-btn-next {
        right: 0.75rem;
    }

    .hero-slider-indicators {
        position: absolute;
        bottom: 0.75rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 0.5rem;
        z-index: 20;
    }

    .hero-slider-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.4);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .hero-slider-dot.active {
        background: rgba(255, 255, 255, 1);
        transform: scale(1.4);
    }

    /* ===== MOBILE NAVBAR - HERBIOTICS STYLE ===== */

    /* Show Mobile Top Row */
    .navbar-top-row {
        display: flex !important;
        padding: 0.6rem 0.75rem;
        gap: 0.5rem;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--border-color-light);
        width: 100%;
    }

    /* Hide Desktop Middle Row */
    .navbar-middle-row {
        display: none !important;
    }

    /* Hamburger Menu */
    .navbar-toggler {
        display: flex !important;
        padding: 0.25rem 0.4rem;
        margin: 0;
        border: none;
        flex: 0 0 auto;
    }

    /* Search Icon */
    .search-icon-button {
        display: flex !important;
        cursor: pointer;
        font-size: 1.1rem;
        color: #333;
        background: none;
        border: none;
        padding: 0.4rem;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
    }

    .search-icon-button:hover {
        color: var(--primary);
    }

    /* Mobile Logo - Center */
    .navbar-brand-mobile {
        display: flex !important;
        flex: 1;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
        min-height: 50px;
    }

    .navbar-logo-mobile {
        display: block !important;
        height: 70px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }

    /* Account Icon */
    .navbar-user-menu-mobile {
        display: flex !important;
        flex: 0 0 auto;
        align-items: center;
    }

    .navbar-user-menu-mobile .btn-link {
        color: #333;
        padding: 0.4rem;
        font-size: 1.1rem;
        margin: 0;
    }

    .navbar-user-menu-mobile .btn-link:hover {
        color: var(--primary);
    }

    /* Cart Icon - Mobile */
    .navbar-cart-mobile {
        display: flex !important;
        color: #333 !important;
        font-size: 1.1rem;
        padding: 0.4rem;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
    }

    .navbar-cart-mobile:hover {
        color: var(--primary) !important;
    }

    .navbar-cart-mobile .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
        min-width: 18px;
    }

    /* Hide desktop search */
    .navbar-search-center {
        display: none !important;
    }

    /* Hide desktop cart/account */
    .navbar-right-desktop {
        display: none !important;
    }

    /* Show search row when active */
    .navbar-search-row {
        display: none !important;
        padding: 0.75rem;
        border-top: 1px solid var(--border-color-light);
        background-color: #f8f9fa;
        width: 100%;
    }

    .navbar-search-row.active {
        display: block !important;
    }

    .navbar-search-row .search-wrapper-navbar {
        width: 100%;
    }

    .search-input-navbar {
        padding: 8px 35px 8px 12px;
        font-size: 13px;
        min-height: 40px;
    }

    /* Bottom row responsive */
    .navbar-bottom-row .nav-link {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.85rem;
    }

    /* Announcement Ticker Mobile Fix */
    .ticker-content {
        gap: 1.5rem;
        animation-duration: 30s;
    }

    .ticker-item {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}