/* ==========================================================================
   صيدلية د/ هبه أبوبكر عقل - صيدليات المحلة الكبرى
   Dr. Heba Aboubakr Akl Pharmacy - Master Design System & UI/UX Engine
   ========================================================================== */

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

:root {
    --brand-primary: #0b4d9c;
    --brand-primary-hover: #083b77;
    --brand-secondary: #0284c7;
    --brand-accent: #059669;
    --brand-accent-light: #ecfdf5;
    --brand-coral: #f43f5e;
    --brand-coral-light: #fff1f2;
    --brand-dark: #0f172a;
    --brand-gray: #475569;
    --brand-muted: #64748b;
    --brand-light: #f8fafc;
    --brand-border: #e2e8f0;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --radius-full: 9999px;
    --shadow-subtle: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 14px 30px -4px rgba(11, 77, 156, 0.16);
}

* {
    box-sizing: border-box !important;
}

body {
    font-family: 'Cairo', 'Outfit', system-ui, -apple-system, sans-serif !important;
    background-color: #f8fafc !important;
    color: #0f172a !important;
    direction: rtl !important;
    text-align: right !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    line-height: 1.6 !important;
}

.font-latin, [lang="en"] {
    font-family: 'Outfit', 'Cairo', sans-serif !important;
}

/* ==================== Top Announcement Bar ==================== */
.announcement-bar {
    background: #061d3b !important;
    color: #ffffff !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    position: relative !important;
    z-index: 10001 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.announcement-content {
    max-width: 1280px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.announcement-badge {
    background: rgba(16, 185, 129, 0.22) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    padding: 3px 12px !important;
    border-radius: 9999px !important;
    font-size: 11.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-weight: 800 !important;
}

.announcement-badge .live-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #10b981 !important;
    display: inline-block !important;
    box-shadow: 0 0 8px #10b981 !important;
    animation: pulseDot 2s infinite !important;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.announcement-contacts {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    font-size: 12.5px !important;
}

.announcement-link {
    color: #e2e8f0 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
}

.announcement-link:hover {
    color: #38bdf8 !important;
}

/* ==================== Sticky Site Header ==================== */
.site-header {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08) !important;
}

.glass-nav-pro, .main-nav-container {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 10px 18px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    flex-wrap: nowrap !important;
}

.brand-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
}

.brand-logo-img {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    box-shadow: 0 4px 14px rgba(11, 77, 156, 0.2) !important;
    border: 2px solid #ffffff !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease !important;
}

.brand-wrapper:hover .brand-logo-img {
    transform: scale(1.05) !important;
}

.brand-texts {
    display: flex !important;
    flex-direction: column !important;
    text-align: right !important;
}

.brand-name-ar {
    font-size: 17.5px !important;
    font-weight: 900 !important;
    color: #0b4d9c !important;
    line-height: 1.2 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    letter-spacing: -0.3px !important;
}

.brand-tag {
    background: linear-gradient(135deg, #0b4d9c, #0284c7) !important;
    color: #ffffff !important;
    font-size: 10.5px !important;
    font-weight: 900 !important;
    padding: 2px 8px !important;
    border-radius: 9999px !important;
}

.brand-sub {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    margin-top: 2px !important;
}

/* ==================== Search Bar ==================== */
.header-search-box {
    flex: 1 !important;
    max-width: 480px !important;
    min-width: 200px !important;
    position: relative !important;
}

@media (max-width: 860px) {
    .glass-nav-pro, .main-nav-container {
        flex-wrap: wrap !important;
        padding: 8px 12px !important;
        gap: 8px !important;
    }
    .brand-wrapper {
        order: 1 !important;
        gap: 8px !important;
    }
    .brand-logo-img {
        width: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
    }
    .brand-name-ar {
        font-size: 14.5px !important;
        gap: 5px !important;
    }
    .brand-tag {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }
    .brand-sub {
        display: none !important;
    }
    .nav-actions {
        order: 2 !important;
        gap: 6px !important;
        margin-right: auto !important;
    }
    .btn-rx-action {
        padding: 6px 12px !important;
        font-size: 11.5px !important;
        gap: 4px !important;
    }
    .btn-rx-action svg {
        width: 14px !important;
        height: 14px !important;
    }
    .nav-btn-icon {
        width: 36px !important;
        height: 36px !important;
    }
    .nav-action-pill {
        padding: 6px 10px !important;
        font-size: 11.5px !important;
    }
    .header-search-box {
        display: block !important;
        order: 3 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        margin-top: 2px !important;
    }
    .search-input-field {
        height: 38px !important;
        font-size: 13px !important;
        padding: 0 38px 0 75px !important;
    }
    .search-btn-submit {
        padding: 0 12px !important;
        font-size: 12px !important;
    }
}


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

.search-input-field {
    width: 100% !important;
    height: 42px !important;
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 9999px !important;
    padding: 0 42px 0 85px !important;
    font-size: 13.5px !important;
    font-family: inherit !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.search-input-field:focus {
    background: #ffffff !important;
    border-color: #0b4d9c !important;
    box-shadow: 0 0 0 4px rgba(11, 77, 156, 0.12) !important;
}

.search-icon-pos {
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #64748b !important;
    pointer-events: none !important;
    display: flex !important;
    align-items: center !important;
}

.search-btn-submit {
    position: absolute !important;
    left: 4px !important;
    top: 4px !important;
    bottom: 4px !important;
    background: #0b4d9c !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.search-btn-submit:hover {
    background: #083b77 !important;
    transform: translateY(-1px) !important;
}

/* ==================== Nav Action Buttons ==================== */
.nav-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}

.btn-rx-action {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: #ffffff !important;
    padding: 9px 18px !important;
    border-radius: 9999px !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    font-family: inherit !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25) !important;
    border: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.25s ease !important;
}

.btn-rx-action:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(5, 150, 105, 0.35) !important;
}

.nav-action-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 14px !important;
    border-radius: 9999px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    position: relative !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
}

.nav-action-pill:hover {
    background: #ffffff !important;
    color: #0b4d9c !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(11, 77, 156, 0.1) !important;
}

.nav-badge-count {
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    padding: 2px 7px !important;
    border-radius: 9999px !important;
}

.nav-btn-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.nav-btn-icon:hover {
    background: #ffffff !important;
    color: #0b4d9c !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(11, 77, 156, 0.1) !important;
}

/* ==================== Sub Navigation Categories Bar ==================== */
.sub-nav-bar {
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    display: block !important;
    width: 100% !important;
}

.sub-nav-bar::-webkit-scrollbar {
    display: none !important;
}

.sub-nav-container {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 7px 18px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.sub-nav-link {
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    padding: 6px 14px !important;
    border-radius: 9999px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
}

.sub-nav-link:hover, .sub-nav-link.active {
    background: #0b4d9c !important;
    color: #ffffff !important;
    border-color: #0b4d9c !important;
    box-shadow: 0 3px 10px rgba(11, 77, 156, 0.2) !important;
}

.sub-nav-link.deal-link {
    color: #ffffff !important;
    background: linear-gradient(135deg, #f43f5e, #e11d48) !important;
    border-color: #e11d48 !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 10px rgba(225, 29, 72, 0.25) !important;
}

.sub-nav-link.deal-link:hover {
    background: linear-gradient(135deg, #e11d48, #be123c) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35) !important;
}

.btn-hero-deals {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
    color: #ffffff !important;
    padding: 15px 24px !important;
    border-radius: var(--radius-md) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.3) !important;
    transition: var(--transition-smooth) !important;
    border: none !important;
    cursor: pointer !important;
}

.btn-hero-deals:hover {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(225, 29, 72, 0.45) !important;
}

/* ==================== Main Content Pro Layout ==================== */
main.main-pro {
    padding-top: 24px !important;
    min-height: 100vh !important;
    display: block !important;
}

.container-pro {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 18px !important;
    box-sizing: border-box !important;
}

/* ==================== 4 Quick Services Grid ==================== */
.quick-services-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
    width: 100% !important;
}

@media (max-width: 992px) {
    .quick-services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 560px) {
    .quick-services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 16px !important;
    }
    .quick-service-card {
        padding: 10px 8px !important;
        border-radius: 14px !important;
        gap: 8px !important;
    }
    .quick-service-card h3 {
        font-size: 11.5px !important;
        line-height: 1.25 !important;
        margin: 0 !important;
    }
    .quick-service-card p {
        display: none !important;
    }
}

.quick-service-card {
    background: #ffffff !important;
    border-radius: 18px !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 16px 18px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    text-decoration: none !important;
    color: #0f172a !important;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
}

.quick-service-card:hover {
    transform: translateY(-4px) !important;
    border-color: #0b4d9c !important;
    box-shadow: 0 12px 28px -4px rgba(11, 77, 156, 0.14) !important;
}

.qs-icon-box {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    flex-shrink: 0 !important;
}

.qs-card-rx .qs-icon-box { background: #ecfdf5 !important; color: #059669 !important; }
.qs-card-consult .qs-icon-box { background: #eff6ff !important; color: #2563eb !important; }
.qs-card-deals .qs-icon-box { background: #fff1f2 !important; color: #e11d48 !important; }
.qs-card-delivery .qs-icon-box { background: #f0fdf4 !important; color: #16a34a !important; }

.qs-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    text-align: right !important;
}

.qs-text h3 {
    font-size: 15px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.qs-text p {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* ==================== Hero Showcase Banner ==================== */
.hero-pro-wrapper {
    background: linear-gradient(135deg, #072a5a 0%, #0b4d9c 50%, #064e3b 100%) !important;
    border-radius: 28px !important;
    padding: 34px 34px !important;
    color: #ffffff !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 20px 50px -10px rgba(11, 77, 156, 0.25) !important;
    margin-bottom: 28px !important;
}

.hero-pro-grid {
    display: grid !important;
    grid-template-columns: 1.35fr 1fr !important;
    gap: 28px !important;
    align-items: center !important;
    position: relative !important;
    z-index: 2 !important;
}

@media (max-width: 992px) {
    .hero-pro-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}

.hero-pill-badge {
    background: rgba(255, 255, 255, 0.16) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    padding: 4px 14px !important;
    border-radius: 9999px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
}

.hero-title {
    font-size: clamp(22px, 3.5vw, 34px) !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    margin-bottom: 12px !important;
    color: #ffffff !important;
}

.hero-title .highlight {
    display: block !important;
    color: #67e8f9 !important;
    font-size: clamp(17px, 2.4vw, 22px) !important;
    margin-top: 6px !important;
    font-weight: 800 !important;
}

.hero-desc {
    font-size: 14.5px !important;
    line-height: 1.7 !important;
    color: #e2e8f0 !important;
    margin-bottom: 22px !important;
    max-width: 580px !important;
}

.hero-cta-group {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.btn-hero-deals {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    padding: 11px 22px !important;
    border-radius: 9999px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.45) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.btn-hero-deals:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.65) !important;
    color: #ffffff !important;
}

.btn-hero-primary {
    background: #ffffff !important;
    color: #0b4d9c !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    padding: 11px 22px !important;
    border-radius: 9999px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.25s ease !important;
}

.btn-hero-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(255, 255, 255, 0.3) !important;
}

.btn-hero-rx {
    background: #10b981 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    padding: 11px 22px !important;
    border-radius: 9999px !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35) !important;
    transition: all 0.25s ease !important;
}

.btn-hero-rx:hover {
    transform: translateY(-2px) !important;
    background: #059669 !important;
}

.btn-hero-whatsapp {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    padding: 11px 20px !important;
    border-radius: 9999px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.25s ease !important;
}

.btn-hero-whatsapp:hover {
    background: #25d366 !important;
    border-color: #25d366 !important;
    transform: translateY(-2px) !important;
}

/* ==================== Doctor Badge & Visual Card ==================== */
.hero-visual-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.doctor-badge-card {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 20px !important;
    padding: 18px 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.doctor-avatar-circle {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 3px solid #10b981 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 26px !important;
    flex-shrink: 0 !important;
}

.doctor-info-text h4 {
    font-size: 16px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin: 0 0 4px 0 !important;
}

.doctor-info-text p {
    font-size: 12.5px !important;
    color: #e2e8f0 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.delivery-callout-card {
    background: rgba(0, 0, 0, 0.22) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    padding: 14px 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.delivery-callout-icon {
    font-size: 22px !important;
    flex-shrink: 0 !important;
}

.delivery-callout-text h5 {
    font-size: 14px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin: 0 0 2px 0 !important;
}

.delivery-callout-text p {
    font-size: 12px !important;
    color: #cbd5e1 !important;
    margin: 0 !important;
}

/* ==================== Hero Features Bottom Bar ==================== */
.hero-features-bar {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    margin-top: 24px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
}

@media (max-width: 850px) {
    .hero-features-bar {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.hero-feature-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.hero-feature-icon {
    font-size: 22px !important;
    flex-shrink: 0 !important;
}

.hero-feature-text h4 {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 !important;
}

.hero-feature-text p {
    font-size: 11.5px !important;
    color: #cbd5e1 !important;
    margin: 0 !important;
}

/* ==================== Prescription Action Banner ==================== */
.rx-banner-pro {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border-radius: 22px !important;
    padding: 24px 30px !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    margin-bottom: 32px !important;
    box-shadow: 0 10px 30px -4px rgba(5, 150, 105, 0.25) !important;
    flex-wrap: wrap !important;
}

.rx-banner-info h3 {
    font-size: 20px !important;
    font-weight: 900 !important;
    margin: 0 0 6px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.rx-banner-info p {
    font-size: 13.5px !important;
    color: #d1fae5 !important;
    margin: 0 !important;
    max-width: 650px !important;
    line-height: 1.5 !important;
}

.rx-actions-group {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
}

.btn-rx-upload {
    background: #ffffff !important;
    color: #065f46 !important;
    padding: 11px 22px !important;
    border-radius: 9999px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    font-family: inherit !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
}

.btn-rx-upload:hover {
    transform: translateY(-2px) !important;
    background: #f0fdf4 !important;
}

/* ==================== Categories Grid ==================== */
.section-head-pro {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 16px !important;
    gap: 12px !important;
}

.section-head-title {
    font-size: 22px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 4px 0 !important;
}

.section-head-subtitle {
    font-size: 13px !important;
    color: #64748b !important;
    margin: 0 !important;
}

.section-link-more {
    color: #0b4d9c !important;
    font-weight: 800 !important;
    font-size: 13.5px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.categories-pro-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 14px !important;
    margin-bottom: 32px !important;
}

@media (max-width: 1024px) {
    .categories-pro-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 580px) {
    .categories-pro-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.category-card-pro {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    padding: 18px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    color: #0f172a !important;
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.25s ease !important;
    text-align: center !important;
}

.category-card-pro:hover {
    transform: translateY(-4px) !important;
    border-color: #0b4d9c !important;
    box-shadow: 0 10px 24px -4px rgba(11, 77, 156, 0.15) !important;
}

.cat-icon-circle {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    transition: transform 0.2s ease !important;
}

.category-card-pro:hover .cat-icon-circle {
    transform: scale(1.15) !important;
}

.cat-label-title {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

/* ==================== Location Showcase Card ==================== */
.location-showcase-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 28px !important;
    padding: 32px !important;
    box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.05) !important;
    margin-bottom: 36px !important;
}

.location-grid {
    display: grid !important;
    grid-template-columns: 1.4fr 1fr !important;
    gap: 32px !important;
    align-items: center !important;
}

@media (max-width: 900px) {
    .location-grid {
        grid-template-columns: 1fr !important;
    }
}

.location-details-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    margin-bottom: 20px !important;
}

.location-item-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
}

.location-item-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    background: #eff6ff !important;
    color: #0b4d9c !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    flex-shrink: 0 !important;
}

.location-item-content h4 {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 2px 0 !important;
}

.location-item-content p {
    font-size: 13px !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.delivery-zones-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.zone-tag {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 9999px !important;
    padding: 5px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.zone-tag.featured {
    background: #eff6ff !important;
    color: #0b4d9c !important;
    border-color: #bfdbfe !important;
    font-weight: 800 !important;
}

.map-visual-preview {
    background: linear-gradient(135deg, #0b4d9c, #0d3b75) !important;
    border-radius: 22px !important;
    padding: 24px !important;
    color: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    box-shadow: 0 10px 25px rgba(11, 77, 156, 0.2) !important;
}

.map-badge-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.map-address-box {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    padding: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    line-height: 1.6 !important;
}

.btn-open-map {
    background: #ffffff !important;
    color: #0b4d9c !important;
    border-radius: 12px !important;
    padding: 12px !important;
    font-weight: 800 !important;
    font-size: 13.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.btn-open-map:hover {
    background: #eff6ff !important;
    transform: translateY(-2px) !important;
}

/* ==================== FAQ Accordion ==================== */
.faq-pro-section {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 28px !important;
    padding: 32px !important;
    margin-bottom: 36px !important;
    box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.05) !important;
}

.faq-item-card, .faq-accordion-item {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    margin-bottom: 12px !important;
    overflow: hidden !important;
    transition: all 0.25s ease !important;
}

.faq-item-card:hover, .faq-accordion-item:hover {
    border-color: #cbd5e1 !important;
}

.faq-item-card.open, .faq-accordion-item.open {
    border-color: #0b4d9c !important;
    box-shadow: 0 4px 16px rgba(11, 77, 156, 0.08) !important;
}

.faq-question-btn {
    width: 100% !important;
    padding: 16px 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: transparent !important;
    border: none !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    font-family: inherit !important;
    cursor: pointer !important;
    text-align: right !important;
    gap: 12px !important;
}

.faq-item-card.open .faq-question-btn, .faq-accordion-item.open .faq-question-btn {
    color: #0b4d9c !important;
}

.faq-icon-toggle {
    font-size: 12px !important;
    color: #94a3b8 !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease !important;
    flex-shrink: 0 !important;
}

.faq-item-card.open .faq-icon-toggle, .faq-accordion-item.open .faq-icon-toggle {
    transform: rotate(180deg) !important;
    color: #0b4d9c !important;
}

.faq-answer-content, .faq-answer-panel {
    display: none !important;
    padding: 0 20px 18px 20px !important;
    font-size: 14px !important;
    color: #475569 !important;
    line-height: 1.7 !important;
    border-top: 1px dashed #f1f5f9 !important;
    padding-top: 14px !important;
}

.faq-item-card.open .faq-answer-content, .faq-accordion-item.open .faq-answer-panel {
    display: block !important;
    animation: fadeInFaq 0.25s ease forwards !important;
}

@keyframes fadeInFaq {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== Floating WhatsApp ==================== */
@keyframes waPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float-btn {
    position: fixed !important;
    bottom: 24px !important;
    left: 24px !important;
    z-index: 9999 !important;
    background: #25d366 !important;
    color: #ffffff !important;
    width: 58px !important;
    height: 58px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45) !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    animation: waPulse 2.5s infinite !important;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1) rotate(6deg) !important;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6) !important;
}

@media (max-width: 768px) {
    .whatsapp-float-btn {
        bottom: 84px !important;
        left: 16px !important;
        width: 52px !important;
        height: 52px !important;
    }
}

/* ==================== Mobile Bottom Navigation Bar ==================== */
.mobile-bottom-nav, .mob-bottom-nav {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-bottom-nav, .mob-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-top: 1px solid #e2e8f0 !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08) !important;
        z-index: 9998 !important;
        padding: 6px 12px !important;
        align-items: center !important;
        justify-content: space-around !important;
    }

    .mob-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        color: #64748b !important;
        text-decoration: none !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        gap: 3px !important;
        position: relative !important;
    }

    .mob-nav-item.active, .mob-nav-item:hover {
        color: #0b4d9c !important;
    }

    .mob-nav-item svg {
        width: 22px !important;
        height: 22px !important;
    }

    .mob-nav-center-rx {
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
        background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
        color: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: none !important;
        box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4) !important;
        margin-top: -20px !important;
        cursor: pointer !important;
    }

    .mob-badge-pill {
        position: absolute !important;
        top: -3px !important;
        right: 8px !important;
        background: #ef4444 !important;
        color: #ffffff !important;
        font-size: 10px !important;
        font-weight: 900 !important;
        padding: 1px 5px !important;
        border-radius: 9999px !important;
    }
}

/* ==================== Product Details Container ==================== */
.product-details-container {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
}

/* ==================== Carousel Engine ==================== */
.carousel-wrapper {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
    padding: 10px 0 20px !important;
}

.carousel-container {
    display: flex !important;
    gap: 16px !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 8px 4px 16px !important;
}

.carousel-container::-webkit-scrollbar {
    display: none !important;
}

.carousel-item {
    flex: 0 0 260px !important;
    max-width: 260px !important;
    box-sizing: border-box !important;
}

@media (max-width: 640px) {
    .carousel-item {
        flex: 0 0 200px !important;
        max-width: 200px !important;
    }
}

/* ==================== Master Product Card ==================== */
.product-card-pro {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    cursor: pointer !important;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05) !important;
    overflow: hidden !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

.product-card-pro:hover {
    transform: translateY(-5px) !important;
    border-color: #0b4d9c !important;
    box-shadow: 0 16px 36px -4px rgba(11, 77, 156, 0.16) !important;
}

.card-ribbon-tag {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 10 !important;
    padding: 4px 10px !important;
    border-radius: 9999px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

.ribbon-bestseller {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #ffffff !important;
}

.ribbon-sale {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #ffffff !important;
}

.product-thumb-box {
    width: 100% !important;
    height: 170px !important;
    background: #f8fafc !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px !important;
    margin-bottom: 12px !important;
    position: relative !important;
    overflow: hidden !important;
}

.product-thumb-box img {
    max-width: 90% !important;
    max-height: 90% !important;
    object-fit: contain !important;
    transition: transform 0.35s ease !important;
}

.product-card-pro:hover .product-thumb-box img {
    transform: scale(1.08) !important;
}

.product-category-pill {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #0b4d9c !important;
    background: #eff6ff !important;
    padding: 3px 10px !important;
    border-radius: 9999px !important;
    align-self: flex-start !important;
    margin-bottom: 6px !important;
    display: inline-block !important;
}

.product-title-text {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 38px !important;
}

.product-footer-bar {
    margin-top: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding-top: 10px !important;
    border-top: 1px solid #f1f5f9 !important;
}

.product-price-box {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
}

.price-old {
    font-size: 11.5px !important;
    color: #94a3b8 !important;
    text-decoration: line-through !important;
    font-family: 'Outfit', 'Cairo', sans-serif !important;
}

.price-current {
    font-size: 17px !important;
    font-weight: 900 !important;
    color: #0b4d9c !important;
    font-family: 'Outfit', 'Cairo', sans-serif !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 3px !important;
}

.price-current small {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #64748b !important;
}

.btn-add-cart-pro {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #0b4d9c, #0284c7) !important;
    color: #ffffff !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(11, 77, 156, 0.22) !important;
    flex-shrink: 0 !important;
}

.btn-add-cart-pro:hover {
    transform: scale(1.08) translateY(-2px) !important;
    background: linear-gradient(135deg, #083b77, #0284c7) !important;
    box-shadow: 0 6px 18px rgba(11, 77, 156, 0.35) !important;
}

/* ==================== Brands Engine ==================== */
.brand-container {
    display: flex !important;
    gap: 16px !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 10px 4px 18px !important;
}

.brand-container::-webkit-scrollbar {
    display: none !important;
}

.brand-container.brand-grid-active {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 16px !important;
    overflow: visible !important;
}

.brand-item {
    flex: 0 0 120px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    color: #0f172a !important;
    transition: transform 0.2s ease !important;
}

.brand-item:hover {
    transform: translateY(-4px) !important;
}

.brand-circle {
    width: 86px !important;
    height: 86px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
    transition: all 0.25s ease !important;
}

.brand-item:hover .brand-circle {
    border-color: #0b4d9c !important;
    box-shadow: 0 8px 24px rgba(11, 77, 156, 0.18) !important;
    transform: scale(1.05) !important;
}

.brand-circle img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    border-radius: 50% !important;
}

.brand-name {
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: capitalize !important;
    color: #475569 !important;
    text-align: center !important;
}

/* ==================== Prescription Modal ==================== */
.rx-modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 10000 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
}

.rx-modal-backdrop.open {
    display: flex !important;
    animation: fadeInModal 0.25s ease forwards !important;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.rx-modal-card {
    background: #ffffff !important;
    border-radius: 24px !important;
    max-width: 520px !important;
    width: 100% !important;
    padding: 24px !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3) !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: relative !important;
    animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes slideUpModal {
    from { transform: translateY(20px) scale(0.96); }
    to { transform: translateY(0) scale(1); }
}

.rx-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 18px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.rx-modal-header h3 {
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    margin: 0 !important;
}

.rx-modal-close {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    border: none !important;
    color: #64748b !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.rx-modal-close:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
}

.rx-dropzone {
    border: 2px dashed #10b981 !important;
    background: #ecfdf5 !important;
    border-radius: 18px !important;
    padding: 24px !important;
    text-align: center !important;
    cursor: pointer !important;
    margin-bottom: 16px !important;
    transition: all 0.2s ease !important;
}

.rx-dropzone:hover {
    background: #d1fae5 !important;
    border-color: #059669 !important;
}

.rx-preview-img {
    max-width: 100% !important;
    max-height: 220px !important;
    border-radius: 12px !important;
    margin: 10px auto 0 !important;
    display: none;
    object-fit: contain !important;
}

/* ==================== Chat Consultation ==================== */
.chat-floating-btn {
    width: 58px !important;
    height: 58px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #0b4d9c, #0284c7) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    box-shadow: 0 10px 25px rgba(11, 77, 156, 0.45) !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
}

.chat-floating-btn:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 15px 35px rgba(11, 77, 156, 0.6) !important;
}

.chat-modal-container {
    position: fixed !important;
    bottom: 96px !important;
    right: 24px !important;
    width: 360px !important;
    max-width: calc(100vw - 32px) !important;
    height: 520px !important;
    max-height: calc(100vh - 120px) !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.25) !important;
    border: 1px solid #e2e8f0 !important;
    z-index: 10001 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    animation: slideUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.chat-modal-container.hidden {
    display: none !important;
}

.chat-footer {
    padding: 12px !important;
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
}

.chat-input-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.chat-input-field {
    flex: 1 !important;
    padding: 10px 14px !important;
    background: #f1f5f9 !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 9999px !important;
    font-size: 13px !important;
    outline: none !important;
    font-family: inherit !important;
}

.chat-input-field:focus {
    border-color: #0b4d9c !important;
    background: #ffffff !important;
}

.chat-send-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #0b4d9c !important;
    color: #ffffff !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.chat-send-btn:hover {
    background: #083b77 !important;
}

/* ==================== Toast Notification ==================== */
.toast-pro {
    position: fixed !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(100px) !important;
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 12px 24px !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    z-index: 10002 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.toast-pro.show {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.toast-pro span:first-child {
    background: #10b981 !important;
    color: #ffffff !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

/* ==================== Featured Products Section & Tabs ==================== */
.featured-tabs-rail {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding: 4px 2px 16px 2px !important;
    margin-bottom: 20px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
}

.featured-tabs-rail::-webkit-scrollbar {
    display: none !important;
}

.featured-tab-btn {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #475569 !important;
    padding: 8px 18px !important;
    border-radius: 9999px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.featured-tab-btn:hover {
    border-color: #0b4d9c !important;
    color: #0b4d9c !important;
    background: #f8fafc !important;
}

.featured-tab-btn.active {
    background: linear-gradient(135deg, #0b4d9c, #0284c7) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(11, 77, 156, 0.28) !important;
}

/* Rating Stars */
.rating-stars-row {
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    color: #f59e0b !important;
    font-size: 11px !important;
    margin-bottom: 6px !important;
}

.rating-count-text {
    font-size: 10.5px !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    margin-right: 4px !important;
}

/* ==================== Free Shipping Progress Meter ==================== */
.free-shipping-meter {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
    border: 1px solid #a7f3d0 !important;
    border-radius: 16px !important;
    padding: 14px 18px !important;
    margin-bottom: 20px !important;
}

.free-shipping-text {
    font-size: 12.5px !important;
    font-weight: 800 !important;
    color: #065f46 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 8px !important;
}

.free-shipping-bar {
    width: 100% !important;
    height: 7px !important;
    background: rgba(6, 95, 70, 0.15) !important;
    border-radius: 9999px !important;
    overflow: hidden !important;
}

.free-shipping-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #059669, #10b981) !important;
    border-radius: 9999px !important;
    transition: width 0.4s ease !important;
}

/* ==================== Order Step Timeline Stepper ==================== */
.order-stepper-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
    padding: 16px 8px !important;
    margin: 20px 0 !important;
}

.order-stepper-container::before {
    content: '' !important;
    position: absolute !important;
    top: 36px !important;
    left: 24px !important;
    right: 24px !important;
    height: 3px !important;
    background: #e2e8f0 !important;
    z-index: 1 !important;
}

.order-step-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    position: relative !important;
    z-index: 2 !important;
    flex: 1 !important;
}

.order-step-bubble {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 3px solid #cbd5e1 !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    transition: all 0.25s ease !important;
    margin-bottom: 8px !important;
}

.order-step-item.active .order-step-bubble {
    border-color: #0b4d9c !important;
    background: #0b4d9c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(11, 77, 156, 0.35) !important;
}

.order-step-item.completed .order-step-bubble {
    border-color: #059669 !important;
    background: #059669 !important;
    color: #ffffff !important;
}

.order-step-label {
    font-size: 11.5px !important;
    font-weight: 800 !important;
    color: #64748b !important;
    line-height: 1.2 !important;
}

.order-step-item.active .order-step-label {
    color: #0b4d9c !important;
}

.order-step-item.completed .order-step-label {
    color: #059669 !important;
}

/* ==================== Auth Tab Switcher ==================== */
.auth-tab-switch {
    display: flex !important;
    background: #f1f5f9 !important;
    padding: 4px !important;
    border-radius: 14px !important;
    margin-bottom: 24px !important;
    gap: 4px !important;
}

.auth-tab-btn {
    flex: 1 !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    border: none !important;
    background: transparent !important;
    color: #64748b !important;
    font-weight: 800 !important;
    font-size: 13.5px !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    text-decoration: none !important;
}

.auth-tab-btn.active {
    background: #ffffff !important;
    color: #0b4d9c !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* ==================== Master Royal Footer System ==================== */
.site-footer-pro {
    background: #061d3b !important;
    color: #94a3b8 !important;
    padding: 64px 0 32px 0 !important;
    margin-top: 60px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    position: relative !important;
    z-index: 10 !important;
    text-align: right !important;
}

.footer-pro-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1.6fr !important;
    gap: 40px !important;
}

@media (max-width: 991px) {
    .footer-pro-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 32px !important;
    }
}

@media (max-width: 768px) {
    .site-footer-pro {
        padding-bottom: 95px !important;
        padding-top: 40px !important;
    }
}

@media (max-width: 640px) {
    .footer-pro-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
}

.footer-brand-col h3 {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.footer-brand-col p {
    color: #94a3b8 !important;
    font-size: 13.5px !important;
    line-height: 1.8 !important;
    margin-bottom: 20px !important;
}

.footer-social-links {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.footer-social-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
}

.footer-social-btn:hover {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35) !important;
}

.footer-col h4 {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    position: relative !important;
    padding-bottom: 10px !important;
}

.footer-col h4::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 32px !important;
    height: 3px !important;
    background: #059669 !important;
    border-radius: 2px !important;
}

.footer-links-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 11px !important;
}

.footer-links-list li {
    margin: 0 !important;
    padding: 0 !important;
}

.footer-links-list a {
    color: #94a3b8 !important;
    font-size: 13.5px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.footer-links-list a:hover {
    color: #38bdf8 !important;
    transform: translateX(-4px) !important;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin-top: 48px !important;
    padding-top: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    color: #64748b !important;
    font-size: 13px !important;
}

.footer-bottom-bar strong {
    color: #e2e8f0 !important;
}

/* ==========================================================================
   MASTER MOBILE RESPONSIVE ENGINE (ALL SCREENS & PHONES COMPATIBILITY)
   صيدلية د/ هبه أبوبكر عقل - نظام التجاوب الشامل للهواتف الذكية بجميع أحجامها
   ========================================================================== */

/* 1. Global Touch, Ergonomics & Safe Areas */
html {
    max-width: 100vw;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    max-width: 100vw;
    overflow-x: hidden !important;
    position: relative;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Prevent iOS Safari auto-zoom on form inputs */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="number"],
    input[type="tel"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* 2. Top Announcement Bar on Small Screens */
@media (max-width: 768px) {
    .announcement-bar {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
    .announcement-content {
        justify-content: center !important;
        gap: 6px !important;
        text-align: center !important;
    }
    .announcement-contacts {
        gap: 8px !important;
        font-size: 11px !important;
    }
    .announcement-badge {
        font-size: 10px !important;
        padding: 2px 8px !important;
    }
}

/* 3. Containers & Layout Padding */
@media (max-width: 768px) {
    .container-pro {
        padding: 0 12px !important;
    }
    main.main-pro {
        padding-top: 14px !important;
        padding-bottom: 95px !important; /* clears bottom mobile nav */
    }
}

@media (max-width: 420px) {
    .container-pro {
        padding: 0 10px !important;
    }
}

/* 4. Sub-Navigation Horizontal Rail (Smooth Momentum Scrolling) */
.sub-nav-bar,
.category-pills-scroll,
.featured-tabs-rail,
.brand-container {
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    touch-action: pan-x !important;
    scrollbar-width: none !important;
}

.sub-nav-bar::-webkit-scrollbar,
.category-pills-scroll::-webkit-scrollbar,
.featured-tabs-rail::-webkit-scrollbar,
.brand-container::-webkit-scrollbar {
    display: none !important;
}

@media (max-width: 768px) {
    .sub-nav-container {
        padding: 6px 10px !important;
        gap: 6px !important;
    }
    .sub-nav-link {
        font-size: 11.5px !important;
        padding: 5px 11px !important;
    }
    .featured-tabs-rail {
        gap: 6px !important;
        padding: 2px 2px 10px 2px !important;
        margin-bottom: 14px !important;
    }
    .featured-tab-btn {
        padding: 6px 12px !important;
        font-size: 11.5px !important;
    }
    .category-pills-scroll {
        display: flex !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding: 4px 2px 12px 2px !important;
        margin-bottom: 16px !important;
    }
    .cat-pill-btn {
        padding: 7px 14px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
}

/* 5. Hero Section on Mobile & Tablet */
@media (max-width: 992px) {
    .hero-pro-wrapper {
        border-radius: 20px !important;
        padding: 22px 16px !important;
        margin-bottom: 20px !important;
    }
    .hero-pro-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .hero-title {
        font-size: clamp(20px, 5.5vw, 26px) !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }
    .hero-title .highlight {
        font-size: clamp(14px, 4vw, 17px) !important;
    }
    .hero-desc {
        font-size: 13px !important;
        line-height: 1.6 !important;
        margin-bottom: 16px !important;
    }
    .hero-cta-group {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .hero-cta-group a,
    .hero-cta-group button {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px 6px !important;
        font-size: 12px !important;
        text-align: center !important;
        border-radius: 12px !important;
        min-height: 44px !important;
    }
    .hero-features-bar {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding: 12px 10px !important;
        margin-top: 14px !important;
    }
    .hero-feature-item {
        padding: 6px !important;
        gap: 8px !important;
    }
    .hero-feature-icon {
        font-size: 18px !important;
    }
    .hero-feature-text h4 {
        font-size: 12px !important;
        margin-bottom: 1px !important;
    }
    .hero-feature-text p {
        font-size: 10px !important;
    }
}

/* 6. Prescription Banner on Mobile */
@media (max-width: 768px) {
    .rx-banner-pro {
        flex-direction: column !important;
        padding: 18px 14px !important;
        border-radius: 18px !important;
        gap: 14px !important;
        text-align: center !important;
        margin-bottom: 22px !important;
    }
    .rx-banner-info h3 {
        justify-content: center !important;
        font-size: 16px !important;
    }
    .rx-banner-info p {
        font-size: 12.5px !important;
        line-height: 1.6 !important;
    }
    .rx-actions-group {
        width: 100% !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    .rx-actions-group button,
    .rx-actions-group a {
        width: 100% !important;
        justify-content: center !important;
        padding: 11px 16px !important;
        font-size: 13px !important;
    }
}

/* 7. Categories Grid (3 columns on standard phones, 2 on compact phones) */
@media (max-width: 768px) {
    .categories-pro-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 20px !important;
    }
    .category-card-pro {
        padding: 12px 6px !important;
        border-radius: 14px !important;
        gap: 6px !important;
    }
    .cat-icon-circle {
        width: 42px !important;
        height: 42px !important;
        font-size: 20px !important;
    }
    .cat-label-title {
        font-size: 11px !important;
        line-height: 1.25 !important;
    }
}

@media (max-width: 360px) {
    .categories-pro-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 8. Master Product Cards in Grids (2 Columns on All Mobile Devices) */
@media (max-width: 768px) {
    .products-grid-pro,
    #featuredProductsGrid,
    #dealsGrid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin-bottom: 28px !important;
    }
    .product-card-pro {
        padding: 10px !important;
        border-radius: 16px !important;
    }
    .product-thumb-box {
        height: 130px !important;
        padding: 6px !important;
        border-radius: 12px !important;
        margin-bottom: 8px !important;
    }
    .product-thumb-box img {
        max-width: 95% !important;
        max-height: 95% !important;
    }
    .card-ribbon-tag {
        top: 6px !important;
        right: 6px !important;
        font-size: 9px !important;
        padding: 2px 7px !important;
    }
    .product-category-pill {
        font-size: 9.5px !important;
        padding: 2px 7px !important;
        margin-bottom: 4px !important;
    }
    .product-title-text {
        font-size: 12px !important;
        line-height: 1.35 !important;
        min-height: 33px !important;
        margin-bottom: 6px !important;
        -webkit-line-clamp: 2 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .product-footer-bar {
        padding-top: 6px !important;
        gap: 4px !important;
    }
    .price-current {
        font-size: 14.5px !important;
    }
    .price-current small {
        font-size: 10px !important;
    }
    .price-old {
        font-size: 10.5px !important;
    }
    .btn-add-cart-pro {
        width: 35px !important;
        height: 35px !important;
        border-radius: 10px !important;
        flex-shrink: 0 !important;
    }
    .btn-add-cart-pro svg {
        width: 17px !important;
        height: 17px !important;
    }
}

/* Ultra compact phones (<= 330px like iPhone 5 / small outer screens) */
@media (max-width: 330px) {
    .products-grid-pro,
    #featuredProductsGrid,
    #dealsGrid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .product-thumb-box {
        height: 160px !important;
    }
}

/* 9. Product Details Page (product.html) Mobile Polish */
@media (max-width: 768px) {
    .product-details-container {
        padding: 8px 10px !important;
    }
    .product-card-premium-pro {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        padding: 16px 12px !important;
        border-radius: 18px !important;
        margin-bottom: 20px !important;
    }
    .main-product-stage {
        height: 260px !important;
        border-radius: 14px !important;
        padding: 14px !important;
    }
    .thumbnails-row {
        gap: 8px !important;
        margin-top: 10px !important;
    }
    .thumb-pro {
        width: 54px !important;
        height: 54px !important;
        border-radius: 10px !important;
    }
    .prod-main-title {
        font-size: 18.5px !important;
        line-height: 1.35 !important;
        margin-bottom: 10px !important;
    }
    .prod-price-hero {
        margin-bottom: 14px !important;
        padding-bottom: 12px !important;
        gap: 8px !important;
    }
    .price-now {
        font-size: 26px !important;
    }
    .price-now small {
        font-size: 13px !important;
    }
    .price-was {
        font-size: 15px !important;
    }
    .prod-desc-box {
        padding: 14px 12px !important;
        font-size: 12.5px !important;
        line-height: 1.65 !important;
        margin-bottom: 16px !important;
    }
    .qty-control-row {
        gap: 10px !important;
        margin-bottom: 16px !important;
        justify-content: space-between !important;
    }
    .actions-dual-row {
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 14px !important;
    }
    .btn-add-primary,
    .btn-buy-instant {
        width: 100% !important;
        min-width: 100% !important;
        padding: 14px 18px !important;
        font-size: 14px !important;
        border-radius: 14px !important;
        justify-content: center !important;
        min-height: 48px !important;
    }
    .btn-wa-product {
        padding: 12px 16px !important;
        font-size: 13px !important;
        border-radius: 14px !important;
        margin-bottom: 14px !important;
        min-height: 44px !important;
    }
    .trust-grid-pro {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding-top: 12px !important;
    }
}

/* 10. Cart Page (cart.html) Mobile Optimization */
@media (max-width: 768px) {
    .cart-pro-container {
        padding: 10px !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .cart-card-pro {
        padding: 14px 12px !important;
        border-radius: 16px !important;
    }
    .cart-item-row-pro {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        padding: 12px 0 !important;
        align-items: flex-start !important;
    }
    .cart-thumb-box {
        width: 62px !important;
        height: 62px !important;
        border-radius: 10px !important;
        flex-shrink: 0 !important;
    }
    .cart-item-details {
        flex: 1 1 calc(100% - 76px) !important;
        min-width: 0 !important;
    }
    .cart-item-title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
    }
    .cart-item-price {
        font-size: 14px !important;
    }
    .cart-qty-group {
        padding: 2px !important;
    }
    .cart-qty-btn {
        width: 30px !important;
        height: 30px !important;
    }
    .cart-qty-num {
        width: 32px !important;
        font-size: 13px !important;
    }
    .summary-card-pro {
        padding: 16px 14px !important;
        border-radius: 16px !important;
        position: static !important;
    }
    .summary-row {
        font-size: 13px !important;
        padding: 7px 0 !important;
    }
    .summary-total-val {
        font-size: 20px !important;
    }
}

/* 11. Checkout Page (checkout.html) Mobile Optimization */
@media (max-width: 768px) {
    .checkout-pro-container {
        padding: 10px !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .checkout-step-card {
        padding: 16px 12px !important;
        border-radius: 18px !important;
        margin-bottom: 14px !important;
    }
    .checkout-input {
        padding: 12px !important;
        border-radius: 10px !important;
        font-size: 16px !important; /* Critical: stops iOS Safari zoom */
    }
    .payment-option-card {
        padding: 12px 10px !important;
        border-radius: 12px !important;
        margin-bottom: 8px !important;
    }
    .payment-icon-box {
        width: 38px !important;
        height: 38px !important;
        font-size: 18px !important;
        border-radius: 10px !important;
    }
    .payment-option-info h4 {
        font-size: 13px !important;
    }
    .payment-option-info p {
        font-size: 11px !important;
    }
    .order-stepper-container {
        padding: 8px 0 !important;
        margin: 10px 0 14px 0 !important;
    }
    .order-step-bubble {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
        margin-bottom: 4px !important;
    }
    .order-step-label {
        font-size: 10.5px !important;
    }
    .order-stepper-container::before {
        top: 24px !important;
    }
}

/* 12. Modal Backdrops & Overlays (Prescription & Consultation) */
@media (max-width: 640px) {
    .rx-modal-backdrop {
        padding: 10px !important;
        align-items: flex-end !important; /* Bottom-sheet feel on mobile */
    }
    .rx-modal-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 14px !important;
        border-radius: 22px 22px 0 0 !important;
        max-height: 90vh !important;
        box-sizing: border-box !important;
    }
    .rx-dropzone {
        padding: 20px 12px !important;
        border-radius: 14px !important;
    }
    .chat-modal-container {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        right: 8px !important;
        left: 8px !important;
        bottom: 70px !important;
        height: calc(100vh - 85px) !important;
        max-height: 520px !important;
        border-radius: 20px !important;
    }
}

/* 13. Mobile Bottom App Bar & Floating WhatsApp Button */
@media (max-width: 768px) {
    .mobile-bottom-nav, .mob-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 60px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
        border-top: 1px solid #e2e8f0 !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08) !important;
        z-index: 9998 !important;
        padding: 6px 8px !important;
        padding-bottom: max(6px, env(safe-area-inset-bottom)) !important;
        align-items: center !important;
        justify-content: space-around !important;
    }
    .mob-nav-item {
        font-size: 10px !important;
        font-weight: 700 !important;
        gap: 2px !important;
        padding: 4px 6px !important;
    }
    .mob-nav-item svg {
        width: 20px !important;
        height: 20px !important;
    }
    .mob-nav-center-rx {
        width: 46px !important;
        height: 46px !important;
        margin-top: -16px !important;
    }
    .whatsapp-float-btn {
        bottom: max(72px, calc(66px + env(safe-area-inset-bottom))) !important;
        left: 14px !important;
        width: 48px !important;
        height: 48px !important;
        z-index: 9999 !important;
    }
    .whatsapp-float-btn svg {
        width: 26px !important;
        height: 26px !important;
    }
    .site-footer-pro {
        padding-bottom: 110px !important;
        padding-top: 36px !important;
        margin-top: 36px !important;
    }
    .footer-pro-grid {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }
}



