/* Iran Salem Custom Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

/* Ensure Material Symbols Ligatures render correctly everywhere */
[style*="Material Symbols Rounded"], .material-symbols-rounded {
    font-family: 'Material Symbols Rounded' !important;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Ensure icons inside interactive buttons and controls never trigger independent pointer/text selection */
button .material-symbols-rounded,
button [style*="Material Symbols Rounded"],
.btn .material-symbols-rounded,
.btn [style*="Material Symbols Rounded"],
a .material-symbols-rounded,
a [style*="Material Symbols Rounded"],
[onclick] .material-symbols-rounded,
[onclick] [style*="Material Symbols Rounded"],
#theme-toggle .material-symbols-rounded,
#theme-toggle [style*="Material Symbols Rounded"],
#theme-icon-nav {
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Stable theme toggle micro-interaction without color glitching */
#theme-toggle {
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1), background-color 0.2s ease, box-shadow 0.22s ease;
}
#theme-toggle:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}
#theme-toggle:active {
    transform: translateY(1px) scale(0.95);
    transition-duration: 0.08s;
}
#theme-icon-nav {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease !important;
}
#theme-toggle:hover #theme-icon-nav {
    transform: scale(1.12);
}
#theme-toggle:active #theme-icon-nav {
    transform: scale(0.94);
}

/* Prevent general link hover rules from corrupting button text and icon colors */
a:hover .material-symbols-rounded,
a:active .material-symbols-rounded,
a:hover [style*="Material Symbols Rounded"],
a:active [style*="Material Symbols Rounded"] {
    color: inherit;
}
.download-app-btn,
.download-app-btn:hover,
.download-app-btn:active,
.download-app-btn:focus,
a[style*="background: var(--pr)"]:hover,
a[style*="background: var(--pr)"]:active,
a[style*="background: var(--so)"]:hover,
a[style*="background: var(--so)"]:active {
    color: var(--onpr, #ffffff) !important;
}
.download-app-btn span,
a[style*="background: var(--pr)"] span,
a[style*="background: var(--so)"] span {
    color: inherit !important;
}
a[href*="/cart"]:hover,
a[href*="/cart"]:active {
    color: var(--hd) !important;
}
a[href*="/cart"] span {
    color: inherit !important;
}

:root {
    --primary: #EE7F40;
    --primary-hover: #D86A2D;
    --primary-light: #FDF3ED;
    --navy: #174E86;
    --navy-dark: #0E2A4A;
    --navy-light: #EBF2F9;
    --bg-page: #F6F3EE;
    --card-bg: #FFFFFF;
    --text-main: #1D2433;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --success: #10B981;
    --success-bg: #ECFDF5;
    --warning: #F59E0B;
    --warning-bg: #FFFBEB;
    --danger: #EF4444;
    --danger-bg: #FEF2F2;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-soft: 0 4px 20px -2px rgba(23, 78, 134, 0.08);
    --shadow-lg: 0 10px 30px -4px rgba(23, 78, 134, 0.12);

    /* Prototype Exact Variables */
    --gut: 0px;
    --bg: #F6F3EE;
    --s1: #FFFFFF;
    --s2: #F6F3EE;
    --s3: #ECE6DC;
    --sk: #ECE6DC;
    --ln: rgba(60,40,20,.12);
    --fr: rgba(31,111,181,.28);
    --t1: #1D2433;
    --t2: #5A6274;
    --t3: #8A90A0;
    --hd: #193A70;
    --pr: #1F6FB5;
    --onpr: #FFFFFF;
    --prt: #E4EEF8;
    --prti: #174E86;
    --so: #193A70;
    --onso: #FFFFFF;
    --gr: #1E9E5E;
    --grt: #E3F2E5;
    --grti: #17633D;
    --apt: #FDEBDC;
    --apti: #A84B12;
    --er: #C23A3A;
    --ert: #FBE4E0;
    --lo: #4A55C4;
    --lot: #E8EAFB;
    --wa: #8A6100;
    --wat: #FFF4D6;
    --e1: inset 0 2px 0 #fff,0 6px 12px -8px rgba(60,40,20,.35);
    --e2: inset 0 2px 0 #fff,0 16px 30px -20px rgba(60,40,20,.38);
    --e3: inset 0 2px 0 #fff,0 24px 40px -22px rgba(60,40,20,.42);
    --wl: inset 0 2px 4px rgba(60,40,20,.09);
    --ai: #E4EEF8;
    --onai: #174E86;
    --band: #193A70;
    --onband: #FFFFFF;

    /* Sidebar tokens (Admin Panel & Dashboards) */
    --sb: #193A70;
    --sbt: #FFFFFF;
    --sbm: rgba(255,255,255,.72);
    --sba: rgba(255,255,255,.14);
    --sbaf: #FFFFFF;

    /* Responsive Grid & Padding Tokens (Desktop default) */
    --pad: 4px 27px 34px;
    --gap: 17px;
    --g2: minmax(0,1.6fr) minmax(0,1fr);
    --g2e: 1fr 1fr;
    --g3: repeat(3,minmax(0,1fr));
    --g4: repeat(4,minmax(0,1fr));
    --gl: 1fr 1fr;
}

/* ProtoKit Popover & Dropdown Enhancement */
.protokit-popover {
    animation: lp-pop 0.16s cubic-bezier(0, 0, 0.2, 1);
    border: 1px solid var(--ln);
    backdrop-filter: blur(8px);
}

.protokit-popover::-webkit-scrollbar {
    width: 5px;
}
.protokit-popover::-webkit-scrollbar-thumb {
    background: var(--ln);
    border-radius: 999px;
}

@media (max-width: 768px) {
    :root {
        --pad: 12px 14px 27px;
        --gap: 12px;
        --g2: 1fr;
        --g2e: 1fr;
        --g3: 1fr;
        --g4: 1fr 1fr;
        --gl: 1fr;
    }
}

/* Prototype Animations */
@keyframes lp-bob {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50% { transform: translateY(-14px) rotate(var(--r, 0deg)); }
}
@keyframes lp-pop {
    0% { opacity: 0; transform: translateY(10px) scale(.96); }
    100% { opacity: 1; transform: none; }
}
@keyframes lp-dots {
    0%, 80%, 100% { opacity: .25; }
    40% { opacity: 1; }
}
@keyframes lg-gin { 0% { transform: translate(48px, -48px); opacity: 0; } 55% { transform: translate(-3px, 3px); opacity: 1; } 78% { transform: translate(1px, -1px); } 100% { transform: translate(0, 0); opacity: 1; } }
@keyframes lg-bin { 0% { transform: translate(-48px, 48px); opacity: 0; } 55% { transform: translate(3px, -3px); opacity: 1; } 78% { transform: translate(-1px, 1px); } 100% { transform: translate(0, 0); opacity: 1; } }
@keyframes lg-glow { 0%, 55% { opacity: 0; transform: scale(.4); } 80% { opacity: 1; transform: scale(1.25); } 100% { opacity: 1; transform: scale(1); } }
@keyframes lg-word { 0% { clip-path: inset(0 0 0 100%); opacity: 0; } 100% { clip-path: inset(0 0 0 0); opacity: 1; } }

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

[data-theme="dark"],
[data-theme="dark"] [data-sc-name],
[data-theme="dark"] .sc-host > div,
[data-theme="dark"] [style*="--bg"] {
    --gut: 0px !important;
    --bg: #15191F !important;
    --s1: #1F242C !important;
    --s2: #272D37 !important;
    --s3: #15191F !important;
    --sk: #3A4152 !important;
    --ln: rgba(255, 255, 255, 0.10) !important;
    --t1: #EEF0F4 !important;
    --t2: #A3ABB9 !important;
    --t3: #7D8596 !important;
    --hd: #EEF0F4 !important;
    --pr: #6AB2EC !important;
    --onpr: #0E2A4A !important;
    --prt: #24384F !important;
    --prti: #9ED3F5 !important;
    --so: #EEF0F4 !important;
    --onso: #15191F !important;
    --gr: #5DCB8A !important;
    --grt: #1E3A2C !important;
    --grti: #7FDCA4 !important;
    --apt: #3A2418 !important;
    --apti: #FFC9A6 !important;
    --er: #FF9C7D !important;
    --ert: rgba(255, 138, 101, 0.16) !important;
    --lo: #A3B1FF !important;
    --lot: rgba(130, 150, 255, 0.16) !important;
    --wa: #F5C063 !important;
    --wat: rgba(245, 192, 99, 0.16) !important;
    --e1: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 6px 12px -8px rgba(0, 0, 0, 0.55) !important;
    --e2: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 30px -16px rgba(0, 0, 0, 0.60) !important;
    --e3: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 44px -18px rgba(0, 0, 0, 0.70) !important;
    --wl: inset 0 2px 4px rgba(0, 0, 0, 0.45) !important;
    --fr: rgba(106, 178, 236, 0.40) !important;
    --ai: #24384F !important;
    --onai: #9ED3F5 !important;
    --band: #24384F !important;
    --onband: #EEF0F4 !important;

    /* Sidebar dark tokens */
    --sb: #1F242C !important;
    --sbt: #EEF0F4 !important;
    --sbm: #A3ABB9 !important;
    --sba: #272D37 !important;
    --sbaf: #9ED3F5 !important;

    /* Legacy compatibility mappings */
    --bg-page: #15191F !important;
    --card-bg: #1F242C !important;
    --text-main: #EEF0F4 !important;
    --text-muted: #A3ABB9 !important;
    --border-color: rgba(255, 255, 255, 0.10) !important;
    --navy: #6AB2EC !important;
    --navy-dark: #EEF0F4 !important;
    --navy-light: #24384F !important;
    --primary: #6AB2EC !important;
    --primary-light: #3A2418 !important;
}

/* Background overrides for page containers and hosts in Dark Mode */
[data-theme="dark"] body,
[data-theme="dark"] .iran-salem-page-wrapper,
[data-theme="dark"] [data-sc-name] > div,
[data-theme="dark"] .sc-host > div {
    background-color: var(--bg) !important;
    color: var(--t1) !important;
}

/* Logo inversion in Dark Mode (White wordmark matching prototype) */
[data-theme="dark"] .brand-logo img,
[data-theme="dark"] .sc-host[data-sc-name="Logo"] img,
[data-theme="dark"] a[href="/"] > img[alt="ایران سالم"],
[data-theme="dark"] header img[alt="ایران سالم"],
[data-theme="dark"] .site-header img[alt="ایران سالم"],
[data-theme="dark"] .site-footer img[alt="ایران سالم"] {
    filter: brightness(0) invert(1) !important;
}

/* Mobile Nav Drawer in Dark Mode */
[data-theme="dark"] .mobile-nav-drawer {
    background: var(--bg) !important;
    color: var(--t1) !important;
    border-right: 1px solid var(--ln) !important;
}
[data-theme="dark"] .mobile-nav-link:hover {
    background: var(--s1) !important;
    color: var(--pr) !important;
}
[data-theme="dark"] .mobile-nav-cat-item {
    background: var(--s2) !important;
    color: var(--t1) !important;
    border-color: var(--ln) !important;
}

/* Auth Showcase Column in Dark Mode */
[data-theme="dark"] .auth-showcase-column {
    background: linear-gradient(160deg, #24384F 0%, #1a2533 50%, #15191F 100%) !important;
}

/* Store & Category Dropdowns in Dark Mode */
[data-theme="dark"] .nav-categories-menu {
    background: var(--s1) !important;
    border-color: var(--ln) !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45) !important;
}
[data-theme="dark"] .cat-dropdown-item {
    background: var(--s2) !important;
    border-color: var(--ln) !important;
}
[data-theme="dark"] .cat-dropdown-item:hover {
    background: var(--s3) !important;
    border-color: var(--pr) !important;
}
[data-theme="dark"] .pinned-cat-link:hover {
    background: var(--s2) !important;
}

/* Header style in Dark Mode */
[data-theme="dark"] header[data-screen-label],
[data-theme="dark"] .site-header {
    background: var(--bg) !important;
    border-bottom: 1px solid var(--ln) !important;
}

/* Input Fields in Dark Mode */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background-color: var(--s2) !important;
    color: var(--t1) !important;
    border-color: var(--ln) !important;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    direction: rtl;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Container */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
.site-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    color: var(--navy);
}

.brand-badge {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
    padding: 6px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==========================================================================
   Modern, Animated & Tactile Button System (Iran Salem UI Engine)
   ========================================================================== */

/* 1. Base Universal Button Micro-interactions */
button:not(:disabled):not(.no-hover),
input[type="button"]:not(:disabled):not(.no-hover),
input[type="submit"]:not(:disabled):not(.no-hover),
.btn:not(.no-hover),
a.btn:not(.no-hover) {
    position: relative;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1),
                box-shadow 0.22s cubic-bezier(0.2, 0, 0, 1),
                background-color 0.2s ease,
                border-color 0.2s ease,
                filter 0.2s ease,
                color 0.2s ease;
    will-change: transform, box-shadow;
}

/* 2. Standard Button Elevation on Hover (Excluding absolute centered elements) */
button:not([style*="translateY(-50%)"]):not(:disabled):not(.no-hover):hover,
input[type="button"]:not(:disabled):not(.no-hover):hover,
input[type="submit"]:not(:disabled):not(.no-hover):hover,
.btn:not(.no-hover):hover,
a.btn:not(.no-hover):hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

/* 3. Physical Press (Active Click) Feedback */
button:not([style*="translateY(-50%)"]):not(:disabled):not(.no-hover):active,
input[type="button"]:not(:disabled):not(.no-hover):active,
input[type="submit"]:not(:disabled):not(.no-hover):active,
.btn:not(.no-hover):active,
a.btn:not(.no-hover):active {
    transform: translateY(1px) scale(0.98);
    filter: brightness(0.96);
    transition-duration: 0.08s;
}

/* Absolute positioned buttons (e.g. search bar camera button) */
button[style*="translateY(-50%)"]:not(:disabled):not(.no-hover):hover {
    transform: translateY(-50%) scale(1.1) !important;
    filter: brightness(1.1);
}
button[style*="translateY(-50%)"]:not(:disabled):not(.no-hover):active {
    transform: translateY(-50%) scale(0.94) !important;
    transition-duration: 0.08s;
}

/* 4. Accessible Focus Outline */
button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
.btn:focus-visible,
a.btn:focus-visible {
    outline: 2px solid var(--pr, #1F6FB5);
    outline-offset: 3px;
}

/* 5. Disabled State */
button:disabled,
button[disabled],
input[type="button"]:disabled,
input[type="submit"]:disabled,
.btn.disabled,
.btn:disabled {
    cursor: not-allowed !important;
    opacity: 0.55 !important;
    transform: none !important;
    box-shadow: none !important;
    filter: grayscale(20%) !important;
    pointer-events: none;
}

/* 6. Subtle Light Sweep Shimmer Animation */
.btn-primary,
.btn-navy,
.btn-sheen,
.store-rx-submit-btn,
button[type="submit"]:not(.no-sheen) {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-navy::after,
.btn-sheen::after,
.store-rx-submit-btn::after,
button[type="submit"]:not(.no-sheen)::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(
        115deg,
        transparent 20%,
        rgba(255, 255, 255, 0.22) 48%,
        rgba(255, 255, 255, 0.32) 50%,
        rgba(255, 255, 255, 0.22) 52%,
        transparent 80%
    );
    transform: translateX(130%);
    pointer-events: none;
    transition: transform 0.65s cubic-bezier(0.2, 0, 0, 1);
    border-radius: inherit;
}

.btn-primary:hover::after,
.btn-navy:hover::after,
.btn-sheen:hover::after,
.store-rx-submit-btn:hover::after,
button[type="submit"]:not(.no-sheen):hover::after {
    transform: translateX(-130%);
}

/* 7. Icon Micro-Animations inside Buttons */
button:not(:disabled):hover .material-symbols-rounded,
.btn:hover .material-symbols-rounded,
button:not(:disabled):hover svg,
.btn:hover svg {
    transform: scale(1.12);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

button:not(:disabled):active .material-symbols-rounded,
.btn:active .material-symbols-rounded {
    transform: scale(0.96);
    transition-duration: 0.08s;
}

/* 8. Specific Variants */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary, #EE7F40);
    color: #fff;
    box-shadow: 0 3px 10px rgba(238, 127, 64, 0.25);
}
.btn-primary:hover {
    background: var(--primary-hover, #D86A2D);
    box-shadow: 0 8px 22px -3px rgba(238, 127, 64, 0.45);
}

.btn-navy {
    background: var(--navy, #174E86);
    color: #fff;
    box-shadow: 0 3px 10px rgba(23, 78, 134, 0.25);
}
.btn-navy:hover {
    background: var(--navy-dark, #0E2A4A);
    box-shadow: 0 8px 22px -3px rgba(23, 78, 134, 0.4);
}

.btn-blue {
    background: #1F6FB5;
    color: #fff;
    box-shadow: 0 3px 10px rgba(31, 111, 181, 0.25);
}
.btn-blue:hover {
    background: #17548A;
    box-shadow: 0 8px 22px -3px rgba(31, 111, 181, 0.45);
}

.btn-success {
    background: var(--gr, #1E9E5E);
    color: #fff;
    box-shadow: 0 3px 10px rgba(30, 158, 94, 0.25);
}
.btn-success:hover {
    background: #15824C;
    box-shadow: 0 8px 22px -3px rgba(30, 158, 94, 0.45);
}

.btn-danger {
    background: var(--er, #C23A3A);
    color: #fff;
    box-shadow: 0 3px 10px rgba(194, 58, 58, 0.25);
}
.btn-danger:hover {
    background: #9E2E2E;
    box-shadow: 0 8px 22px -3px rgba(194, 58, 58, 0.42);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-color, #E2E8F0);
    color: var(--text-main, #1D2433);
}
.btn-outline:hover {
    background: var(--navy-light, #EBF2F9);
    border-color: var(--navy, #174E86);
    color: var(--navy, #174E86);
    box-shadow: 0 4px 14px rgba(23, 78, 134, 0.12);
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--t2, #5A6274);
}
.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--t1, #1D2433);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 10px;
}

.btn-lg {
    padding: 13px 28px;
    font-size: 15px;
    border-radius: 16px;
}

/* 9. Dynamic Hue Matching Shadows for Styled Buttons */
button[style*="background: #EE7F40"]:hover,
button[style*="background:#EE7F40"]:hover,
button[style*="var(--primary)"]:hover,
button[style*="--primary"]:hover {
    box-shadow: 0 8px 22px -3px rgba(238, 127, 64, 0.45) !important;
}

button[style*="background: #1F6FB5"]:hover,
button[style*="background:#1F6FB5"]:hover,
button[style*="var(--pr)"]:hover,
button[style*="--pr"]:hover,
button[style*="background: #193A70"]:hover,
button[style*="background:#193A70"]:hover {
    box-shadow: 0 8px 22px -3px rgba(31, 111, 181, 0.4) !important;
}

button[style*="background: #1E9E5E"]:hover,
button[style*="background:#1E9E5E"]:hover,
button[style*="var(--gr)"]:hover,
button[style*="--gr"]:hover {
    box-shadow: 0 8px 22px -3px rgba(30, 158, 94, 0.42) !important;
}

button[style*="background: #C23A3A"]:hover,
button[style*="background:#C23A3A"]:hover,
button[style*="var(--er)"]:hover,
button[style*="--er"]:hover {
    box-shadow: 0 8px 20px -3px rgba(194, 58, 58, 0.4) !important;
}

button[style*="var(--s1)"]:hover,
button[style*="--s1"]:hover,
button[style*="background: #FFFFFF"]:hover,
button[style*="background:#FFFFFF"]:hover,
button[style*="background: #fff"]:hover,
button[style*="background:#fff"]:hover {
    box-shadow: 0 6px 16px -2px rgba(29, 36, 51, 0.12) !important;
}

button[style*="var(--prt)"]:hover,
button[style*="--prt"]:hover {
    box-shadow: 0 6px 16px -2px rgba(31, 111, 181, 0.18) !important;
}

/* 10. Store Stepper and Add to Cart Buttons */
.btn-single-add {
    transition: transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.2s, box-shadow 0.2s !important;
}
.btn-single-add:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 6px 16px rgba(31, 111, 181, 0.45) !important;
}
.btn-single-add:active {
    transform: scale(0.94) !important;
}

.btn-step-plus,
.btn-step-minus {
    transition: transform 0.18s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.15s !important;
}
.btn-step-plus:hover,
.btn-step-minus:hover {
    transform: scale(1.12) !important;
}
.btn-step-plus:active,
.btn-step-minus:active {
    transform: scale(0.9) !important;
}

/* 11. Modal Close & Icon-only Buttons */
button[style*="border-radius: 50%"]:hover,
button[onclick*="close"]:hover,
button[onclick*="Close"]:hover,
.modal-close-btn:hover {
    transform: scale(1.12) rotate(4deg) !important;
}
button[style*="border-radius: 50%"]:active,
button[onclick*="close"]:active,
button[onclick*="Close"]:active,
.modal-close-btn:active {
    transform: scale(0.92) !important;
}

/* 12. Panel Navigation Items (Sidebar Tabs) */
.admin-nav-item,
.pharmacy-nav-item,
.doctor-nav-item {
    transition: transform 0.22s cubic-bezier(0.34, 1.3, 0.64, 1), background-color 0.2s ease, color 0.2s ease !important;
}
.admin-nav-item:hover,
.pharmacy-nav-item:hover,
.doctor-nav-item:hover {
    transform: translateX(-4px) !important;
}
.admin-nav-item:active,
.pharmacy-nav-item:active,
.doctor-nav-item:active {
    transform: translateX(-2px) scale(0.98) !important;
}

/* 13. Accessibility: Prefers-Reduced-Motion */
@media (prefers-reduced-motion: reduce) {
    button,
    input[type="button"],
    input[type="submit"],
    .btn,
    .btn::after,
    .btn-primary::after,
    .btn-navy::after,
    .admin-nav-item,
    .pharmacy-nav-item,
    .doctor-nav-item,
    .btn-single-add,
    .btn-step-plus,
    .btn-step-minus {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

/* Hero Section */
.hero-section {
    padding: 70px 0 50px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(238, 127, 64, 0.2);
}

.hero-title {
    font-size: 46px;
    font-weight: 900;
    line-height: 1.25;
    color: var(--navy);
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--primary);
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.badge-feature {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.badge-item svg {
    color: var(--success);
}

/* Hero Mockup Cards */
.mockup-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.family-strip {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.avatar-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-page);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--border-color);
}

.avatar-chip.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

/* Feature Cards Grid */
.features-section {
    padding: 70px 0;
}

.section-title-wrap {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 16px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.card-icon.coral {
    background: var(--primary-light);
    color: var(--primary);
}

.card-icon.blue {
    background: var(--navy-light);
    color: var(--navy);
}

.card-icon.green {
    background: var(--success-bg);
    color: var(--success);
}

.card-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
}

.card-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* App Modules & Tabs */
.app-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin: 40px 0;
}

.sidebar-menu {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    height: fit-content;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding-right: 6px;
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.menu-item.active a, .menu-item a:hover {
    background: var(--navy-light);
    color: var(--navy);
}

@media (max-width: 860px) {
    .container {
        max-width: 100% !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }

    .app-layout {
        grid-template-columns: 1fr !important;
        margin: 16px 0 32px 0 !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .sidebar-menu {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 4px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .sidebar-title,
    .sidebar-security-box {
        display: none !important;
    }

    .menu-list {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 8px !important;
        padding: 4px 2px 8px 2px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .menu-list::-webkit-scrollbar {
        display: none !important;
    }

    .menu-item {
        flex-shrink: 0 !important;
    }

    .menu-item a {
        padding: 8px 14px !important;
        border-radius: 12px !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        background: var(--card-bg) !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: var(--shadow-soft) !important;
        white-space: nowrap !important;
        gap: 8px !important;
    }

    .menu-item.active a {
        background: var(--navy) !important;
        color: #ffffff !important;
        border-color: var(--navy) !important;
        box-shadow: 0 4px 12px rgba(14, 42, 74, 0.25) !important;
    }

    main {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}

.member-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 900px) {
    .member-metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .member-metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
    }
}

.member-metric-card {
    background: var(--card-bg);
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}

@media (max-width: 480px) {
    .member-metric-card {
        padding: 12px 14px !important;
    }
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(23, 78, 134, 0.1);
}

/* Tables */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.custom-table th {
    background: var(--bg-page);
    padding: 12px 16px;
    text-align: right;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.custom-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

/* Severity Badges */
.badge-critical {
    background: var(--danger-bg);
    color: var(--danger);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.badge-moderate {
    background: var(--warning-bg);
    color: var(--warning);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.badge-minor {
    background: var(--navy-light);
    color: var(--navy);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

/* Site Footer */
.site-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 18px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .app-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 32px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Web Shell, Sidebar & Navigation Tokens & Classes
   ========================================================================== */
.web-shell {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background: var(--bg);
    color: var(--t1);
    direction: rtl;
    font-family: 'Vazirmatn', system-ui, sans-serif;
    overflow-x: hidden;
}

.web-shell-sidebar {
    width: 272px;
    flex-shrink: 0;
    background: var(--s1);
    box-shadow: -10px 0 30px -24px rgba(60,40,20,.4);
    border-left: 1px solid var(--ln);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 14px;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 50;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

[data-theme="dark"] .web-shell-sidebar {
    box-shadow: -10px 0 30px -20px rgba(0,0,0,.7);
}

.shell-nav-item {
    height: 41px;
    padding: 0 12px;
    border-radius: 15px;
    background: transparent;
    color: var(--t2);
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.shell-nav-item:hover {
    background: var(--s2);
    color: var(--t1);
}

.shell-nav-item.active {
    background: var(--prt);
    color: var(--prti);
}

.shell-nav-item.active .material-symbols-rounded {
    font-variation-settings: 'FILL' 1;
}

.shell-nav-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    box-sizing: border-box;
    border-radius: 83px;
    background: #EE7F40;
    color: #2A1306;
    font-size: 11.5px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.web-shell-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.web-shell-header {
    height: 72px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 32px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--ln);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 40;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.web-shell-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .web-shell {
        flex-direction: column;
    }
    .web-shell-sidebar {
        display: none !important;
    }
    .web-shell-header {
        height: 56px;
        padding: 0 16px;
    }
    .web-shell-main {
        height: auto;
        min-height: 100vh;
    }
    .web-shell-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: var(--s1);
        border-top: 1px solid var(--ln);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
        z-index: 9999;
        align-items: center;
        justify-content: space-around;
        padding: 0 8px;
        box-sizing: border-box;
        backdrop-filter: blur(12px);
    }
    .bottom-nav-action {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--t2);
        text-decoration: none;
        font-size: 11px;
        font-weight: 800;
        padding: 6px 0;
        position: relative;
        transition: color 0.15s ease;
    }
    .bottom-nav-action.active {
        color: var(--pr);
    }
    .bottom-nav-action.active .material-symbols-rounded {
        font-variation-settings: 'FILL' 1;
    }
    .bottom-nav-badge {
        position: absolute;
        top: 4px;
        right: calc(50% - 16px);
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 10px;
        background: #EE7F40;
        color: #2A1306;
        font-size: 10px;
        font-weight: 900;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ==========================================================================
   Responsive View Switching (Desktop >= 769px, Mobile <= 768px)
   ========================================================================== */
@media (min-width: 769px) {
    .iran-salem-mobile-view {
        display: none !important;
    }
    .iran-salem-desktop-view {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 100% !important;
    }
    .standard-header-mobile {
        display: none !important;
    }
    .standard-header-desktop {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    .iran-salem-desktop-view {
        display: none !important;
    }
    .iran-salem-mobile-view {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .standard-header-desktop {
        display: none !important;
    }
    .standard-header-mobile {
        display: flex !important;
    }

    /* Store / Marketplace Mobile Responsive Overhaul */
    .store-category-nav {
        top: 54px !important;
    }
    
    .store-nav-container,
    .store-container-inner,
    .store-main-container {
        padding: 16px 14px !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    .store-hero-section {
        padding: 24px 0 20px !important;
    }

    .store-hero-row {
        gap: 16px !important;
        margin-bottom: 18px !important;
    }

    .store-hero-row h1 {
        font-size: 24px !important;
        line-height: 1.35 !important;
    }

    .store-deals-header,
    .store-catalog-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .store-deals-header h2,
    .store-catalog-header h2 {
        font-size: 20px !important;
        line-height: 1.4 !important;
        word-break: break-word !important;
    }

    .store-search-form {
        flex-direction: column !important;
        width: 100% !important;
        padding: 8px !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }

    .store-search-form > div {
        width: 100% !important;
        padding: 0 8px !important;
        box-sizing: border-box !important;
    }

    .store-search-form button {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .cards-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .feature-card {
        padding: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 20px !important;
    }
}

/* ==========================================================================
   Redesigned Category Navigation & Visual Showcase (E-Commerce Standard)
   ========================================================================== */
.store-category-nav {
    background: #FFFFFF;
    border-bottom: 1px solid var(--ln);
    position: sticky;
    top: 74px;
    z-index: 99;
    box-shadow: 0 4px 16px -8px rgba(14, 42, 74, 0.08);
    transition: top 0.2s ease;
}

.store-nav-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 54px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
}

.store-container-inner,
.store-main-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding-left: 54px !important;
    padding-right: 54px !important;
    box-sizing: border-box !important;
}

.store-deals-grid,
.store-products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (min-width: 1440px) {
    .store-deals-grid,
    .store-products-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1100px) and (max-width: 1439px) {
    .store-deals-grid,
    .store-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 769px) and (max-width: 1099px) {
    .store-deals-grid,
    .store-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Category Dropdown Trigger */
.cat-dropdown-wrapper {
    position: relative;
}

.cat-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--s2);
    color: var(--hd);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    border: 1px solid var(--ln);
    transition: all 0.2s ease;
    user-select: none;
}

.cat-dropdown-btn:hover {
    background: var(--s3);
    border-color: rgba(31, 111, 181, 0.3);
}

.cat-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 20px 45px -12px rgba(14, 42, 74, 0.22);
    border: 1px solid var(--ln);
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
    animation: catMenuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-dropdown-menu.show {
    display: flex;
}

@media (min-width: 992px) {
    .cat-dropdown-wrapper:hover .cat-dropdown-menu {
        display: flex;
    }
}

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

.cat-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--t1);
    transition: all 0.15s ease;
}

.cat-dropdown-item:hover {
    background: var(--s2);
    transform: translateX(-3px);
}

.cat-dropdown-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Desktop Horizontal Category Links */
.store-desktop-cats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 14px;
}

.store-cat-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--t2);
    text-decoration: none;
    padding: 6px 0;
    position: relative;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.store-cat-link:hover {
    color: var(--pr);
}

.store-cat-link.active {
    color: var(--hd);
    font-weight: 900;
}

.store-cat-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2.5px;
    background: var(--pr);
    border-radius: 3px;
}

/* Mobile Category Chips Slider */
.store-mobile-chips {
    display: none;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 8px 14px;
    gap: 8px;
    box-sizing: border-box;
}

.store-mobile-chips::-webkit-scrollbar {
    display: none;
}

.store-chip-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 35px;
    padding: 0 14px;
    border-radius: 18px;
    background: var(--s1);
    border: 1px solid var(--ln);
    color: var(--t1);
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.store-chip-item.active {
    background: var(--hd);
    border-color: var(--hd);
    color: #FFFFFF;
    font-weight: 900;
    box-shadow: 0 4px 12px -3px rgba(25, 58, 112, 0.45);
}

/* Visual Category Cards Grid Section */
.store-category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.store-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 10px 14px;
    border-radius: 22px;
    background: var(--s1);
    border: 1.5px solid transparent;
    box-shadow: var(--e1);
    text-decoration: none;
    color: var(--t1);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.store-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--e2);
    border-color: rgba(31, 111, 181, 0.25);
}

.store-cat-card.active {
    border-color: var(--pr);
    background: var(--s1);
    box-shadow: 0 8px 24px -6px rgba(31, 111, 181, 0.28);
}

.store-cat-icon-box {
    width: 66px;
    height: 66px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: transform 0.22s ease;
}

.store-cat-card:hover .store-cat-icon-box {
    transform: scale(1.08);
}

.store-cat-name {
    font-size: 13.5px;
    font-weight: 900;
    color: var(--hd);
    margin-bottom: 3px;
    line-height: 1.4;
}

.store-cat-sub {
    font-size: 11.5px;
    color: var(--t2);
    font-weight: 600;
}

@media (max-width: 992px) {
    .store-category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .store-desktop-cats,
    .cat-dropdown-wrapper,
    .store-nav-container > div:last-child {
        display: none !important;
    }

    .store-category-nav {
        top: 54px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }

    .store-nav-container {
        height: auto !important;
        padding: 0 !important;
        display: block !important;
    }

    .store-mobile-chips {
        display: flex !important;
    }

    .store-category-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }

    .store-cat-card {
        padding: 14px 6px 10px !important;
        border-radius: 18px !important;
    }

    .store-cat-icon-box {
        width: 50px !important;
        height: 50px !important;
        border-radius: 16px !important;
        margin-bottom: 8px !important;
    }

    .store-cat-icon-box .material-symbols-rounded {
        font-size: 24px !important;
    }

    .store-cat-name {
        font-size: 12px !important;
    }

    .store-cat-sub {
        display: none !important;
    }
}

/* Container query inline support for mobile top-level host */
.iran-salem-mobile-view > .sc-host {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
}

/* Ensure logo inside mobile views retains its natural width and does not stretch or shrink */
.iran-salem-mobile-view .sc-host[data-sc-name="Logo"],
.standard-header-mobile .sc-host[data-sc-name="Logo"] {
    width: auto !important;
    max-width: none !important;
    display: inline-flex !important;
    flex-shrink: 0 !important;
}

/* Mobile Header Hamburger Menu - Perfect 37x37 Square */
.iran-salem-mobile-view [onclick*="openMobileNav"],
.standard-header-mobile [onclick*="openMobileNav"] {
    width: 37px !important;
    height: 37px !important;
    min-width: 37px !important;
    min-height: 37px !important;
    max-width: 37px !important;
    max-height: 37px !important;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0 !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/* Mobile Header CTA Button - Single Line, Never Wraps */
.iran-salem-mobile-view a[href="/app"],
.standard-header-mobile a[href="/app"] {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ==========================================================================
   Mobile Navigation Drawer & Backdrop
   ========================================================================== */
.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(14, 42, 74, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--s1);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.22);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
    visibility: hidden;
    direction: rtl;
    font-family: 'Vazirmatn', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.mobile-nav-drawer.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    color: var(--t1);
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.mobile-nav-item:hover, .mobile-nav-item:active {
    background: var(--s2);
    color: var(--pr);
}

.mobile-nav-item .material-symbols-rounded {
    font-size: 20px;
    color: var(--pr);
    font-variation-settings: 'FILL' 1;
}

/* ==========================================================================
   Store Advanced Filters, Pharmacy Badges & Prescription Modal
   ========================================================================== */
.store-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 12px 18px;
    background: var(--s1);
    border: 1px solid var(--ln);
    border-radius: 18px;
    box-shadow: var(--e1);
}

.store-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 12px;
    background: var(--s2);
    border: 1px solid var(--ln);
    color: var(--t1);
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.store-filter-pill:hover {
    background: var(--s3);
    border-color: rgba(31, 111, 181, 0.3);
}

.store-filter-pill.active {
    background: var(--hd);
    color: #FFFFFF;
    border-color: var(--hd);
    font-weight: 900;
}

.rx-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(14, 42, 74, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.rx-modal-backdrop.active {
    display: flex;
}

.rx-modal-card {
    background: var(--s1);
    border-radius: 28px;
    width: 540px;
    max-width: 95vw;
    box-shadow: 0 25px 60px -15px rgba(14, 42, 74, 0.35);
    padding: 28px;
    box-sizing: border-box;
    position: relative;
    direction: rtl;
    border: 1px solid var(--ln);
    animation: rxModalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rxModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.product-details-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 860px) {
    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Store Online Prescription Banner */
.store-rx-banner {
    margin-bottom: 45px;
    background: linear-gradient(135deg, #0E2A4A 0%, #174E86 100%);
    border-radius: 28px;
    padding: 32px 40px;
    color: #ffffff;
    box-shadow: var(--e2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-sizing: border-box;
    width: 100%;
}

.store-rx-banner-content {
    max-width: 640px;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

.store-rx-banner-form {
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 22px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 440px;
    max-width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.store-rx-form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.store-rx-submit-btn {
    flex: 1;
    height: 44px;
    border-radius: 12px;
    background: #00A25D;
    color: #ffffff;
    border: none;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(0, 162, 93, 0.4);
    box-sizing: border-box;
    white-space: nowrap;
}

.store-rx-photo-btn {
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
    white-space: nowrap;
}

@media (max-width: 860px) {
    .store-rx-banner {
        padding: 24px 18px !important;
        border-radius: 22px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 20px !important;
    }
    .store-rx-banner-content {
        max-width: 100% !important;
    }
    .store-rx-banner-content h3 {
        font-size: 20px !important;
    }
    .store-rx-banner-form {
        width: 100% !important;
        padding: 18px 14px !important;
    }
}

@media (max-width: 440px) {
    .store-rx-form-actions {
        flex-direction: column !important;
    }
    .store-rx-submit-btn,
    .store-rx-photo-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

.store-pharmacies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .store-pharmacies-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
}

.store-trust-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 45px;
    background: var(--s2);
    border-radius: 22px;
    padding: 20px 24px;
    border: 1px solid var(--ln);
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .store-trust-bar {
        grid-template-columns: 1fr !important;
        padding: 16px !important;
        gap: 14px !important;
    }
}

.store-safety-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    background: var(--prt);
    border-radius: 24px;
    padding: 32px 36px;
    border: 1px solid rgba(31, 111, 181, 0.2);
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .store-safety-callout {
        padding: 20px 16px !important;
        gap: 16px !important;
    }
}

/* ==========================================================================
   Store Catalog Header, Sorting Bar & Responsive Filter Strip
   ========================================================================== */
.store-catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 14px;
    box-sizing: border-box;
    width: 100%;
}

.store-sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    max-width: 100%;
}

.store-sort-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--t2);
    font-weight: 800;
    flex-shrink: 0;
    white-space: nowrap;
}

.store-sort-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
    background: var(--s1);
    color: var(--t2);
    border: 1px solid var(--ln);
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.store-sort-pill:hover {
    background: var(--s2);
    color: var(--hd);
}

.store-sort-pill.active {
    background: var(--hd);
    color: #ffffff;
    border-color: var(--hd);
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(14, 42, 74, 0.2);
}

@media (max-width: 768px) {
    .store-catalog-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .store-sort-bar {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding: 4px 2px 6px 2px !important;
    }
    .store-sort-bar::-webkit-scrollbar {
        display: none !important;
    }

    .store-sort-pill {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }

    .store-filter-bar {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding: 10px 14px !important;
        border-radius: 14px !important;
        gap: 8px !important;
    }
    .store-filter-bar::-webkit-scrollbar {
        display: none !important;
    }
    .store-filter-bar span:first-child {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    .store-filter-pill {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
}

/* Home Page Marketplace Section & Best-Selling Cards */
.market-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 1.25fr;
    gap: 15px;
}

.home-cat-pill {
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.home-cat-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    filter: brightness(0.97);
}

.home-product-card {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.home-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(14, 42, 74, 0.1);
}

@media (max-width: 1200px) {
    .market-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 860px) {
    .market-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

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

/* ==========================================================================
   Iran Salem Unified Dashboard Design System Components (ProtoKit Standard)
   ========================================================================== */
.salem-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1100px) {
    .salem-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 580px) {
    .salem-kpi-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.salem-stat-card {
    background: var(--s1, #FFFFFF);
    border: 1px solid var(--ln, rgba(60,40,20,.12));
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow: var(--e1, 0 4px 16px -2px rgba(23,78,134,0.06));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.salem-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--e2, 0 10px 24px -4px rgba(23,78,134,0.12));
    border-color: var(--fr, rgba(31,111,181,.28));
}

.salem-stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.salem-stat-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
}

.salem-stat-icon-primary {
    background: var(--prt, #E4EEF8);
    color: var(--prti, #174E86);
}

.salem-stat-icon-success {
    background: var(--grt, #E3F2E5);
    color: var(--grti, #17633D);
}

.salem-stat-icon-warning {
    background: var(--wat, #FFF4D6);
    color: var(--wa, #8A6100);
}

.salem-stat-icon-danger {
    background: var(--ert, #FBE4E0);
    color: var(--er, #C23A3A);
}

.salem-stat-icon-accent {
    background: var(--apt, #FDEBDC);
    color: var(--apti, #A84B12);
}

.salem-stat-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--t2, #5A6274);
    line-height: 1.4;
}

.salem-stat-body {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.salem-stat-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--hd, #193A70);
    font-family: 'Vazirmatn', sans-serif;
    letter-spacing: -0.5px;
}

.salem-stat-unit {
    font-size: 12px;
    font-weight: 700;
    color: var(--t3, #8A90A0);
    margin-right: 4px;
}

.salem-stat-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--t3, #8A90A0);
    border-top: 1px dashed var(--ln, rgba(60,40,20,.12));
    padding-top: 10px;
    margin-top: 2px;
}

/* Chips & Status Badges */
.salem-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
}

.salem-chip .salem-chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.salem-chip-success {
    background: var(--grt, #E3F2E5);
    color: var(--grti, #17633D);
    border-color: rgba(30,158,94,0.2);
}
.salem-chip-success .salem-chip-dot {
    background: var(--gr, #1E9E5E);
}

.salem-chip-warning {
    background: var(--wat, #FFF4D6);
    color: var(--wa, #8A6100);
    border-color: rgba(245,158,11,0.25);
}
.salem-chip-warning .salem-chip-dot {
    background: #F59E0B;
}

.salem-chip-danger {
    background: var(--ert, #FBE4E0);
    color: var(--er, #C23A3A);
    border-color: rgba(194,58,58,0.25);
}
.salem-chip-danger .salem-chip-dot {
    background: var(--er, #C23A3A);
}

.salem-chip-info {
    background: var(--prt, #E4EEF8);
    color: var(--prti, #174E86);
    border-color: rgba(31,111,181,0.2);
}
.salem-chip-info .salem-chip-dot {
    background: var(--pr, #1F6FB5);
}

.salem-chip-accent {
    background: var(--apt, #FDEBDC);
    color: var(--apti, #A84B12);
    border-color: rgba(238,127,64,0.25);
}
.salem-chip-accent .salem-chip-dot {
    background: var(--primary, #EE7F40);
}

.salem-chip-neutral {
    background: var(--s2, #F6F3EE);
    color: var(--t2, #5A6274);
    border-color: var(--ln, rgba(60,40,20,.12));
}
.salem-chip-neutral .salem-chip-dot {
    background: var(--t3, #8A90A0);
}

/* Data Tables */
.salem-table-container {
    background: var(--s1, #FFFFFF);
    border: 1px solid var(--ln, rgba(60,40,20,.12));
    border-radius: 20px;
    box-shadow: var(--e1, 0 4px 16px -2px rgba(23,78,134,0.06));
    overflow: hidden;
    margin-bottom: 24px;
}

.salem-table-wrapper {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.salem-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 13px;
    color: var(--t1, #1D2433);
    direction: rtl;
}

.salem-table th {
    background: var(--s2, #F6F3EE);
    color: var(--t2, #5A6274);
    font-weight: 800;
    padding: 14px 18px;
    border-bottom: 1.5px solid var(--ln, rgba(60,40,20,.12));
    white-space: nowrap;
    font-size: 12.5px;
}

.salem-table td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--ln, rgba(60,40,20,.08));
    vertical-align: middle;
    transition: background-color 0.15s ease;
}

.salem-table tbody tr:last-child td {
    border-bottom: none;
}

.salem-table tbody tr:hover td {
    background: rgba(31,111,181, 0.035);
}

[data-theme="dark"] .salem-table tbody tr:hover td {
    background: rgba(158,211,245, 0.05);
}

/* Action Bars & Filters */
.salem-action-bar {
    background: var(--s1, #FFFFFF);
    border: 1px solid var(--ln, rgba(60,40,20,.12));
    border-radius: 18px;
    padding: 12px 18px;
    box-shadow: var(--e1, 0 4px 16px -2px rgba(23,78,134,0.06));
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.salem-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--s2, #F6F3EE);
    border: 1px solid var(--ln, rgba(60,40,20,.12));
    border-radius: 12px;
    padding: 6px 12px;
    min-width: 240px;
    flex: 1;
    max-width: 380px;
}

.salem-search-input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 13px;
    font-family: 'Vazirmatn', sans-serif;
    color: var(--t1, #1D2433);
}

.salem-filter-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 2px;
}

.salem-filter-pill {
    background: var(--s2, #F6F3EE);
    border: 1px solid var(--ln, rgba(60,40,20,.12));
    color: var(--t2, #5A6274);
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.salem-filter-pill:hover,
.salem-filter-pill.active {
    background: var(--prt, #E4EEF8);
    color: var(--prti, #174E86);
    border-color: rgba(31,111,181,0.3);
}

[data-theme="dark"] .salem-filter-pill:hover,
[data-theme="dark"] .salem-filter-pill.active {
    background: var(--prt, #24384F);
    color: var(--prti, #9ED3F5);
    border-color: rgba(158,211,245,0.3);
}

/* Dark Theme Specific Adaptations for Salem Components */
[data-theme="dark"] .salem-stat-card,
[data-theme="dark"] .salem-table-container,
[data-theme="dark"] .salem-action-bar {
    background: var(--s1, #1F242C) !important;
    border-color: var(--ln, rgba(255, 255, 255, 0.10)) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .salem-stat-value {
    color: var(--t1, #EEF0F4) !important;
}

[data-theme="dark"] .salem-table th {
    background: var(--s2, #272D37) !important;
    color: var(--t2, #A3ABB9) !important;
    border-bottom-color: var(--ln, rgba(255, 255, 255, 0.10)) !important;
}

[data-theme="dark"] .salem-table td {
    border-bottom-color: var(--ln, rgba(255, 255, 255, 0.06)) !important;
    color: var(--t1, #EEF0F4) !important;
}

[data-theme="dark"] .salem-search-box,
[data-theme="dark"] .salem-filter-pill {
    background: var(--s2, #272D37) !important;
    border-color: var(--ln, rgba(255, 255, 255, 0.10)) !important;
    color: var(--t1, #EEF0F4) !important;
}

/* Global Responsive & Overflow-X Containment */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

.iran-salem-page-wrapper {
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

.table-scroll-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
    position: relative;
}

.table-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}

.table-scroll-wrapper::-webkit-scrollbar-track {
    background: var(--s2, #F6F3EE);
    border-radius: 6px;
}

.table-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--ln, rgba(60,40,20,.2));
    border-radius: 6px;
}

@media (max-width: 768px) {
    .iran-salem-mobile-view {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .iran-salem-mobile-view .table-scroll-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .iran-salem-mobile-view .pricing-cards-grid {
        grid-template-columns: 1fr !important;
    }

    .iran-salem-mobile-view * {
        box-sizing: border-box;
    }
}

/* Ensure desktop view scales and centers properly without overflow */
@media (min-width: 769px) {
    .iran-salem-desktop-view {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    .iran-salem-desktop-view > div {
        transform-origin: top center;
    }
}

@media (min-width: 769px) and (max-width: 1439.98px) {
    .iran-salem-desktop-view > div {
        zoom: calc(100vw / 1440) !important;
    }
}

@media (min-width: 1440px) {
    .iran-salem-desktop-view > div {
        zoom: 1 !important;
    }
}




