/* STOCKDIVAR_PRODUCT_PAGE_REBUILD_V781 */
/* STOCKDIVAR_PRODUCT_MOBILE_MEDIA_V806 */
/* STOCKDIVAR_PRODUCT_LOCAL_VAZIRMATN_V811
 * Self-hosted Vazirmatn Variable 5.3.0 (OFL-1.1).
 * No Google Fonts request is required.
 */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('./fonts/vazirmatn-v810-arabic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('./fonts/vazirmatn-v810-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('./fonts/vazirmatn-v810-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: light;
  --sd-brand: #b51f2d;
  --sd-brand-strong: #971522;
  --sd-brand-soft: #fff1f2;
  --sd-bg: #f5f6f8;
  --sd-surface: #ffffff;
  --sd-surface-soft: #f8f9fb;
  --sd-text: #1b2230;
  --sd-muted: #6c778a;
  --sd-line: #e2e6ec;
  --sd-line-strong: #d5dae3;
  --sd-success: #16794c;
  --sd-warning: #8b5c00;
  --sd-shadow-sm: 0 6px 20px rgba(18, 25, 38, .06);
  --sd-shadow: 0 18px 52px rgba(18, 25, 38, .10);
  --sd-radius-sm: 12px;
  --sd-radius: 18px;
  --sd-radius-lg: 24px;
  --sd-header-height: 72px;
  --sd-font: "Vazirmatn", "Segoe UI", Tahoma, Arial, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --sd-brand: #e0525f;
  --sd-brand-strong: #f06b77;
  --sd-brand-soft: #35191e;
  --sd-bg: #0f141d;
  --sd-surface: #171e29;
  --sd-surface-soft: #1d2633;
  --sd-text: #f4f6fa;
  --sd-muted: #aab4c4;
  --sd-line: #2b3646;
  --sd-line-strong: #3a4658;
  --sd-success: #53d69a;
  --sd-warning: #f2c769;
  --sd-shadow-sm: 0 8px 24px rgba(0, 0, 0, .20);
  --sd-shadow: 0 22px 60px rgba(0, 0, 0, .34);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--sd-bg);
  color: var(--sd-text);
  font-family: var(--sd-font);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body, button, input, textarea { font-family: var(--sd-font); }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sd-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.sd-skip-link {
  position: fixed;
  z-index: 9999;
  top: 8px;
  right: 12px;
  transform: translateY(-150%);
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--sd-brand);
  color: #fff;
  font-weight: 700;
}
.sd-skip-link:focus { transform: translateY(0); }

.sd-header {
  position: sticky;
  z-index: 80;
  top: 0;
  min-height: var(--sd-header-height);
  border-bottom: 1px solid color-mix(in srgb, var(--sd-line) 82%, transparent);
  background: color-mix(in srgb, var(--sd-surface) 92%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.sd-header-inner {
  width: min(1280px, calc(100% - 32px));
  min-height: var(--sd-header-height);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto auto minmax(260px, 520px) 1fr;
  align-items: center;
  gap: 14px;
}
.sd-icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--sd-line);
  border-radius: 13px;
  background: var(--sd-surface);
  color: var(--sd-text);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.sd-icon-button:hover { border-color: var(--sd-line-strong); background: var(--sd-surface-soft); }
.sd-icon-button:active { transform: scale(.96); }
.sd-icon-button svg { width: 22px; height: 22px; }
.sd-brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.sd-brand img { width: 42px; height: 42px; object-fit: contain; }
.sd-brand span { display: grid; line-height: 1.25; }
.sd-brand strong { font-size: 16px; font-weight: 900; color: var(--sd-brand); }
.sd-brand small { margin-top: 4px; color: var(--sd-muted); font-size: 11px; }
.sd-header-search {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: 14px;
  border: 1px solid var(--sd-line);
  border-radius: 14px;
  background: var(--sd-surface-soft);
}
.sd-header-search:focus-within { border-color: color-mix(in srgb, var(--sd-brand) 55%, var(--sd-line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sd-brand) 12%, transparent); }
.sd-header-search svg { color: var(--sd-muted); }
.sd-header-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--sd-text); font-size: 14px; }
.sd-header-search input::placeholder { color: var(--sd-muted); }
.sd-header-actions { justify-self: end; display: flex; align-items: center; gap: 9px; }
.sd-post-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 13px;
  background: var(--sd-brand);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 9px 24px color-mix(in srgb, var(--sd-brand) 23%, transparent);
}
.sd-post-button:hover { background: var(--sd-brand-strong); }
.sd-theme-sun { display: none; }
html[data-theme="dark"] .sd-theme-moon { display: none; }
html[data-theme="dark"] .sd-theme-sun { display: block; }

.sd-page { width: min(1280px, calc(100% - 32px)); margin-inline: auto; padding: 20px 0 64px; }
.sd-breadcrumb { min-height: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; color: var(--sd-muted); font-size: 13px; }
.sd-breadcrumb a:hover { color: var(--sd-brand); }

.sd-loading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); direction: ltr; gap: 22px; }
.sd-skeleton-panel { direction: rtl; min-height: 500px; padding: 26px; border: 1px solid var(--sd-line); border-radius: var(--sd-radius-lg); background: var(--sd-surface); }
.sd-skeleton { overflow: hidden; position: relative; background: color-mix(in srgb, var(--sd-line) 70%, var(--sd-surface)); }
.sd-skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, #fff 55%, transparent), transparent); animation: sd-shimmer 1.25s infinite; }
.sd-skeleton-media { min-height: 570px; border-radius: var(--sd-radius-lg); }
.sd-skeleton-line { height: 18px; margin-bottom: 18px; border-radius: 8px; }
.sd-w-40 { width: 40%; }
.sd-w-65 { width: 65%; }
.sd-w-90 { width: 90%; height: 34px; }
.sd-skeleton-price { height: 92px; margin: 32px 0; border-radius: 16px; }
.sd-skeleton-button { height: 54px; margin-top: 12px; border-radius: 14px; }
@keyframes sd-shimmer { to { transform: translateX(100%); } }

.sd-error { max-width: 620px; margin: 80px auto; padding: 42px 28px; text-align: center; border: 1px solid var(--sd-line); border-radius: var(--sd-radius-lg); background: var(--sd-surface); box-shadow: var(--sd-shadow-sm); }
.sd-error-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 50%; background: var(--sd-brand-soft); color: var(--sd-brand); font-size: 30px; font-weight: 900; }
.sd-error h1 { margin: 0; font-size: 24px; }
.sd-error p { margin: 9px 0 24px; color: var(--sd-muted); }
.sd-error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

.sd-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr);
  grid-template-areas: "gallery info";
  direction: ltr;
  gap: 22px;
  align-items: start;
}
.sd-gallery-card, .sd-info-card, .sd-content-card {
  min-width: 0;
  border: 1px solid var(--sd-line);
  border-radius: var(--sd-radius-lg);
  background: var(--sd-surface);
  box-shadow: var(--sd-shadow-sm);
}
.sd-gallery-card { grid-area: gallery; direction: rtl; overflow: hidden; }
.sd-info-card { grid-area: info; direction: rtl; position: sticky; top: calc(var(--sd-header-height) + 18px); padding: 24px; }
.sd-gallery-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #101114;
  isolation: isolate;
  outline: 0;
}
.sd-gallery-stage:focus-visible { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px var(--sd-brand); }
.sd-gallery-stage > img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; user-select: none; -webkit-user-drag: none; }
.sd-gallery-placeholder { display: grid; place-items: center; gap: 12px; color: #b7bdc7; text-align: center; }
.sd-gallery-placeholder svg { width: 70px; height: 70px; stroke-width: 1.3; }
.sd-condition-badge, .sd-gallery-counter {
  position: absolute;
  z-index: 4;
  top: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 17, 20, .76);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}
.sd-condition-badge { right: 16px; }
.sd-gallery-counter { left: 16px; direction: rtl; }
.sd-gallery-nav, .sd-gallery-expand {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(15, 17, 20, .68);
  color: #fff;
  backdrop-filter: blur(12px);
  transition: transform .16s ease, background .16s ease;
}
.sd-gallery-nav:hover, .sd-gallery-expand:hover { background: rgba(181, 31, 45, .9); }
.sd-gallery-nav:active, .sd-gallery-expand:active { transform: scale(.94); }
.sd-gallery-nav { top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; }
.sd-gallery-next { right: 16px; }
.sd-gallery-prev { left: 16px; }
.sd-gallery-nav svg { width: 25px; height: 25px; }
.sd-gallery-expand { left: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 13px; }
.sd-thumbnails { display: flex; gap: 10px; overflow-x: auto; padding: 14px 16px 2px; scrollbar-width: thin; overscroll-behavior-inline: contain; }
.sd-thumbnail {
  width: 82px;
  height: 66px;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--sd-surface-soft);
}
.sd-thumbnail img { width: 100%; height: 100%; display: block; object-fit: cover; }
.sd-thumbnail[aria-current="true"] { border-color: var(--sd-brand); box-shadow: 0 0 0 2px var(--sd-brand-soft); }
.sd-gallery-note { margin: 0; padding: 12px 18px 16px; color: var(--sd-muted); font-size: 12px; text-align: center; }

.sd-info-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--sd-muted); font-size: 13px; }
.sd-status-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 11px; border-radius: 999px; background: color-mix(in srgb, var(--sd-success) 12%, transparent); color: var(--sd-success); font-weight: 800; }
.sd-info-card h1 { margin: 17px 0 12px; font-size: clamp(25px, 2.2vw, 34px); line-height: 1.45; font-weight: 900; overflow-wrap: anywhere; }
.sd-meta-list { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--sd-muted); font-size: 13px; }
.sd-meta-list span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.sd-meta-list svg { width: 17px; height: 17px; flex: 0 0 auto; }
.sd-meta-list b { min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.sd-price-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 24px 0 18px; padding: 18px; border: 1px solid color-mix(in srgb, var(--sd-brand) 18%, var(--sd-line)); border-radius: 16px; background: var(--sd-brand-soft); }
.sd-price-box span { color: var(--sd-muted); font-size: 13px; }
.sd-price-box strong { color: var(--sd-brand-strong); font-size: clamp(22px, 2vw, 29px); font-weight: 900; white-space: nowrap; }
.sd-contact-note { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 13px 14px; border: 1px solid color-mix(in srgb, var(--sd-warning) 25%, var(--sd-line)); border-radius: 14px; background: color-mix(in srgb, var(--sd-warning) 8%, var(--sd-surface)); }
.sd-contact-note svg { width: 25px; height: 25px; flex: 0 0 auto; color: var(--sd-warning); }
.sd-contact-note div { display: grid; line-height: 1.5; }
.sd-contact-note strong { font-size: 13px; }
.sd-contact-note span { color: var(--sd-muted); font-size: 12px; }
.sd-primary-actions { display: grid; gap: 10px; }
.sd-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: background .16s ease, border-color .16s ease, transform .16s ease, opacity .16s ease;
}
.sd-button:active { transform: scale(.985); }
.sd-button:disabled { cursor: wait; opacity: .62; }
.sd-button-large { min-height: 54px; font-size: 16px; }
.sd-button-small { min-height: 38px; padding-inline: 13px; font-size: 12px; }
.sd-button-primary { background: var(--sd-brand); color: #fff; box-shadow: 0 9px 24px color-mix(in srgb, var(--sd-brand) 20%, transparent); }
.sd-button-primary:hover { background: var(--sd-brand-strong); }
.sd-button-outline { border-color: var(--sd-line-strong); background: var(--sd-surface); color: var(--sd-text); }
.sd-button-outline:hover, .sd-button-secondary:hover { border-color: color-mix(in srgb, var(--sd-brand) 35%, var(--sd-line)); background: var(--sd-brand-soft); color: var(--sd-brand-strong); }
.sd-button-secondary { border-color: var(--sd-line); background: var(--sd-surface-soft); color: var(--sd-text); }
.sd-phone-box { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px dashed color-mix(in srgb, var(--sd-brand) 40%, var(--sd-line)); border-radius: 14px; background: var(--sd-brand-soft); }
.sd-phone-box > div { display: grid; }
.sd-phone-box span { color: var(--sd-muted); font-size: 11px; }
.sd-phone-box a { direction: ltr; font-size: 20px; font-weight: 900; color: var(--sd-brand-strong); }
.sd-quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.sd-quick-actions button { min-width: 0; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px; border: 1px solid var(--sd-line); border-radius: 13px; background: var(--sd-surface); color: var(--sd-muted); font-size: 12px; font-weight: 700; }
.sd-quick-actions button:hover { border-color: var(--sd-line-strong); color: var(--sd-brand); background: var(--sd-surface-soft); }
.sd-quick-actions button.is-saved { color: var(--sd-brand); background: var(--sd-brand-soft); border-color: color-mix(in srgb, var(--sd-brand) 25%, var(--sd-line)); }
.sd-quick-actions svg { width: 18px; height: 18px; }
.sd-quick-actions button.is-saved svg { fill: currentColor; }
.sd-seller-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--sd-line); }
.sd-seller-avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(145deg, var(--sd-brand), var(--sd-brand-strong)); color: #fff; font-size: 20px; font-weight: 900; }
.sd-seller-copy { min-width: 0; display: grid; line-height: 1.55; }
.sd-seller-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-seller-copy span { color: var(--sd-muted); font-size: 12px; }
.sd-seller-card > a { color: var(--sd-brand); font-size: 12px; font-weight: 800; }

.sd-detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: 22px; align-items: start; margin-top: 22px; }
.sd-detail-main, .sd-detail-side { display: grid; gap: 22px; min-width: 0; }
.sd-content-card { padding: 24px; }
.sd-content-card h2 { margin: 0 0 15px; font-size: 19px; font-weight: 900; }
.sd-description { margin: 0; color: var(--sd-text); white-space: pre-line; overflow-wrap: anywhere; }
.sd-spec-grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.sd-spec-grid > div { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--sd-line); }
.sd-spec-grid dt { color: var(--sd-muted); font-size: 13px; }
.sd-spec-grid dd { margin: 0; font-weight: 700; text-align: left; overflow-wrap: anywhere; }
.sd-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sd-card-heading h2 { margin-bottom: 0; }
.sd-card-heading > span { padding: 4px 9px; border-radius: 999px; background: var(--sd-surface-soft); color: var(--sd-muted); font-size: 10px; font-weight: 800; }
.sd-location-card > p { margin: 12px 0; color: var(--sd-muted); }
.sd-map-frame { overflow: hidden; border: 1px solid var(--sd-line); border-radius: 14px; }
.sd-map-frame iframe { width: 100%; height: 245px; display: block; border: 0; background: var(--sd-surface-soft); }
.sd-map-frame a { min-height: 42px; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--sd-line); color: var(--sd-brand); font-size: 12px; font-weight: 800; }
.sd-map-unavailable { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--sd-surface-soft); }
.sd-map-unavailable svg { width: 30px; height: 30px; flex: 0 0 auto; color: var(--sd-muted); }
.sd-map-unavailable p { margin: 0; display: grid; line-height: 1.55; }
.sd-map-unavailable strong { font-size: 13px; }
.sd-map-unavailable span { color: var(--sd-muted); font-size: 11px; }
.sd-safety-card ul { margin: 0; padding: 0 21px 0 0; color: var(--sd-muted); }
.sd-safety-card li + li { margin-top: 8px; }
.sd-safety-card li::marker { color: var(--sd-brand); }

.sd-mobile-cta { display: none; }
.sd-toast-region { position: fixed; z-index: 150; left: 50%; bottom: 28px; width: min(92%, 440px); transform: translateX(-50%); pointer-events: none; }
.sd-toast { padding: 12px 16px; border-radius: 13px; background: #202632; color: #fff; text-align: center; font-size: 13px; font-weight: 700; box-shadow: 0 16px 40px rgba(0, 0, 0, .24); }
.sd-toast[data-tone="success"] { background: #146c46; }
.sd-toast[data-tone="error"] { background: #a51d2a; }

.sd-dialog { width: min(92vw, 560px); max-height: min(88vh, 820px); padding: 0; border: 0; border-radius: 20px; background: transparent; color: var(--sd-text); overflow: visible; }
.sd-dialog::backdrop { background: rgba(8, 12, 18, .72); backdrop-filter: blur(5px); }
.sd-dialog-card { overflow: auto; max-height: min(88vh, 820px); padding: 22px; border: 1px solid var(--sd-line); border-radius: 20px; background: var(--sd-surface); box-shadow: var(--sd-shadow); }
.sd-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sd-dialog-head h2 { margin: 0; font-size: 20px; }
.sd-dialog-card > p { margin: 8px 0 18px; color: var(--sd-muted); font-size: 13px; }
.sd-dialog-close { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--sd-line); border-radius: 12px; background: var(--sd-surface-soft); color: var(--sd-text); font-size: 25px; line-height: 1; }
.sd-radio-row { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--sd-line); border-radius: 12px; }
.sd-radio-row + .sd-radio-row { margin-top: 8px; }
.sd-radio-row input { accent-color: var(--sd-brand); }
.sd-radio-row span { font-size: 13px; }
.sd-field { display: grid; gap: 7px; margin-top: 14px; }
.sd-field > span { font-size: 12px; font-weight: 800; }
.sd-field textarea { width: 100%; resize: vertical; padding: 11px 12px; border: 1px solid var(--sd-line); border-radius: 12px; outline: 0; background: var(--sd-surface-soft); color: var(--sd-text); font-size: 14px; line-height: 1.8; }
.sd-field textarea:focus { border-color: var(--sd-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sd-brand) 12%, transparent); }
.sd-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.sd-gallery-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
.sd-gallery-dialog-shell { width: 100%; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); background: #090b0f; color: #fff; }
.sd-gallery-dialog-head { min-height: 64px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); border-bottom: 1px solid rgba(255,255,255,.12); }
.sd-gallery-dialog-head h2 { margin: 0; font-size: 16px; }
.sd-gallery-dialog-head span { color: #c3c9d2; font-size: 12px; }
.sd-gallery-dialog-head .sd-dialog-close { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); }
.sd-gallery-dialog-stage { position: relative; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.sd-gallery-dialog-stage img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.sd-gallery-dialog-stage .sd-gallery-nav { display: grid; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--sd-brand) 55%, transparent); outline-offset: 2px; }

@media (max-width: 1023px) {
  :root { --sd-header-height: 64px; }
  .sd-header-inner { grid-template-columns: auto auto 1fr auto; }
  .sd-header-search { display: none; }
  .sd-product-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "info"; }
  .sd-info-card { position: static; }
  .sd-loading { grid-template-columns: 1fr; }
  .sd-skeleton-media { min-height: auto; aspect-ratio: 4 / 3; }
  .sd-skeleton-panel { min-height: 420px; }
  .sd-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  :root { --sd-header-height: 58px; --sd-radius-lg: 18px; }
  body { font-size: 14px; padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .sd-header { min-height: var(--sd-header-height); }
  .sd-header-inner { width: 100%; min-height: var(--sd-header-height); grid-template-columns: auto 1fr auto; gap: 8px; padding: 6px max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left)); }
  .sd-back-button { grid-column: 1; }
  .sd-brand { grid-column: 2; justify-self: center; }
  .sd-brand img { width: 34px; height: 34px; }
  .sd-brand small { display: none; }
  .sd-brand strong { font-size: 14px; }
  .sd-header-actions { grid-column: 3; gap: 6px; }
  .sd-header-actions .sd-icon-button[href], .sd-post-button { display: none; }
  .sd-icon-button { width: 40px; height: 40px; border-radius: 12px; }
  .sd-page { width: 100%; padding: 0 12px 30px; }
  .sd-breadcrumb { display: none; }
  .sd-loading { gap: 12px; padding-top: 0; }
  .sd-skeleton-media { margin-inline: -12px; border-radius: 0; aspect-ratio: 4 / 3; }
  .sd-skeleton-panel { min-height: 390px; padding: 18px; border-radius: 17px; }
  .sd-product-hero { gap: 12px; }
  .sd-gallery-card { margin-inline: -12px; border-radius: 0 0 18px 18px; border-top: 0; border-inline: 0; box-shadow: none; }
  .sd-gallery-stage { aspect-ratio: 4 / 3; }
  .sd-condition-badge, .sd-gallery-counter { top: 11px; padding: 5px 9px; font-size: 10px; }
  .sd-condition-badge { right: 11px; }
  .sd-gallery-counter { left: 11px; }
  .sd-gallery-nav { width: 42px; height: 42px; margin-top: -21px; }
  .sd-gallery-next { right: 10px; }
  .sd-gallery-prev { left: 10px; }
  .sd-gallery-expand { left: 10px; bottom: 10px; width: 40px; height: 40px; }
  .sd-thumbnails { padding: 10px 12px 1px; gap: 8px; }
  .sd-thumbnail { width: 68px; height: 56px; border-radius: 10px; }
  .sd-gallery-note { padding: 9px 12px 12px; font-size: 10px; }
  .sd-info-card { padding: 18px 16px; border-radius: 18px; box-shadow: none; }
  .sd-info-card h1 { margin: 13px 0 10px; font-size: 22px; line-height: 1.5; }
  .sd-info-topline { font-size: 11px; }
  .sd-meta-list { gap: 7px 12px; font-size: 11px; }
  .sd-price-box { margin: 18px 0 14px; padding: 15px; }
  .sd-price-box strong { font-size: 22px; }
  .sd-primary-actions { display: none; }
  .sd-phone-box { margin-top: 12px; }
  .sd-quick-actions { margin-top: 12px; }
  .sd-quick-actions button { min-height: 46px; display: grid; place-items: center; gap: 2px; font-size: 10px; }
  .sd-quick-actions svg { width: 19px; height: 19px; }
  .sd-seller-card { margin-top: 14px; padding-top: 14px; }
  .sd-seller-avatar { width: 44px; height: 44px; }
  .sd-detail-grid, .sd-detail-main, .sd-detail-side { gap: 12px; }
  .sd-detail-grid { margin-top: 12px; }
  .sd-content-card { padding: 18px 16px; border-radius: 18px; box-shadow: none; }
  .sd-content-card h2 { font-size: 17px; }
  .sd-spec-grid { grid-template-columns: 1fr; }
  .sd-map-frame iframe { height: 220px; }
  .sd-mobile-cta {
    position: fixed;
    z-index: 75;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: .78fr 1.22fr;
    gap: 9px;
    padding: 10px max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border-top: 1px solid var(--sd-line);
    background: color-mix(in srgb, var(--sd-surface) 94%, transparent);
    box-shadow: 0 -12px 34px rgba(15, 22, 34, .12);
    backdrop-filter: blur(16px);
  }
  .sd-mobile-cta .sd-button { min-height: 50px; padding-inline: 10px; }
  .sd-toast-region { bottom: calc(90px + env(safe-area-inset-bottom)); }
  .sd-sheet-dialog { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .sd-sheet-dialog .sd-dialog-card { max-height: 92dvh; padding: 20px 16px max(18px, env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; border-bottom: 0; }
  .sd-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .sd-gallery-dialog-stage .sd-gallery-nav { width: 44px; height: 44px; }
  .sd-error { margin: 50px 12px; padding: 34px 20px; }
}

@media (max-width: 390px) {
  .sd-brand img { display: none; }
  .sd-info-card { padding-inline: 14px; }
  .sd-phone-box { align-items: stretch; flex-direction: column; }
  .sd-phone-box .sd-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* STOCKDIVAR_PRODUCT_GALLERY_FIX_V806 */
.sd-gallery-stage {
  background:
    radial-gradient(circle at 50% 44%, rgba(255,255,255,.08), transparent 58%),
    #17191e;
}
.sd-gallery-stage > img {
  position: relative;
  z-index: 1;
  object-fit: contain;
  object-position: center;
  background: #17191e;
  opacity: 1;
  transform: none;
  transition: none;
}
.sd-gallery-stage.is-gallery-processing > img {
  opacity: 1;
}
.sd-gallery-stage.is-gallery-autocropped > img {
  object-fit: contain;
}
.sd-gallery-stage.is-gallery-autocropped {
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.08), transparent 58%),
    #17191e;
}
.sd-gallery-stage.is-gallery-fallback-v806 > img {
  object-fit: contain;
  image-rendering: auto;
}
.sd-gallery-stage .sd-condition-badge,
.sd-gallery-stage .sd-gallery-counter,
.sd-gallery-stage .sd-gallery-nav,
.sd-gallery-stage .sd-gallery-expand {
  z-index: 6;
}
@media (max-width: 767px) {
  .sd-gallery-stage > img {
    object-position: center;
  }
}


/* STOCKDIVAR_PRODUCT_MOBILE_SHEET_POSITION_V788 */
.sd-sheet-layer-v788[hidden] {
  display: none !important;
}

.sd-sheet-layer-v788 {
  position: fixed;
  z-index: 12000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: hidden;
  isolation: isolate;
  pointer-events: auto;
  box-sizing: border-box;
}

.sd-sheet-backdrop-v788 {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(8, 12, 18, .72);
  appearance: none;
  -webkit-appearance: none;
  cursor: default;
  touch-action: manipulation;
}

.sd-sheet-layer-v788 > .sd-dialog-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 560px);
  max-height: min(
    calc(var(--sd-sheet-visible-v788, 100dvh) - 32px),
    820px
  );
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.sd-sheet-layer-v788 textarea,
.sd-sheet-layer-v788 input,
.sd-sheet-layer-v788 button,
.sd-sheet-layer-v788 a {
  pointer-events: auto;
  touch-action: manipulation;
}

@media (max-width: 767px) {
  .sd-sheet-layer-v788 {
    display: block;
    padding: 0;
  }

  .sd-sheet-layer-v788 > .sd-dialog-card {
    position: absolute;
    right: max(8px, env(safe-area-inset-right));
    left: max(8px, env(safe-area-inset-left));
    bottom: calc(
      max(54px, env(safe-area-inset-bottom))
      + var(--sd-sheet-keyboard-v788, 0px)
    );
    width: auto;
    max-height: min(
      calc(var(--sd-sheet-visible-v788, 100dvh) - 84px),
      72dvh,
      620px
    );
    margin: 0;
    padding: 18px 16px max(18px, env(safe-area-inset-bottom));
    border: 1px solid var(--sd-line);
    border-radius: 22px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
    transform: none !important;
  }

  .sd-sheet-layer-v788 .sd-dialog-head {
    position: sticky;
    top: -18px;
    z-index: 2;
    margin: -18px -16px 12px;
    padding: 16px 16px 10px;
    background: var(--sd-surface);
    border-radius: 22px 22px 0 0;
  }

  .sd-sheet-layer-v788 .sd-dialog-actions {
    position: sticky;
    bottom: -18px;
    z-index: 2;
    margin: 16px -16px -18px;
    padding: 12px 16px max(14px, env(safe-area-inset-bottom));
    background: var(--sd-surface);
    border-top: 1px solid var(--sd-line);
    border-radius: 0 0 22px 22px;
  }

  .sd-sheet-layer-v788 .sd-field textarea {
    min-height: 104px;
    max-height: 34dvh;
    resize: none;
  }
}

/* STOCKDIVAR_PRODUCT_GALLERY_LAYER_V806 */
html.sd-gallery-open-v802,
body.sd-gallery-open-v802 {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.sd-gallery-layer-v802[hidden] {
  display: none !important;
}

.sd-gallery-layer-v802 {
  position: fixed !important;
  z-index: 20000 !important;
  inset: 0 !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  height: 100dvh !important;
  height: var(--sd-gallery-height-v806, 100vh) !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #090b0f !important;
  color: #fff;
  opacity: 1 !important;
  transform: none !important;
  isolation: isolate;
}

.sd-gallery-layer-v802 .sd-gallery-dialog-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #090b0f;
}

.sd-gallery-layer-v802 .sd-gallery-dialog-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 44%, #1b2029 0, #090b0f 64%);
  touch-action: pan-x pinch-zoom;
}

.sd-gallery-layer-v802 #galleryDialogImage {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: block;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity .18s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.sd-gallery-layer-v802 #galleryDialogImage.is-fallback-v806 {
  object-fit: contain;
  image-rendering: auto;
}

.sd-gallery-layer-v802 #galleryDialogImage.is-ready-v802 {
  opacity: 1;
}

.sd-gallery-dialog-status {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 13px;
  padding: 28px;
  color: #d8dde6;
  text-align: center;
  pointer-events: none;
}

.sd-gallery-dialog-status i {
  width: 42px;
  height: 42px;
  display: block;
  border: 3px solid rgba(255,255,255,.18);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sd-gallery-spin-v802 .8s linear infinite;
}

.sd-gallery-dialog-status span {
  max-width: 300px;
  font-size: 13px;
  font-weight: 700;
}

.sd-gallery-dialog-status[data-state="error"] {
  color: #fff;
}

.sd-gallery-dialog-status[data-state="error"] i {
  display: none;
}

.sd-gallery-layer-v802 .sd-gallery-dialog-head,
.sd-gallery-layer-v802 .sd-gallery-nav {
  z-index: 4;
}

@keyframes sd-gallery-spin-v802 {
  to { transform: rotate(1turn); }
}

@media (max-width: 767px) {
  .sd-gallery-layer-v802 .sd-gallery-dialog-head {
    min-height: 58px;
    gap: 10px;
    padding:
      max(8px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      8px
      max(10px, env(safe-area-inset-left));
  }

  .sd-gallery-layer-v802 .sd-gallery-dialog-head h2 {
    font-size: 14px;
  }

  .sd-gallery-layer-v802 .sd-dialog-close {
    width: 42px;
    height: 42px;
  }

  .sd-gallery-layer-v802 .sd-gallery-dialog-stage .sd-gallery-nav {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sd-gallery-dialog-status i {
    animation-duration: 1.8s !important;
  }
}

@media (max-height: 620px) and (max-width: 767px) {
  .sd-sheet-layer-v788 > .sd-dialog-card {
    bottom: calc(
      max(18px, env(safe-area-inset-bottom))
      + var(--sd-sheet-keyboard-v788, 0px)
    );
    max-height: calc(var(--sd-sheet-visible-v788, 100dvh) - 42px);
  }
}

/* STOCKDIVAR_PRODUCT_GALLERY_PREVIEW_V813
   Pin the replaced image to the stage's used 4:3 box. This makes object-fit
   operate on the preview frame instead of the image's intrinsic tall box.
   Listing cards remain untouched; fullscreen still shows the whole file. */
#galleryStage.sd-gallery-stage > #galleryImage {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

#galleryDialogStage.sd-gallery-dialog-stage > #galleryDialogImage {
  object-fit: contain;
  object-position: center center;
}
