/* ================================================================
   ELITE MARKET WEB — Premium Light Design System
   Theme values are injected by Admin Settings in website/layouts/app.
   ================================================================ */
:root {
    --brand-primary: #0f6b70;
    --brand-secondary: #163a43;
    --brand-accent: #d5b26a;
    --button-bg: #0f6b70;
    --button-text: #ffffff;
    --page-bg: #f7f8f6;
    --surface: #ffffff;
    --text: #183138;
    --muted: #728087;
    --border: #e5eae8;
    --header-bg: #ffffff;
    --footer-bg: #15343c;
    --radius: 16px;
    --container: 1280px;
    --shadow-sm: 0 8px 24px rgba(24, 49, 56, .055);
    --shadow-md: 0 18px 46px rgba(24, 49, 56, .09);
    --shadow-lg: 0 28px 80px rgba(24, 49, 56, .13);
    --primary-soft: color-mix(in srgb, var(--brand-primary) 9%, #fff);
    --accent-soft: color-mix(in srgb, var(--brand-accent) 17%, #fff);
    --button-hover: color-mix(in srgb, var(--button-bg) 86%, #000);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
    min-height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--page-bg);
    color: var(--text);
    font-family: var(--font-en, "Manrope", "Segoe UI", Arial, sans-serif);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
html[dir="rtl"] body { font-family: var(--font-ar, "Tajawal", Tahoma, Arial, sans-serif); }
a { color: inherit; text-decoration: none; }

/* Unified web icon system — local Font Awesome 4.7. */
.ui-icon { display: inline-block; line-height: 1; vertical-align: middle; }
.icon-directional { transform-origin: center; }
html[dir="rtl"] .icon-directional { transform: scaleX(-1); }
.btn .ui-icon, .text-link .ui-icon { margin-inline-end: .32em; }
.text-link .ui-icon:last-child, .btn .ui-icon:last-child { margin-inline-start: .32em; margin-inline-end: 0; }
.favorite-btn .favorite-icon, .favorite-btn-detail .favorite-icon { margin: 0; font-size: 1rem; }
.message-state .ui-icon { margin: 0; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-primary) 24%, transparent); outline-offset: 2px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.page { min-height: 0; flex: 1 0 auto; padding: 0 0 56px; overflow: clip; }
.flash-wrap { padding-top: 16px; }
.section { margin-top: 58px; }
.section-first { padding-top: 34px; margin-top: 0; }
.home-section { margin-top: 64px; }
.narrow-page { max-width: 980px; }
.stack { display: grid; gap: 16px; }
.cluster { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.text-danger { color: #b42318; }
.text-success { color: #0d7b5a; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--brand-primary); font-weight: 800; font-size: .72rem;
    letter-spacing: .1em; text-transform: uppercase; margin-bottom: 7px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 10px; background: var(--brand-accent); }

/* ---------------- Header ---------------- */
.site-header {
    flex: 0 0 auto;
    position: sticky; top: 0; z-index: 80;
    background: color-mix(in srgb, var(--header-bg) 95%, transparent);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
}
.header-row { min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; min-width: 128px; }
.brand-logo { width: 142px; max-height: 46px; object-fit: contain; object-position: left center; }
html[dir="rtl"] .brand-logo { object-position: right center; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 2px; }
.nav-link {
    position: relative; padding: 27px 10px 25px; color: var(--muted);
    font-size: .88rem; font-weight: 700; transition: color .18s ease;
}
.nav-link::after {
    content: ""; position: absolute; left: 50%; bottom: 13px; width: 0; height: 2px;
    background: var(--brand-primary); border-radius: 999px; transform: translateX(-50%); transition: width .18s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after, .nav-link:hover::after { width: 22px; }
.header-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.locale-switch {
    display: inline-flex; align-items: center; gap: 2px; padding: 3px;
    border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
    box-shadow: 0 4px 14px rgba(24,49,56,.035);
}
.locale-option {
    min-width: 34px; height: 30px; padding: 0 9px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--muted); font-weight: 800; font-size: .72rem; transition: .16s ease;
}
.locale-option:hover { color: var(--text); background: var(--primary-soft); }
.locale-option.active { color: var(--button-text); background: var(--brand-primary); box-shadow: 0 5px 14px color-mix(in srgb, var(--brand-primary) 18%, transparent); }
.account-icon {
    height: 38px; min-width: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px;
    background: var(--surface); display: inline-grid; place-items: center; font-weight: 800; font-size: .78rem;
}
.account-menu { position: relative; }
.account-chip {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 10px 4px 5px;
    border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text);
    box-shadow: 0 5px 18px rgba(24,49,56,.04); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
html[dir="rtl"] .account-chip { padding: 4px 5px 4px 10px; }
.account-chip:hover, .account-menu.is-open .account-chip { border-color: color-mix(in srgb, var(--brand-primary) 38%, var(--border)); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.account-avatar { width: 34px; height: 34px; overflow: hidden; border-radius: 50%; display: grid; place-items: center; background: var(--brand-secondary); color: #fff; font-weight: 900; flex: 0 0 auto; }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-chip-copy { display: grid; line-height: 1.2; max-width: 112px; text-align: start; }
.account-chip-copy strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .78rem; }
.account-chip-copy small { color: var(--muted); font-size: .66rem; }
.account-chevron { color: var(--muted); font-size: .82rem; transition: transform .16s ease; }
.account-menu.is-open .account-chevron { transform: rotate(180deg); }
.account-dropdown {
    position: absolute; inset-inline-end: 0; top: calc(100% + 10px); width: 245px; z-index: 120;
    padding: 8px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
    box-shadow: 0 24px 65px rgba(18,34,39,.16); transform-origin: top right;
}
html[dir="rtl"] .account-dropdown { transform-origin: top left; }
.account-dropdown[hidden] { display: none; }
.account-dropdown-head { padding: 11px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; display: grid; gap: 3px; }
.account-dropdown-head strong { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-dropdown-head span { color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-dropdown-link {
    width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 10px;
    padding: 10px 11px; border-radius: 10px; color: var(--text); font-weight: 750; font-size: .82rem; text-align: start;
}
.account-dropdown-link:hover { background: var(--primary-soft); color: var(--brand-primary); }
.account-dropdown-icon { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--primary-soft); color: var(--brand-primary); }
.account-dropdown-form { margin: 0; border-top: 1px solid var(--border); padding-top: 6px; margin-top: 5px; }
.account-dropdown-logout { color: #a2362f; }
.account-dropdown-logout .account-dropdown-icon { background: #fff1ef; color: #a2362f; }
.mobile-logout-form { margin: 0; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; }
.menu-toggle .fa { display: block; font-size: 1.12rem; line-height: 1; }
.mobile-nav { display: none; padding-bottom: 14px; }

/* ---------------- Buttons ---------------- */
.btn {
    min-height: 44px; border: 1px solid transparent; border-radius: calc(var(--radius) - 5px);
    padding: 10px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 800; font-size: .9rem; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: var(--button-text); background: var(--button-bg); box-shadow: 0 9px 24px color-mix(in srgb, var(--button-bg) 19%, transparent); }
.btn-primary:hover { background: var(--button-hover); box-shadow: 0 12px 28px color-mix(in srgb, var(--button-bg) 26%, transparent); }
.btn-secondary { color: #fff; background: var(--brand-secondary); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--brand-primary) 42%, var(--border)); }
.btn-danger { background: #b42318; color: #fff; }
.btn-sm { min-height: 36px; padding: 7px 12px; font-size: .8rem; }
.btn-block { width: 100%; }
.post-listing-btn { white-space: nowrap; }
.post-listing-btn span { font-size: 1.05rem; line-height: 1; }
.text-link { color: var(--brand-primary); display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 800; }
.text-link span { transition: transform .16s ease; }
.text-link:hover span { transform: translate(2px,-2px); }
html[dir="rtl"] .text-link:hover span { transform: translate(-2px,-2px); }


/* ---------------- Section headings ---------------- */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-head h1, .section-head h2, .page-title { margin: 0; color: var(--brand-secondary); font-size: clamp(1.55rem, 2.2vw, 2.2rem); line-height: 1.2; letter-spacing: -.025em; }
.section-head p, .page-subtitle { color: var(--muted); margin: 6px 0 0; }
.premium-head { border-bottom: 1px solid var(--border); padding-bottom: 15px; }

/* ---------------- Categories ---------------- */
.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }

.category-card {
    position: relative; min-height: 142px; padding: 19px 15px 15px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); display: grid; justify-items: center; align-content: center; text-align: center; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.category-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand-primary) 36%, var(--border)); box-shadow: var(--shadow-md); }
.category-icon-shell { width: 62px; height: 62px; border-radius: 17px; display: grid; place-items: center; background: var(--primary-soft); margin-bottom: 10px; overflow: hidden; }
.category-image { width: 48px; height: 48px; object-fit: contain; }
.category-copy { display: grid; gap: 2px; }
.category-copy strong { font-size: .86rem; }
.category-copy small { color: var(--muted); font-size: .68rem; }
.category-arrow { position: absolute; top: 10px; inset-inline-end: 11px; color: var(--muted); font-size: .72rem; opacity: 0; transition: opacity .18s ease; }
.category-card:hover .category-arrow { opacity: 1; }

/* ---------------- Listing cards ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { position: relative; min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.product-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand-primary) 26%, var(--border)); box-shadow: var(--shadow-md); }
.product-media { position: relative; display: block; aspect-ratio: 1.38; overflow: hidden; background: #eef1ef; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-media img { transform: scale(1.035); }
.favorite-btn { position: absolute; z-index: 3; top: 11px; inset-inline-end: 11px; width: 35px; height: 35px; border: 1px solid rgba(255,255,255,.88); border-radius: 50%; background: rgba(255,255,255,.91); box-shadow: 0 5px 15px rgba(0,0,0,.08); display: grid; place-items: center; font-size: 1.1rem; color: var(--text); }
.favorite-btn.active { color: #d92d20; }
.featured-chip { position: absolute; bottom: 10px; inset-inline-start: 10px; padding: 4px 8px; border-radius: 999px; background: var(--brand-accent); color: color-mix(in srgb, var(--brand-secondary) 92%, #000); font-size: .62rem; font-weight: 900; }
.product-body { padding: 14px 15px 15px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .7rem; font-weight: 700; margin-bottom: 6px; }
.condition-dot::before { content: "•"; color: var(--brand-primary); margin-inline-end: 5px; }
.product-title { margin: 0 0 8px; min-height: 2.65em; font-size: .94rem; line-height: 1.33; font-weight: 850; color: var(--text); }
.product-location { color: var(--muted); font-size: .69rem; min-height: 1.4em; margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 9px; border-top: 1px solid var(--border); }
.product-price { color: var(--brand-primary); font-weight: 900; font-size: .91rem; }
.product-open { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--brand-primary); font-weight: 900; }

/* ---------------- Sellers ---------------- */

.store-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.store-card { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: transform .18s ease, box-shadow .18s ease; }
.store-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.store-cover { display: block; height: 128px; overflow: hidden; background: var(--primary-soft); }
.store-cover img { width: 100%; height: 100%; object-fit: cover; }
.store-body { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 14px; }
.store-avatar { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-secondary); color: #fff; font-weight: 900; box-shadow: 0 6px 16px rgba(22,58,67,.16); }
.store-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.store-copy { min-width: 0; }
.store-title { margin: 0; font-size: .9rem; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-location { color: var(--muted); font-size: .67rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seller-badge { display: inline-flex; margin-top: 4px; color: var(--brand-primary); font-size: .62rem; font-weight: 800; }
.store-open { color: var(--brand-primary); font-weight: 900; }


/* ---------------- Generic panels & forms ---------------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 2px 0 rgba(24,49,56,.01); }
.panel-head { padding: 18px 21px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--border); }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1.02rem; }
.panel-body { padding: 21px; }
.badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--brand-primary); font-size: .7rem; font-weight: 800; text-transform: capitalize; }
.badge-success, .badge-approved, .badge.active { background: #eaf8f2; color: #087853; }
.badge-pending, .badge.pending { background: #fff6de; color: #8a6200; }
.badge-rejected, .badge.rejected, .badge.inactive { background: #fdeceb; color: #ae2d24; }
.alert { margin: 0 0 14px; padding: 12px 15px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.alert-success { border-color: #b9e4d2; color: #087853; background: #f0fbf6; }
.alert-error { border-color: #f2c8c4; color: #a72b22; background: #fff5f4; }

.field { display: grid; gap: 7px; }
.field label { font-size: .79rem; font-weight: 800; color: var(--text); }
.input, .select, .textarea {
    width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px;
    background: var(--surface); color: var(--text); outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 115px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: color-mix(in srgb, var(--brand-primary) 62%, var(--border)); box-shadow: 0 0 0 3px var(--primary-soft); }
.form-row, .form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.form-grid .full, .field-span-2 { grid-column: 1 / -1; }
.form-stack { display: grid; gap: 17px; }
.form-panel { padding: 25px; }
.check-row { display: flex; align-items: center; gap: 8px; }
.check-row input { width: 18px; height: 18px; accent-color: var(--brand-primary); }
.help, .error-text { font-size: .75rem; }
.help { color: var(--muted); }
.error-text { color: #b42318; }
.compact-input { max-width: 160px; }

/* ---------------- Explore / catalog ---------------- */
.catalog-layout { display: grid; grid-template-columns: 265px minmax(0,1fr); gap: 24px; align-items: start; }
.filters-panel { position: sticky; top: 96px; overflow: hidden; }
.filter-grid { display: grid; gap: 13px; }
.empty-state { min-height: 180px; padding: 34px; display: grid; place-items: center; text-align: center; color: var(--muted); }

/* ---------------- Listing details ---------------- */
.detail-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(320px,.7fr); gap: 24px; padding-top: 34px; align-items: start; }
.gallery-main { overflow: hidden; border-radius: calc(var(--radius) + 4px); background: #edf1ef; min-height: 520px; border: 1px solid var(--border); }
.gallery-main img { width: 100%; height: 100%; min-height: 520px; max-height: 680px; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 9px; margin-top: 10px; overflow-x: auto; padding-bottom: 3px; }
.gallery-thumb { flex: 0 0 80px; height: 65px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: transparent; }
.gallery-thumb:hover { border-color: var(--brand-primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-card { position: sticky; top: 98px; overflow: hidden; box-shadow: var(--shadow-sm); }
.detail-card h1 { margin: 13px 0 8px; font-size: clamp(1.45rem,2.4vw,2.2rem); line-height: 1.2; }
.detail-price { margin: 9px 0 15px; color: var(--brand-primary); font-size: 1.55rem; font-weight: 900; }
.spec-list { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 18px 0; }
.spec-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: .82rem; }
.spec-row:last-child { border: 0; }
.spec-row span { color: var(--muted); }
.spec-row strong { text-align: end; }

/* ---------------- Store profile ---------------- */
.store-profile { display: grid; grid-template-columns: 360px minmax(0,1fr); overflow: hidden; }
.store-profile-image { width: 100%; height: 100%; min-height: 290px; object-fit: cover; }
.store-profile-copy { padding: 38px; display: flex; flex-direction: column; justify-content: center; }
.store-profile-copy h1 { margin: 3px 0 7px; font-size: 2.15rem; }

/* ---------------- Account / seller dashboard ---------------- */
.account-layout { display: grid; grid-template-columns: 238px minmax(0,1fr); gap: 24px; align-items: start; }
.account-nav {
    position: sticky; top: 96px; overflow: hidden; padding: 13px; border-radius: calc(var(--radius) + 3px);
    background: var(--brand-secondary); color: #fff; box-shadow: var(--shadow-md);
}
.account-nav::before { content: ""; display: block; height: 72px; margin: -13px -13px 11px; background: radial-gradient(circle at 30% 10%, color-mix(in srgb, var(--brand-primary) 75%, transparent), transparent 54%); opacity: .65; }
.account-link { display: flex; align-items: center; gap: 10px; padding: 11px 12px; margin: 3px 0; border-radius: 10px; color: rgba(255,255,255,.72); font-size: .81rem; font-weight: 750; }
.account-link:hover, .account-link.active { background: color-mix(in srgb, var(--brand-primary) 70%, transparent); color: #fff; }
.account-content { min-width: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 18px 0; }
.stat-card { position: relative; min-height: 116px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.stat-card::after { content: ""; position: absolute; width: 72px; height: 72px; border-radius: 50%; background: var(--primary-soft); inset-inline-end: -24px; top: -24px; }
.stat-card span { display: block; color: var(--muted); font-size: .72rem; margin-bottom: 12px; }
.stat-card strong { display: block; font-size: 1.22rem; color: var(--brand-secondary); line-height: 1.25; }
.status-banner, .subscription-summary, .action-panel, .danger-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; margin-top: 16px; }
.status-approved { border-color: #b7dfce; background: #f5fbf8; }
.status-pending { border-color: #ead7a5; background: #fffbf1; }
.status-rejected, .danger-panel { border-color: #efc8c5; }
.quick-actions { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 17px; overflow: hidden; }
.quick-actions a { padding: 19px; display: flex; align-items: center; justify-content: space-between; border-inline-end: 1px solid var(--border); font-size: .84rem; }
.quick-actions a:last-child { border: 0; }
.quick-actions a:hover { background: var(--primary-soft); }
.compact-head { margin-top: 28px; }
.listing-table { overflow: hidden; }
.listing-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 15px; padding: 15px 17px; border-bottom: 1px solid var(--border); }
.listing-row:last-child { border-bottom: 0; }
.listing-row-rich { grid-template-columns: 62px minmax(0,1fr) auto auto; }
.listing-thumb { width: 62px; height: 62px; border-radius: 11px; object-fit: cover; background: #edf1ef; }
.listing-main { min-width: 0; }

/* ---------------- Subscriptions ---------------- */
.subscription-summary { align-items: flex-start; box-shadow: var(--shadow-sm); }
.stats-inline { display: flex; gap: 28px; flex-wrap: wrap; }
.stats-inline div { display: grid; gap: 3px; }
.stats-inline span { color: var(--muted); font-size: .7rem; }
.stats-inline strong { color: var(--brand-secondary); }
.subscription-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 20px; }
.subscription-card { position: relative; padding: 25px; border-radius: calc(var(--radius) + 2px); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; }
.subscription-card.current-plan { border-color: var(--brand-primary); box-shadow: 0 0 0 1px var(--brand-primary), var(--shadow-md); }
.subscription-card.current-plan::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; background: var(--brand-primary); }
.subscription-card-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.subscription-card h3 { margin: 2px 0 0; font-size: 1.2rem; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0; color: var(--brand-secondary); }
.plan-price strong { font-size: 1.7rem; }
.plan-price span { color: var(--muted); font-size: .75rem; }
.plan-features { list-style: none; padding: 0; margin: 0 0 20px; }
.plan-features li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .78rem; }
.plan-features li span { color: var(--muted); }

/* ---------------- Auth ---------------- */
.auth-shell { max-width: 820px; padding-top: 56px; padding-bottom: 50px; }
.auth-card { max-width: 520px; margin: auto; padding: 32px; box-shadow: var(--shadow-md); }
.auth-card-wide { max-width: 760px; }
.auth-card h1 { margin: 5px 0 7px; font-size: 2rem; color: var(--brand-secondary); }
.auth-switch { text-align: center; margin: 18px 0 0; color: var(--muted); font-size: .82rem; }
.auth-switch a { color: var(--brand-primary); font-weight: 800; }

/* ---------------- Seller forms ---------------- */
.seller-type-switch { display: flex; gap: 22px; padding: 17px 20px; margin-bottom: 16px; }
.checkbox-field { align-self: end; }
.subsection { border-top: 1px solid var(--border); padding-top: 18px; }
.existing-photos, .photo-preview { display: flex; gap: 9px; flex-wrap: wrap; }
.existing-photo { display: grid; gap: 4px; font-size: .75rem; }
.existing-photo img, .photo-preview .thumb { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }

/* ---------------- Chat ---------------- */
.chat-list-standalone, .chat-shell { overflow: hidden; box-shadow: var(--shadow-sm); }
.chat-list-item { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); transition: background .15s ease; }
.chat-list-item:last-child { border: 0; }
.chat-list-item:hover { background: var(--primary-soft); }
.chat-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-secondary); color: #fff; font-weight: 900; }
.chat-summary { min-width: 0; display: grid; gap: 2px; }
.chat-summary span { color: var(--muted); font-size: .77rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-meta { display: grid; justify-items: end; gap: 4px; color: var(--muted); font-size: .68rem; }
.unread-badge { min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; background: var(--brand-primary); color: #fff; display: grid; place-items: center; font-size: .67rem; font-weight: 800; }
.chat-page { max-width: 980px; }
.chat-topbar { display: flex; align-items: center; gap: 13px; padding: 14px 17px; border-bottom: 1px solid var(--border); }
.message-stream { min-height: 460px; max-height: 64vh; overflow-y: auto; padding: 21px; display: flex; flex-direction: column; gap: 8px; background: color-mix(in srgb, var(--page-bg) 88%, #fff); }
.message-row { display: flex; }
.message-row.mine { justify-content: flex-end; }
.message-bubble { max-width: min(72%,600px); padding: 10px 13px; border: 1px solid var(--border); border-radius: 15px 15px 15px 5px; background: var(--surface); }
html[dir="rtl"] .message-bubble { border-radius: 15px 15px 5px 15px; }
.message-row.mine .message-bubble { background: var(--brand-primary); color: #fff; border-color: transparent; border-radius: 15px 15px 5px 15px; }
html[dir="rtl"] .message-row.mine .message-bubble { border-radius: 15px 15px 15px 5px; }
.message-bubble small { display: block; opacity: .68; margin-top: 5px; font-size: .65rem; }
.message-photo { max-width: 260px; width: 100%; border-radius: 9px; margin-bottom: 7px; }
.chat-compose { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 8px; align-items: end; padding: 12px; border-top: 1px solid var(--border); }
.chat-compose textarea { resize: none; min-height: 44px; }
.attach-btn { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 11px; display: grid; place-items: center; cursor: pointer; font-size: 1.2rem; }
.load-older { align-self: center; font-size: .75rem; color: var(--muted); }
.empty-chat { margin: auto; color: var(--muted); }

/* ---------------- Footer ---------------- */
.site-footer { flex: 0 0 auto; margin-top: 0; background: var(--footer-bg); color: #fff; }
.footer-grid { padding: 46px 0 38px; display: grid; grid-template-columns: 1.45fr repeat(2,.75fr); gap: 36px; }
.footer-logo { width: 145px; max-height: 48px; object-fit: contain; object-position: left center; margin-bottom: 15px; filter: brightness(0) invert(1); }
html[dir="rtl"] .footer-logo { object-position: right center; }
.footer-text { max-width: 470px; color: rgba(255,255,255,.62); font-size: .84rem; }
.footer-title { margin-bottom: 12px; font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.footer-links { display: grid; gap: 8px; color: rgba(255,255,255,.69); font-size: .8rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 15px 0; color: rgba(255,255,255,.52); font-size: .74rem; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1120px) {
    .main-nav { display: none; }
    .menu-toggle { display: block; }
    .header-row { grid-template-columns: minmax(0,1fr) auto; }
    .brand { min-width: 0; }
    .header-actions { justify-self: end; }
    
    .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .store-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    
    
    .subscription-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 840px) {
    .container { width: min(calc(100% - 24px), var(--container)); }
    .page { padding-bottom: 32px; }
    .header-row { min-height: 68px; gap: 10px; }
    .brand-logo { width: 124px; }
    .account-chip-copy { display: none; }
    .post-listing-btn { display: none; }
    
    
    
    
    
    
    
    .product-grid, .store-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .catalog-layout, .detail-layout, .account-layout { grid-template-columns: 1fr; }
    .filters-panel, .detail-card, .account-nav { position: static; }
    .detail-layout { padding-top: 22px; }
    .gallery-main, .gallery-main img { min-height: 380px; }
    .account-nav { display: flex; overflow-x: auto; padding: 8px; gap: 2px; }
    .account-nav::before { display: none; }
    .account-link { flex: 0 0 auto; white-space: nowrap; }
    .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .form-row, .form-grid { grid-template-columns: 1fr; }
    .form-grid .full, .field-span-2 { grid-column: auto; }
    .subscription-grid { grid-template-columns: 1fr; }
    
    .store-profile { grid-template-columns: 1fr; }
    .store-profile-image { min-height: 230px; height: 230px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .section, .home-section { margin-top: 42px; }
    .section-head { align-items: center; }
    .section-head h1, .section-head h2 { font-size: 1.45rem; }
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    .category-card { min-height: 126px; }
    .product-grid, .store-grid { grid-template-columns: 1fr; }
    
    
    
    
    
    
    .stats-grid { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: 1fr; }
    .quick-actions a { border-inline-end: 0; border-bottom: 1px solid var(--border); }
    .status-banner, .subscription-summary, .action-panel, .danger-panel { align-items: flex-start; flex-direction: column; }
    .stats-inline { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 14px; }
    .listing-row-rich { grid-template-columns: 52px minmax(0,1fr); }
    .listing-row-rich > .badge, .listing-row-rich > .cluster { grid-column: 2; }
    .listing-row { grid-template-columns: 1fr; }
    .gallery-main, .gallery-main img { min-height: 300px; }
    .store-profile-copy { padding: 25px; }
    .auth-card, .form-panel { padding: 21px; }
    .seller-type-switch { flex-direction: column; }
    .message-bubble { max-width: 88%; }
    .chat-compose { grid-template-columns: auto 1fr; }
    .chat-compose .btn { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > :first-child { grid-column: auto; }
}

/* Dashboard refinements */
.account-link-icon { width: 22px; flex: 0 0 22px; text-align: center; color: color-mix(in srgb, var(--brand-accent) 88%, #fff); font-weight: 900; }
.account-link-button { width: 100%; border: 0; background: transparent; cursor: pointer; text-align: inherit; }
.seller-welcome-card { min-height: 250px; padding: 38px; display: flex; align-items: center; justify-content: space-between; gap: 28px; background: linear-gradient(135deg, var(--surface), var(--primary-soft)); }
.seller-welcome-card h1 { margin: 4px 0 8px; color: var(--brand-secondary); font-size: 2.25rem; }
.seller-welcome-card p { color: var(--muted); }
.dashboard-welcome { position: relative; overflow: hidden; min-height: 128px; padding: 26px 28px; border-radius: calc(var(--radius) + 2px); background: linear-gradient(115deg, var(--brand-secondary), color-mix(in srgb, var(--brand-secondary) 76%, var(--brand-primary))); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; box-shadow: var(--shadow-md); }
.dashboard-welcome::after { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; background: color-mix(in srgb, var(--brand-primary) 32%, transparent); inset-inline-end: -60px; top: -130px; }
.dashboard-welcome > * { position: relative; z-index: 2; }
.dashboard-welcome .eyebrow { color: color-mix(in srgb, var(--brand-accent) 85%, #fff); }
.dashboard-welcome h1 { margin: 2px 0 4px; font-size: 1.85rem; }
.dashboard-welcome p { margin: 0; color: rgba(255,255,255,.68); font-size: .8rem; }
.dashboard-stats .stat-card small { position: absolute; inset-inline-end: 16px; bottom: 14px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--brand-primary); font-weight: 900; }
.dashboard-quick-actions a span { display: grid; gap: 2px; }
.dashboard-quick-actions a small { color: var(--muted); font-size: .65rem; }
.dashboard-quick-actions a b { color: var(--brand-primary); font-size: 1rem; }
.dashboard-listing-table { box-shadow: var(--shadow-sm); }
@media (max-width: 560px) {
    .seller-welcome-card, .dashboard-welcome { align-items: flex-start; flex-direction: column; padding: 25px; }
}

/* Store details — premium marketplace storefront */
.store-marketplace-page { padding-bottom: 82px; }
.store-hero-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 8px);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}
.store-hero-media {
    position: relative;
    height: clamp(230px, 29vw, 380px);
    overflow: hidden;
    background: color-mix(in srgb, var(--brand-secondary) 88%, #0a171a);
}
.store-hero-media > img { width: 100%; height: 100%; object-fit: cover; }
.store-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7,17,20,.06) 20%, rgba(7,17,20,.58) 100%),
        linear-gradient(90deg, rgba(7,17,20,.28), transparent 48%);
    pointer-events: none;
}
html[dir="rtl"] .store-hero-overlay { transform: scaleX(-1); }
.store-hero-badges {
    position: absolute;
    z-index: 2;
    top: 18px;
    inset-inline-start: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.store-type-chip,
.store-approval-chip {
    min-height: 31px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    background: rgba(17,32,36,.64);
    color: #fff;
    font-size: .68rem;
    font-weight: 850;
    backdrop-filter: blur(10px);
}
.store-approval-chip { background: color-mix(in srgb, var(--brand-primary) 88%, transparent); }
.store-approval-chip .fa { width: 16px; text-align: center; font-size: .82rem; }
.store-hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 26px;
    align-items: center;
    padding: 24px 28px 22px;
}
.store-identity-block { min-width: 0; display: flex; align-items: center; gap: 20px; }
.store-logo-shell {
    position: relative;
    width: 122px;
    height: 122px;
    flex: 0 0 122px;
    margin-top: -78px;
    padding: 5px;
    overflow: visible;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: 0 18px 42px rgba(13,33,39,.18);
}
.store-logo-shell > img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; background: var(--page-bg); }
.store-logo-verified {
    position: absolute;
    inset-inline-end: -5px;
    bottom: 9px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 6px 14px rgba(13,33,39,.14);
}
.store-logo-verified .fa { width: 16px; text-align: center; font-size: .75rem; }
.store-identity-copy { min-width: 0; }
.store-identity-copy h1 {
    margin: 0;
    color: var(--brand-secondary);
    font-size: clamp(1.8rem,3vw,2.7rem);
    line-height: 1.08;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}
.store-legal-name { margin: 6px 0 0; color: var(--muted); font-size: .82rem; font-weight: 700; }
.store-meta-line { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 15px; color: var(--muted); }
.store-meta-line > span { min-width: 0; display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; }
.store-meta-line .fa { width: 16px; flex: 0 0 16px; text-align: center; color: var(--brand-primary); }
.store-primary-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.store-primary-actions form { margin: 0; }
.store-primary-actions .btn .fa,
.mobile-store-actions .btn .fa { width: 18px; text-align: center; }
.store-action-primary { min-width: 146px; }
.store-action-secondary { min-width: 124px; }
.store-action-icon { width: 45px; min-width: 45px; padding-inline: 0; }
.store-action-icon .fa { width: 18px; text-align: center; }

.store-hero-facts {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    margin: 0 28px 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: color-mix(in srgb, var(--surface) 76%, var(--page-bg));
}
.store-hero-fact {
    min-height: 72px;
    padding: 12px 16px;
    display: grid;
    align-content: center;
    gap: 3px;
    border-inline-end: 1px solid var(--border);
}
.store-hero-fact:last-child { border-inline-end: 0; }
.store-hero-fact strong { color: var(--brand-secondary); font-size: .78rem; line-height: 1.35; overflow-wrap: anywhere; }
.store-hero-fact:first-child strong { color: var(--brand-primary); font-size: 1.35rem; line-height: 1; }
.store-hero-fact span { color: var(--muted); font-size: .64rem; font-weight: 700; }

.store-section-nav {
    min-height: 54px;
    padding: 0 20px;
    display: flex;
    align-items: stretch;
    gap: 4px;
    overflow-x: auto;
    border-top: 1px solid var(--border);
    scrollbar-width: none;
}
.store-section-nav::-webkit-scrollbar { display: none; }
.store-section-nav a {
    min-height: 54px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 850;
}
.store-section-nav a::after {
    content: "";
    position: absolute;
    inset-inline: 14px;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--brand-primary);
    transform: scaleX(0);
    transition: transform .18s ease;
}
.store-section-nav a:hover { color: var(--brand-primary); }
.store-section-nav a:hover::after,
.store-section-nav a:focus-visible::after { transform: scaleX(1); }

.store-commerce-layout {
    margin-top: 26px;
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(310px,350px);
    gap: 24px;
    align-items: start;
}
html[dir="rtl"] .store-commerce-layout { grid-template-columns: minmax(310px,350px) minmax(0,1fr); }
html[dir="rtl"] .store-commerce-main { grid-column: 2; }
html[dir="rtl"] .store-commerce-aside { grid-column: 1; grid-row: 1; }
.store-commerce-main { min-width: 0; display: grid; gap: 22px; }
.store-commerce-aside { min-width: 0; display: grid; gap: 16px; position: sticky; top: 94px; }
.store-content-card,
.store-side-card {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 1px);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.store-content-card { padding: 24px; }
.store-side-card { padding: 20px; }
#store-listings,
#store-about,
#store-gallery,
#store-contact { scroll-margin-top: 96px; }
.store-section-heading {
    margin-bottom: 19px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}
.store-section-heading h2 { margin: 0; color: var(--brand-secondary); font-size: clamp(1.3rem,2vw,1.8rem); line-height: 1.2; }
.store-count-badge {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--brand-primary);
    font-size: .82rem;
    font-weight: 900;
}
.store-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.store-context-product-card .product-body { padding: 13px 14px 14px; }
.store-context-product-card .product-title { min-height: 2.55em; }
.store-context-product-card .product-card-footer { margin-top: 4px; }
.store-empty-products {
    min-height: 230px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: start;
    border: 1px dashed color-mix(in srgb, var(--border) 84%, var(--brand-primary));
    border-radius: 15px;
    background: color-mix(in srgb, var(--page-bg) 72%, var(--surface));
}
.store-empty-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--primary-soft);
    color: var(--brand-primary);
}
.store-empty-icon .fa { font-size: 1.35rem; }
.store-empty-products h3 { margin: 0; color: var(--brand-secondary); font-size: 1rem; }
.store-empty-products p { margin: 3px 0 0; color: var(--muted); font-size: .72rem; }

.store-gallery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.store-gallery-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 15px;
    background: var(--page-bg);
    aspect-ratio: 16/10;
}
.store-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.store-gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 58%,rgba(8,17,20,.58)); pointer-events: none; }
.store-gallery-item:hover img { transform: scale(1.025); }
.store-gallery-item figcaption {
    position: absolute;
    z-index: 2;
    inset-inline: 14px;
    bottom: 12px;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
}

.store-side-heading { margin-bottom: 16px; display: flex; align-items: center; gap: 11px; }
.store-side-heading.compact { margin-bottom: 13px; }
.store-side-heading h2 { margin: 0; color: var(--brand-secondary); font-size: 1rem; line-height: 1.25; }
.store-side-heading .eyebrow { margin-bottom: 2px; }
.store-side-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--brand-primary);
}
.store-side-icon .fa { font-size: 1.05rem; }
.store-detail-list { display: grid; }
.store-detail-item { padding: 11px 0; display: grid; gap: 3px; border-top: 1px solid var(--border); }
.store-detail-item:first-child { padding-top: 0; border-top: 0; }
.store-detail-item:last-child { padding-bottom: 0; }
.store-detail-item span { color: var(--muted); font-size: .64rem; font-weight: 700; }
.store-detail-item strong { min-width: 0; color: var(--text); font-size: .78rem; line-height: 1.55; overflow-wrap: anywhere; }
.store-contact-stack { display: grid; }
.store-contact-stack a {
    min-height: 55px;
    padding: 9px 0;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--border);
    transition: color .16s ease;
}
.store-contact-stack a:first-child { padding-top: 0; border-top: 0; }
.store-contact-stack a:last-child { padding-bottom: 0; }
.store-contact-stack a:hover { color: var(--brand-primary); }
.store-contact-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--page-bg);
    color: var(--brand-primary);
}
.store-contact-icon .fa { width: 18px; text-align: center; }
.store-contact-stack a > span:nth-child(2) { min-width: 0; display: grid; gap: 1px; }
.store-contact-stack small { color: var(--muted); font-size: .61rem; }
.store-contact-stack strong { min-width: 0; overflow-wrap: anywhere; font-size: .74rem; }
.store-contact-stack b { color: var(--muted); font-size: 1.1rem; font-weight: 500; }
html[dir="rtl"] .store-contact-stack b { transform: rotate(180deg); }
.mobile-store-actions { display: none; }

@media (max-width: 1180px) {
    .store-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 980px) {
    .store-hero-content { grid-template-columns: 1fr; align-items: start; }
    .store-primary-actions { justify-content: flex-start; }
    .store-commerce-layout,
    html[dir="rtl"] .store-commerce-layout { grid-template-columns: 1fr; }
    html[dir="rtl"] .store-commerce-main,
    html[dir="rtl"] .store-commerce-aside { grid-column: auto; grid-row: auto; }
    .store-commerce-aside { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .store-contact-card { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .store-marketplace-page { padding-top: 18px; }
    .store-hero-card { border-radius: calc(var(--radius) + 2px); }
    .store-hero-media { height: 220px; }
    .store-hero-badges { top: 13px; inset-inline-start: 14px; }
    .store-hero-content { padding: 18px; gap: 17px; }
    .store-identity-block { align-items: flex-start; gap: 14px; }
    .store-logo-shell { width: 96px; height: 96px; flex-basis: 96px; margin-top: -54px; border-radius: 22px; }
    .store-logo-shell > img { border-radius: 17px; }
    .store-logo-verified { width: 25px; height: 25px; bottom: 5px; }
    .store-identity-copy h1 { font-size: 1.65rem; }
    .store-meta-line { display: grid; gap: 5px; }
    .store-primary-actions { width: 100%; }
    .store-primary-actions .store-action-primary,
    .store-primary-actions .store-action-secondary { flex: 1 1 145px; }
    .store-primary-actions form { flex: 1 1 145px; }
    .store-primary-actions form .btn { width: 100%; }
    .store-hero-facts { margin: 0 18px 16px; grid-template-columns: 1fr 1fr; }
    .store-hero-fact { min-height: 66px; }
    .store-hero-fact:nth-child(2) { border-inline-end: 0; }
    .store-hero-fact:last-child { grid-column: 1 / -1; border-top: 1px solid var(--border); }
    .store-section-nav { padding-inline: 8px; }
    .store-section-nav a { padding-inline: 12px; }
    .store-commerce-layout { margin-top: 18px; }
    .store-commerce-main { gap: 16px; }
    .store-content-card { padding: 18px; }
    .store-commerce-aside { grid-template-columns: 1fr; gap: 12px; }
    .store-contact-card { grid-column: auto; }
    .store-gallery-grid { gap: 9px; }
    .store-section-heading { align-items: center; }

    .has-mobile-store-actions { padding-bottom: 112px; }
    .has-mobile-store-actions .store-primary-actions { display: none; }
    .mobile-store-actions {
        position: fixed;
        z-index: 75;
        inset-inline: 0;
        bottom: 0;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        gap: 8px;
        padding: 10px max(14px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));
        border-top: 1px solid var(--border);
        background: color-mix(in srgb, var(--surface) 94%, transparent);
        backdrop-filter: blur(16px);
        box-shadow: 0 -12px 34px rgba(15,35,40,.09);
    }
    .mobile-store-actions form,
    .mobile-store-actions form .btn,
    .mobile-store-actions > .btn { width: 100%; }
}

@media (max-width: 520px) {
    .store-marketplace-page .container { width: min(calc(100% - 24px), var(--container)); }
    .store-hero-media { height: 190px; }
    .store-type-chip,
    .store-approval-chip { min-height: 29px; padding: 5px 8px; font-size: .62rem; }
    .store-hero-content { padding: 16px; }
    .store-identity-block { gap: 12px; }
    .store-logo-shell { width: 82px; height: 82px; flex-basis: 82px; margin-top: -44px; padding: 4px; border-radius: 19px; }
    .store-logo-shell > img { border-radius: 14px; }
    .store-logo-verified { width: 23px; height: 23px; inset-inline-end: -4px; bottom: 3px; border-width: 2px; }
    .store-logo-verified .fa { width: 14px; font-size: .68rem; }
    .store-identity-copy h1 { font-size: 1.4rem; line-height: 1.15; }
    .store-legal-name { font-size: .72rem; }
    .store-meta-line > span { font-size: .65rem; }
    .store-hero-facts { margin-inline: 14px; }
    .store-hero-fact { padding: 10px 12px; }
    .store-section-nav { min-height: 48px; }
    .store-section-nav a { min-height: 48px; font-size: .7rem; }
    .store-content-card,
    .store-side-card { border-radius: 14px; }
    .store-content-card { padding: 15px; }
    .store-side-card { padding: 17px; }
    .store-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
    .store-context-product-card .product-media { aspect-ratio: 1.18; }
    .store-context-product-card .product-body { padding: 10px 10px 11px; }
    .store-context-product-card .product-meta { gap: 5px; margin-bottom: 4px; font-size: .6rem; }
    .store-context-product-card .product-title { min-height: 2.55em; margin-bottom: 6px; font-size: .78rem; }
    .store-context-product-card .product-price { font-size: .75rem; }
    .store-context-product-card .product-open { width: 25px; height: 25px; }
    .store-context-product-card .favorite-btn { top: 7px; inset-inline-end: 7px; width: 31px; height: 31px; }
    .store-section-heading { margin-bottom: 14px; }
    .store-section-heading h2 { font-size: 1.2rem; }
    .store-count-badge { min-width: 36px; height: 36px; }
    .store-gallery-grid { grid-template-columns: 1fr; }
    .store-gallery-item { aspect-ratio: 16/9; }
    .store-empty-products { min-height: 190px; padding: 22px; align-items: flex-start; }
}

@media (max-width: 360px) {
    .store-hero-facts { grid-template-columns: 1fr; }
    .store-hero-fact,
    .store-hero-fact:nth-child(2) { border-inline-end: 0; border-top: 1px solid var(--border); }
    .store-hero-fact:first-child { border-top: 0; }
    .store-hero-fact:last-child { grid-column: auto; }
    .store-product-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   WEB UX PATCH — chat, filters, public pages and store attribution
   ================================================================ */
.product-store-name {
    display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin: -1px 0 9px;
    color: color-mix(in srgb, var(--text) 76%, var(--muted)); font-size: .69rem; font-weight: 750;
}
.product-store-name:hover { color: var(--brand-primary); }
.product-store-name > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-store-mark {
    width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; border-radius: 50%;
    background: var(--primary-soft); color: var(--brand-primary); font-size: .58rem; font-weight: 900;
}
.product-store-name b { color: var(--brand-primary); font-size: .64rem; }

/* Home search now includes Country + City. */


/* Directory filters */
.directory-page { padding-bottom: 28px; }
.directory-filter-panel { padding: 16px; margin: 0 0 18px; box-shadow: var(--shadow-sm); }
.directory-filter-grid {
    display: grid; grid-template-columns: minmax(260px,1.55fr) minmax(160px,.8fr) minmax(160px,.8fr) auto auto;
    gap: 11px; align-items: end;
}
.private-seller-filter-grid { grid-template-columns: minmax(220px,1.4fr) repeat(4,minmax(140px,.72fr)) auto auto; }
.directory-filter-panel .field { margin: 0; }
.directory-filter-submit, .directory-filter-clear { min-height: 46px; }
.directory-result-head { display: flex; justify-content: space-between; align-items: center; min-height: 38px; margin-bottom: 12px; color: var(--muted); font-size: .78rem; }

/* Public subscription plans */
.public-plans-page { padding-bottom: 35px; }
.public-plans-hero {
    position: relative; overflow: hidden; padding: 42px 44px; display: flex; align-items: center; justify-content: space-between; gap: 30px;
    background: linear-gradient(125deg, var(--surface), var(--accent-soft)); box-shadow: var(--shadow-md);
}
.public-plans-hero::after { content: ""; position: absolute; width: 250px; height: 250px; border-radius: 50%; inset-inline-end: -80px; top: -130px; background: color-mix(in srgb, var(--brand-accent) 20%, transparent); }
.public-plans-hero > * { position: relative; z-index: 2; }
.public-plans-hero h1 { margin: 3px 0 8px; color: var(--brand-secondary); font-size: clamp(2rem,3.5vw,3.25rem); line-height: 1.08; }
.public-plans-hero p { max-width: 700px; margin: 0; color: var(--muted); }
.public-subscription-grid { margin-top: 28px; }
.plan-card { position: relative; padding: 28px; border: 1px solid var(--border); border-radius: calc(var(--radius) + 3px); background: var(--surface); box-shadow: var(--shadow-sm); }
.plan-card.featured-plan { border-color: var(--brand-primary); box-shadow: 0 0 0 1px var(--brand-primary), var(--shadow-md); }
.plan-ribbon { position: absolute; top: 15px; inset-inline-end: 15px; border-radius: 999px; background: var(--brand-primary); color: #fff; padding: 5px 9px; font-size: .64rem; font-weight: 850; }
.plan-card-head h2 { margin: 2px 0 7px; color: var(--brand-secondary); font-size: 1.45rem; }
.plan-card-head p { min-height: 42px; color: var(--muted); font-size: .79rem; }
.plan-feature-list { list-style: none; margin: 0 0 22px; padding: 0; }
.plan-feature-list li { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .78rem; }
.plan-feature-list li span { color: var(--brand-primary); font-weight: 900; }
.plan-feature-list li b { margin-inline-start: auto; }
.plan-detail-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(280px,.65fr); gap: 22px; margin-top: 18px; }
.plan-detail-main, .plan-detail-aside { padding: 30px; box-shadow: var(--shadow-sm); }
.plan-detail-main h1 { margin: 2px 0 8px; color: var(--brand-secondary); font-size: 2.4rem; }
.plan-detail-description { color: var(--muted); max-width: 760px; }
.plan-detail-price { display: flex; align-items: baseline; gap: 10px; margin: 25px 0; color: var(--brand-primary); }
.plan-detail-price strong { font-size: 2rem; }
.plan-detail-price span { color: var(--muted); }
.plan-detail-features { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.plan-detail-features div { min-height: 80px; padding: 16px 18px; display: grid; gap: 4px; border-bottom: 1px solid var(--border); border-inline-end: 1px solid var(--border); }
.plan-detail-features div:nth-child(even) { border-inline-end: 0; }
.plan-detail-features div:nth-last-child(-n/**/+2) { border-bottom: 0; }
.plan-detail-features span { color: var(--muted); font-size: .7rem; }
.plan-detail-features strong { color: var(--brand-secondary); }
.plan-detail-aside { height: fit-content; position: sticky; top: 96px; }
.plan-detail-aside h3 { margin: 14px 0 5px; color: var(--brand-secondary); }
.plan-detail-aside p { color: var(--muted); font-size: .8rem; }
.back-link { margin-bottom: 8px; }

/* Privacy and contact */
.content-page-wrap { max-width: 1000px; }
.content-page-hero { max-width: 720px; margin-bottom: 22px; }
.content-page-hero h1 { margin: 3px 0 8px; color: var(--brand-secondary); font-size: clamp(2rem,3.5vw,3.25rem); }
.content-page-hero p { margin: 0; color: var(--muted); }
.content-page-card { padding: clamp(24px,4vw,48px); box-shadow: var(--shadow-sm); }
.rich-content { color: color-mix(in srgb, var(--text) 88%, transparent); }
.rich-content h1, .rich-content h2, .rich-content h3, .rich-content h4 { color: var(--brand-secondary); margin-top: 1.5em; }
.rich-content a { color: var(--brand-primary); text-decoration: underline; }
.contact-grid { display: grid; grid-template-columns: minmax(280px,.72fr) minmax(0,1.35fr); gap: 22px; }
.contact-info-card, .contact-form { padding: 28px; box-shadow: var(--shadow-sm); }
.contact-info-brand { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.contact-info-brand > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-secondary); color: var(--brand-accent); }
.contact-info-brand div { display: grid; gap: 2px; }
.contact-info-brand small { color: var(--muted); }
.contact-info-row { min-height: 74px; display: flex; align-items: center; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.contact-info-row > span { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--brand-primary); }
.contact-info-row div { min-width: 0; display: grid; gap: 2px; }
.contact-info-row small { color: var(--muted); font-size: .69rem; }
.contact-info-row strong { overflow-wrap: anywhere; font-size: .82rem; }
.contact-form .textarea { width: 100%; resize: vertical; }
.form-errors { margin: 10px 0; color: #b42318; font-size: .78rem; }
.footer-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-bottom-row a:hover { color: #fff; }

/* Premium split chat */
.chat-page-head { align-items: center; }
.chat-workspace {
    min-height: 680px; height: min(74vh,820px); display: grid; grid-template-columns: minmax(280px,34%) minmax(0,66%);
    padding: 0; overflow: hidden; box-shadow: var(--shadow-md); transition: opacity .16s ease;
}
html[dir="rtl"] .chat-workspace { grid-template-columns: minmax(0,66%) minmax(280px,34%); }
html[dir="rtl"] .chat-sidebar { grid-column: 2; grid-row: 1; }
html[dir="rtl"] .chat-conversation { grid-column: 1; grid-row: 1; }
.chat-workspace.is-loading { opacity: .72; }
.chat-sidebar { min-width: 0; display: grid; grid-template-rows: auto auto minmax(0,1fr); background: var(--surface); border-inline-end: 1px solid var(--border); }
.chat-sidebar-head { min-height: 76px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }
.chat-sidebar-head > div { display: grid; gap: 2px; }
.chat-sidebar-head strong { color: var(--brand-secondary); }
.chat-sidebar-head small { color: var(--muted); font-size: .68rem; }
.chat-live-indicator { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--brand-primary); font-size: .62rem; font-weight: 850; }
.chat-live-indicator i, .status-dot { width: 7px; height: 7px; border-radius: 50%; background: #19a974; box-shadow: 0 0 0 3px rgba(25,169,116,.11); }
.chat-search-wrap { margin: 12px 14px; min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--page-bg); color: var(--muted); }
.chat-search-input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: .78rem; }
.chat-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.chat-list-item { min-height: 76px; grid-template-columns: 48px minmax(0,1fr) auto; padding: 12px 15px; border-bottom: 1px solid var(--border); }
.chat-list-item.active { background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--brand-primary); }
html[dir="rtl"] .chat-list-item.active { box-shadow: inset -3px 0 0 var(--brand-primary); }
.chat-list-item.search-hidden { display: none; }
.chat-avatar { overflow: hidden; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.chat-list-empty { padding: 28px 18px; display: grid; gap: 9px; color: var(--muted); }
.chat-conversation { min-width: 0; display: grid; grid-template-rows: auto minmax(0,1fr) auto; background: color-mix(in srgb, var(--page-bg) 72%, var(--surface)); }
.chat-conversation-head { min-height: 76px; display: flex; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--border); background: var(--surface); }
.chat-current-identity { display: flex; align-items: center; gap: 12px; }
.chat-current-identity > div:last-child { display: grid; gap: 2px; }
.chat-current-identity strong { color: var(--brand-secondary); }
.chat-current-identity small { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .67rem; }
.chat-avatar-lg { width: 50px; height: 50px; }
.chat-message-stream { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px; scroll-behavior: smooth; }
.chat-messages-inner { display: flex; flex-direction: column; gap: 8px; min-height: 100%; justify-content: flex-end; }
.chat-load-older { display: flex; margin: 0 auto 14px; }
.chat-bubble-row { display: flex; }
.chat-bubble-row.mine { justify-content: flex-end; }
.chat-bubble-row.theirs { justify-content: flex-start; }
.chat-bubble { max-width: min(76%,620px); padding: 10px 13px 7px; border: 1px solid var(--border); border-radius: 16px 16px 16px 5px; background: var(--surface); box-shadow: 0 4px 12px rgba(24,49,56,.035); }
html[dir="rtl"] .chat-bubble { border-radius: 16px 16px 5px 16px; }
.chat-bubble-row.mine .chat-bubble { color: var(--button-text); background: var(--button-bg); border-color: transparent; border-radius: 16px 16px 5px 16px; }
html[dir="rtl"] .chat-bubble-row.mine .chat-bubble { border-radius: 16px 16px 16px 5px; }
.chat-message-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .84rem; }
.chat-message-photo { display: block; max-width: 300px; max-height: 300px; margin-top: 5px; border-radius: 10px; object-fit: cover; }
.chat-message-footer { margin-top: 5px; display: flex; align-items: center; justify-content: flex-end; gap: 5px; opacity: .64; font-size: .61rem; }
.chat-compose { grid-template-columns: auto minmax(0,1fr) auto; min-height: 76px; padding: 12px 16px; align-items: end; background: var(--surface); }
.chat-compose textarea { width: 100%; min-height: 46px; max-height: 120px; padding: 12px 14px; resize: none; outline: 0; border: 1px solid var(--border); border-radius: 13px; background: var(--page-bg); }
.chat-compose textarea:focus { border-color: color-mix(in srgb, var(--brand-primary) 55%, var(--border)); box-shadow: 0 0 0 3px var(--primary-soft); }
.chat-attach { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); cursor: pointer; font-size: 1.2rem; color: var(--brand-primary); }
.chat-attach input { display: none; }
.chat-send-button { min-height: 46px; }
.chat-conversation-empty { min-height: 100%; grid-row: 1 / -1; display: grid; place-items: center; align-content: center; text-align: center; padding: 40px; }
.chat-conversation-empty h3 { margin: 12px 0 5px; color: var(--brand-secondary); }
.chat-conversation-empty p { max-width: 360px; margin: 0 0 18px; color: var(--muted); }
.empty-chat-icon { width: 78px; height: 78px; border-radius: 24px; display: grid; place-items: center; background: var(--primary-soft); color: var(--brand-primary); font-size: 2rem; }

@media (max-width: 1120px) {
    
    
    .private-seller-filter-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .private-seller-filter-grid .directory-search-field { grid-column: span 2; }
}

@media (max-width: 900px) {
    .directory-filter-grid, .private-seller-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .directory-search-field, .private-seller-filter-grid .directory-search-field { grid-column: 1 / -1; }
    .chat-workspace, html[dir="rtl"] .chat-workspace { height: auto; min-height: 680px; grid-template-columns: 1fr; grid-template-rows: 300px minmax(560px,1fr); }
    .chat-sidebar, html[dir="rtl"] .chat-sidebar { grid-column: 1; grid-row: 1; border-inline-end: 0; border-bottom: 1px solid var(--border); }
    .chat-conversation, html[dir="rtl"] .chat-conversation { grid-column: 1; grid-row: 2; min-height: 560px; }
    .plan-detail-grid, .contact-grid { grid-template-columns: 1fr; }
    .plan-detail-aside { position: static; }
}

@media (max-width: 640px) {
    .directory-filter-grid, .private-seller-filter-grid { grid-template-columns: 1fr; }
    .directory-search-field, .private-seller-filter-grid .directory-search-field { grid-column: auto; }
    .directory-filter-submit, .directory-filter-clear { width: 100%; }
    .public-plans-hero { padding: 28px 24px; align-items: flex-start; flex-direction: column; }
    .plan-detail-features { grid-template-columns: 1fr; }
    .plan-detail-features div, .plan-detail-features div:nth-child(even), .plan-detail-features div:nth-last-child(-n/**/+2) { border-inline-end: 0; border-bottom: 1px solid var(--border); }
    .plan-detail-features div:last-child { border-bottom: 0; }
    .contact-info-card, .contact-form, .plan-detail-main, .plan-detail-aside { padding: 21px; }
    .chat-page-head { align-items: flex-start; flex-direction: column; }
    .chat-mode-switch { width: 100%; }
    .chat-mode-switch .btn { flex: 1; }
    .chat-workspace, html[dir="rtl"] .chat-workspace { margin-inline: -12px; border-radius: 0; border-inline: 0; }
    .chat-message-stream { padding: 14px 12px; }
    .chat-bubble { max-width: 88%; }
    .chat-compose { grid-template-columns: auto minmax(0,1fr); }
    .chat-send-button { grid-column: 1 / -1; }
    .footer-bottom-row { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 1120px) and (min-width: 841px) {
    
}

@media (max-width: 560px) {
    .header-actions > .locale-switch { display: none; }
    .account-dropdown { width: min(245px, calc(100vw - 24px)); }
}

/* ================================================================
   ELITE EXPERIENCE REFINEMENT — product, trust, motion, mobile drawer
   ================================================================ */
.site-header { transition: box-shadow .22s ease, background .22s ease, border-color .22s ease; }
.site-header.is-scrolled { box-shadow: 0 12px 34px rgba(17, 35, 40, .075); border-color: color-mix(in srgb, var(--border) 55%, transparent); }


.elite-process-number { position: absolute; inset-inline-end: 18px; top: 14px; color: color-mix(in srgb, var(--brand-secondary) 7%, transparent); font-weight: 900; font-size: 3.8rem; line-height: 1; }


/* Richer listing and store cards */
.product-store-mark { overflow: hidden; background: var(--brand-secondary); color: #fff; }
.product-store-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.product-store-copy { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-card { position: relative; border-color: color-mix(in srgb, var(--border) 90%, transparent); }
.store-cover { position: relative; height: 148px; }
.store-cover img { transition: transform .4s ease; }
.store-card:hover .store-cover img { transform: scale(1.04); }
.store-cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(13,28,32,.2)); pointer-events: none; }
.store-approved-chip { position: absolute; top: 11px; inset-inline-end: 11px; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.93); color: var(--brand-primary); font-size: .61rem; font-weight: 900; box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.store-avatar { margin-top: -26px; width: 54px; height: 54px; border: 3px solid var(--surface); border-radius: 15px; }
.store-card-meta { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .6rem; }
.store-card-meta .seller-badge { margin-top: 0; }
.store-open { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); transition: transform .18s ease, background .18s ease; }
.store-card:hover .store-open { transform: translate(2px,-2px); background: color-mix(in srgb, var(--brand-primary) 16%, #fff); }
html[dir="rtl"] .store-card:hover .store-open { transform: translate(-2px,-2px); }

/* Product detail */
.breadcrumb { display: flex; align-items: center; gap: 8px; margin: 2px 0 18px; color: var(--muted); font-size: .72rem; overflow: hidden; white-space: nowrap; }
.breadcrumb a { font-weight: 750; transition: color .16s ease; }
.breadcrumb a:hover { color: var(--brand-primary); }
.breadcrumb span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.product-detail-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(350px,.72fr); gap: 24px; align-items: start; }
.product-gallery-card { overflow: hidden; box-shadow: var(--shadow-sm); }
.product-gallery-main { position: relative; min-height: 580px; background: color-mix(in srgb, var(--page-bg) 78%, #fff); overflow: hidden; }
.product-gallery-main > img { width: 100%; height: 580px; object-fit: contain; transition: opacity .18s ease, transform .28s ease; }
.product-gallery-main.is-changing > img { opacity: .45; transform: scale(.992); }
.product-gallery-topline { position: absolute; z-index: 3; inset-inline: 16px; top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.product-gallery-topline > * { pointer-events: auto; }
.premium-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.72); border-radius: 999px; background: rgba(255,255,255,.9); color: var(--text); font-size: .65rem; font-weight: 850; backdrop-filter: blur(9px); box-shadow: 0 6px 18px rgba(0,0,0,.05); }
.premium-chip-gold { background: color-mix(in srgb, var(--brand-accent) 88%, #fff); color: color-mix(in srgb, var(--brand-secondary) 88%, #000); }
.product-gallery-actions { display: flex; gap: 7px; }
.icon-action { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.82); border-radius: 50%; background: rgba(255,255,255,.92); color: var(--text); box-shadow: 0 7px 20px rgba(0,0,0,.08); font-size: 1rem; transition: transform .16s ease, color .16s ease; }
.icon-action:hover { transform: translateY(-2px); color: var(--brand-primary); }
.icon-action.active { color: #cf2e2e; }
.gallery-counter { position: absolute; z-index: 3; bottom: 15px; inset-inline-end: 16px; padding: 6px 10px; border-radius: 999px; background: rgba(17,25,28,.72); color: #fff; font-size: .68rem; font-weight: 800; backdrop-filter: blur(8px); }
.product-gallery-thumbs { padding: 12px; display: flex; gap: 9px; overflow-x: auto; background: var(--surface); border-top: 1px solid var(--border); scrollbar-width: thin; }
.product-gallery-thumbs .gallery-thumb { width: 82px; height: 66px; flex: 0 0 82px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 11px; background: var(--page-bg); opacity: .72; transition: opacity .16s ease, border-color .16s ease, transform .16s ease; }
.product-gallery-thumbs .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs .gallery-thumb:hover, .product-gallery-thumbs .gallery-thumb.active { opacity: 1; border-color: var(--brand-primary); transform: translateY(-1px); }
.product-summary-card { position: sticky; top: 96px; box-shadow: var(--shadow-md); }
.product-summary-body { padding: 27px; }
.product-summary-kicker { display: flex; align-items: center; gap: 7px; min-height: 22px; margin-bottom: 8px; color: var(--brand-primary); font-size: .71rem; font-weight: 850; text-transform: uppercase; letter-spacing: .045em; }
.product-summary-card h1 { margin: 0; color: var(--brand-secondary); font-size: clamp(1.65rem,2.5vw,2.55rem); line-height: 1.15; letter-spacing: -.025em; }
.product-detail-price { margin: 16px 0 12px; color: var(--brand-primary); font-size: clamp(1.65rem,2.4vw,2.35rem); line-height: 1; font-weight: 900; }
.product-summary-text { margin: 0 0 19px; color: var(--muted); font-size: .85rem; line-height: 1.7; }
.product-quick-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 18px 0 20px; overflow: hidden; border: 1px solid var(--border); border-radius: 13px; background: var(--page-bg); }
.product-quick-facts > div { min-height: 70px; display: grid; align-content: center; gap: 3px; padding: 10px 12px; border-inline-end: 1px solid var(--border); }
.product-quick-facts > div:last-child { border-inline-end: 0; }
.product-quick-facts small { color: var(--muted); font-size: .62rem; }
.product-quick-facts strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .74rem; }
.product-seller-card { margin-top: 17px; padding: 16px; border: 1px solid var(--border); border-radius: 15px; background: color-mix(in srgb, var(--surface) 82%, var(--page-bg)); }
.product-seller-head { display: flex; gap: 12px; align-items: center; }
.product-seller-avatar { width: 54px; height: 54px; flex: 0 0 54px; overflow: hidden; display: grid; place-items: center; border-radius: 15px; background: var(--brand-secondary); color: #fff; font-weight: 900; box-shadow: 0 7px 18px rgba(17,41,47,.12); }
.product-seller-avatar img { width: 100%; height: 100%; object-fit: cover; }
.product-seller-copy { min-width: 0; flex: 1; }
.seller-overline { display: block; color: var(--muted); font-size: .61rem; font-weight: 750; margin-bottom: 2px; }
.seller-name-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.seller-name-line a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--brand-secondary); font-size: .9rem; font-weight: 900; }
.verified-dot { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-primary); color: #fff; font-size: .55rem; }
.seller-meta-line { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 4px; color: var(--muted); font-size: .62rem; }
.seller-trust-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0; padding: 11px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.seller-trust-row > span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .61rem; font-weight: 700; }
.seller-trust-row i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--brand-primary); font-style: normal; font-size: .58rem; }
.product-contact-actions { display: grid; gap: 8px; }
.product-contact-actions form { margin: 0; }
.listing-confidence-note { display: flex; gap: 10px; margin-top: 15px; padding: 13px; border-radius: 13px; background: var(--accent-soft); }
.confidence-icon { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-accent); color: var(--brand-secondary); font-weight: 900; }
.listing-confidence-note div { display: grid; gap: 2px; }
.listing-confidence-note strong { font-size: .7rem; color: var(--brand-secondary); }
.listing-confidence-note p { margin: 0; color: color-mix(in srgb, var(--text) 70%, var(--muted)); font-size: .63rem; line-height: 1.45; }
.product-detail-lower-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); gap: 22px; margin-top: 24px; align-items: start; }
.product-information-card, .product-description-card { box-shadow: var(--shadow-sm); }
.product-information-card .panel-head, .product-description-card .panel-head { align-items: end; }
.product-information-card .eyebrow, .product-description-card .eyebrow { margin-bottom: 2px; }
.premium-spec-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--border); border-radius: 13px; overflow: hidden; }
.premium-spec-item { min-height: 72px; display: grid; align-content: center; gap: 4px; padding: 13px 15px; border-bottom: 1px solid var(--border); border-inline-end: 1px solid var(--border); }
.premium-spec-item:nth-child(even) { border-inline-end: 0; }
.premium-spec-item:nth-last-child(-n/**/+2) { border-bottom: 0; }
.premium-spec-item span { color: var(--muted); font-size: .67rem; }
.premium-spec-item strong { color: var(--text); font-size: .82rem; overflow-wrap: anywhere; }
.product-description-copy { color: color-mix(in srgb, var(--text) 84%, var(--muted)); font-size: .86rem; line-height: 1.85; }
.mobile-product-actions { display: none; }

/* Motion */
[data-reveal], [data-reveal-item] { transition: opacity .52s cubic-bezier(.2,.7,.2,1), transform .52s cubic-bezier(.2,.7,.2,1); }
.js-reveal-ready [data-reveal]:not(.is-revealed), .js-reveal-ready [data-reveal-item]:not(.is-revealed) { opacity: 0; transform: translateY(18px); }
[data-reveal-item]:nth-child(2) { transition-delay: .04s; }
[data-reveal-item]:nth-child(3) { transition-delay: .08s; }
[data-reveal-item]:nth-child(4) { transition-delay: .12s; }

/* Mobile navigation — compact, lightweight drawer */
.mobile-nav-backdrop { display: none; }
@media (max-width: 1120px) {
    .main-nav { display: none; }
    .menu-toggle { display: grid; place-items: center; position: relative; z-index: 1; }
    .desktop-currency-menu, .desktop-locale-switch, .header-actions > .account-menu, .header-actions > .account-icon, .header-actions > .post-listing-btn { display: none; }
    .header-row { min-height: 68px; grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
    .brand { min-width: 0; max-width: min(220px,70vw); overflow: hidden; }
    .brand-logo { width: auto; max-width: 150px; height: 42px; max-height: 42px; }
    .header-actions { min-width: 44px; justify-self: end; }
    .menu-toggle { width: 44px; height: 44px; padding: 0; border-radius: 13px; }

    .mobile-nav-backdrop {
        display: block; position: fixed; inset: 0; z-index: 999; width: 100%; height: 100%; padding: 0; border: 0;
        background: rgba(10,24,28,.38); opacity: 0; visibility: hidden; pointer-events: none;
        transition: opacity .2s ease, visibility .2s ease; backdrop-filter: blur(2px);
    }
    .mobile-nav-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; }

    .mobile-nav, .mobile-nav.open {
        position: fixed; z-index: 1000; top: 0; bottom: 0; left: 0; right: auto;
        width: min(304px,84vw); max-height: 100dvh;
        display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0;
        overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
        border: 0; border-inline-end: 1px solid var(--border); border-radius: 0;
        background: var(--surface); box-shadow: 18px 0 44px rgba(11,28,32,.18);
        transform: translateX(-102%); visibility: hidden;
        transition: transform .22s cubic-bezier(.2,.75,.2,1), visibility .22s ease;
    }
    html[dir="rtl"] .mobile-nav, html[dir="rtl"] .mobile-nav.open {
        left: auto; right: 0; border-inline-end: 0; border-inline-start: 1px solid var(--border);
        box-shadow: -18px 0 44px rgba(11,28,32,.18); transform: translateX(102%);
    }
    .mobile-nav::-webkit-scrollbar { display: none; }
    .mobile-nav.open, html[dir="rtl"] .mobile-nav.open { transform: translateX(0); visibility: visible; }

    .mobile-nav-head {
        position: sticky; top: 0; z-index: 4; min-height: 62px; padding: max(10px,env(safe-area-inset-top)) 14px 10px;
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        border-bottom: 1px solid var(--border); background: var(--surface);
    }
    .mobile-drawer-brand { min-width: 0; display: flex; align-items: center; }
    .mobile-drawer-brand img { width: auto; max-width: 112px; height: 32px; max-height: 32px; object-fit: contain; }
    .mobile-nav-close { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-size: .92rem; }
    .mobile-nav-close:hover, .mobile-nav-close:focus-visible { color: var(--brand-primary); background: var(--primary-soft); border-color: color-mix(in srgb,var(--brand-primary) 30%,var(--border)); }

    .mobile-account-row { margin: 10px 12px 4px; min-height: 48px; padding: 7px 8px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 9px; border-radius: 12px; color: var(--text); background: color-mix(in srgb, var(--primary-soft) 68%, var(--surface)); }
    .mobile-account-avatar { width: 34px; height: 34px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: var(--brand-secondary); color: #fff; font-size: .75rem; font-weight: 900; }
    .mobile-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .mobile-account-copy { min-width: 0; display: grid; gap: 1px; }
    .mobile-account-copy strong, .mobile-account-copy small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .mobile-account-copy strong { font-size: .75rem; line-height: 1.25; }
    .mobile-account-copy small { color: var(--muted); font-size: .6rem; }
    .mobile-account-action { color: var(--brand-primary); font-size: .64rem; font-weight: 800; }

    .mobile-nav-links { padding: 7px 10px 5px; display: grid; gap: 2px; }
    .mobile-nav-link { min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 4px 7px; border-radius: 10px; color: var(--muted); border: 1px solid transparent; }
    .mobile-nav-link > span { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 9px; background: var(--page-bg); color: var(--brand-primary); font-size: .78rem; }
    .mobile-nav-link strong { min-width: 0; font-size: .75rem; font-weight: 750; }
    .mobile-nav-link:hover, .mobile-nav-link.active { color: var(--brand-secondary); background: var(--primary-soft); }
    .mobile-nav-link.active > span { background: var(--brand-primary); color: var(--button-text); }

    .mobile-nav-shortcuts { margin: 4px 12px 8px; padding: 8px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
    .mobile-shortcut { min-width: 0; min-height: 48px; display: grid; place-items: center; align-content: center; gap: 4px; border-radius: 10px; color: var(--muted); font-size: .62rem; text-align: center; }
    .mobile-shortcut .ui-icon { color: var(--brand-primary); font-size: .9rem; }
    .mobile-shortcut:hover, .mobile-shortcut.active { color: var(--brand-secondary); background: var(--primary-soft); }

    .mobile-nav-actions { padding: 2px 12px 8px; }
    .mobile-post-listing { min-height: 42px; border-radius: 11px; font-size: .76rem; }

    .mobile-nav-preferences { margin: 0 12px; padding: 8px 0; display: grid; gap: 5px; border-top: 1px solid var(--border); }
    .mobile-currency-menu { position: relative; }
    .mobile-currency-menu > summary { min-height: 40px; padding: 0 9px; display: grid; grid-template-columns: minmax(0,1fr) auto 14px; align-items: center; gap: 8px; border-radius: 10px; cursor: pointer; color: var(--muted); list-style: none; background: var(--page-bg); }
    .mobile-currency-menu > summary::-webkit-details-marker { display: none; }
    .mobile-currency-menu > summary span { font-size: .66rem; font-weight: 750; }
    .mobile-currency-menu > summary strong { color: var(--text); font-size: .68rem; }
    .mobile-currency-menu[open] > summary .fa-chevron-down { transform: rotate(180deg); }
    .mobile-currency-menu-options { margin-top: 5px; padding: 5px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
    .mobile-currency-menu-options a { min-height: 34px; padding: 5px 7px; display: flex; align-items: center; justify-content: space-between; gap: 6px; border-radius: 8px; color: var(--muted); font-size: .62rem; }
    .mobile-currency-menu-options a.active { color: var(--brand-primary); background: var(--primary-soft); }
    .mobile-currency-menu-options a strong { color: inherit; font-size: .6rem; }

    .mobile-language-compact { min-height: 40px; padding: 0 2px 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .mobile-language-compact > span { color: var(--muted); font-size: .66rem; font-weight: 750; }
    .mobile-language-compact .locale-switch { min-height: 34px; padding: 2px; }
    .mobile-language-compact .locale-option { min-width: 42px; min-height: 30px; font-size: .65rem; }

    .mobile-nav-bottom { margin-top: auto; padding: 8px 12px max(10px,env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); }
    .mobile-contact-link, .mobile-logout-link { min-height: 36px; padding: 5px 7px; display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--muted); font-size: .66rem; font-weight: 750; }
    .mobile-contact-link:hover, .mobile-contact-link.active { color: var(--brand-primary); }
    .mobile-logout-form { margin: 0; }
    .mobile-logout-link { color: #a6463f; cursor: pointer; }

    body.mobile-nav-open { overflow: hidden; }

    .product-detail-grid { grid-template-columns: 1fr; }
    .product-summary-card { position: static; }
    .product-gallery-main, .product-gallery-main > img { min-height: 490px; height: 490px; }
    .product-detail-lower-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .header-row { min-height: 64px; }
    .brand-logo { max-width: 136px; height: 38px; max-height: 38px; }
    .mobile-nav, .mobile-nav.open { width: min(292px,86vw); }
    .mobile-account-row { margin-inline: 10px; }
    .mobile-nav-links { padding-inline: 8px; }
    .mobile-nav-shortcuts, .mobile-nav-preferences { margin-inline: 10px; }
    .mobile-nav-actions, .mobile-nav-bottom { padding-inline: 10px; }
}

@media (min-width: 1121px) {
    .mobile-nav, .mobile-nav-backdrop { display: none !important; }
}

@media (max-width: 760px) {
    
    
    
    .product-gallery-main, .product-gallery-main > img { min-height: 400px; height: 400px; }
    .product-summary-body { padding: 21px; }
    .product-quick-facts { grid-template-columns: 1fr; }
    .product-quick-facts > div { min-height: 58px; border-inline-end: 0; border-bottom: 1px solid var(--border); }
    .product-quick-facts > div:last-child { border-bottom: 0; }
    .premium-spec-grid { grid-template-columns: 1fr; }
    .premium-spec-item, .premium-spec-item:nth-child(even), .premium-spec-item:nth-last-child(-n/**/+2) { border-inline-end: 0; border-bottom: 1px solid var(--border); }
    .premium-spec-item:last-child { border-bottom: 0; }
    .product-detail-page { padding-bottom: 76px; }
    .mobile-product-actions { position: fixed; z-index: 75; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: minmax(120px,.7fr) minmax(0,1.3fr); gap: 8px; padding: 10px max(14px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left)); border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); box-shadow: 0 -12px 32px rgba(15,35,40,.08); }
    .mobile-product-actions form, .mobile-product-actions form .btn { width: 100%; }
}

@media (max-width: 520px) {
    .product-gallery-main, .product-gallery-main > img { min-height: 330px; height: 330px; }
    .product-gallery-thumbs .gallery-thumb { width: 70px; height: 58px; flex-basis: 70px; }
    .product-summary-card h1 { font-size: 1.6rem; }
    .product-detail-price { font-size: 1.65rem; }
    .product-seller-head { align-items: flex-start; }
    .seller-meta-line { display: grid; gap: 3px; }
    
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js-reveal-ready [data-reveal]:not(.is-revealed), .js-reveal-ready [data-reveal-item]:not(.is-revealed) { opacity: 1; transform: none; }
}

/* ================================================================
   Elite website refinement v20260816.3
   Clear banners, reliable account menu, currency selector & Select2
   ================================================================ */


/* Native details account menu: functional without depending on JS. */
.account-menu > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu[open] .account-chip {
    border-color: color-mix(in srgb, var(--brand-primary) 38%, var(--border));
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}
.account-menu[open] .account-chevron { transform: rotate(180deg); }
.account-menu[open] .account-dropdown { animation: eliteDropdownIn .16s ease both; }
@keyframes eliteDropdownIn {
    from { opacity: 0; transform: translateY(-6px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Currency chooser */
.currency-picker { width: 104px; display: inline-flex; align-items: center; }
.currency-picker .select2-container { width: 100%; }
.desktop-currency-picker .select2-selection--single {
    min-height: 38px !important;
    height: 38px !important;
    border-radius: 999px !important;
    background: var(--surface) !important;
}
.desktop-currency-picker .select2-selection__rendered {
    line-height: 36px !important;
    font-size: .7rem !important;
    font-weight: 850 !important;
    padding-inline-start: 11px !important;
    padding-inline-end: 26px !important;
}
.desktop-currency-picker .select2-selection__arrow { height: 36px !important; }

/* Select2 — all public website selects are searchable while retaining the design system. */
.select2-container { max-width: 100%; font-family: inherit; }
.select2-container--default .select2-selection--single {
    height: 46px;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 6px);
    background: var(--surface);
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: color-mix(in srgb, var(--brand-primary) 62%, var(--border));
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    height: 44px;
    line-height: 44px;
    padding-inline-start: 13px;
    padding-inline-end: 34px;
    color: var(--text);
    font-size: .82rem;
    font-weight: 650;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--muted); }
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 0;
    inset-inline-end: 7px;
    left: auto;
    height: 44px;
}
html[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__arrow {
    inset-inline-start: 7px;
    inset-inline-end: auto;
}
.select2-dropdown {
    z-index: 160 !important;
    border: 1px solid var(--border);
    border-radius: 12px !important;
    background: var(--surface) !important;
    box-shadow: 0 20px 45px rgba(18,34,39,.14);
    overflow: hidden;
}
.select2-search--dropdown { padding: 8px !important; background: var(--surface); }
.select2-container--default .select2-search--dropdown .select2-search__field {
    min-height: 40px;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 8px 10px;
    background: var(--page-bg);
    color: var(--text);
    font: inherit;
    outline: 0;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.select2-results__options { padding: 5px; }
.select2-results__option { padding: 9px 10px !important; border-radius: 8px; font-size: .8rem; color: var(--text); }
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--brand-primary) !important;
    color: var(--button-text) !important;
}
.select2-container--default .select2-results__option[aria-selected="true"] {
    background: var(--primary-soft);
    color: var(--brand-secondary);
    font-weight: 800;
}
.select2-container--default .select2-selection--single .select2-selection__clear { margin-inline-end: 22px; }

/* Search bar Select2 is visually integrated with the hero field shell. */


/* Keep Select2 dropdowns above drawers and sticky header. */
.mobile-nav .select2-container { width: 100%; }
.mobile-nav .select2-dropdown { z-index: 170 !important; }
.mobile-preference-row {
    display: grid;
    grid-template-columns: 86px minmax(0,1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 8px;
    border-top: 1px solid var(--border);
}
.mobile-preference-row > span,
.mobile-language-row > span { color: var(--muted); font-size: .7rem; font-weight: 750; }
.mobile-preference-row .select2-selection--single { min-height: 40px !important; height: 40px !important; }
.mobile-preference-row .select2-selection__rendered { line-height: 38px !important; }
.mobile-preference-row .select2-selection__arrow { height: 38px !important; }

/* Footer logo stays legible on any admin-selected footer color. */
.footer-logo-frame {
    width: fit-content;
    max-width: 190px;
    min-height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    margin-bottom: 15px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.footer-logo-frame .footer-logo {
    width: 145px;
    max-width: 100%;
    max-height: 46px;
    margin: 0;
    object-fit: contain;
    filter: none !important;
}

/* How it works: topic-specific icons instead of numeric counters. */
.elite-process-number { display: none !important; }


@media (max-width: 980px) {
    .desktop-currency-picker { display: none; }
}

@media (max-width: 680px) {
    
    
    .footer-logo-frame { min-height: 58px; }
}

/* ================================================================
   ELITE NAV/TRUST/PAYMENT POLISH — compact currency + horizontal icons
   ================================================================ */
.account-icon .fa { width: 19px; text-align: center; font-size: 1.12rem; display: block; }
.account-icon:hover { color: var(--brand-primary); border-color: color-mix(in srgb, var(--brand-primary) 35%, var(--border)); background: var(--primary-soft); }

/* Currency is intentionally a compact menu rather than Select2 in the navbar. */
.currency-menu { position: relative; flex: 0 0 auto; }
.currency-menu > summary { list-style: none; }
.currency-menu > summary::-webkit-details-marker { display: none; }
.currency-menu-toggle {
    height: 34px; min-width: 58px; padding: 0 8px 0 10px; border: 1px solid var(--border); border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
    background: var(--surface); color: var(--text); font-size: .66rem; font-weight: 850; line-height: 1;
    box-shadow: 0 4px 12px rgba(24,49,56,.025); transition: .16s ease;
}
html[dir="rtl"] .currency-menu-toggle { padding: 0 10px 0 8px; }
.currency-menu-toggle:hover, .currency-menu[open] .currency-menu-toggle {
    border-color: color-mix(in srgb, var(--brand-primary) 38%, var(--border)); color: var(--brand-primary); background: var(--primary-soft);
}
.currency-menu-toggle .fa { width: 13px; text-align: center; font-size: .68rem; transition: transform .16s ease; }
.currency-menu[open] .currency-menu-toggle .fa { transform: rotate(180deg); }
.currency-menu-dropdown {
    position: absolute; top: calc(100% + 9px); inset-inline-end: 0; z-index: 130; min-width: 142px; padding: 6px;
    border: 1px solid var(--border); border-radius: 13px; background: var(--surface); box-shadow: 0 20px 48px rgba(18,34,39,.14);
}
.currency-menu-option {
    min-height: 36px; padding: 6px 9px; border-radius: 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    color: var(--text); font-size: .7rem; transition: .14s ease;
}
.currency-menu-option span { color: var(--muted); font-size: .66rem; }
.currency-menu-option:hover { background: var(--primary-soft); color: var(--brand-primary); }
.currency-menu-option.active { background: var(--primary-soft); color: var(--brand-primary); }


/* Four concise trust facts, all aligned on one row at desktop sizes. */


/* How it works: icon beside the copy rather than floating above it. */


/* Public payment trust row. Gateway provider is intentionally not exposed. */
.footer-payments-wrap { border-top: 1px solid rgba(255,255,255,.09); }
.footer-payments-row { min-height: 82px; padding: 15px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-payment-title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.footer-payment-title > div { display: grid; gap: 2px; }
.footer-payment-title strong { color: #fff; font-size: .76rem; }
.footer-payment-title small { color: rgba(255,255,255,.55); font-size: .65rem; }
.footer-payment-lock { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border-radius: 11px; background: rgba(255,255,255,.08); color: #fff; }
.footer-payment-lock .fa { width: 19px; text-align: center; font-size: 1rem; }
.footer-payment-methods { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.payment-method-badge {
    min-height: 34px; padding: 6px 10px; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px;
    background: #fff; color: #161616; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 5px 16px rgba(0,0,0,.08); font-size: .66rem;
}
.payment-method-badge b { font-weight: 850; white-space: nowrap; }
.payment-card i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-accent); display: inline-block; }
.payment-knet { color: #17294a; }

@media (max-width: 1120px) {
    .desktop-currency-menu { display: none; }
    
    
    
}
@media (max-width: 840px) {
    
    
    .footer-payments-row { align-items: flex-start; flex-direction: column; gap: 13px; }
    .footer-payment-methods { justify-content: flex-start; }
    html[dir="rtl"] .footer-payment-methods { justify-content: flex-end; }
}
@media (max-width: 560px) {
    
    
    
    
    
    .payment-method-badge { min-height: 32px; padding-inline: 8px; }
}

/* ================================================================
   ELITE FINAL NAV / TRUST / CITY / PAYMENT POLISH — 2026-08-16
   ================================================================ */

/* Currency: display only the monetary symbol in the navbar trigger. */
.currency-menu-toggle {
    min-width: 38px;
    width: 38px;
    height: 34px;
    padding: 0;
    gap: 2px;
}
.currency-current-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 23px;
    overflow: hidden;
    white-space: nowrap;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1;
}
.currency-menu-toggle .fa { width: 10px; flex: 0 0 10px; font-size: .6rem; }
.currency-menu-dropdown { min-width: 118px; }
.currency-menu-option { min-height: 34px; padding: 6px 8px; gap: 8px; }
.currency-option-symbol { font-size: .76rem; font-weight: 900; }
.currency-option-code { font-size: .58rem !important; opacity: .72; }


/* Footer logo frame follows the real rendered logo size. */
.footer-logo-frame {
    width: auto;
    max-width: none;
    min-height: 0;
    height: auto;
    padding: var(--footer-logo-pad-y, 5px) var(--footer-logo-pad-x, 7px);
    line-height: 0;
    border-radius: 10px;
}
.footer-logo-frame .footer-logo {
    width: auto;
    height: auto;
    max-width: 168px;
    max-height: 54px;
    display: block;
    object-fit: contain;
}

/* Static payment brand marks: KNET, Visa and Mastercard. */
.footer-payment-lock,
.footer-payment-lock .fa {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
}
.footer-payment-lock .fa {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
}
.footer-payment-methods {
    flex-wrap: nowrap;
    gap: 8px;
}
.payment-brand {
    height: 38px;
    min-width: 64px;
    padding: 5px 10px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(255,255,255,.24);
    box-shadow: 0 5px 16px rgba(0,0,0,.08);
    line-height: 1;
}
.payment-brand svg { display: block; flex: 0 0 auto; }
.payment-brand-knet { min-width: 72px; }
.knet-mark {
    display: inline-block;
    color: #0e2d5b;
    font: 900 .78rem/1 Arial, sans-serif;
    letter-spacing: -.02em;
    transform: skew(-8deg);
}
.payment-brand-visa { min-width: 72px; }
.payment-brand-mastercard { min-width: 66px; }

/* The city select remains visually active while its local options are replaced. */
select[data-city-ready="1"] + .select2-container .select2-selection--single {
    border-color: color-mix(in srgb, var(--brand-primary) 22%, var(--border));
}

@media (max-width: 980px) {
    
    
    
}

@media (max-width: 560px) {
    
    
    
    .footer-payment-methods { flex-wrap: wrap; }
    .footer-logo-frame .footer-logo { max-width: 145px; max-height: 48px; }
}

/* ============================================================
   Filter visibility / mobile results hotfix — 2026-08-16.6
   ============================================================ */
.filters-panel {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 118px);
    overflow: hidden;
}
.filters-panel .panel-head {
    flex: 0 0 auto;
    background: var(--surface);
}
.filter-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.filters-panel .panel-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb,var(--brand-primary) 28%,transparent) transparent;
}
.filters-panel .panel-body::-webkit-scrollbar { width: 6px; }
.filters-panel .panel-body::-webkit-scrollbar-thumb {
    background: color-mix(in srgb,var(--brand-primary) 28%,transparent);
    border-radius: 999px;
}
.filter-grid { padding-bottom: 2px; }
.filter-actions {
    position: sticky;
    z-index: 8;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 2px -2px -2px;
    padding: 12px 2px 2px;
    background: linear-gradient(to bottom, color-mix(in srgb,var(--surface) 0%,transparent), var(--surface) 24%, var(--surface));
}
.filter-actions .btn { width: 100%; min-width: 0; }
.mobile-filter-toolbar,
.mobile-filter-toggle,
.mobile-filter-close,
.filter-backdrop { display: none; }

/* Select2 opened inside filter panels must never be clipped or hidden. */
.filters-panel .select2-container { width: 100%; }
.filters-panel .select2-dropdown { z-index: 230 !important; }
.select2-container--open { z-index: 230 !important; }

@media (max-width: 780px) {
    .catalog-layout {
        display: block;
    }
    .catalog-results {
        min-width: 0;
    }
    .mobile-filter-toolbar {
        position: sticky;
        z-index: 45;
        top: 72px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: 0 0 14px;
        padding: 10px 12px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: color-mix(in srgb,var(--surface) 96%,transparent);
        box-shadow: var(--shadow-sm);
        backdrop-filter: blur(10px);
    }
    .mobile-filter-toolbar strong {
        min-width: 0;
        font-size: .8rem;
        color: var(--brand-secondary);
    }
    .mobile-filter-toggle,
    .mobile-filter-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-filter-toggle { flex: 0 0 auto; }
    .mobile-filter-close {
        width: 34px;
        height: 34px;
        padding: 0;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--page-bg);
        color: var(--text);
        font-size: 1.25rem;
        line-height: 1;
    }
    .filters-panel {
        position: fixed !important;
        z-index: 210;
        inset: auto 10px 10px 10px;
        top: max(70px, env(safe-area-inset-top));
        max-height: calc(100dvh - 82px);
        margin: 0;
        border-radius: 18px;
        box-shadow: 0 24px 70px rgba(10,28,34,.24);
        transform: translateY(calc(100% + 24px));
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform .24s ease, opacity .2s ease, visibility .2s ease;
    }
    .filters-panel.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .filters-panel .panel-body {
        flex: 1 1 auto;
        overflow-y: auto;
        padding-bottom: max(14px, env(safe-area-inset-bottom));
    }
    .filter-backdrop {
        position: fixed;
        z-index: 205;
        inset: 0;
        display: block;
        background: rgba(11,31,37,.38);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .2s ease, visibility .2s ease;
    }
    .filter-backdrop.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    body.filter-drawer-open { overflow: hidden; }
    .filter-actions {
        grid-template-columns: 1fr 1fr;
        padding-bottom: max(2px, env(safe-area-inset-bottom));
    }
}

/* =========================================================
   Elite account + subscription experience refactor
   ========================================================= */
.account-layout {
    grid-template-columns: 258px minmax(0,1fr);
    gap: 28px;
}
.account-nav-shell {
    position: sticky;
    top: 94px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 5px);
    background: var(--surface);
    box-shadow: 0 16px 42px rgba(23,49,56,.08);
}
.account-nav-profile {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 18px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 12%, color-mix(in srgb,var(--brand-accent) 30%,transparent), transparent 37%),
        linear-gradient(135deg, var(--brand-secondary), color-mix(in srgb,var(--brand-secondary) 82%,var(--brand-primary)));
}
.account-nav-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 14px;
    background: rgba(255,255,255,.11);
    color: #fff;
    font-weight: 900;
    font-size: 1rem;
}
.account-nav-profile-copy { min-width: 0; display: grid; gap: 2px; }
.account-nav-profile-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.account-nav-profile-copy span { color: rgba(255,255,255,.66); font-size: .68rem; }
.account-nav {
    position: static;
    top: auto;
    overflow: visible;
    padding: 10px;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    box-shadow: none;
}
.account-nav::before { display: none; }
.account-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    padding: 9px 11px;
    margin: 2px 0;
    border-radius: 11px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}
.account-link:hover {
    background: color-mix(in srgb,var(--brand-primary) 7%,var(--surface));
    color: var(--brand-secondary);
    transform: translateX(2px);
}
html[dir="rtl"] .account-link:hover { transform: translateX(-2px); }
.account-link.active {
    background: color-mix(in srgb,var(--brand-primary) 10%,var(--surface));
    color: var(--brand-primary);
}
.account-link.active::after {
    content: "";
    position: absolute;
    inset-block: 9px;
    inset-inline-start: 0;
    width: 3px;
    border-radius: 999px;
    background: var(--brand-primary);
}
.account-link-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: color-mix(in srgb,var(--brand-primary) 7%,var(--page-bg));
    color: var(--brand-primary);
}
.account-link-icon .fa { width: 17px; text-align: center; font-size: .95rem; display: block; }
.account-link.active .account-link-icon {
    background: var(--brand-primary);
    color: #fff;
}
.account-nav-divider { height: 1px; margin: 8px 6px; background: var(--border); }
.account-link-button { width: 100%; border: 0; background: transparent; cursor: pointer; text-align: inherit; }
.account-link-logout { color: #a4473f; }
.account-link-logout .account-link-icon { color: #a4473f; background: #fff3f1; }
.account-link-logout:hover { color: #8e302a; background: #fff7f6; }

.subscription-page { padding-bottom: 58px; }
.subscription-page-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.subscription-page-head h1 {
    margin: 4px 0 5px;
    color: var(--brand-secondary);
    font-size: clamp(1.75rem,2.8vw,2.45rem);
    line-height: 1.08;
}
.subscription-page-head p { margin: 0; color: var(--muted); }
.current-plan-card {
    display: grid;
    grid-template-columns: minmax(230px,.8fr) minmax(420px,1.2fr);
    align-items: center;
    gap: 34px;
    padding: 26px 28px;
    border-color: color-mix(in srgb,var(--brand-primary) 18%,var(--border));
    background:
        radial-gradient(circle at 92% 4%, color-mix(in srgb,var(--brand-primary) 8%,transparent), transparent 35%),
        var(--surface);
    box-shadow: 0 16px 42px rgba(23,49,56,.07);
}
.current-plan-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.current-plan-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg,var(--brand-primary),color-mix(in srgb,var(--brand-primary) 72%,var(--brand-secondary)));
    box-shadow: 0 10px 26px color-mix(in srgb,var(--brand-primary) 24%,transparent);
}
.current-plan-icon .fa { font-size: 1.35rem; }
.current-plan-label { display: block; margin-bottom: 4px; font-size: .68rem; }
.current-plan-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.current-plan-title-row h2 { margin: 0; color: var(--brand-secondary); font-size: 1.45rem; }
.current-plan-main p { margin: 4px 0 0; font-size: .75rem; }
.current-plan-stats {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px;
}
.usage-stat,
.priority-stat {
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in srgb,var(--surface) 94%,var(--page-bg));
}
.usage-stat-head { display: grid; gap: 7px; }
.usage-stat-head span,
.priority-stat span { color: var(--muted); font-size: .66rem; }
.usage-stat-head strong,
.priority-stat strong { color: var(--brand-secondary); font-size: .9rem; }
.usage-track { height: 5px; margin-top: 11px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb,var(--brand-primary) 8%,var(--page-bg)); }
.usage-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--brand-primary),var(--brand-accent)); }
.priority-stat { display: grid; align-content: center; gap: 8px; }
.priority-stat strong { font-size: 1.25rem; }
.subscription-scheduled { border-radius: 14px; box-shadow: none; }
.plans-section-head { display: flex; align-items: end; justify-content: space-between; margin: 30px 0 14px; }
.plans-section-head h2 { margin: 3px 0 0; color: var(--brand-secondary); font-size: 1.45rem; }
.subscription-grid.subscription-grid-refined {
    grid-template-columns: repeat(auto-fit,minmax(min(100%,310px),1fr));
    gap: 18px;
    margin-top: 0;
}
.subscription-plan-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 26px;
    border-radius: calc(var(--radius) + 3px);
    box-shadow: 0 14px 36px rgba(23,49,56,.065);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.subscription-plan-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb,var(--brand-primary) 23%,var(--border));
    box-shadow: 0 18px 46px rgba(23,49,56,.10);
}
.subscription-plan-card.current-plan {
    border-color: color-mix(in srgb,var(--brand-primary) 58%,var(--border));
    box-shadow: 0 0 0 1px color-mix(in srgb,var(--brand-primary) 42%,transparent), 0 18px 46px rgba(23,49,56,.09);
}
.subscription-plan-card.current-plan::before { height: 3px; }
.subscription-plan-card .subscription-card-head { min-height: 48px; }
.subscription-plan-card h3 { margin: 3px 0 0; color: var(--brand-secondary); font-size: 1.28rem; }
.plan-description { min-height: 42px; margin: 13px 0 0; font-size: .76rem; line-height: 1.6; }
.plan-price-refined { min-height: 50px; margin: 20px 0 14px; }
.plan-price-refined strong { color: var(--brand-primary); font-size: clamp(1.75rem,2.5vw,2.25rem); letter-spacing: -.025em; }
.plan-price-refined span { max-width: 110px; line-height: 1.35; }
.plan-features-refined { margin-bottom: 24px; }
.plan-features-refined li {
    align-items: center;
    padding: 11px 0;
    font-size: .76rem;
}
.plan-features-refined li > span { display: inline-flex; align-items: center; gap: 8px; }
.plan-check {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 20px;
    border-radius: 50%;
    background: color-mix(in srgb,var(--brand-primary) 9%,var(--surface));
    color: var(--brand-primary);
    font-size: .66rem;
    font-style: normal;
    font-weight: 900;
}
.plan-card-action { margin-top: auto; padding-top: 2px; }
.plan-card-action .form-stack { gap: 10px; }
.plan-card-action .select2-container { width: 100%; }
.plan-card-action .btn[disabled] { opacity: .68; cursor: default; }

@media (max-width: 1040px) {
    .account-layout { grid-template-columns: 220px minmax(0,1fr); gap: 20px; }
    .current-plan-card { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 840px) {
    .account-layout { grid-template-columns: 1fr; }
    .account-nav-shell { position: static; border-radius: 15px; }
    .account-nav-profile { padding: 14px 15px; }
    .account-nav {
        display: flex;
        overflow-x: auto;
        gap: 5px;
        padding: 8px;
        scrollbar-width: none;
    }
    .account-nav::-webkit-scrollbar { display: none; }
    .account-nav form { flex: 0 0 auto; }
    .account-nav-divider { display: none; }
    .account-link {
        flex: 0 0 auto;
        min-height: 40px;
        margin: 0;
        padding: 7px 10px;
        white-space: nowrap;
    }
    .account-link.active::after { display: none; }
    .account-link-icon { width: 26px; height: 26px; flex-basis: 26px; }
    .account-link-icon .fa { width: 15px; font-size: .84rem; }
    .current-plan-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 620px) {
    .subscription-page { padding-bottom: 40px; }
    .account-nav-profile { display: none; }
    .subscription-page-head { margin-bottom: 13px; }
    .current-plan-card { padding: 20px; }
    .current-plan-main { align-items: flex-start; }
    .current-plan-icon { width: 46px; height: 46px; flex-basis: 46px; border-radius: 14px; }
    .current-plan-stats { grid-template-columns: 1fr; gap: 9px; }
    .usage-stat,
    .priority-stat { padding: 12px 13px; }
    .subscription-scheduled { align-items: stretch; }
    .subscription-scheduled form,
    .subscription-scheduled .btn { width: 100%; }
    .subscription-plan-card { padding: 22px; }
    .plan-description { min-height: 0; }
}

/* Privacy & tracking consent ------------------------------------------------ */
.cookie-consent[hidden],
.cookie-modal[hidden] { display: none !important; }

.cookie-consent {
    position: fixed;
    inset-inline: max(16px, calc((100vw - 1180px) / 2));
    bottom: 18px;
    z-index: 410;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 18px 20px;
    border: 1px solid color-mix(in srgb,var(--brand-primary) 13%,var(--border));
    border-radius: calc(var(--radius) + 2px);
    background: color-mix(in srgb,var(--surface) 97%,transparent);
    box-shadow: 0 24px 70px rgba(17,35,40,.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.cookie-consent-copy {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 13px;
}
.cookie-consent-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: color-mix(in srgb,var(--brand-primary) 9%,var(--surface));
    color: var(--brand-primary);
}
.cookie-consent-copy strong {
    display: block;
    color: var(--brand-secondary);
    font-size: .92rem;
    line-height: 1.35;
}
.cookie-consent-copy p {
    max-width: 680px;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: .73rem;
    line-height: 1.6;
}
.cookie-consent-copy a {
    color: var(--brand-primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cookie-consent-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 420;
    display: grid;
    place-items: center;
    padding: 18px;
}
.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(10,22,27,.54);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: default;
}
.cookie-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 620px);
    max-height: min(760px, calc(100vh - 36px));
    overflow: auto;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 5px);
    background: var(--surface);
    box-shadow: 0 30px 90px rgba(10,22,27,.26);
}
.cookie-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.cookie-modal-head h2 {
    margin: 4px 0 0;
    color: var(--brand-secondary);
    font-size: clamp(1.35rem,2.3vw,1.8rem);
}
.cookie-modal-intro {
    margin: 12px 0 20px;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.65;
}
.cookie-category-list {
    display: grid;
    gap: 10px;
}
.cookie-category {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in srgb,var(--surface) 95%,var(--page-bg));
}
.cookie-category strong {
    display: block;
    color: var(--brand-secondary);
    font-size: .84rem;
}
.cookie-category p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .7rem;
    line-height: 1.55;
}
.cookie-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex: 0 0 44px;
    cursor: pointer;
}
.cookie-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.cookie-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: color-mix(in srgb,var(--muted) 25%,var(--surface));
    transition: background .18s ease;
}
.cookie-switch span::after {
    content: "";
    position: absolute;
    top: 3px;
    inset-inline-start: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(10,22,27,.20);
    transition: transform .18s ease;
}
.cookie-switch input:checked + span { background: var(--brand-primary); }
.cookie-switch input:checked + span::after { transform: translateX(20px); }
html[dir="rtl"] .cookie-switch input:checked + span::after { transform: translateX(-20px); }
.cookie-switch.is-locked { cursor: default; opacity: .72; }
.cookie-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 20px;
}
.footer-cookie-link {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}
.footer-cookie-link:hover { text-decoration: underline; text-underline-offset: 3px; }
body.cookie-modal-open { overflow: hidden; }

@media (max-width: 820px) {
    .cookie-consent {
        inset-inline: 12px;
        bottom: 12px;
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }
    .cookie-consent-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }
    .cookie-consent-actions .btn:last-child { grid-column: 1 / -1; }
    .cookie-consent-actions .btn { width: 100%; }
}

@media (max-width: 520px) {
    .cookie-consent-copy p { font-size: .69rem; }
    .cookie-consent-icon { width: 38px; height: 38px; flex-basis: 38px; }
    .cookie-modal { padding: 10px; }
    .cookie-modal-dialog { padding: 19px; max-height: calc(100vh - 20px); }
    .cookie-category { padding: 14px; }
    .cookie-modal-actions { display: grid; grid-template-columns: 1fr; }
    .cookie-modal-actions .btn { width: 100%; }
}

/* ================================================================
   HEADER BALANCE HOTFIX — 2026-08-16.9
   Keep desktop navigation on one line and preserve a readable account/currency area.
   ================================================================ */
@media (min-width: 981px) {
    .site-header .header-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: clamp(12px, 1.25vw, 22px);
    }

    .site-header .brand {
        min-width: 0;
        flex: 0 0 auto;
    }

    .site-header .brand-logo {
        width: auto;
        height: 50px;
        max-width: 132px;
        max-height: 50px;
        object-fit: contain;
    }

    .site-header .main-nav {
        min-width: 0;
        flex-wrap: nowrap;
        gap: 0;
    }

    .site-header .nav-link {
        flex: 0 1 auto;
        min-width: 0;
        padding-inline: clamp(6px, .55vw, 10px);
        white-space: nowrap;
        line-height: 1.15;
        font-size: clamp(.78rem, .72vw, .88rem);
    }

    .site-header .header-actions {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 7px;
        min-width: 0;
    }

    .site-header .post-listing-btn {
        padding-inline: 13px;
    }

    .site-header .account-chip {
        max-width: 214px;
        min-width: 0;
    }

    .site-header .account-chip-copy {
        min-width: 0;
        max-width: 150px;
    }

    .site-header .account-chip-copy strong {
        font-size: .76rem;
    }

    .site-header .account-dropdown {
        width: 260px;
        top: calc(100% + 8px);
    }

    /* Slightly wider than the previous symbol-only button so multi-character
       monetary symbols such as د.ك / د.إ are never clipped. */
    .site-header .currency-menu-toggle {
        width: auto;
        min-width: 52px;
        height: 36px;
        padding-inline: 9px 7px;
        gap: 4px;
    }

    html[dir="rtl"] .site-header .currency-menu-toggle {
        padding-inline: 7px 9px;
    }

    .site-header .currency-current-symbol {
        width: auto;
        max-width: 38px;
        overflow: visible;
        font-size: .76rem;
    }

    .site-header .currency-menu-toggle .fa {
        width: 11px;
        height: 11px;
        flex: 0 0 11px;
    }
}

/* A compact desktop fallback before the mobile drawer breakpoint. */
@media (min-width: 981px) and (max-width: 1240px) {
    .site-header .header-row { gap: 10px; }
    .site-header .brand-logo { height: 44px; max-height: 44px; max-width: 108px; }
    .site-header .nav-link { padding-inline: 5px; font-size: .74rem; }
    .site-header .header-actions { gap: 5px; }
    .site-header .locale-option { min-width: 31px; padding-inline: 7px; }
    .site-header .post-listing-btn { padding-inline: 10px; font-size: .74rem; }
    .site-header .account-chip-copy { max-width: 108px; }
    .site-header .account-chip { max-width: 166px; }
    .site-header .currency-menu-toggle { min-width: 48px; padding-inline: 7px 6px; }
}


/* ============================================================
   Footer app downloads + provider-neutral payments — 2026-08-16.10
   ============================================================ */
.footer-app-downloads {
    margin-top: 18px;
    display: grid;
    gap: 9px;
}
.footer-app-title {
    color: rgba(255,255,255,.72);
    font-size: .68rem;
    font-weight: 800;
}
.footer-app-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    direction: ltr;
}
.app-store-badge {
    min-width: 142px;
    min-height: 46px;
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 10px;
    background: #0b0d0e;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.app-store-badge:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.45);
    background: #15191b;
}
.app-store-badge > span:last-child {
    display: grid;
    gap: 1px;
    text-align: left;
    line-height: 1.05;
}
.app-store-badge small {
    color: rgba(255,255,255,.68);
    font-size: .5rem;
    font-weight: 600;
}
.app-store-badge strong {
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
}
.app-store-icon {
    width: 25px;
    height: 27px;
    flex: 0 0 25px;
    display: grid;
    place-items: center;
    color: #fff;
}
.app-store-icon svg { display: block; max-width: 100%; max-height: 100%; }

/* Payment brands keep their natural LTR geometry in both languages. */
.footer-payment-methods { direction: ltr; }
html[dir="rtl"] .footer-payment-title {
    direction: rtl;
    text-align: right;
}
html[dir="rtl"] .footer-payment-methods {
    direction: ltr;
    margin-inline-start: auto;
    justify-content: flex-start;
}
html[dir="rtl"] .footer-payments-row {
    direction: rtl;
}
html[dir="rtl"] .footer-payment-title strong,
html[dir="rtl"] .footer-payment-title small {
    display: block;
    white-space: normal;
}

@media (max-width: 760px) {
    .footer-app-badges { gap: 7px; }
    .app-store-badge { min-width: 136px; }
    html[dir="rtl"] .footer-payment-methods { margin-inline-start: 0; }
}

@media (max-width: 420px) {
    .footer-app-badges { display: grid; grid-template-columns: 1fr; width: min(100%, 300px); }
    .app-store-badge { width: 100%; justify-content: flex-start; }
    .footer-payment-methods { gap: 6px; }
    .payment-brand { min-width: 60px; padding-inline: 8px; }
}

/* ============================================================
   Footer utility bar refinement — 2026-08-16.11
   Downloads on the physical left, payments on the physical right.
   ============================================================ */
.footer-utility-wrap {
    border-top: 1px solid rgba(255,255,255,.09);
    background: rgba(0,0,0,.035);
}
.footer-utility-row {
    min-height: 104px;
    padding: 18px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 5vw, 72px);
    direction: ltr;
}
.footer-download-group,
.footer-payment-group {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 18px;
}
.footer-download-group {
    grid-column: 1;
    justify-self: start;
    justify-content: flex-start;
}
.footer-payment-group {
    grid-column: 2;
    justify-self: end;
    justify-content: flex-end;
}
html[dir="rtl"] .footer-download-group,
html[dir="rtl"] .footer-payment-group {
    direction: rtl;
}
html[dir="ltr"] .footer-download-group,
html[dir="ltr"] .footer-payment-group {
    direction: ltr;
}
.footer-utility-heading {
    min-width: 112px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-utility-heading > div {
    display: grid;
    gap: 3px;
}
.footer-utility-heading strong {
    display: block;
    color: #fff;
    font-size: .78rem;
    font-weight: 850;
    line-height: 1.25;
    white-space: nowrap;
}
.footer-utility-heading small {
    display: block;
    color: rgba(255,255,255,.58);
    font-size: .61rem;
    line-height: 1.35;
    white-space: nowrap;
}
.footer-download-group .footer-app-badges {
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    direction: ltr;
}
.footer-download-group .app-store-badge {
    min-width: 132px;
    min-height: 42px;
    padding: 6px 10px;
    border-radius: 9px;
    box-shadow: none;
}
.footer-download-group .app-store-icon {
    width: 23px;
    height: 25px;
    flex-basis: 23px;
}
.footer-download-group .app-store-badge small {
    font-size: .47rem;
}
.footer-download-group .app-store-badge strong {
    font-size: .73rem;
}
.footer-payment-group .footer-payment-title {
    min-width: 142px;
}
.footer-payment-group .footer-payment-methods {
    margin: 0 !important;
    flex-wrap: nowrap;
    justify-content: flex-end;
    direction: ltr;
}
.footer-payment-group .payment-brand {
    height: 40px;
    min-width: 68px;
    border-radius: 10px;
}
.footer-payment-group .payment-brand-knet,
.footer-payment-group .payment-brand-visa {
    min-width: 76px;
}
.footer-payment-group .payment-brand-mastercard {
    min-width: 70px;
}

@media (max-width: 1040px) {
    .footer-utility-row {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-block: 20px;
    }
    .footer-download-group,
    .footer-payment-group {
        grid-column: 1;
        width: 100%;
        justify-self: stretch;
        justify-content: space-between;
    }
    .footer-download-group { grid-row: 1; }
    .footer-payment-group { grid-row: 2; }
}

@media (max-width: 680px) {
    .footer-download-group,
    .footer-payment-group {
        display: grid;
        gap: 11px;
        justify-content: initial;
    }
    .footer-utility-heading,
    .footer-payment-group .footer-payment-title {
        min-width: 0;
    }
    .footer-download-group .footer-app-badges,
    .footer-payment-group .footer-payment-methods {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    html[dir="rtl"] .footer-download-group .footer-app-badges,
    html[dir="rtl"] .footer-payment-group .footer-payment-methods {
        justify-content: flex-start;
    }
}

@media (max-width: 420px) {
    .footer-download-group .footer-app-badges {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .footer-download-group .app-store-badge {
        width: 100%;
        min-width: 0;
    }
    .footer-utility-heading small {
        white-space: normal;
    }
}


/* ================================================================
   FRONTEND RESPONSIVE + UX HARDENING — 2026-08-17
   Consolidated safeguards for mobile/tablet, touch, Select2, forms,
   galleries, account navigation and chat. No business behavior changes.
   ================================================================ */
html, body { max-width: 100%; }
body { overflow-x: clip; }
@supports not (overflow: clip) {
    body { overflow-x: hidden; }
}

:where(.header-row, .section-head, .panel-head, .product-card-footer, .store-body, .account-layout, .chat-workspace, .footer-utility-row) > * {
    min-width: 0;
}

:where(.product-title, .product-price, .page-title, .page-subtitle, .panel-head h2, .panel-head h3, .store-identity-copy h1, .product-summary-card h1) {
    overflow-wrap: anywhere;
}

button, summary, a { touch-action: manipulation; }
.btn:disabled,
button:disabled {
    cursor: not-allowed;
    opacity: .65;
    transform: none !important;
    box-shadow: none;
}

/* Keyboard/touch states should be as discoverable as mouse hover states. */
.category-card:focus-visible,
.product-card:focus-within,
.store-card:focus-within {
    border-color: color-mix(in srgb, var(--brand-primary) 38%, var(--border));
    box-shadow: var(--shadow-md);
}

/* Larger carousel hit areas while keeping the visual dots compact. */


/* Product gallery: avoid excessive fixed heights on short laptops/tablets. */
.product-gallery-main,
.product-gallery-main > img {
    min-height: 0;
    height: clamp(340px, min(54vw, 68dvh), 580px);
}
.product-gallery-thumbs {
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}
.product-gallery-thumbs .gallery-thumb { scroll-snap-align: start; }

/* Breadcrumbs can be explored instead of silently clipping long paths. */
.breadcrumb {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}
.breadcrumb::-webkit-scrollbar { display: none; }
.breadcrumb > * { flex: 0 0 auto; }

/* File inputs and image management are easier to use on touch devices. */
.input[type="file"] { padding: 6px; }
.input[type="file"]::file-selector-button {
    min-height: 36px;
    margin-inline-end: 10px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--primary-soft);
    color: var(--brand-primary);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.existing-photo {
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}
.existing-photo label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.photo-preview .thumb { box-shadow: 0 4px 14px rgba(24,49,56,.07); }

/* Select2 dropdowns rendered on body stay above drawers/modals. */
body > .select2-container--open { z-index: 460 !important; }
.select2-results__option { min-height: 40px; display: flex; align-items: center; }

/* Account navigation communicates horizontal scrolling on smaller devices. */
.account-nav { overscroll-behavior-inline: contain; }
.account-nav .account-link { scroll-snap-align: center; }

/* Chat mobile navigation (list <-> conversation) */
.chat-mobile-back {
    display: none;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--page-bg);
    color: var(--brand-secondary);
    font-size: 1.2rem;
    line-height: 1;
}

@media (hover: none) {
    .btn:hover,
    .category-card:hover,
    .product-card:hover,
    .store-card:hover,
    .subscription-plan-card:hover,
    .app-store-badge:hover { transform: none; }
    .category-arrow { opacity: .7; }
    .favorite-btn { width: 44px; height: 44px; }
    .product-open { width: 40px; height: 40px; }
}

@media (max-width: 1120px) {
    /* The desktop nav already switches off at 1120px; the drawer must switch on at the same breakpoint. */
    .desktop-locale-switch,
    .header-actions > .account-menu,
    .header-actions > .account-icon,
    .header-actions > .post-listing-btn { display: none !important; }

    .product-gallery-main,
    .product-gallery-main > img {
        height: clamp(330px, min(64vw, 62dvh), 490px);
    }
}

@media (max-width: 840px) {
    .section-head { flex-wrap: wrap; align-items: flex-start; }
    .section-head > .text-link,
    .section-head > .cluster { margin-inline-start: auto; }

    .account-nav { scroll-snap-type: x proximity; }

    .filters-panel { display: flex; flex-direction: column; }
    .filters-panel .panel-head { flex: 0 0 auto; }
    .filters-panel .panel-body { flex: 1 1 auto; min-height: 0; }
}

@media (max-width: 780px) {
    /* Prevent iOS Safari from zooming the page when focusing compact controls. */
    .input,
    .select,
    .textarea,
    input[type="search"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    textarea,
    .select2-container--default .select2-search--dropdown .select2-search__field {
        font-size: 16px !important;
    }

    .filters-panel {
        top: calc(68px + env(safe-area-inset-top));
        max-height: calc(100dvh - 78px - env(safe-area-inset-top));
    }
    .mobile-filter-close { width: 44px; height: 44px; }
    .mobile-filter-toolbar { top: calc(68px + env(safe-area-inset-top)); }

    .product-gallery-main,
    .product-gallery-main > img {
        height: clamp(300px, min(78vw, 54dvh), 410px);
    }
}

@media (max-width: 640px) {
    .container { width: min(calc(100% - 20px), var(--container)); }
    .section-first { padding-top: 24px; }
    .panel-head { padding: 15px 16px; }
    .panel-body { padding: 17px; }

    /* Mobile chat behaves like a messaging app instead of stacking two large panes. */
    .chat-workspace,
    html[dir="rtl"] .chat-workspace {
        height: clamp(460px, calc(100dvh - 175px), 720px);
        min-height: 460px;
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr);
        margin-inline: -10px;
    }
    .chat-workspace:not(.has-active-chat) .chat-conversation { display: none; }
    .chat-workspace.has-active-chat .chat-sidebar { display: none; }
    .chat-workspace.has-active-chat .chat-conversation,
    html[dir="rtl"] .chat-workspace.has-active-chat .chat-conversation {
        display: grid;
        grid-column: 1;
        grid-row: 1;
        min-height: 0;
    }
    .chat-workspace:not(.has-active-chat) .chat-sidebar,
    html[dir="rtl"] .chat-workspace:not(.has-active-chat) .chat-sidebar {
        display: grid;
        grid-column: 1;
        grid-row: 1;
        min-height: 0;
        border-bottom: 0;
    }
    .chat-mobile-back { display: grid; place-items: center; }
    .chat-conversation-head { min-height: 64px; gap: 10px; padding: 9px 10px; }
    .chat-avatar-lg { width: 42px; height: 42px; }
    .chat-message-stream { padding: 12px 10px; }
    .chat-bubble { max-width: 90%; }
    .chat-compose {
        grid-template-columns: auto minmax(0,1fr) auto;
        min-height: 64px;
        gap: 6px;
        padding: 8px;
    }
    .chat-attach { width: 44px; height: 44px; }
    .chat-compose textarea { min-height: 44px; padding: 10px 11px; }
    .chat-send-button {
        grid-column: auto;
        min-height: 44px;
        min-width: 0;
        padding-inline: 12px;
        font-size: .8rem;
    }
    .chat-send-button span { display: none; }

    .footer-bottom-row { gap: 8px; }
}

@media (max-width: 560px) {
    
    

    .product-gallery-main,
    .product-gallery-main > img {
        height: clamp(270px, min(88vw, 50dvh), 350px);
    }

    .form-panel { padding: 18px; }
    .existing-photos, .photo-preview { gap: 7px; }
    .existing-photo img, .photo-preview .thumb { width: 78px; height: 78px; }

    .account-nav-shell {
        position: sticky;
        top: calc(68px + env(safe-area-inset-top));
        z-index: 42;
    }
}

@media (max-width: 360px) {
    .brand-logo { width: 108px; }
    .header-row { gap: 7px; }
    .header-actions { gap: 5px; }
    
    
    
    
    
    .footer-download-group .footer-app-badges { grid-template-columns: 1fr; }
    .footer-payment-group .footer-payment-methods { flex-wrap: wrap; }
}

/* Chat title containment and logical mobile back direction. */
.chat-current-identity { min-width: 0; flex: 1 1 auto; }
.chat-current-identity > div:last-child { min-width: 0; }
.chat-current-identity strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================================================================
   HOMEPAGE MARKETPLACE — PREMIUM DISCOVERY MODULE
   One semantic markup for desktop, tablet and mobile.
   No duplicated device markup and no layered homepage hotfixes.
   ================================================================ */
.home-marketplace { overflow: clip; }

.home-discovery {
    --home-wide: 1440px;
    --home-panel: 1320px;
    padding-top: clamp(18px, 2vw, 28px);
}

.home-banner-section > .container {
    width: min(calc(100% - 40px), var(--home-wide));
}

.home-search-section > .container,
.home-trust-section > .container {
    width: min(calc(100% - 64px), var(--home-panel));
}

/* Hero — restrained, image-led and intentionally connected to search. */
.home-banner-section { padding: 0; }

.home-banner-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 3.55 / 1;
    min-height: 320px;
    max-height: 410px;
    border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    border-radius: 28px;
    background: #e8eeeb;
    box-shadow: 0 20px 56px rgba(24,49,56,.10);
}

.home-banner-track,
.home-banner-slide,
.home-banner-picture {
    position: absolute;
    inset: 0;
}

.home-banner-slide {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.006);
    transition: opacity .42s ease, transform .55s ease;
}

.home-banner-slide.is-active {
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.home-banner-picture { display: block; }

.home-banner-picture::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4,20,24,.64) 0%, rgba(4,20,24,.34) 34%, rgba(4,20,24,.08) 65%, rgba(4,20,24,.02) 100%);
    pointer-events: none;
}

html[dir="rtl"] .home-banner-picture::after {
    background:
        linear-gradient(270deg, rgba(4,20,24,.64) 0%, rgba(4,20,24,.34) 34%, rgba(4,20,24,.08) 65%, rgba(4,20,24,.02) 100%);
}

.home-banner-picture img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.home-banner-copy {
    position: absolute;
    z-index: 4;
    inset-inline-start: clamp(34px, 5vw, 72px);
    top: 50%;
    width: min(560px, 48%);
    padding: 0;
    transform: translateY(-50%);
    color: #fff;
    background: transparent;
    border: 0;
    box-shadow: none;
    text-shadow: 0 2px 18px rgba(0,0,0,.25);
}

.home-banner-copy h1 {
    max-width: 560px;
    margin: 0;
    font-size: clamp(1.9rem, 3.25vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -.03em;
}

html[dir="rtl"] .home-banner-copy h1 { letter-spacing: -.012em; }

.home-banner-copy p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    max-width: 500px;
    margin: 12px 0 0;
    color: rgba(255,255,255,.88);
    font-size: clamp(.84rem, 1vw, 1rem);
    line-height: 1.65;
}

.home-banner-cta {
    min-height: 44px;
    margin-top: 18px;
    padding-inline: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(0,0,0,.16);
}

.home-banner-arrow {
    position: absolute;
    z-index: 8;
    top: 50%;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: var(--brand-secondary);
    box-shadow: 0 9px 24px rgba(0,0,0,.12);
    backdrop-filter: blur(8px);
    transition: transform .2s ease, background .2s ease;
}

.home-banner-arrow:hover { transform: translateY(-50%) scale(1.05); }
.home-banner-prev { inset-inline-start: 18px; }
.home-banner-next { inset-inline-end: 18px; }

.home-banner-dots {
    position: absolute;
    z-index: 8;
    inset-inline-start: 50%;
    inset-block-end: 18px;
    display: flex;
    gap: 7px;
    transform: translateX(-50%);
}

html[dir="rtl"] .home-banner-dots { transform: translateX(50%); }

.home-banner-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255,255,255,.62);
    transition: width .2s ease, background .2s ease;
}

.home-banner-dots button.is-active {
    width: 26px;
    background: #fff;
}

/* Search — one unified premium panel with subtle internal separation. */
.home-search-section {
    position: relative;
    z-index: 12;
    margin-top: -34px;
    padding: 0;
}

.home-search-panel {
    display: flex;
    align-items: stretch;
    min-width: 0;
    padding: 10px;
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    border-radius: 22px;
    background: color-mix(in srgb, var(--surface) 98%, var(--primary-soft));
    box-shadow: 0 18px 46px rgba(24,49,56,.11);
}

.home-search-field {
    position: relative;
    min-width: 0;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 9px 22px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    transition: background .18s ease, box-shadow .18s ease;
}

.home-search-field:hover,
.home-search-field:focus-within {
    background: var(--surface);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-primary) 12%, transparent);
}

.home-search-query { flex: 1.65 1 360px; }
.home-search-category { flex: 1 1 205px; }
.home-search-country { flex: .92 1 185px; }
.home-search-city { flex: .92 1 185px; }

.home-search-category::before,
.home-search-country::before,
.home-search-city::before {
    content: "";
    position: absolute;
    inset-block: 12px;
    inset-inline-start: -1px;
    width: 1px;
    background: color-mix(in srgb, var(--border) 86%, transparent);
}

.home-search-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--primary-soft);
    color: var(--brand-primary);
}

.home-search-icon .fa {
    width: 18px;
    text-align: center;
    font-size: 1rem;
}

.home-search-control {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 5px;
}

.home-search-control small {
    color: var(--muted);
    font-size: .68rem;
    font-weight: 760;
    line-height: 1.15;
}

.home-search-control input,
.home-search-control select {
    width: 100%;
    min-width: 0;
    height: 32px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: .94rem;
    font-weight: 720;
}

.home-search-control input::placeholder { color: color-mix(in srgb, var(--muted) 88%, transparent); }

.home-search-panel .select2-container {
    width: 100%;
    min-width: 0;
}

.home-search-panel .select2-container .select2-selection--single {
    min-height: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.home-search-panel .select2-container .select2-selection--single .select2-selection__rendered {
    height: 32px;
    line-height: 32px;
    padding-inline: 0 22px;
    color: var(--text);
    font-size: .94rem;
    font-weight: 720;
}

.home-search-panel .select2-container .select2-selection--single .select2-selection__arrow {
    height: 32px;
    inset-inline-end: 0;
}

.home-search-submit {
    flex: 0 0 138px;
    min-width: 138px;
    min-height: 76px;
    margin: 0;
    align-self: stretch;
    gap: 9px;
    border-radius: 15px;
    font-weight: 800;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--brand-primary) 18%, transparent);
}

.home-search-submit .fa {
    width: 18px;
    text-align: center;
}

/* Trust — a single calm strip, separated by whitespace and hairlines. */
.home-trust-section {
    padding-top: 22px;
}

.home-trust-rail {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--border);
    box-shadow: 0 10px 28px rgba(24,49,56,.045);
}

.home-trust-item {
    min-width: 0;
    min-height: 98px;
    display: grid;
    grid-template-columns: 48px minmax(0,1fr);
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--surface);
    transition: background .18s ease;
}

.home-trust-item:hover { background: color-mix(in srgb, var(--surface) 96%, var(--primary-soft)); }

.home-trust-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--primary-soft);
    color: var(--brand-primary);
}

.home-trust-icon .fa { font-size: 1.08rem; }

.home-trust-item > span:last-child {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.home-trust-item strong {
    color: var(--text);
    font-size: .86rem;
    line-height: 1.3;
}

.home-trust-item small {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: var(--muted);
    font-size: .7rem;
    line-height: 1.55;
}

/* Remaining homepage sections share one spacing system. */
.home-market-section {
    margin-top: 0;
    padding-block: clamp(34px, 4.4vw, 58px);
}

.home-market-section + .home-market-section {
    padding-top: clamp(10px, 1.6vw, 24px);
}

.home-section-head { margin-bottom: 18px; }
.home-section-head h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); }

.home-category-rail {
    display: grid;
    grid-template-columns: repeat(7,minmax(0,1fr));
    gap: 11px;
}

.home-category-rail .category-card {
    min-height: 132px;
    padding: 15px 10px 12px;
}

.home-category-rail .category-icon-shell {
    width: 58px;
    height: 58px;
    margin-bottom: 8px;
}

.home-category-rail .category-image {
    width: 45px;
    height: 45px;
}

.home-products-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
}

.home-context-product-card .product-media { aspect-ratio: 1 / 1; }
.home-context-product-card .product-body { padding: 12px 13px 13px; }
.home-context-product-card .product-meta { margin-bottom: 5px; font-size: .66rem; }

.home-context-product-card .product-title {
    min-height: 2.55em;
    margin-bottom: 9px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: .9rem;
}

.home-context-product-card .product-card-footer { padding-top: 9px; }

.home-context-product-card .product-price {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .86rem;
}

.home-stores-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
}

.home-stores-grid .store-cover {
    height: auto;
    aspect-ratio: 1.72 / 1;
}

.home-process-section { padding-top: clamp(16px, 2vw, 28px); }
.home-process-head { max-width: 720px; }

.home-process-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px;
}

.home-process-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 52px minmax(0,1fr);
    gap: 14px;
    align-items: start;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.home-process-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--primary-soft);
    color: var(--brand-primary);
}

.home-process-icon .fa { font-size: 1.3rem; }
.home-process-card h3 { margin: 2px 0 6px; font-size: .96rem; }
.home-process-card p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.6; }

.home-seller-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(28px, 4vw, 42px);
    border-radius: 24px;
    background: var(--brand-secondary);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.home-seller-cta::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    inset-inline-end: -90px;
    top: -130px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-primary) 42%, transparent);
}

.home-seller-cta > * {
    position: relative;
    z-index: 1;
}

.home-seller-cta h2 {
    max-width: 680px;
    margin: 0 0 8px;
    font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.home-seller-cta p {
    max-width: 700px;
    margin: 0;
    color: rgba(255,255,255,.72);
}

.home-seller-actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.home-seller-cta .btn-ghost {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-color: rgba(255,255,255,.18);
}

/* Laptop / compact desktop */
@media (max-width: 1180px) {
    .home-banner-section > .container {
        width: min(calc(100% - 32px), var(--home-wide));
    }

    .home-search-section > .container,
    .home-trust-section > .container {
        width: min(calc(100% - 40px), var(--home-panel));
    }

    .home-banner-carousel {
        aspect-ratio: 3 / 1;
        min-height: 310px;
        max-height: 380px;
        border-radius: 24px;
    }

    .home-banner-copy { width: min(510px, 54%); }

    .home-trust-rail { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .home-products-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .home-category-rail { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .home-stores-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}


/* Compact tablet: switch the same form to a stable two-column composition. */
@media (max-width: 1040px) {
    .home-search-panel {
        display: grid;
        grid-template-areas:
            "query query"
            "category category"
            "country city"
            "submit submit";
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 8px;
        padding: 9px;
        background: color-mix(in srgb, var(--surface) 97%, var(--primary-soft));
    }

    .home-search-query { grid-area: query; }
    .home-search-category { grid-area: category; }
    .home-search-country { grid-area: country; }
    .home-search-city { grid-area: city; }
    .home-search-submit { grid-area: submit; }

    .home-search-field {
        border: 1px solid var(--border);
        background: var(--surface);
    }

    .home-search-category::before,
    .home-search-country::before,
    .home-search-city::before { display: none; }

    .home-search-submit {
        min-width: 0;
        min-height: 54px;
    }
}

/* Tablet and mobile */
@media (max-width: 760px) {
    .home-discovery { padding-top: 10px; }

    .home-banner-section > .container,
    .home-search-section > .container,
    .home-trust-section > .container {
        width: min(calc(100% - 20px), var(--home-wide));
    }

    .home-banner-carousel {
        aspect-ratio: 16 / 9;
        min-height: 0;
        max-height: none;
        border-radius: 18px;
    }

    .home-banner-picture::after,
    html[dir="rtl"] .home-banner-picture::after {
        background: linear-gradient(0deg, rgba(5,20,24,.66) 0%, rgba(5,20,24,.12) 54%, rgba(5,20,24,.02) 100%);
    }

    .home-banner-copy {
        inset-inline: 16px;
        top: auto;
        bottom: 18px;
        width: min(82%, 430px);
        transform: none;
    }

    .home-banner-copy h1 { font-size: clamp(1.35rem, 6.2vw, 2rem); }
    .home-banner-copy p { margin-top: 7px; font-size: .76rem; line-height: 1.5; }

    .home-banner-cta {
        min-height: 40px;
        margin-top: 11px;
        padding: 7px 14px;
        font-size: .76rem;
    }

    .home-banner-arrow { width: 36px; height: 36px; }
    .home-banner-prev { inset-inline-start: 10px; }
    .home-banner-next { inset-inline-end: 10px; }

    .home-banner-dots {
        inset-block-start: 10px;
        inset-block-end: auto;
    }

    .home-search-section {
        margin-top: 10px;
    }

    .home-search-panel {
        display: grid;
        grid-template-areas:
            "query query"
            "category category"
            "country city"
            "submit submit";
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 8px;
        padding: 9px;
        border-radius: 18px;
        background: color-mix(in srgb, var(--surface) 97%, var(--primary-soft));
        box-shadow: 0 12px 28px rgba(24,49,56,.07);
    }

    .home-search-field {
        min-height: 64px;
        gap: 10px;
        padding: 8px 11px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: var(--surface);
        box-shadow: none;
    }

    .home-search-query { grid-area: query; }
    .home-search-category { grid-area: category; }
    .home-search-country { grid-area: country; }
    .home-search-city { grid-area: city; }
    .home-search-submit { grid-area: submit; }

    .home-search-category::before,
    .home-search-country::before,
    .home-search-city::before { display: none; }

    .home-search-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 11px;
    }

    .home-search-control small { font-size: .63rem; }

    .home-search-control input,
    .home-search-control select,
    .home-search-panel .select2-container .select2-selection--single .select2-selection__rendered {
        font-size: max(16px, .84rem);
        font-weight: 700;
    }

    .home-search-submit {
        width: 100%;
        min-width: 0;
        min-height: 50px;
        height: 50px;
        border-radius: 14px;
        box-shadow: none;
    }

    .home-trust-section { padding-top: 12px; }

    .home-trust-rail {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(230px, 74vw);
        gap: 10px;
        overflow-x: auto;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        padding-bottom: 5px;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
    }

    .home-trust-rail::-webkit-scrollbar { display: none; }

    .home-trust-item {
        min-height: 82px;
        padding: 14px 15px;
        grid-template-columns: 42px minmax(0,1fr);
        gap: 11px;
        border: 1px solid var(--border);
        border-radius: 15px;
        scroll-snap-align: start;
    }

    .home-trust-icon { width: 42px; height: 42px; border-radius: 12px; }
    .home-trust-item strong { font-size: .8rem; }
    .home-trust-item small { font-size: .67rem; }

    .home-market-section { padding-block: 30px; }
    .home-market-section + .home-market-section { padding-top: 4px; }

    .home-section-head {
        align-items: center;
        margin-bottom: 14px;
        padding-bottom: 11px;
    }

    .home-section-head .eyebrow { font-size: .58rem; }
    .home-section-head h2 { font-size: 1.28rem; }
    .home-section-head .text-link { font-size: .72rem; }

    .home-category-rail {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(112px, 32vw);
        gap: 9px;
        overflow-x: auto;
        margin-inline: -10px;
        padding: 1px 10px 8px;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
    }

    .home-category-rail::-webkit-scrollbar { display: none; }
    .home-category-rail .category-card { min-height: 116px; scroll-snap-align: start; }
    .home-category-rail .category-icon-shell { width: 50px; height: 50px; border-radius: 14px; }
    .home-category-rail .category-image { width: 39px; height: 39px; }
    .home-category-rail .category-copy strong { font-size: .75rem; }

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

    .home-context-product-card { border-radius: 15px; }
    .home-context-product-card .product-body { padding: 9px 10px 10px; }
    .home-context-product-card .product-meta { gap: 5px; margin-bottom: 4px; font-size: .59rem; }

    .home-context-product-card .product-title {
        min-height: 2.5em;
        margin-bottom: 7px;
        font-size: .79rem;
        line-height: 1.27;
    }

    .home-context-product-card .product-price { font-size: .76rem; }
    .home-context-product-card .product-open { width: 27px; height: 27px; }

    .home-context-product-card .favorite-btn {
        top: 7px;
        inset-inline-end: 7px;
        width: 34px;
        height: 34px;
    }

    .home-context-product-card .featured-chip {
        bottom: 7px;
        inset-inline-start: 7px;
        padding: 3px 6px;
        font-size: .54rem;
    }

    .home-stores-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(260px, 78vw);
        gap: 10px;
        overflow-x: auto;
        margin-inline: -10px;
        padding: 1px 10px 8px;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
    }

    .home-stores-grid::-webkit-scrollbar { display: none; }
    .home-stores-grid .store-card { scroll-snap-align: start; }

    .home-process-grid { grid-template-columns: 1fr; gap: 9px; }

    .home-process-card {
        min-height: 0;
        grid-template-columns: 46px minmax(0,1fr);
        gap: 12px;
        padding: 16px;
    }

    .home-process-icon { width: 46px; height: 46px; border-radius: 13px; }
    .home-process-icon .fa { font-size: 1.12rem; }
    .home-process-card h3 { margin-top: 1px; font-size: .88rem; }
    .home-process-card p { font-size: .71rem; }

    .home-seller-cta {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        padding: 26px 22px;
        border-radius: 20px;
    }

    .home-seller-actions { width: 100%; }
    .home-seller-actions .btn { flex: 1 1 150px; }
}

/* Small phones */
@media (max-width: 480px) {
    .home-banner-section > .container,
    .home-search-section > .container,
    .home-trust-section > .container {
        width: min(calc(100% - 16px), var(--home-wide));
    }

    .home-banner-carousel { border-radius: 16px; }

    .home-banner-copy {
        inset-inline: 13px;
        bottom: 14px;
        width: min(88%, 390px);
    }

    .home-banner-copy h1 { font-size: clamp(1.2rem, 6.8vw, 1.7rem); }
    .home-banner-copy p { -webkit-line-clamp: 2; font-size: .7rem; }
    .home-banner-arrow { display: none; }

    .home-banner-dots {
        inset-block-start: 8px;
        inset-block-end: auto;
    }

    .home-search-panel {
        grid-template-areas:
            "query"
            "category"
            "country"
            "city"
            "submit";
        grid-template-columns: minmax(0,1fr);
        gap: 7px;
        padding: 8px;
    }

    .home-search-field { min-height: 59px; padding-block: 7px; }
    .home-search-submit { height: 49px; min-height: 49px; }

    .home-trust-rail { grid-auto-columns: minmax(224px, 84vw); }
    .home-category-rail { grid-auto-columns: minmax(108px, 36vw); }

    .home-context-product-card .product-open { display: none; }
    .home-context-product-card .product-card-footer { min-height: 31px; }
    .home-context-product-card .product-price { max-width: 100%; }
    .home-stores-grid { grid-auto-columns: minmax(250px, 86vw); }
}

@media (max-width: 340px) {
    .home-products-grid { gap: 7px; }
    .home-context-product-card .product-body { padding-inline: 8px; }
    .home-context-product-card .product-title { font-size: .74rem; }
    .home-context-product-card .product-price { font-size: .7rem; }
}
