/* ==========================================================================
   DigiElectro Pro - Unified, Conflict-Free, Modern Persian eCommerce CSS
   Designed for High Performance, 100% Offline Local Fonts & Vector SVG
   ========================================================================== */

/* ==================== Local Embedded Vazirmatn Webfonts ==================== */
@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Black.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #d81b33;
    --primary-hover: #b91c1c;
    --primary-light: #fff1f2;
    --secondary: #0369a1;
    --secondary-hover: #075985;
    --secondary-light: #e0f2fe;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #475569;
    --success: #047857;
    --success-light: #ecfdf5;
    --warning: #b45309;
    --warning-light: #fffbeb;
    --danger: #b91c1c;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.16);
    --transition: 0.2s ease;
    --transition-fast: 0.15s ease;
    --font-family: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Tahoma, sans-serif;
    --font-main: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Tahoma, sans-serif;
}

/* ==================== Reset & Base ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
button, input, optgroup, select, textarea {
    font-family: var(--font-family);
}
html {
    direction: rtl;
    font-size: 16px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
}
body {
    font-family: var(--font-family);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.no-scroll {
    overflow: hidden;
}

/* ==================== Unified Sleek & Thin Scrollbars (Storefront & Admin) ==================== */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
    border-radius: 999px;
    border: 1.5px solid #f1f5f9;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #64748b 0%, #475569 100%);
}
::-webkit-scrollbar-thumb:active {
    background: var(--primary);
}
::-webkit-scrollbar-corner {
    background: transparent;
}

/* Extra-slim 5px scrollbars for internal menus, dropdowns, tables, modals & textareas */
.admin-sidebar-scrollable,
.table-responsive,
.live-search-dropdown,
.live-search-list,
.notif-dropdown-list,
.cat-dropdown-items-wrap,
.mobile-drawer,
.invoice-scroll-container,
dialog,
textarea,
select[multiple] {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.admin-sidebar-scrollable::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.live-search-dropdown::-webkit-scrollbar,
.live-search-list::-webkit-scrollbar,
.notif-dropdown-list::-webkit-scrollbar,
.cat-dropdown-items-wrap::-webkit-scrollbar,
.mobile-drawer::-webkit-scrollbar,
.invoice-scroll-container::-webkit-scrollbar,
dialog::-webkit-scrollbar,
textarea::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
.admin-sidebar-scrollable::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track,
.live-search-dropdown::-webkit-scrollbar-track,
.live-search-list::-webkit-scrollbar-track,
.notif-dropdown-list::-webkit-scrollbar-track,
.cat-dropdown-items-wrap::-webkit-scrollbar-track,
.mobile-drawer::-webkit-scrollbar-track,
.invoice-scroll-container::-webkit-scrollbar-track,
dialog::-webkit-scrollbar-track,
textarea::-webkit-scrollbar-track {
    background: transparent;
}
.admin-sidebar-scrollable::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.live-search-dropdown::-webkit-scrollbar-thumb,
.live-search-list::-webkit-scrollbar-thumb,
.notif-dropdown-list::-webkit-scrollbar-thumb,
.cat-dropdown-items-wrap::-webkit-scrollbar-thumb,
.mobile-drawer::-webkit-scrollbar-thumb,
.invoice-scroll-container::-webkit-scrollbar-thumb,
dialog::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
    border: none;
}
.admin-sidebar-scrollable::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover,
.live-search-dropdown::-webkit-scrollbar-thumb:hover,
.live-search-list::-webkit-scrollbar-thumb:hover,
.notif-dropdown-list::-webkit-scrollbar-thumb:hover,
.cat-dropdown-items-wrap::-webkit-scrollbar-thumb:hover,
.mobile-drawer::-webkit-scrollbar-thumb:hover,
.invoice-scroll-container::-webkit-scrollbar-thumb:hover,
dialog::-webkit-scrollbar-thumb:hover,
textarea::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}
button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}
img, svg {
    vertical-align: middle;
    max-width: 100%;
}

/* Accessibility Skip Link */
.skip-to-content {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #ffffff;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: 0 0 8px 8px;
    z-index: 999999;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(216, 27, 51, 0.4);
    transition: top 0.25s ease;
}
.skip-to-content:focus {
    top: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}
.container .container,
#mainContent > .container,
.site-main > .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* Main Content Area */
#mainContent,
.site-main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 20px;
    padding-bottom: 48px;
    box-sizing: border-box;
}

/* Flash Notifications Container */
.flash-container {
    margin-top: 15px;
    margin-bottom: 5px;
}

/* ==================== Site Header ==================== */
.site-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}
.site-header.header-scrolled {
    box-shadow: var(--shadow-md);
}

/* Top Announcement & Ad Bar (Customizable + RGB Effects) */
@keyframes topbarRgbWave {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes topbarMarqueeRtl {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
@keyframes topbarPillPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
    50%      { box-shadow: 0 0 12px 3px rgba(255, 255, 255, 0.25); }
}

.header-top {
    --topbar-anim-duration: 6s;
    background: #0f172a;
    color: #cbd5e1;
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}
.header-top.topbar-speed-fast {
    --topbar-anim-duration: 3s;
}
.header-top.topbar-speed-normal {
    --topbar-anim-duration: 6s;
}
.header-top.topbar-speed-slow {
    --topbar-anim-duration: 11s;
}

/* Preset 1: Full RGB Gaming / Neon Wave */
.header-top.topbar-style-rgb_wave {
    background: linear-gradient(90deg, #ff0055, #7000ff, #00d4ff, #00ff88, #ffaa00, #ff0055);
    background-size: 300% 300%;
    animation: topbarRgbWave var(--topbar-anim-duration) ease infinite;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
.header-top.topbar-style-rgb_wave .announcement-text,
.header-top.topbar-style-rgb_wave .meta-item,
.header-top.topbar-style-rgb_wave .meta-phone {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    font-weight: 700;
}
.header-top.topbar-style-rgb_wave .announcement-pill {
    background: rgba(15, 23, 42, 0.85);
    color: #38bdf8;
    border: 1px solid rgba(255, 255, 255, 0.35);
    animation: topbarPillPulse 2s infinite;
}

/* Preset 2: Dark Navy with Animated RGB Laser Bottom Border */
.header-top.topbar-style-rgb_border {
    background: #090d16;
    color: #f8fafc;
    border-bottom: none;
    padding-bottom: 10px;
}
.header-top.topbar-style-rgb_border::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff0055, #00f2fe, #7000ff, #00ff88, #ffea00, #ff0055);
    background-size: 300% 100%;
    animation: topbarRgbWave var(--topbar-anim-duration) linear infinite;
}
.header-top.topbar-style-rgb_border .announcement-pill {
    background: linear-gradient(90deg, #ff0055, #7000ff, #00d4ff);
    background-size: 200% 200%;
    animation: topbarRgbWave var(--topbar-anim-duration) ease infinite;
    color: #ffffff;
}

/* Preset 3: Cyberpunk Neon Pulse (Purple / Cyan / Magenta) */
.header-top.topbar-style-cyber_pulse {
    background: linear-gradient(90deg, #1e1b4b, #6d28d9, #be185d, #0369a1, #1e1b4b);
    background-size: 300% 300%;
    animation: topbarRgbWave var(--topbar-anim-duration) ease infinite;
    color: #ffffff;
}
.header-top.topbar-style-cyber_pulse .announcement-pill {
    background: #00f2fe;
    color: #0f172a;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}
.header-top.topbar-style-cyber_pulse .meta-phone {
    color: #38bdf8 !important;
}

/* Preset 4: Fire Flare Festival (Crimson / Orange / Red) */
.header-top.topbar-style-fire_flare {
    background: linear-gradient(90deg, #7f1d1d, #dc2626, #ea580c, #b91c1c, #7f1d1d);
    background-size: 300% 300%;
    animation: topbarRgbWave var(--topbar-anim-duration) ease infinite;
    color: #ffffff;
}
.header-top.topbar-style-fire_flare .announcement-pill {
    background: #fef08a;
    color: #7f1d1d;
}
.header-top.topbar-style-fire_flare .meta-item,
.header-top.topbar-style-fire_flare .meta-phone {
    color: #fffbeb !important;
}

/* Preset 5: Emerald PCB Matrix (Industrial Green) */
.header-top.topbar-style-emerald_matrix {
    background: linear-gradient(90deg, #022c22, #047857, #0d9488, #065f46, #022c22);
    background-size: 300% 300%;
    animation: topbarRgbWave var(--topbar-anim-duration) ease infinite;
    color: #ecfdf5;
}
.header-top.topbar-style-emerald_matrix .announcement-pill {
    background: #10b981;
    color: #022c22;
}
.header-top.topbar-style-emerald_matrix .meta-phone {
    color: #6ee7b7 !important;
}

/* Preset 6: Gold VIP Luxury */
.header-top.topbar-style-gold_vip {
    background: linear-gradient(90deg, #0f172a, #422006, #854d0e, #422006, #0f172a);
    background-size: 300% 300%;
    animation: topbarRgbWave var(--topbar-anim-duration) ease infinite;
    color: #fef9c3;
    border-bottom: 1px solid rgba(250, 204, 21, 0.4);
}
.header-top.topbar-style-gold_vip .announcement-pill {
    background: linear-gradient(135deg, #facc15, #eab308);
    color: #0f172a;
}
.header-top.topbar-style-gold_vip .meta-phone {
    color: #fde047 !important;
}

/* Preset 7: Aurora Borealis Galaxy Neon */
.header-top.topbar-style-aurora_borealis {
    background: linear-gradient(90deg, #090d16, #0284c7, #10b981, #6366f1, #ec4899, #090d16);
    background-size: 300% 300%;
    animation: topbarRgbWave var(--topbar-anim-duration) ease infinite;
    color: #ffffff;
}
.header-top.topbar-style-aurora_borealis .announcement-pill {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    backdrop-filter: blur(4px);
}
.header-top.topbar-style-aurora_borealis .meta-phone {
    color: #a5f3fc !important;
}

/* Preset 8: Custom Admin Color Picker */
.header-top.topbar-style-custom {
    background: var(--topbar-custom-bg, #0f172a);
    color: var(--topbar-custom-text, #f1f5f9);
}
.header-top.topbar-style-custom .announcement-text,
.header-top.topbar-style-custom .meta-item,
.header-top.topbar-style-custom .meta-phone {
    color: var(--topbar-custom-text, #f1f5f9) !important;
}
.header-top.topbar-style-custom .announcement-pill {
    background: var(--topbar-badge-bg, #ef394e);
    color: #ffffff;
}

/* Size Modes */
.header-top.topbar-size-compact {
    padding: 4px 0;
    font-size: 0.75rem;
}
.header-top.topbar-size-normal {
    padding: 8px 0;
    font-size: 0.8rem;
}
.header-top.topbar-size-large {
    padding: 12px 0;
    font-size: 0.88rem;
}

.header-top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.header-top.topbar-layout-full_ad .header-top-container {
    justify-content: center;
}
.header-top.topbar-layout-full_ad .top-announcement {
    justify-content: center;
    width: 100%;
}

.top-announcement {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.announcement-content-wrap {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: 0;
}
.header-top.topbar-layout-marquee .announcement-content-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.header-top.topbar-layout-marquee .announcement-text {
    display: inline-block;
    padding-left: 20px;
    animation: topbarMarqueeRtl 14s linear infinite;
}
.header-top.topbar-layout-marquee .announcement-content-wrap:hover .announcement-text {
    animation-play-state: paused;
}

.announcement-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--topbar-badge-bg, var(--primary));
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}
.announcement-pill.pill-pulse {
    animation: topbarPillPulse 2s infinite;
}
.announcement-coupon-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.14);
    color: #fde047;
    border: 1px dashed rgba(253, 224, 71, 0.65);
    padding: 2px 9px;
    border-radius: 6px;
    font-size: 0.73rem;
    font-family: Consolas, 'Vazirmatn', monospace;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.announcement-coupon-chip:hover {
    background: #fde047;
    color: #0f172a;
}
.announcement-text {
    font-size: 0.8rem;
    color: #f1f5f9;
    text-decoration: none;
}
.announcement-link:hover {
    text-decoration: underline;
}
.announcement-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-decoration: none !important;
    flex-shrink: 0;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}
.announcement-cta-btn:hover {
    background: #ffffff;
    color: #0f172a !important;
    transform: translateY(-1px);
}
.top-meta-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    direction: rtl;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #cbd5e1;
}
.meta-phone {
    color: #38bdf8;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}
.meta-phone:hover {
    color: #7dd3fc;
}
.meta-separator {
    color: rgba(255, 255, 255, 0.25);
}

/* Middle Header (Logo, Search, User, Cart) */
.header-middle {
    background: #ffffff;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.header-middle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Mobile Hamburger Button (Strictly hidden on desktop) */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: transparent;
    border: 1px solid var(--border);
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.mobile-menu-toggle:hover {
    background: #f1f5f9;
    color: var(--primary);
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.brand-logo .logo-emblem {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ef394e 0%, #b91c1c 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(239, 57, 78, 0.3);
    flex-shrink: 0;
}
.brand-logo .brand-name {
    font-size: 1.45rem;
    font-weight: 900;
    color: #0f172a;
    display: block;
    line-height: 1.1;
}
.brand-logo .brand-tagline {
    font-size: 0.72rem;
    color: #475569;
    font-weight: 700;
    display: block;
    margin-top: 2px;
}

/* Search Bar */
.header-search-form {
    flex: 1;
    max-width: 580px;
}
.search-input-wrapper {
    position: relative;
    display: flex;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    overflow: hidden;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(216, 27, 51, 0.12);
    background: #ffffff;
}
.search-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-family: inherit;
    color: #0f172a;
}
.search-input-wrapper input:focus {
    outline: none;
}
.search-submit-btn {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.88rem;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease;
}
.search-submit-btn:hover {
    background: var(--primary-hover);
}

/* Header Action Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.action-icon-link {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    text-decoration: none;
    position: relative;
    transition: all 0.2s;
    background: #ffffff;
}
.action-icon-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.action-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 900;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 5px rgba(216, 27, 51, 0.4);
}

/* User Account Dropdown */
.user-dropdown {
    position: relative;
}
.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #ffffff;
    color: #1e293b;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.user-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.user-avatar-icon {
    color: #475569;
    display: flex;
    align-items: center;
}
.user-name {
    font-weight: 700;
}
.user-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    width: 240px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    z-index: 100;
    display: none;
    overflow: hidden;
}
.user-dropdown.is-open .user-dropdown-menu {
    display: block;
}
.user-dropdown-header {
    padding: 14px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}
.user-dropdown-header strong {
    display: block;
    font-size: 0.9rem;
    color: #0f172a;
    margin-bottom: 4px;
}
.user-role-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}
.role-admin {
    background: #fee2e2;
    color: #b91c1c;
}
.role-user {
    background: #e0f2fe;
    color: #0369a1;
}
.dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 4px 0;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}
.dropdown-item:hover {
    background: #f8fafc;
    color: var(--primary);
}
.dropdown-item.admin-item {
    color: #b91c1c;
    font-weight: 700;
    background: #fff5f5;
}
.dropdown-item.admin-item:hover {
    background: #fee2e2;
}
.dropdown-item.logout-item {
    color: var(--danger);
}

/* Header Cart Button */
.header-cart-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0f172a;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.15);
}
.header-cart-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}
.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-icon-wrapper .action-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #0f172a;
}
.cart-btn-info {
    text-align: right;
    line-height: 1.25;
}
.cart-btn-label {
    display: block;
    font-size: 0.7rem;
    color: #cbd5e1;
    font-weight: 500;
}
.cart-btn-amount {
    display: block;
    font-size: 0.84rem;
    color: #ffffff;
    font-weight: 800;
}

/* ==================== Main Navbar ==================== */
.main-navbar {
    background: #0f172a;
    border-bottom: 3px solid var(--primary);
    color: #ffffff;
    height: 50px;
    position: relative;
    z-index: 100;
}
.main-navbar-container {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 12px;
}
.categories-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.cat-dropdown-btn {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 0 16px;
    height: 38px;
    font-size: 0.88rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap !important;
    flex-shrink: 0;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}
.cat-dropdown-btn:hover {
    background: var(--primary-hover);
}
.cat-chevron-icon {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.categories-dropdown.is-open .cat-chevron-icon {
    transform: rotate(180deg);
}

/* Upgraded Rich Modern Categories Dropdown */
.cat-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22), 0 4px 14px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    display: none;
    overflow: hidden;
    animation: catMenuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.categories-dropdown.is-open .cat-dropdown-menu,
.categories-dropdown:hover .cat-dropdown-menu {
    display: block;
}

/* Topbar inside Dropdown */
.cat-dropdown-topbar {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cat-dropdown-topbar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #334155;
}
.cat-count-pill {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Items List */
.cat-dropdown-items-wrap {
    padding: 4px 0;
    max-height: 420px;
    overflow-y: auto;
}

.cat-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #1e293b;
    text-decoration: none;
    border-bottom: 1px solid #f8fafc;
    border-right: 3px solid transparent;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-menu-item:last-child {
    border-bottom: none;
}

.cat-menu-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.cat-menu-details {
    flex: 1;
    min-width: 0;
}

.cat-menu-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cat-menu-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    transition: color 0.18s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.cat-menu-desc {
    display: block;
    font-size: 0.73rem;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.cat-menu-arrow {
    color: #cbd5e1;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* Hover States */
.cat-menu-item:hover {
    background: #fff5f5;
    border-right-color: var(--primary);
    padding-right: 19px;
}

.cat-menu-item:hover .cat-menu-icon-box {
    background: var(--primary-light);
    color: var(--primary);
    transform: scale(1.08);
}

.cat-menu-item:hover .cat-menu-name {
    color: var(--primary);
}

.cat-menu-item:hover .cat-menu-arrow {
    color: var(--primary);
    transform: translateX(-4px);
}

/* Footer Link inside Dropdown */
.cat-dropdown-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 10px 16px;
}

.cat-footer-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.15s ease;
}

.cat-footer-action:hover {
    color: #b91c1c;
    text-decoration: none;
}

/* Nav Links List (Strict Single-Row, Never Wrap to Two Lines) */
.nav-links-list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}
.nav-links-list::-webkit-scrollbar {
    display: none;
}
.nav-links-list li {
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.nav-links-list li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e2e8f0;
    text-decoration: none;
    padding: 0 10px;
    height: 34px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap !important;
    transition: color 0.15s, background-color 0.15s;
    border-radius: 4px;
}
.nav-links-list li a:hover,
.nav-links-list li a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}
.nav-links-list li a.nav-highlight {
    color: #fca5a5;
}
.nav-links-list li a.nav-highlight:hover {
    color: #ffffff;
    background: rgba(239, 57, 78, 0.3);
}

/* ==================== Mobile Navigation Drawer ==================== */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transform: translate3d(105%, 0, 0);
    will-change: transform;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}
.mobile-drawer.is-open {
    transform: translate3d(0, 0, 0);
}
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #0f172a;
    color: #ffffff;
}
.drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}
.drawer-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
}
.drawer-body {
    padding: 20px;
    flex: 1;
}
.drawer-section-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 16px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #f1f5f9;
}
.drawer-nav-list {
    list-style: none;
}
.drawer-nav-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
}
.drawer-nav-list li a:hover {
    background: #f8fafc;
    color: var(--primary);
}

/* ==================== Mobile Bottom App Bar ==================== */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: #ffffff;
    border-top: 1px solid var(--border);
    display: none;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    transition: color 0.2s;
    font-family: inherit;
}
.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--primary);
}
.nav-icon-relative {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bottom-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 900;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}
.pulse-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

/* ==================== Hero Section ==================== */
.hero-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin: 10px 0 30px;
}

.hero-badge-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.hero-tag-hot {
    background: rgba(239, 57, 78, 0.2);
    border: 1px solid rgba(239, 57, 78, 0.45);
    color: #fecdd3;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(239, 57, 78, 0.2);
}
.hero-tag-guarantee {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-slider {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    position: relative;
    overflow: hidden;
}
.hero-slider h1 {
    font-size: 1.7rem;
    font-weight: 900;
    margin: 0 0 12px;
    line-height: 1.35;
    color: #ffffff;
}
.hero-slider p {
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.75;
    margin-bottom: 22px;
    max-width: 90%;
}
.hero-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.hero-side-banner {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: all var(--transition);
}
.hero-side-banner:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.hero-side-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #fff1f2;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ==================== Category Badges Row ==================== */
.category-badges-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin: 15px 0 35px;
}
.cat-card-circle {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all var(--transition);
}
.cat-card-circle:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.cat-icon-svg {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.cat-card-circle:hover .cat-icon-svg {
    background: #fff1f2;
    color: var(--primary);
}
.cat-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

/* ==================== Incredible Offers Banner ==================== */
.incredible-banner {
    background: linear-gradient(135deg, #c81e32 0%, #991b1b 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 35px 0;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(200, 30, 50, 0.25);
}
.incredible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.incredible-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 900;
}
.timer-badge {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    direction: ltr;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    text-align: center;
}
.incredible-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.incredible-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    color: var(--text-main);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all var(--transition);
}
.incredible-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.incredible-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    margin: 8px 0;
}

/* Wishlist Button on Product Cards */
.btn-wishlist-toggle {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.btn-wishlist-toggle:hover {
    transform: scale(1.12);
    border-color: #fecaca;
    color: var(--primary);
    background: #fff1f2;
}
.btn-wishlist-toggle.active {
    color: var(--primary);
    border-color: #fecaca;
    background: #fff1f2;
}
.btn-wishlist-toggle.active svg {
    fill: currentColor;
}

/* Coupon Promo Banner */
.coupon-promo-banner {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border: 1.5px dashed var(--secondary);
    border-radius: var(--radius);
    padding: 18px 24px;
    margin: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.coupon-promo-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.coupon-promo-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #ffffff;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2);
    flex-shrink: 0;
}
.coupon-promo-code {
    background: #ffffff;
    border: 2px dashed var(--secondary);
    padding: 8px 20px;
    border-radius: 8px;
    font-family: 'Vazirmatn', Consolas, monospace;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--secondary);
    letter-spacing: 2px;
}

/* ==================== Products Grid ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0 40px;
}
.product-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
}
.product-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.product-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    margin-bottom: 12px;
}
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.package-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}
.rating-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: #d97706;
    font-weight: 700;
}
.rating-stars span {
    color: #475569;
}
.product-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
}
.price-box {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.current-price {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--primary);
}
.old-price {
    font-size: 0.75rem;
    color: #64748b;
    text-decoration: line-through;
    margin-bottom: 2px;
}
.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(216, 27, 51, 0.3);
}

/* ==================== Cart & Checkout Layouts ==================== */
.cart-responsive-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}
.catalog-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-top: 15px;
}
.catalog-layout > * {
    min-width: 0;
}
.admin-order-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
    gap: 22px;
    align-items: start;
    margin-top: 15px;
}
.admin-order-detail-grid > * {
    min-width: 0;
}
.detail-specs-reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}
.sidebar-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

/* Cart Quantity Stepper (+ and -) */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    overflow: hidden;
}
.qty-btn {
    width: 32px;
    height: 32px;
    background: #f8fafc;
    border: none;
    color: #334155;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.qty-btn:hover {
    background: #e2e8f0;
    color: var(--primary);
}
.qty-input,
.cart-qty-input {
    width: 44px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    background: #ffffff;
}
.qty-input:focus,
.cart-qty-input:focus {
    outline: none;
}

/* Progress Stepper */
.cart-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 24px;
    box-shadow: var(--shadow-sm);
}
.stepper-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #94a3b8;
}
.stepper-step.active {
    color: var(--primary);
}
.stepper-step.completed {
    color: var(--success);
}

/* Free Shipping Progress */
.free-shipping-progress {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 18px;
}
.progress-bar-inner {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transition: width 0.3s ease;
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.2;
}
.btn-primary {
    background: var(--primary);
    color: #ffffff;
}
.btn-primary:hover {
    background: var(--primary-hover);
    color: #ffffff;
}
.btn-secondary {
    background: #ffffff;
    border-color: var(--border);
    color: var(--dark);
}
.btn-secondary:hover {
    border-color: var(--dark);
    background: #f8fafc;
}
.btn-outline-danger {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline-danger:hover {
    background: var(--primary);
    color: #ffffff;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
}
.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: var(--radius);
}
.btn-block {
    display: flex;
    width: 100%;
}

/* ==================== Forms & Inputs ==================== */
.form-group {
    margin-bottom: 18px;
}
.form-label {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #334155;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--text-main);
    font-size: 0.88rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 57, 78, 0.12);
}
.form-box {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

/* ==================== Tables ==================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}
.table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    font-size: 0.88rem;
}
.table th,
.table td {
    padding: 12px 16px;
    text-align: right;
    border-bottom: 1px solid #f1f5f9;
}
.table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 800;
}
.table-hover tbody tr:hover {
    background: #f8fafc;
}

/* ==================== Alerts ==================== */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}
.alert-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.alert-text {
    flex: 1;
}
.alert-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    display: flex;
    align-items: center;
}
.alert-close:hover {
    opacity: 1;
}
.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.alert-error,
.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.alert-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #075985;
}
.alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.breadcrumbs a {
    color: #475569;
    display: flex;
    align-items: center;
    gap: 4px;
}
.breadcrumbs a:hover {
    color: var(--primary);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-hot {
    background: #fee2e2;
    color: #b91c1c;
}
.badge-success {
    background: #d1fae5;
    color: #065f46;
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast-item {
    background: #0f172a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    font-size: 0.88rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    pointer-events: auto;
}
.toast-item.show {
    transform: translateY(0);
    opacity: 1;
}
.toast-item.toast-success {
    border-right: 4px solid var(--success);
}
.toast-item.toast-error {
    border-right: 4px solid var(--danger);
}
.toast-item.toast-info {
    border-right: 4px solid var(--secondary);
}

/* ==================== Classic Engineering Footer ==================== */
.site-footer {
    background: #0b1329;
    color: #cbd5e1;
    margin-top: 60px;
    border-top: 4px solid #ef394e;
    padding-top: 35px;
    font-size: 0.86rem;
}
.footer-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 25px;
    border-bottom: 1px solid #1e293b;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-brand-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-logo .logo-emblem {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #ef394e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-slogan {
    font-size: 0.84rem;
    color: #94a3b8;
    border-right: 2px solid #334155;
    padding-right: 14px;
}
.footer-hotline-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-hotline-btn {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 8px 16px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.footer-hotline-btn:hover {
    background: #38bdf8;
    color: #0b1329;
}
.site-footer .back-to-top-btn {
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid #334155;
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.site-footer .back-to-top-btn:hover {
    border-color: #ef394e;
    color: #ef394e;
    background: rgba(239, 57, 78, 0.1);
}

/* 5 Guarantees Grid */
.footer-guarantees-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 30px 0;
    border-bottom: 1px solid #1e293b;
}
.guarantee-card {
    background: #111e38;
    border: 1px solid #1e293b;
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.2s;
}
.guarantee-card:hover {
    border-color: #ef394e;
}
.guarantee-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(239, 57, 78, 0.12);
    color: #ef394e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.guarantee-info strong {
    display: block;
    font-size: 0.86rem;
    color: #ffffff;
    margin-bottom: 3px;
}
.guarantee-info span {
    display: block;
    font-size: 0.74rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* 4 Columns Grid */
.footer-columns-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.1fr 1.1fr 1.2fr;
    gap: 30px;
    padding: 35px 0;
    border-bottom: 1px solid #1e293b;
}
.footer-col h3,
.footer-col h4 {
    font-size: 0.98rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 6px;
}
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links li a {
    color: #cbd5e1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    transition: color 0.2s, transform 0.2s;
}
.footer-links li a:hover {
    color: #ffffff;
    transform: translateX(-4px);
}
.footer-badges-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.footer-cert-card {
    background: #111e38;
    border: 1px solid #1e293b;
    border-radius: var(--radius);
    padding: 12px 10px;
    text-align: center;
    transition: border-color 0.2s;
}
.footer-cert-card:hover {
    border-color: #38bdf8;
}
.cert-icon-svg {
    color: #38bdf8;
    margin-bottom: 6px;
}
.cert-title {
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
}
.cert-sub {
    display: block;
    font-size: 0.68rem;
    color: #94a3b8;
}

/* Footer Social Media Bar (Positioned under Columns 1-3 alongside Col 4) */
.footer-col-certs {
    grid-column: 4;
    grid-row: 1 / span 2;
}
.footer-social-strip {
    grid-column: 1 / 4;
    grid-row: 2;
    background: linear-gradient(135deg, rgba(17, 30, 56, 0.92) 0%, rgba(15, 23, 42, 0.96) 100%);
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    align-self: end;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}
.footer-social-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #e2e8f0;
    white-space: nowrap;
}
.social-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ef394e;
    box-shadow: 0 0 10px rgba(239, 57, 78, 0.85);
    display: inline-block;
    flex-shrink: 0;
}
.footer-social-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    flex: 1;
    justify-content: flex-end;
}
.footer-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #f8fafc;
    text-decoration: none;
    transition: all 0.22s ease;
    min-width: 0;
    flex: 1 1 0px;
}
.footer-social-btn .social-svg-box {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.22s ease, background 0.22s ease;
}
.footer-social-btn .social-btn-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}
.footer-social-btn .social-btn-meta strong {
    font-size: 0.8rem;
    font-weight: 800;
    color: #ffffff;
}
.footer-social-btn .social-btn-meta small {
    font-size: 0.68rem;
    color: #94a3b8;
}
.footer-social-btn:hover {
    transform: translateY(-2px);
}
.footer-social-btn:hover .social-svg-box {
    transform: scale(1.08);
}

/* Brand Colors: YouTube, Telegram, WhatsApp */
.social-btn-youtube .social-svg-box {
    background: rgba(255, 0, 0, 0.15);
    color: #ff3b3b;
}
.social-btn-youtube:hover {
    border-color: rgba(255, 0, 0, 0.55);
    background: rgba(255, 0, 0, 0.1);
    box-shadow: 0 6px 18px rgba(255, 0, 0, 0.22);
}
.social-btn-youtube:hover .social-svg-box {
    background: #ff0000;
    color: #ffffff;
}

.social-btn-telegram .social-svg-box {
    background: rgba(34, 158, 217, 0.16);
    color: #38bdf8;
}
.social-btn-telegram:hover {
    border-color: rgba(34, 158, 217, 0.55);
    background: rgba(34, 158, 217, 0.1);
    box-shadow: 0 6px 18px rgba(34, 158, 217, 0.22);
}
.social-btn-telegram:hover .social-svg-box {
    background: #229ED9;
    color: #ffffff;
}

.social-btn-instagram .social-svg-box {
    background: rgba(225, 48, 108, 0.16);
    color: #f472b6;
}
.social-btn-instagram:hover {
    border-color: rgba(225, 48, 108, 0.55);
    background: rgba(225, 48, 108, 0.1);
    box-shadow: 0 6px 18px rgba(225, 48, 108, 0.22);
}
.social-btn-instagram:hover .social-svg-box {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
}

.social-btn-whatsapp .social-svg-box {
    background: rgba(37, 211, 102, 0.16);
    color: #4ade80;
}
.social-btn-whatsapp:hover {
    border-color: rgba(37, 211, 102, 0.55);
    background: rgba(37, 211, 102, 0.1);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.22);
}
.social-btn-whatsapp:hover .social-svg-box {
    background: #25D366;
    color: #ffffff;
}

.footer-copyright-bar {
    padding: 20px 0;
    text-align: center;
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.8;
}
.footer-copyright-bar strong {
    color: #cbd5e1;
}

/* ==================== High-End Modern Engineering Admin Theme ==================== */
.admin-body {
    background: #f1f5f9;
    color: #1e293b;
    font-family: inherit;
    min-height: 100vh;
}

/* 1. Admin Top Navbar */
.admin-navbar {
    background: #090e1a;
    color: #ffffff;
    border-bottom: 2px solid #1e293b;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.admin-navbar-container {
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.admin-brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
}
.admin-brand .logo-emblem {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ef394e 0%, #dc2626 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(239, 57, 78, 0.4);
    flex-shrink: 0;
}
.admin-brand .brand-text-col {
    display: flex;
    flex-direction: column;
}
.admin-brand .brand-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-brand .brand-badge {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
}
.admin-brand .brand-subtitle {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 2px;
}

/* Center health status */
.admin-topbar-center {
    display: flex;
    align-items: center;
}
.admin-system-health {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111827;
    border: 1px solid #1f2937;
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 0.76rem;
    color: #94a3b8;
}
.health-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.health-live {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}
.alerts-pill {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 1px 7px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.all-clear-pill {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 1px 7px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Header actions on left */
.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Admin Live Notification Bell & Dropdown */
.admin-notif-wrap {
    position: relative;
}
.admin-notif-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #111827;
    border: 1px solid #1f2937;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    padding: 0;
}
.admin-notif-btn:hover,
.admin-notif-btn.is-active {
    background: #1e293b;
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.28);
}
.admin-notif-btn.has-alerts {
    border-color: rgba(245, 158, 11, 0.45);
    color: #fbbf24;
}
.admin-notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef394e;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #090e1a;
    box-shadow: 0 2px 8px rgba(239, 57, 78, 0.6);
    animation: notifPulse 2s infinite;
}
@keyframes notifPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.admin-notif-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 380px;
    max-width: calc(100vw - 24px);
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(2, 6, 23, 0.35);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.admin-notif-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.notif-dropdown-header {
    padding: 13px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.notif-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #0f172a;
}
.notif-count-tag {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 999px;
}
.notif-count-tag.is-clear {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}
.notif-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 10px 12px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}
.notif-stat-chip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 4px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: all 0.15s ease;
}
.notif-stat-chip span {
    font-size: 0.66rem;
    color: #64748b;
    font-weight: 700;
}
.notif-stat-chip strong {
    font-size: 0.88rem;
    color: #0f172a;
    font-weight: 900;
}
.notif-stat-chip:hover {
    border-color: #94a3b8;
    transform: translateY(-1px);
}
.notif-stat-chip.active-amber {
    background: #fffbeb;
    border-color: #fde68a;
}
.notif-stat-chip.active-amber strong { color: #d97706; }
.notif-stat-chip.active-emerald {
    background: #ecfdf5;
    border-color: #a7f3d0;
}
.notif-stat-chip.active-emerald strong { color: #059669; }
.notif-stat-chip.active-sky {
    background: #f0f9ff;
    border-color: #bae6fd;
}
.notif-stat-chip.active-sky strong { color: #0284c7; }
.notif-stat-chip.active-rose {
    background: #fff1f2;
    border-color: #fecdd3;
}
.notif-stat-chip.active-rose strong { color: #e11d48; }

.notif-dropdown-list {
    max-height: 320px;
    overflow-y: auto;
    divide-y: 1px solid #f1f5f9;
}
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 11px 14px;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.16s ease;
}
.notif-item:hover {
    background: #f8fafc;
}
.notif-item-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.notif-type-order .notif-item-icon {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}
.notif-type-inquiry .notif-item-icon {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.notif-type-review .notif-item-icon {
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
}
.notif-type-stock .notif-item-icon {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
}
.notif-item-body {
    flex: 1;
    min-width: 0;
}
.notif-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 3px;
}
.notif-item-top strong {
    font-size: 0.79rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notif-badge-pill {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 999px;
    flex-shrink: 0;
}
.pill-order { background: #fef3c7; color: #b45309; }
.pill-inquiry { background: #d1fae5; color: #047857; }
.pill-review { background: #e0f2fe; color: #0369a1; }
.pill-stock { background: #ffe4e6; color: #be123c; }
.notif-item-sub {
    font-size: 0.73rem;
    color: #64748b;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notif-item-sub b {
    color: #0f172a;
}
.notif-empty-state {
    padding: 30px 18px;
    text-align: center;
    color: #10b981;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.notif-empty-state strong {
    font-size: 0.88rem;
    color: #0f172a;
}
.notif-empty-state span {
    font-size: 0.76rem;
    color: #64748b;
}
.notif-dropdown-footer {
    padding: 10px 14px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.76rem;
    font-weight: 800;
}
.notif-dropdown-footer a {
    color: #0284c7;
    text-decoration: none;
}
.notif-dropdown-footer a:hover {
    text-decoration: underline;
}

.admin-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.18s ease;
}
.btn-view-store {
    background: rgba(2, 132, 199, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}
.btn-view-store:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 3px 12px rgba(2, 132, 199, 0.35);
}
.btn-admin-logout {
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
}
.btn-admin-logout:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
}

.admin-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #111827;
    border: 1px solid #1f2937;
    padding: 4px 12px 4px 6px;
    border-radius: 9999px;
}
.admin-user-pill .avatar-box {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}
.admin-user-pill .user-meta-col {
    display: flex;
    flex-direction: column;
}
.admin-user-pill .user-fullname {
    font-size: 0.82rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.2;
}
.admin-user-pill .user-subrole {
    font-size: 0.68rem;
    color: #94a3b8;
}
.status-dot-active {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

/* 2. Admin Page Layout */
.admin-page-container {
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 24px;
}
.admin-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* 3. Modern Ergonomic Sidebar */
.admin-sidebar {
    width: 285px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
    flex-shrink: 0;
    position: sticky;
    top: 72px;
    max-height: calc(100vh - 84px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 50;
}

.admin-sidebar-scrollable {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: auto;
    padding: 4px 0 8px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.admin-sidebar-scrollable::-webkit-scrollbar {
    width: 5px;
}
.admin-sidebar-scrollable::-webkit-scrollbar-track {
    background: transparent;
}
.admin-sidebar-scrollable::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
.admin-sidebar-scrollable::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Admin Profile Card */
.admin-profile-card {
    background: linear-gradient(135deg, #090e1a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #1e293b;
    flex-shrink: 0;
}
.admin-profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #0284c7;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
    position: relative;
}
.admin-profile-avatar .online-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #090e1a;
}
.admin-profile-info {
    flex: 1;
    min-width: 0;
}
.admin-profile-info .name {
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
.admin-profile-info .role {
    font-size: 0.71rem;
    color: #38bdf8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

/* Nav Groups */
.admin-nav-group {
    padding: 4px 0;
    border-bottom: 1px solid #f1f5f9;
}
.admin-nav-group:last-child {
    border-bottom: none;
}
.admin-nav-group-title {
    font-size: 0.69rem;
    font-weight: 800;
    color: #94a3b8;
    padding: 3px 16px 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.admin-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.admin-nav-list li {
    margin: 1px 8px;
}
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6.5px 11px;
    border-radius: 9px;
    color: #475569;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: all 0.16s ease;
    position: relative;
}
.admin-nav-link:hover {
    background: #f8fafc;
    color: #0f172a;
    transform: translateX(-2px);
}
.admin-nav-link.active {
    background: linear-gradient(270deg, rgba(239, 57, 78, 0.08) 0%, rgba(239, 57, 78, 0.02) 100%);
    color: var(--primary);
    font-weight: 800;
    border-right: 3.5px solid var(--primary);
}
.admin-nav-link .icon-box {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    flex-shrink: 0;
    transition: all 0.16s ease;
}
.admin-nav-link:hover .icon-box {
    background: #e2e8f0;
    color: #0f172a;
}
.admin-nav-link.active .icon-box {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(239, 57, 78, 0.35);
}
.admin-nav-link .nav-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-nav-badge {
    margin-right: auto;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 9999px;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.admin-nav-badge.badge-danger {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}
.admin-nav-badge.badge-warning {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
}
.admin-nav-badge.badge-info {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #7dd3fc;
}
.admin-nav-badge.badge-success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

/* Sidebar Footer */
.admin-sidebar-footer {
    background: #f8fafc;
    padding: 10px 14px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.74rem;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.admin-sidebar-footer .status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
.admin-sidebar-footer .status-indicator::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
}
.admin-sidebar-footer .ver-code {
    font-family: 'Vazirmatn', Consolas, monospace;
    font-weight: 700;
    color: #0284c7;
}

/* 4. Breadcrumb Bar */
.admin-breadcrumb-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    flex-wrap: wrap;
    gap: 10px;
}
.admin-breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: #64748b;
}
.admin-breadcrumb-list a {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.admin-breadcrumb-list a:hover {
    color: var(--primary);
}
.admin-breadcrumb-list span.current {
    color: #0f172a;
    font-weight: 800;
}
.admin-breadcrumb-sep {
    color: #cbd5e1;
    font-size: 0.75rem;
}
.admin-group-tag {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 3px 10px;
    border-radius: 6px;
}
.admin-group-tag strong {
    color: #0f172a;
    margin-right: 4px;
}
.admin-content {
    flex: 1;
    min-width: 0;
}

/* 5. Standardized Admin Table Styles */
.admin-table,
.table-responsive table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.86rem;
    color: #1e293b;
}
.admin-table thead th,
.table-responsive table thead th {
    background: #f8fafc;
    color: #334155;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 12px 14px;
    text-align: right;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}
.admin-table tbody td,
.table-responsive table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    background: #ffffff;
    transition: background 0.15s ease;
}
.admin-table tbody tr:hover td,
.table-responsive table tbody tr:hover td {
    background: #f8fafc;
}
.table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

/* 6. Admin KPI Metric Cards */
.admin-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.admin-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
}
.admin-kpi-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.admin-kpi-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 700;
}
.admin-kpi-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-kpi-val {
    font-size: 1.4rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
}
.admin-kpi-hint {
    font-size: 0.74rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 7. Admin Status Pills & Dialog Modals */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 800;
    white-space: nowrap;
    line-height: 1.4;
}
.status-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.status-pill-new {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}
.status-pill-new::before { background: #d97706; }

.status-pill-investigating {
    background: #e0f2fe;
    color: #075985;
    border: 1px solid #bae6fd;
}
.status-pill-investigating::before { background: #0284c7; }

.status-pill-quoted {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.status-pill-quoted::before { background: #16a34a; }

.status-pill-closed {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.status-pill-closed::before { background: #94a3b8; }

dialog::backdrop {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
}


/* ==================== Official Invoice Styles ==================== */
.official-invoice-wrapper {
    max-width: 900px;
    margin: 20px auto;
}
.official-invoice-sheet {
    background: #ffffff;
    border: 2px solid #0f172a;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.invoice-screen-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.invoice-header-box {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.inv-col-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.inv-col-title {
    text-align: center;
}
.inv-col-meta {
    text-align: left;
    font-size: 0.85rem;
}
.inv-section-title {
    background: #0f172a;
    color: #ffffff;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 800;
    margin: 15px 0 8px;
}
.inv-info-table,
.inv-items-table,
.inv-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-bottom: 15px;
}
.inv-info-table td,
.inv-items-table th,
.inv-items-table td,
.inv-summary-table td {
    border: 1px solid #cbd5e1;
    padding: 8px 10px;
    text-align: right;
}
.inv-items-table th {
    background: #f1f5f9;
    font-weight: 800;
}

/* FAQ Accordion */
.faq-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.faq-question {
    padding: 16px 20px;
    font-weight: 800;
    font-size: 0.95rem;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: none;
    width: 100%;
    text-align: right;
    font-family: inherit;
}
.faq-answer {
    padding: 0 20px 16px;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.8;
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ==================== Responsive Breakpoints ==================== */
@media (max-width: 1200px) {
    .category-badges-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .incredible-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-columns-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col-certs {
        grid-column: auto;
        grid-row: auto;
    }
    .footer-social-strip {
        grid-column: 1 / -1;
        grid-row: auto;
        flex-wrap: wrap;
    }
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: inline-flex;
    }
    .main-navbar {
        display: none;
    }
    .hero-wrapper {
        grid-template-columns: 1fr;
    }
    .cart-responsive-grid {
        grid-template-columns: 1fr !important;
    }
    .catalog-layout {
        grid-template-columns: 1fr !important;
    }
    .detail-specs-reviews-grid {
        grid-template-columns: 1fr !important;
    }
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
    }
    .footer-guarantees-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 68px; /* Room for mobile bottom bar */
    }
    .mobile-bottom-bar {
        display: flex;
    }
    .header-top {
        display: none;
    }
    .header-middle-container {
        gap: 12px;
        flex-wrap: wrap;
    }
    .brand-logo .brand-tagline {
        display: none;
    }
    .brand-logo .brand-name {
        font-size: 1.2rem;
    }
    .header-search-form {
        max-width: 100%;
        order: 3;
        flex-basis: 100%;
        margin-top: 8px;
    }
    .d-none-mobile {
        display: none !important;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .incredible-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .category-badges-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-card {
        padding: 12px;
    }
    .footer-columns-grid {
        grid-template-columns: 1fr;
    }
    .footer-social-strip {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
    }
    .footer-social-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .footer-social-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .incredible-grid {
        grid-template-columns: 1fr;
    }
    .category-badges-row {
        grid-template-columns: 1fr;
    }
    .footer-guarantees-grid {
        grid-template-columns: 1fr;
    }
    .hero-slider {
        padding: 24px 18px;
    }
    .hero-slider h1 {
        font-size: 1.3rem;
    }
}

.hero-badge-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.hero-tag-hot {
    background: rgba(239, 57, 78, 0.2);
    border: 1px solid rgba(239, 57, 78, 0.45);
    color: #fecdd3;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(239, 57, 78, 0.2);
}
.hero-tag-guarantee {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


/* ==================== Utility & Component Helpers ==================== */
.my-3 { margin-top: 1rem; margin-bottom: 1rem; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-5 { margin-top: 2rem; margin-bottom: 2rem; }
.text-center { text-align: center; }
.text-primary { color: var(--primary) !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--text-muted) !important; }

/* General Cards & Layout */
.card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.brand-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ef394e, #b91c1c);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.cat-menu-name {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 700;
}
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: none;
    min-width: 200px;
}
.dropdown.is-open .dropdown-menu {
    display: block;
}
.login-btn {
    border-color: var(--primary);
    color: var(--primary);
}
.login-btn:hover {
    background: var(--primary-light);
}
.wishlist-badge {
    background: var(--primary);
    color: #ffffff;
}

/* Vector SVG & Electronics Micro-illustrations */
.svg-icon {
    display: inline-block;
    vertical-align: middle;
}
.component-svg, .chip-svg, .sensor-svg, .driver-svg, .display-svg, .robot-svg, .power-svg, .empty-state-svg {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

/* Stepper step */
.step {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Invoice Label & Value */
.inv-meta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-bottom: 15px;
}
.inv-meta-table td {
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
}
.lbl {
    font-weight: 700;
    color: #475569;
    background: #f8fafc;
    width: 35%;
}
.val {
    color: #0f172a;
}

/* Print Handling */
@media print {
    .no-print, .site-header, .site-footer, .mobile-bottom-bar, .breadcrumbs, .invoice-screen-toolbar {
        display: none !important;
    }
    body {
        background: #ffffff;
        color: #000000;
        padding: 0;
    }
    .official-invoice-sheet {
        border: none;
        box-shadow: none;
        padding: 0;
    }
}

/* Product Images & Gray CPU SVG Uniform Styling */
.product-real-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-real-img,
.incredible-card:hover .product-real-img {
    transform: scale(1.05);
}
.cpu-gray-svg {
    display: block;
    margin: 0 auto;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .cpu-gray-svg,
.incredible-card:hover .cpu-gray-svg {
    transform: scale(1.05);
}

/* ==================== Modern Authentication (Login & Register) ==================== */
.auth-page-section {
    padding: 36px 0 60px;
}

.auth-split-card {
    max-width: 1020px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.03);
    display: grid;
    grid-template-columns: 420px 1fr;
    overflow: hidden;
}

/* Right / Visual Side (in RTL this is the first column on the right) */
.auth-visual-panel {
    background: radial-gradient(circle at 20% 20%, #1e293b 0%, #0f172a 65%, #090d16 100%);
    color: #ffffff;
    padding: 42px 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-visual-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(56, 189, 248, 0.14) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
    opacity: 0.65;
}

.auth-visual-top {
    position: relative;
    z-index: 2;
    text-align: center;
}

.auth-visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.auth-svg-showcase {
    margin: 6px auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
    transition: transform 0.35s ease;
}

.auth-split-card:hover .auth-svg-showcase {
    transform: translateY(-4px) scale(1.02);
}

.auth-visual-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.4;
}

.auth-visual-subtitle {
    font-size: 0.84rem;
    color: #94a3b8;
    line-height: 1.75;
}

.auth-feature-list {
    position: relative;
    z-index: 2;
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 11px 14px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.auth-feature-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(56, 189, 248, 0.3);
}

.auth-feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(239, 57, 78, 0.16);
    color: #fda4af;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-feature-text strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    color: #f8fafc;
}

.auth-feature-text span {
    font-size: 0.74rem;
    color: #94a3b8;
}

/* Left / Form Side */
.auth-form-panel {
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

/* Segmented Switcher Tabs */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 14px;
    margin-bottom: 28px;
    border: 1px solid #e2e8f0;
}

.auth-tab-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 800;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-tab-link:hover {
    color: #0f172a;
}

.auth-tab-link.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.auth-form-header {
    margin-bottom: 24px;
}

.auth-form-header h1 {
    font-size: 1.45rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-form-header p {
    font-size: 0.86rem;
    color: #64748b;
}

/* Modern Input Group with Embedded SVG Icons */
.auth-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-form-group {
    margin-bottom: 18px;
}

.auth-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.84rem;
    font-weight: 800;
    color: #334155;
    margin-bottom: 7px;
}

.auth-label .req-star {
    color: var(--primary);
    margin-right: 3px;
}

.auth-label .field-hint-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
}

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

.input-icon-wrapper .field-icon {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.input-icon-wrapper .auth-input {
    width: 100%;
    height: 48px;
    padding: 10px 44px 10px 16px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: #0f172a;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.input-icon-wrapper .auth-input.has-left-btn {
    padding-left: 44px;
}

.input-icon-wrapper .auth-input[dir="ltr"] {
    text-align: left;
    font-family: Consolas, Monaco, 'Courier New', monospace, var(--font-main);
    letter-spacing: 0.3px;
}

.input-icon-wrapper .auth-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-family: var(--font-main);
    letter-spacing: 0;
}

.input-icon-wrapper .auth-input:hover {
    background: #ffffff;
    border-color: #94a3b8;
}

.input-icon-wrapper .auth-input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(239, 57, 78, 0.12);
}

.input-icon-wrapper:focus-within .field-icon {
    color: var(--primary);
    transform: scale(1.08);
}

/* Password Eye Toggle Button */
.pwd-toggle-btn {
    position: absolute;
    left: 10px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
    z-index: 3;
}

.pwd-toggle-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Password Strength Meter */
.pwd-strength-wrap {
    margin-top: 8px;
}

.pwd-strength-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 4px;
}

.pwd-bar-seg {
    height: 4px;
    border-radius: 99px;
    background: #e2e8f0;
    transition: background 0.25s ease;
}

.pwd-strength-label {
    font-size: 0.74rem;
    color: #64748b;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}

/* Custom Remember Checkbox Row */
.auth-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0 22px;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    border-radius: 5px;
}

/* Primary Submit Button */
.auth-submit-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ef394e 0%, #d91b34 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(239, 57, 78, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(239, 57, 78, 0.38);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

/* Auth Legal Consent Notice & Judicial Terms Modal */
.auth-legal-consent {
    margin-top: 18px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.81rem;
    color: #475569;
    line-height: 1.75;
}

.auth-legal-consent-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(239, 57, 78, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-legal-trigger-btn {
    background: none;
    border: none;
    padding: 0 2px;
    font-family: inherit;
    font-size: inherit;
    font-weight: 800;
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.auth-legal-trigger-btn:hover {
    color: #b91c1c;
}

.legal-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.legal-modal-dialog {
    background: #ffffff;
    width: 100%;
    max-width: 820px;
    max-height: 88vh;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    animation: modalFadeIn 0.2s ease-out;
}

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

.legal-modal-header {
    padding: 18px 22px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.legal-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-modal-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(239, 57, 78, 0.2);
    color: #f87171;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.legal-modal-title-wrap h3 {
    font-size: 1rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 3px;
}

.legal-modal-title-wrap p {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
}

.legal-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.legal-modal-close:hover {
    background: #ef394e;
    border-color: #ef394e;
}

.legal-modal-body {
    padding: 22px;
    overflow-y: auto;
    line-height: 1.9;
    font-size: 0.86rem;
    color: #334155;
}

.legal-intro-alert {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-right: 4px solid #ef394e;
    border-radius: 12px;
    padding: 14px 16px;
    color: #881337;
    font-size: 0.84rem;
    line-height: 1.85;
    margin-bottom: 18px;
}

.legal-article {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.legal-article h4 {
    font-size: 0.94rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #cbd5e1;
}

.legal-article p {
    margin: 0 0 8px;
    text-align: justify;
}

.legal-article p:last-child {
    margin-bottom: 0;
}

.legal-modal-footer {
    padding: 14px 22px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 640px) {
    .legal-modal-dialog {
        max-height: 92vh;
        border-radius: 16px;
    }
    .legal-modal-header, .legal-modal-body, .legal-modal-footer {
        padding: 14px 16px;
    }
    .legal-modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Interactive Demo Credentials Card */
.auth-demo-card {
    margin-top: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px dashed #94a3b8;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-demo-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-demo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-demo-text strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2px;
}

.auth-demo-text span {
    font-size: 0.78rem;
    color: #475569;
}

.auth-demo-text code {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 1px 6px;
    border-radius: 5px;
    color: #0369a1;
    font-weight: 700;
    font-family: Consolas, 'Vazirmatn', monospace;
}

.auth-demo-fill-btn {
    background: #ffffff;
    border: 1.5px solid #0284c7;
    color: #0284c7;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 7px 13px;
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.18s ease;
}

.auth-demo-fill-btn:hover {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

@media (max-width: 900px) {
    .auth-split-card {
        grid-template-columns: 1fr;
        max-width: 540px;
    }
    .auth-visual-panel {
        padding: 28px 24px;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .auth-feature-list {
        display: none;
    }
    .auth-form-panel {
        padding: 28px 22px;
    }
    .auth-field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==================== Live Instant Search Autocomplete Dropdown ==================== */
.search-clear-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.search-clear-btn:hover {
    color: var(--primary);
}

.live-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.08);
    z-index: 1200;
    overflow: hidden;
}

/* Popular Quick Searches */
.live-search-popular {
    padding: 14px 16px;
    background: #ffffff;
}

.live-popular-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 800;
    color: #475569;
    margin-bottom: 10px;
}

.live-popular-hint {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
}

.live-popular-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.live-popular-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.live-popular-chip:hover {
    background: #fff1f2;
    border-color: #fecdd3;
    color: var(--primary);
    transform: translateY(-1px);
}

/* Matched Categories Row */
.live-search-cats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 9px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.live-cats-label {
    font-size: 0.74rem;
    font-weight: 800;
    color: #64748b;
}

.live-cats-list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.live-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    font-size: 0.73rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.live-cat-pill:hover {
    background: #0284c7;
    color: #ffffff;
}

.live-search-list {
    max-height: 380px;
    overflow-y: auto;
}

.live-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: background 0.15s ease;
}

.live-search-item:hover,
.live-search-item.is-focused {
    background: #f8fafc;
}

.live-search-item.is-focused {
    border-right: 3px solid var(--primary);
    background: #fff5f6;
}

.live-search-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 3px;
}

.live-search-thumb svg,
.live-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.live-search-meta {
    flex: 1;
    min-width: 0;
}

.live-search-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-hl {
    background: #fef08a;
    color: #854d0e;
    padding: 0 2px;
    border-radius: 3px;
    font-weight: 900;
}

.live-search-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.73rem;
}

.live-part-code {
    font-family: Consolas, 'Vazirmatn', monospace;
    background: #f1f5f9;
    color: #0284c7;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.live-pkg-badge {
    background: #fff1f2;
    color: #e11d48;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.live-brand-badge {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.live-cat-badge {
    color: #64748b;
    font-weight: 600;
}

.live-stock-ok {
    color: #16a34a;
    font-weight: 700;
}

.live-stock-out {
    color: #dc2626;
    font-weight: 700;
}

.live-search-price-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.live-price-old-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #94a3b8;
}

.live-discount-pill {
    background: var(--primary);
    color: #ffffff;
    font-size: 0.66rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 999px;
}

.live-search-price {
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--primary);
    white-space: nowrap;
}

.live-search-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #f8fafc;
    color: #0284c7;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    border-top: 1px solid #e2e8f0;
}

.live-search-footer:hover {
    background: #e0f2fe;
}

.live-search-empty {
    padding: 18px 16px;
    text-align: center;
    font-size: 0.84rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.live-empty-title {
    color: #0f172a;
    font-size: 0.88rem;
}

.live-empty-sub {
    font-size: 0.76rem;
    color: #64748b;
}

.live-search-inquiry-link {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
    margin-top: 4px;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE & TABLET RESPONSIVENESS OVERHAUL (320px - 1024px)
   ========================================================================== */

/* 0. Global Anti-Overflow & Touch Ergonomics (overflow-x: clip preserves desktop position: sticky) */
html, body {
    overflow-x: clip;
    max-width: 100%;
    -webkit-tap-highlight-color: transparent;
}

img, svg {
    max-width: 100%;
}

/* Desktop defaults for mobile-only toggle buttons */
.mobile-filter-toggle-btn,
.admin-mobile-toggle {
    display: none;
}

/* User Profile Sidebar Menu (.admin-menu-list) */
.admin-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-menu-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    transition: all 0.18s ease;
    border: 1px solid transparent;
}

.admin-menu-list li a:hover {
    background: #f8fafc;
    color: var(--primary);
    border-color: #e2e8f0;
}

.admin-menu-list li a.active {
    background: #fff1f2;
    color: var(--primary);
    border-color: #fecdd3;
    font-weight: 800;
}

@media (max-width: 768px) {
    .admin-menu-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .admin-menu-list li a {
        padding: 9px 10px;
        font-size: 0.8rem;
        justify-content: center;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }
}

@media (max-width: 420px) {
    .admin-menu-list {
        grid-template-columns: 1fr;
    }
}

/* Scrollable container for A4 Official Invoice on small viewports */
.invoice-scroll-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 1. Tablet & Small Laptop Breakpoint (<= 992px) */
@media (max-width: 992px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* Admin Navbar & Collapsible Sidebar on Tablet/Mobile */
    .admin-mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        cursor: pointer;
        flex-shrink: 0;
        transition: all 0.2s ease;
    }

    .admin-mobile-toggle:hover,
    .admin-mobile-toggle.is-active {
        background: var(--primary);
        border-color: var(--primary);
    }

    .admin-navbar {
        height: auto;
        min-height: 64px;
        padding: 8px 0;
    }

    .admin-navbar-container {
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 14px;
    }

    .admin-page-container {
        padding: 0 12px;
        margin: 14px auto;
    }

    .admin-layout {
        flex-direction: column !important;
        align-items: stretch !important;
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .admin-order-detail-grid,
    .admin-content .catalog-layout {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    /* Make Admin Sidebar collapsible on <= 992px so content is immediately visible and never overlaps */
    .admin-sidebar,
    #adminSidebar {
        position: relative !important;
        top: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        z-index: 5 !important;
        width: 100% !important;
    }

    #adminSidebar .admin-sidebar-scrollable {
        display: none;
        padding-top: 10px;
    }

    #adminSidebar.is-mobile-open .admin-sidebar-scrollable {
        display: block;
        animation: fadeInDown 0.22s ease;
    }

    #adminSidebar .admin-profile-card {
        cursor: pointer;
        position: relative;
    }

    #adminSidebar .admin-profile-card::after {
        content: "منوی مدیریت ▾";
        margin-right: auto;
        font-size: 0.75rem;
        font-weight: 800;
        color: var(--primary);
        background: #fff1f2;
        padding: 4px 10px;
        border-radius: 6px;
        border: 1px solid #fecdd3;
    }

    #adminSidebar.is-mobile-open .admin-profile-card::after {
        content: "بستن منو ▴";
    }

    /* Cart & Checkout 2-column layout stacks cleanly */
    .cart-responsive-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    .cart-sticky-summary {
        position: static !important;
        top: auto !important;
    }
}

/* 2. Mobile & Phablet Breakpoint (<= 768px) */
@media (max-width: 768px) {
    /* Space at bottom of body for fixed mobile bottom navigation bar */
    body:not(.admin-body) {
        padding-bottom: 68px;
    }

    /* Top Promo Bar compact single row */
    .top-promo-bar {
        padding: 6px 0;
        font-size: 0.74rem;
    }

    .top-promo-content {
        justify-content: center;
        text-align: center;
    }

    .promo-right {
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .promo-divider {
        display: none;
    }

    /* Header Middle: Clean 2-Row Mobile Layout */
    .header-middle {
        padding: 10px 0;
    }

    .header-middle-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .mobile-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: #f8fafc;
        color: #0f172a;
        flex-shrink: 0;
    }

    .brand-logo {
        gap: 8px;
        margin-left: auto;
    }

    .brand-logo .logo-emblem {
        width: 38px;
        height: 38px;
        border-radius: 9px;
    }

    .brand-logo .brand-name {
        font-size: 1.2rem;
    }

    .brand-logo .brand-tagline {
        display: none;
    }

    .header-actions {
        gap: 6px;
    }

    .action-icon-link {
        width: 38px;
        height: 38px;
        border-radius: 9px;
    }

    .user-btn {
        padding: 7px 10px;
        font-size: 0.78rem;
        gap: 5px;
        border-radius: 9px;
    }

    .user-btn .user-name {
        max-width: 85px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-cart-btn {
        padding: 8px 11px;
        border-radius: 9px;
    }

    /* Search Bar Full Width on Row 2 */
    .header-search-form {
        order: 3;
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        margin-top: 2px;
    }

    .search-input-wrapper input {
        padding: 9px 12px;
        font-size: 0.83rem;
    }

    .search-submit-btn {
        padding: 0 14px;
    }

    .live-search-dropdown {
        max-height: 60vh;
        overflow-y: auto;
    }

    .live-search-item {
        padding: 10px 12px;
        gap: 8px;
    }

    .live-search-title {
        font-size: 0.8rem;
    }

    /* Breadcrumbs compact horizontal scroll */
    .breadcrumbs {
        font-size: 0.78rem;
        padding: 8px 0;
        margin-bottom: 10px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    /* Homepage Hero Section */
    .hero-wrapper {
        grid-template-columns: 1fr !important;
        gap: 12px;
        margin: 12px 0 22px;
    }

    .hero-slider {
        padding: 22px 18px !important;
        min-height: auto !important;
    }

    .hero-badge-row {
        gap: 6px;
        margin-bottom: 12px;
    }

    .hero-tag-hot,
    .hero-tag-guarantee {
        font-size: 0.72rem;
        padding: 4px 10px;
    }

    .hero-slider h1 {
        font-size: 1.3rem !important;
        line-height: 1.45;
        margin-bottom: 10px;
    }

    .hero-slider p {
        font-size: 0.85rem !important;
        line-height: 1.7;
        margin-bottom: 18px;
    }

    .hero-side {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-side-banner {
        padding: 14px 16px;
    }

    /* Category Badges Row: 2-Column Compact Grid on Mobile */
    .category-badges-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .cat-card-circle {
        padding: 12px 10px !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        text-align: right !important;
        gap: 10px !important;
    }

    .cat-icon-svg {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }

    .cat-name {
        font-size: 0.8rem !important;
        line-height: 1.35;
    }

    /* Incredible Offers Banner */
    .incredible-banner {
        padding: 16px 12px !important;
        margin: 22px 0 !important;
        border-radius: 14px;
    }

    .incredible-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
        margin-bottom: 14px;
    }

    .incredible-title {
        font-size: 1.1rem !important;
    }

    .incredible-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .incredible-card {
        padding: 12px !important;
    }

    /* Coupon Promo Banner */
    .coupon-promo-banner {
        flex-direction: column;
        align-items: stretch !important;
        text-align: center;
        padding: 16px !important;
        gap: 12px;
    }

    .coupon-promo-info {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .coupon-promo-code {
        text-align: center;
        width: 100%;
    }

    /* Catalog Layout & Collapsible Filter Sidebar */
    .catalog-layout {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .catalog-filter-sidebar {
        padding: 14px 16px !important;
    }

    .catalog-filter-header {
        margin-bottom: 0 !important;
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }

    .catalog-filter-sidebar.is-open .catalog-filter-header {
        margin-bottom: 14px !important;
        border-bottom: 1px solid var(--border) !important;
        padding-bottom: 10px !important;
    }

    .mobile-filter-toggle-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 8px;
        border: 1px solid var(--border);
        background: #f8fafc;
        color: var(--primary);
        font-family: inherit;
        font-size: 0.78rem;
        font-weight: 800;
        cursor: pointer;
    }

    .catalog-filter-body {
        display: none;
    }

    .catalog-filter-sidebar.is-open .catalog-filter-body {
        display: block;
    }

    /* Products Grid on Mobile */
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .product-card {
        padding: 12px !important;
    }

    .product-thumb {
        height: 115px !important;
        margin-bottom: 8px !important;
    }

    .product-title {
        font-size: 0.82rem !important;
        height: 38px !important;
    }

    .product-card .price-box {
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px;
    }

    .product-card .price-box form,
    .product-card .price-box button {
        width: 100%;
        justify-content: center;
    }

    /* Product Detail Page */
    .detail-main-card,
    .detail-reviews-card,
    .page-card-pad {
        padding: 16px !important;
        margin: 14px 0 !important;
    }

    .detail-top-row {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .detail-image-col,
    .detail-info-col {
        width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
    }

    .detail-info-col h1 {
        font-size: 1.18rem !important;
    }

    .detail-buy-box {
        padding: 15px !important;
    }

    .detail-buy-form {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .detail-qty-wrap {
        justify-content: space-between;
        background: #ffffff;
        padding: 8px 12px;
        border-radius: 8px;
        border: 1px solid var(--border);
    }

    .detail-btn-cart,
    .detail-btn-instant {
        width: 100% !important;
        min-width: 0 !important;
        justify-content: center;
    }

    .detail-specs-reviews-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    /* Cart Page & 3-Step Stepper */
    .cart-stepper-card {
        padding: 14px 12px !important;
        margin-bottom: 16px !important;
    }

    .cart-stepper-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .cart-step-line {
        display: none !important;
    }

    .cart-step-item {
        width: 100%;
        padding: 6px 10px;
        border-radius: 8px;
        background: #f8fafc;
        font-size: 0.84rem !important;
    }

    .cart-step-item.active {
        background: #fff1f2;
        border: 1px solid #fecdd3;
    }

    .cart-bottom-bar {
        padding: 14px 16px !important;
        flex-direction: column-reverse !important;
        align-items: stretch !important;
    }

    .cart-bottom-checkout-group {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .cart-bottom-checkout-group > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cart-proceed-btn,
    .cart-continue-btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center;
    }

    /* Collapse all inline multi-column grids on mobile */
    .form-grid-2,
    .form-grid-3,
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: 1fr 2fr"],
    div[style*="grid-template-columns: 2fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr 1fr"],
    div[style*="grid-template-columns: 2fr 1fr 1fr"],
    div[style*="grid-template-columns: repeat(auto-fit, minmax(320px"],
    div[style*="grid-template-columns: repeat(auto-fit, minmax(260px"],
    form[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Reduce large inline paddings on inner pages (About, FAQ, Guides, Orders, Success, PCB) */
    div[style*="padding: 40px 30px"],
    div[style*="padding: 35px 30px"],
    div[style*="padding: 35px"],
    div[style*="padding: 30px"] {
        padding: 18px 14px !important;
    }

    /* Mobile Drawer safe width on narrow phones */
    .mobile-drawer {
        width: min(300px, 86vw) !important;
    }

    /* Official Invoice Screen View on Mobile */
    .invoice-screen-toolbar {
        padding: 12px 14px !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .invoice-screen-toolbar > div:last-child {
        width: 100%;
        justify-content: stretch;
    }

    .invoice-screen-toolbar > div:last-child .btn {
        flex: 1;
        justify-content: center;
    }

    .official-invoice-sheet {
        min-width: 720px;
    }

    /* Admin Panel Mobile Refinements */
    .admin-header-actions {
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 8px;
    }

    .admin-user-pill .user-meta-col {
        display: none;
    }

    .admin-content {
        padding: 16px 14px !important;
    }

    .admin-content form[style*="display: flex"] {
        width: 100%;
        flex-wrap: wrap;
    }

    .admin-content input[style*="width: 260px"] {
        width: 100% !important;
        flex: 1 1 180px;
        min-width: 0;
    }

    .admin-breadcrumb-bar {
        padding: 10px 12px !important;
    }

    .admin-breadcrumb-list {
        font-size: 0.78rem;
        flex-wrap: wrap;
    }

    .admin-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .admin-kpi-card {
        padding: 14px 12px !important;
    }

    /* Auth (Login & Register) Mobile Refinements */
    .auth-page-section {
        padding: 16px 0 36px !important;
    }

    .auth-split-card {
        border-radius: 18px !important;
    }

    .auth-visual-panel {
        padding: 22px 18px !important;
    }

    .auth-svg-showcase svg {
        max-width: 185px !important;
        height: auto !important;
    }

    .auth-visual-title {
        font-size: 1.15rem !important;
    }

    .auth-visual-subtitle {
        font-size: 0.8rem !important;
    }

    .auth-form-panel {
        padding: 24px 18px !important;
    }

    .auth-form-header h1 {
        font-size: 1.22rem !important;
    }

    /* Footer Mobile Layout */
    .footer-top-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center;
        gap: 14px !important;
    }

    .footer-brand-meta {
        align-items: center !important;
    }

    .footer-hotline-actions {
        justify-content: center !important;
        flex-wrap: wrap;
    }

    .footer-guarantees-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .footer-columns-grid {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }

    .footer-badges-wrapper {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
}

/* 3. Small Smartphone Breakpoint (<= 480px) */
@media (max-width: 480px) {
    /* Compact Header Action Buttons on 360px-480px screens */
    .user-btn span:not(.user-avatar-icon) {
        display: none;
    }

    .user-btn.login-btn span {
        display: inline;
        font-size: 0.74rem;
    }

    /* Keep User Account Dropdown Menu anchored cleanly below button inside viewport on narrow phones */
    .user-dropdown-menu {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 0 !important;
        right: auto !important;
        width: min(260px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
        z-index: 1500 !important;
    }

    .hero-slider .btn {
        width: 100%;
        justify-content: center;
    }

    /* Single-column cards on narrow phones for crisp readability */
    .products-grid,
    .incredible-grid,
    .admin-kpi-grid,
    .footer-guarantees-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-badges-wrapper {
        grid-template-columns: 1fr !important;
    }

    .product-card .price-box {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .product-card .price-box form,
    .product-card .price-box button {
        width: auto;
    }

    /* Login & Register Extra-Compact Smartphone Adjustments */
    .auth-form-panel {
        padding: 20px 14px !important;
    }

    .auth-tabs {
        margin-bottom: 20px !important;
    }

    .auth-tab-link {
        font-size: 0.78rem !important;
        padding: 9px 8px !important;
        gap: 5px !important;
    }

    .auth-demo-card {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 12px !important;
    }

    .auth-demo-fill-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   DEEP LOW-END MOBILE GPU/CPU & ULTRA-SMOOTH 60FPS UX OPTIMIZATIONS
   (100% Visual Identity Preserved — Hardware Compositor & Touch Tuning)
   ========================================================================== */

/* 1. Eliminate 300ms Tap Delay Across All Interactive Controls */
a,
button,
input,
select,
textarea,
label,
summary,
[role="button"],
.btn,
.bottom-nav-item,
.qty-btn,
.btn-wishlist-toggle,
.action-icon-link,
.cat-card-circle,
.product-card,
.incredible-card {
    touch-action: manipulation;
}

/* 2. Layout & Paint Containment on Repeatable Cards (Isolates Reflows on Weak CPUs) */
.product-card,
.incredible-card,
.cat-card-circle,
.admin-kpi-card,
.guarantee-card {
    contain: layout style paint;
}

/* 3. Layout & Style Containment for Below-the-Fold Sections (Preserves Painted Backgrounds for Accessibility Contrast Audits) */
.incredible-banner,
.products-grid,
.coupon-promo-banner,
.site-footer {
    contain: layout style;
}

/* 4. Scroll Chaining Prevention Inside Floating Dropdown Popovers Only */
.live-search-list,
.cat-dropdown-items-wrap,
.notif-dropdown-list {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* 5. Instant Tactile Press Feedback (:active) for Native App Feel */
.btn:active,
.search-submit-btn:active,
.action-icon-link:active,
.header-cart-btn:active,
.bottom-nav-item:active,
.qty-btn:active,
.mobile-menu-toggle:active,
.mobile-filter-toggle-btn:active,
.admin-mobile-toggle:active {
    transform: scale(0.96);
    transition: transform 0.08s ease;
}

.btn-wishlist-toggle:active {
    transform: scale(0.88);
    transition: transform 0.08s ease;
}

/* 6. Disable Sticky Hover Repaints on Pure Touch Devices (Phones/Tablets) */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover,
    .incredible-card:hover,
    .cat-card-circle:hover,
    .hero-side-banner:hover,
    .admin-kpi-card:hover {
        transform: none !important;
    }

    .product-card:hover .product-real-img,
    .incredible-card:hover .product-real-img,
    .product-card:hover .cpu-gray-svg,
    .incredible-card:hover .cpu-gray-svg {
        transform: none !important;
    }
}

/* 7. Offload Heavy GPU Shaders (backdrop-filter & drop-shadow) on Mobile Viewports */
@media (max-width: 768px) {
    .mobile-drawer-overlay,
    .auth-feature-item,
    dialog::backdrop {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .auth-svg-showcase {
        filter: none !important;
    }

    /* Keep mobile bottom bar and sticky header on dedicated GPU compositor layers */
    .mobile-bottom-bar,
    .site-header {
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    /* Adjust Toast container above mobile bottom bar so notifications never overlap nav */
    .toast-container {
        bottom: 76px;
        left: 14px;
        right: 14px;
    }

    .toast-item {
        width: 100%;
        justify-content: center;
    }
}

/* 8. Respect Battery-Saver / Low-Power Reduced Motion Mode */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   PRODUCT CATALOG FILTER SIDEBAR & SORT BAR (COMPLETE STYLING)
   ========================================================================== */

.catalog-filter-sidebar {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 84px;
}

.catalog-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
}

.catalog-filter-heading {
    font-size: 0.96rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-section {
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.filter-section:first-of-type {
    padding-top: 0;
}

.filter-section:last-of-type {
    border-bottom: none;
    padding-bottom: 4px;
}

.filter-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-list-packages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.filter-list-packages .filter-item:first-child {
    grid-column: 1 / -1;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: #f8fafc;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    margin: 0;
    line-height: 1.4;
}

.filter-item:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #0f172a;
}

.filter-item.is-active {
    background: #fff1f2;
    border-color: #fecdd3;
    color: var(--primary);
    font-weight: 800;
}

.filter-item input[type="radio"],
.filter-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.filter-label-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-count {
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    background: #e2e8f0;
    padding: 2px 7px;
    border-radius: 999px;
    flex-shrink: 0;
}

.filter-item.is-active .filter-count {
    background: var(--primary);
    color: #ffffff;
}

.filter-reset-wrap {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}

.catalog-main-section {
    min-width: 0;
}

.catalog-sort-bar {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.sort-options-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.sort-label-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.sort-pills-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.sort-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.sort-pill:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.sort-pill.is-active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.22);
}

.catalog-total-badge {
    font-size: 0.82rem;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.catalog-total-badge strong {
    color: #0f172a;
    font-weight: 900;
}

@media (max-width: 992px) {
    .catalog-filter-sidebar {
        position: static !important;
        top: auto !important;
        margin-bottom: 16px;
    }
}

@media (max-width: 768px) {
    .catalog-sort-bar {
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .sort-options-wrap {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 8px;
    }

    .sort-pills-row {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .catalog-total-badge {
        align-self: flex-end;
    }
}

/* ==========================================================================
   USER ACCOUNT MANAGEMENT / PROFILE LAYOUT & SHIPMENT TRACKING SYSTEM
   ========================================================================== */

.user-profile-layout {
    display: grid;
    grid-template-columns: 295px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin: 18px 0 36px;
}

.user-profile-sidebar {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 84px;
}

.user-profile-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.user-profile-avatar {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border: 2px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 900;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.user-online-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #ffffff;
}

.user-profile-meta {
    min-width: 0;
    flex: 1;
}

.user-profile-name {
    font-size: 0.98rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 2px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-profile-username {
    display: block;
    font-size: 0.76rem;
    color: #64748b;
    font-family: 'Vazirmatn', Consolas, monospace;
    direction: ltr;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-profile-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
}
.user-profile-role-badge.is-customer-role {
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
}
.user-profile-role-badge.is-admin-role {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
}

/* Profile Completion Meter */
.user-completion-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
}
.user-completion-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
    color: #475569;
    margin-bottom: 6px;
}
.user-completion-top strong {
    color: #0f172a;
    font-weight: 900;
}
.user-completion-track {
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.user-completion-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0284c7, #38bdf8);
    transition: width 0.3s ease;
}
.user-completion-fill.is-complete {
    background: linear-gradient(90deg, #059669, #10b981);
}
.user-completion-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.68rem;
    color: #64748b;
    line-height: 1.4;
}

.user-profile-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 14px 0;
}

/* User Sidebar Menu */
.user-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.user-sidebar-menu li.menu-separator {
    height: 1px;
    background: #f1f5f9;
    margin: 4px 0;
}
.user-sidebar-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    transition: all 0.18s ease;
}
.user-sidebar-menu a .menu-item-right {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.user-sidebar-menu a:hover {
    background: #f8fafc;
    color: #0f172a;
}
.user-sidebar-menu a.active {
    background: linear-gradient(135deg, #ef394e 0%, #e11d48 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(239, 57, 78, 0.28);
}
.user-menu-badge {
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.user-sidebar-menu a.active .user-menu-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}
.user-menu-badge.badge-live {
    background: #fef3c7;
    color: #b45309;
}
.user-menu-badge.badge-info {
    background: #e0f2fe;
    color: #0369a1;
}
.user-sidebar-menu a.menu-admin-link {
    color: #0284c7;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
}
.user-sidebar-menu a.menu-admin-link:hover {
    background: #0284c7;
    color: #ffffff;
}
.user-sidebar-menu a.menu-logout-link {
    color: #e11d48;
}
.user-sidebar-menu a.menu-logout-link:hover {
    background: #fff1f2;
    color: #be123c;
}

.user-sidebar-support {
    margin-top: 16px;
    padding: 12px;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-sidebar-support .support-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(56, 189, 248, 0.16);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.user-sidebar-support .support-meta {
    display: flex;
    flex-direction: column;
    font-size: 0.73rem;
    color: #94a3b8;
}
.user-sidebar-support .support-meta strong {
    font-size: 0.86rem;
    color: #ffffff;
    margin-top: 2px;
}

/* Main Content Area */
.user-profile-content {
    min-width: 0;
    width: 100%;
}

.user-welcome-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);
}
.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.user-welcome-banner h2 {
    font-size: 1.2rem;
    font-weight: 900;
    margin: 0 0 5px 0;
    color: #ffffff;
}
.user-welcome-banner p {
    margin: 0;
    font-size: 0.83rem;
    color: #cbd5e1;
}
.welcome-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.user-profile-section-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 18px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.profile-stats-grid.profile-stats-4col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-stat-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.profile-stat-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.profile-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-stat-info {
    min-width: 0;
    flex: 1;
}

.profile-stat-label {
    display: block;
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 3px;
}

.profile-stat-value {
    display: block;
    font-size: 1.08rem;
    font-weight: 900;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Latest Shipment Live Card on Profile Dashboard */
.profile-latest-shipment-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}
.latest-shipment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}
.ls-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.92rem;
    color: #0f172a;
}
.ls-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.latest-shipment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.82rem;
    color: #475569;
}

/* Profile Forms Grid */
.profile-forms-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 22px;
}

.profile-form-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.profile-card-heading {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* User Inquiries Section on Profile */
.profile-inquiries-section {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}
.inquiries-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.inquiries-empty-note {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
}
.user-inquiries-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.user-inquiry-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    background: #fcfdff;
}
.inq-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.inq-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 800;
}
.inq-card-subject {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}
.inq-card-subject strong {
    font-size: 0.9rem;
    color: #0f172a;
}
.inq-card-subject small {
    font-size: 0.74rem;
    color: #64748b;
}
.inq-card-details {
    font-size: 0.82rem;
    color: #475569;
    margin: 0;
    line-height: 1.7;
}
.inq-admin-reply-box {
    margin-top: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 12px 14px;
}
.inq-admin-reply-box .reply-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #166534;
    font-size: 0.8rem;
    margin-bottom: 6px;
}
.inq-price-badge {
    background: #15803d;
    color: #ffffff;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    margin-right: auto;
}
.inq-admin-reply-box .reply-text {
    margin: 0;
    font-size: 0.82rem;
    color: #14532d;
    line-height: 1.7;
}

/* ==========================================================================
   USER ORDERS & VISUAL 4-STAGE SHIPMENT TRACKING CARDS
   ========================================================================== */

.user-orders-header-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}
.orders-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.orders-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff1f2;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-order-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.user-order-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.18s ease;
}
.user-order-tab:hover {
    border-color: #cbd5e1;
    color: #0f172a;
}
.user-order-tab.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}
.user-order-tab .tab-count {
    padding: 1px 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 900;
}
.user-order-tab.is-active .tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.user-empty-orders-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 50px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.user-empty-orders-card .empty-icon-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #f8fafc;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.user-empty-orders-card h3 {
    font-size: 1.1rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 8px 0;
}
.user-empty-orders-card p {
    font-size: 0.86rem;
    color: #64748b;
    max-width: 520px;
    margin: 0 auto 20px;
    line-height: 1.8;
}

.user-orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.user-order-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    transition: border-color 0.2s ease;
}
.user-order-card:hover {
    border-color: #94a3b8;
}
.user-order-card.is-cancelled-order {
    opacity: 0.88;
    border-color: #fecdd3;
}

.order-card-header {
    padding: 15px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.order-head-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.order-serial-badge {
    background: #0f172a;
    color: #ffffff;
    font-family: 'Vazirmatn', Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 7px;
}
.order-date-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #64748b;
}
.order-date-text b {
    color: #334155;
}

.order-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}
.order-status-pill.st-pending {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}
.order-status-pill.st-processing {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}
.order-status-pill.st-shipped {
    background: #f3e8ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}
.order-status-pill.st-delivered {
    background: #d1fae5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.order-status-pill.st-cancelled {
    background: #ffe4e6;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.order-head-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.order-total-box {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #475569;
}
.order-total-box strong {
    font-size: 1.02rem;
    font-weight: 900;
    color: #ef394e;
}
.order-invoice-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Visual 4-Stage Package Tracking Stepper */
.shipment-tracker-box {
    padding: 18px 22px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}
.shipment-tracker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.tracker-live-desc {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #334155;
    flex-wrap: wrap;
}
.tracker-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    display: inline-block;
    flex-shrink: 0;
}
.tracker-step-counter {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
}

.shipment-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.step-node {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.step-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}
.step-text strong {
    font-size: 0.8rem;
    font-weight: 800;
    color: #94a3b8;
}
.step-text small {
    font-size: 0.68rem;
    color: #94a3b8;
}

.step-node.is-done .step-circle {
    background: #ecfdf5;
    border-color: #10b981;
    color: #059669;
}
.step-node.is-done .step-text strong {
    color: #0f172a;
}
.step-node.is-done .step-text small {
    color: #64748b;
}

.step-node.is-current .step-circle {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.18);
}
.step-node.is-current .step-text strong {
    color: #0284c7;
}
.step-node.is-current .step-text small {
    color: #475569;
}

.step-connector {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    border-radius: 999px;
    min-width: 20px;
}
.step-connector.is-filled {
    background: linear-gradient(90deg, #10b981, #0284c7);
}

.shipment-cancelled-banner {
    padding: 14px 20px;
    background: #fff1f2;
    color: #be123c;
    font-size: 0.83rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #fecdd3;
}

/* Logistics & Postal Tracking Code Bar */
.shipment-logistics-bar {
    padding: 14px 20px;
    background: #fcfdff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.logistics-col {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #475569;
}
.logistics-col .log-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
}
.logistics-col strong {
    color: #0f172a;
}
.logistics-address-col {
    max-width: 340px;
}
.log-address-text {
    color: #334155;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tracking-code-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 5px 10px;
    border-radius: 9px;
    flex-wrap: wrap;
}
.tracking-code-pill .tc-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0369a1;
}
.tracking-code-pill .tc-value {
    font-family: 'Vazirmatn', Consolas, monospace;
    font-size: 0.84rem;
    font-weight: 900;
    color: #0c4a6e;
    background: #ffffff;
    padding: 2px 8px;
    border-radius: 5px;
    border: 1px solid #bae6fd;
}
.tc-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 4px 9px;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease;
}
.tc-copy-btn:hover {
    background: #0369a1;
}
.tc-copy-btn.is-copied {
    background: #059669;
}
.tc-post-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #0284c7;
    text-decoration: none;
    padding: 3px 6px;
}
.tc-post-link:hover {
    text-decoration: underline;
}
.tracking-pending-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 5px 11px;
    border-radius: 8px;
}

/* Ordered Parts Preview Strip */
.order-items-strip {
    padding: 14px 20px;
    background: #ffffff;
}
.order-items-strip .strip-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.79rem;
    font-weight: 800;
    color: #334155;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.order-coupon-used {
    margin-right: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.71rem;
    font-weight: 800;
}
.order-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: 10px;
}
.order-part-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    text-decoration: none;
    transition: all 0.16s ease;
}
.order-part-chip:hover {
    background: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.08);
}
.part-chip-thumb {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.part-chip-info {
    min-width: 0;
    flex: 1;
}
.part-chip-info strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.part-chip-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.7rem;
}
.part-chip-meta code {
    background: #e2e8f0;
    color: #334155;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.67rem;
}
.part-qty-badge {
    background: #e0f2fe;
    color: #0369a1;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 800;
}
.part-unit-price {
    color: #64748b;
    font-weight: 700;
}

@media (max-width: 992px) {
    .user-profile-layout {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    .user-profile-sidebar {
        position: static !important;
        top: auto !important;
        width: 100%;
    }

    .profile-stats-grid,
    .profile-stats-grid.profile-stats-4col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-forms-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    .shipment-stepper {
        flex-wrap: wrap;
        gap: 12px;
    }
    .step-connector {
        display: none;
    }
    .step-node {
        width: calc(50% - 8px);
    }
}

@media (max-width: 600px) {
    .user-profile-sidebar,
    .profile-form-card,
    .profile-inquiries-section {
        padding: 16px;
    }

    .profile-stats-grid,
    .profile-stats-grid.profile-stats-4col {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .step-node {
        width: 100%;
    }

    .order-card-header,
    .shipment-logistics-bar {
        padding: 12px 14px;
    }
}

/* ==========================================================================
   GRAPHIC & IMAGE DRAG / SELECTION PROTECTION
   ========================================================================== */

img,
svg,
.product-img-box,
.hero-slider,
.hero-side-banner,
.cat-card-circle,
.brand-logo,
.guarantee-card,
.btn {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

input,
textarea,
select,
[contenteditable="true"] {
    user-select: text !important;
    -webkit-user-select: text !important;
}

/* ==========================================================================
   UPGRADED ENGINEERING REVIEWS & RATING HISTOGRAM SYSTEM
   ========================================================================== */

.review-analytics-banner {
    display: grid;
    grid-template-columns: 220px 1fr 270px;
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 24px;
}

.review-score-summary {
    text-align: center;
    border-left: 1px solid #cbd5e1;
    padding-left: 20px;
}

.review-big-score {
    font-size: 2.5rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}

.review-rec-pill {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.76rem;
    font-weight: 800;
}

.review-histogram-bars {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.review-hist-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
}

.review-hist-label {
    width: 105px;
    color: #334155;
    font-weight: 700;
    flex-shrink: 0;
}

.review-hist-track {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}

.review-hist-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.35s ease;
}

.review-hist-pct {
    width: 65px;
    text-align: left;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.review-trust-side {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
}

.review-submit-panel {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    align-self: start;
}

.review-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    padding: 2px 9px;
    border-radius: 99px;
    font-size: 0.73rem;
    font-weight: 800;
}

.star-picker-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
}

.star-picker-stars {
    display: inline-flex;
    gap: 4px;
}

.star-pick-btn {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #cbd5e1;
    transition: transform 0.15s ease, color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.star-pick-btn.active {
    color: #f59e0b;
}

.star-pick-btn:hover {
    transform: scale(1.15);
}

.star-picker-caption {
    font-size: 0.8rem;
    font-weight: 800;
    color: #b45309;
    background: #fef3c7;
    padding: 3px 10px;
    border-radius: 99px;
}

.review-rec-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.rec-option-label {
    cursor: pointer;
    margin: 0;
}

.rec-option-label input {
    display: none;
}

.rec-option-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 9px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    color: #475569;
    transition: all 0.2s ease;
}

.rec-option-label input:checked + .rec-option-pill.rec-yes {
    background: #dcfce7;
    border-color: #10b981;
    color: #15803d;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15);
}

.rec-option-label input:checked + .rec-option-pill.rec-no {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #b45309;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
}

.reviews-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.rev-sort-tab {
    font-size: 0.78rem;
    font-weight: 800;
    color: #475569;
    padding: 5px 12px;
    border-radius: 7px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.rev-sort-tab:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.rev-sort-tab.active {
    background: var(--primary);
    color: #ffffff;
}

.review-item-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    position: relative;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.review-item-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: #cbd5e1;
}

.review-item-card.review-item-pinned {
    border: 1.5px solid #f59e0b;
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 65px);
}

.review-pinned-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    font-size: 0.73rem;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: 99px;
    margin-bottom: 10px;
}

.review-pros-cons-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.review-chip {
    font-size: 0.76rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
}

.review-chip-pro {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.review-chip-con {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.review-admin-reply-box {
    margin-top: 12px;
    padding: 12px 14px;
    background: #f0f9ff;
    border-right: 3px solid #0284c7;
    border-radius: 8px;
}

.review-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.btn-helpful-vote {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 99px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-helpful-vote:hover {
    background: #e0f2fe;
    border-color: #38bdf8;
    color: #0369a1;
}

.btn-helpful-vote.voted {
    background: #dcfce7;
    border-color: #10b981;
    color: #15803d;
    cursor: default;
}

.btn-quick-reply {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 3px 8px;
    font-family: inherit;
    font-size: 0.71rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-quick-reply:hover {
    background: #bae6fd;
}

@media (max-width: 992px) {
    .review-analytics-banner {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .review-score-summary {
        border-left: none;
        border-bottom: 1px solid #cbd5e1;
        padding-left: 0;
        padding-bottom: 14px;
    }
    .detail-specs-reviews-grid {
        grid-template-columns: 1fr;
    }
    .checkout-summary-card {
        position: static !important;
        top: auto !important;
    }
    .admin-dashboard-bottom-grid,
    .admin-order-detail-grid {
        grid-template-columns: 1fr !important;
    }
    .gateway-main-grid {
        padding: 18px !important;
        gap: 18px !important;
    }
}

/* Official Invoice Scroll Wrapper for Mobile/Tablet */
.invoice-scroll-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}

@media (max-width: 768px) {
    /* Checkout & Cart Stepper Mobile Optimization */
    .checkout-section-card,
    .checkout-summary-card,
    .order-receipt-card {
        padding: 16px !important;
        border-radius: 12px !important;
    }

    .checkout-header-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .invoice-type-toggle {
        display: flex !important;
        width: 100% !important;
    }

    .invoice-type-toggle label {
        flex: 1 1 50% !important;
        text-align: center !important;
    }

    .invoice-type-toggle span {
        display: block !important;
        width: 100% !important;
        padding: 8px 6px !important;
        font-size: 0.76rem !important;
    }

    #corporateFieldsBox,
    .shipping-options-grid,
    .card-transfer-meta-grid,
    .receipt-meta-grid {
        grid-template-columns: 1fr !important;
    }

    .checkout-payment-card {
        padding: 13px !important;
        gap: 10px !important;
    }

    /* Shaparak Gateway Mobile Optimization */
    .gateway-header-bar {
        padding: 14px 16px !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .gateway-timer-box {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 14px !important;
    }

    .gateway-test-banner {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .gateway-test-banner .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Official Invoice Screen Toolbar Mobile */
    .invoice-screen-toolbar {
        padding: 14px !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .invoice-screen-toolbar > div:last-child {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .invoice-screen-toolbar > div:last-child .btn {
        flex: 1 1 auto !important;
        justify-content: center !important;
    }

    .official-invoice-sheet {
        min-width: 720px;
    }

    /* Live Header Search Dropdown Mobile */
    .live-search-dropdown {
        max-height: min(400px, 70vh) !important;
        border-radius: 12px !important;
    }

    .ls-product-item {
        padding: 9px 10px !important;
        gap: 9px !important;
    }

    .ls-prod-thumb {
        width: 38px !important;
        height: 38px !important;
    }

    .ls-prod-title {
        font-size: 0.8rem !important;
    }

    /* Product Reviews & Star Picker Mobile */
    .star-picker-box {
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        padding: 10px 12px !important;
    }

    .reviews-sort-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .rev-sort-tabs {
        width: 100% !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        padding-bottom: 4px !important;
    }

    .rev-sort-tab {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    /* User Profile Inquiries & Reviews Mobile */
    .user-reviews-grid,
    .user-inquiries-grid {
        grid-template-columns: 1fr !important;
    }

    .inquiries-section-head {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .inquiries-section-head > div:last-child {
        display: flex !important;
        width: 100% !important;
    }

    .inquiries-section-head > div:last-child .btn {
        flex: 1 1 50% !important;
        justify-content: center !important;
    }
}

@media (max-width: 600px) {
    .review-rec-selector {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    #gwCardNumber {
        font-size: 1rem !important;
        letter-spacing: 1px !important;
        height: 44px !important;
    }

    .gateway-otp-row {
        flex-direction: column !important;
    }

    .gateway-otp-row #otpBtn {
        height: 42px !important;
        width: 100% !important;
        justify-content: center !important;
    }

    .gateway-action-buttons {
        grid-template-columns: 1fr !important;
    }

    .star-pick-btn {
        width: 34px !important;
        height: 34px !important;
    }

    .cart-stepper-card {
        padding: 12px 10px !important;
    }
}
