/* ============================================================
   Aramu storefront — native-like PWA app shell (mobile-first, RTL)
   Breakpoints: base (phone) / 480 / 768 / 1100
   ============================================================ */

:root {
  /* brand — overridden inline by ShopShell from SiteBrandCopy */
  --ar-primary: #1f6f5b;
  --ar-primary-dark: #165544;
  --ar-primary-soft: #dceee8;
  --ar-secondary: #0f3d34;
  --ar-accent: #c9a46a;

  /* neutrals — warm ivory palette (DESIGN.md) */
  --ar-bg: #faf7f1;
  --ar-surface: #ffffff;
  --ar-muted: #f2ebe1;
  --ar-text: #1c1815;
  --ar-text-muted: #4a4038;
  --ar-text-tertiary: #8c8172;
  --ar-border: #e7dfd2;
  --ar-danger: #c23b2c;
  --ar-success: #0f9d58;
  --ar-warn: #d97706;

  /* radii */
  --ar-radius-xs: 10px;
  --ar-radius-sm: 14px;
  --ar-radius: 18px;
  --ar-radius-lg: 24px;
  --ar-radius-pill: 999px;

  /* elevation */
  --ar-shadow-sm: 0 2px 10px rgba(28, 24, 21, 0.07);
  --ar-shadow: 0 10px 28px rgba(28, 24, 21, 0.12);
  --ar-shadow-lg: 0 18px 44px rgba(28, 24, 21, 0.16);

  /* spacing scale (4px base) */
  --ar-s1: 4px;
  --ar-s2: 8px;
  --ar-s3: 12px;
  --ar-s4: 16px;
  --ar-s5: 20px;
  --ar-s6: 24px;
  --ar-s8: 32px;
  --ar-s10: 40px;

  /* typography scale */
  --ar-fs-xs: clamp(0.63rem, 0.58rem + 0.22vw, 0.72rem);
  --ar-fs-sm: clamp(0.72rem, 0.66rem + 0.28vw, 0.84rem);
  --ar-fs-md: clamp(0.82rem, 0.76rem + 0.3vw, 0.95rem);
  --ar-fs-lg: clamp(0.95rem, 0.87rem + 0.4vw, 1.12rem);
  --ar-fs-xl: clamp(1.1rem, 0.96rem + 0.7vw, 1.45rem);
  --ar-fs-2xl: clamp(1.32rem, 1.05rem + 1.35vw, 2.15rem);
  --ar-lh-tight: 1.25;
  --ar-lh: 1.55;

  /* layout metrics */
  --ar-gutter: 16px;
  --ar-header-h: 108px;
  --ar-nav-h: 64px;
  --ar-tap: 44px;
  --ar-app-max: 480px;
  --ar-page-max: 1240px;
  --ar-safe-top: env(safe-area-inset-top, 0px);
  --ar-safe-bottom: env(safe-area-inset-bottom, 0px);

  /* legacy aliases still referenced by older markup */
  --bg-primary: var(--ar-primary);
  --bg-primary-dark: var(--ar-primary-dark);
  --bg-secondary: var(--ar-secondary);
  --bg-accent: var(--ar-accent);
  --bg-bg: var(--ar-bg);
  --bg-surface: var(--ar-surface);
  --bg-muted: var(--ar-muted);
  --bg-text: var(--ar-text);
  --bg-text-muted: var(--ar-text-muted);
  --bg-border: var(--ar-border);
  --bg-danger: var(--ar-danger);
  --bg-success: var(--ar-success);
  --bg-radius: var(--ar-radius);
  --bg-radius-sm: var(--ar-radius-sm);
  --bg-shadow: var(--ar-shadow);
  --bg-bottom-h: var(--ar-nav-h);
  --shop-gutter: var(--ar-gutter);
}

html:has(.shop-root),
html:has(.shop-root) body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  background: #ebe4d8 !important;
  color: var(--ar-text);
  direction: rtl;
  text-align: right;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 16px;
  line-height: var(--ar-lh);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: auto;
  touch-action: manipulation;
  scroll-behavior: auto;
}

/* ===================== App frame ===================== */
.shop-root {
  --bg-primary: var(--ar-primary);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--ar-app-max);
  min-height: 100dvh;
  min-height: 100svh;
  margin: 0 auto;
  background: var(--ar-bg);
  overflow: visible;
  padding: 0 !important;
  box-sizing: border-box;
}

.shop-root *,
.shop-root *::before,
.shop-root *::after { box-sizing: border-box; }

.shop-root img { max-width: 100%; }

/* ===================== Header ===================== */
.shop-root .shop-header {
  position: sticky !important;
  top: 0;
  z-index: 30;
  flex: 0 0 auto;
  display: block !important;
  width: 100%;
  margin: 0;
  padding: 0;
  padding-top: var(--ar-safe-top);
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ar-border);
  box-shadow: var(--ar-shadow-sm);
  transition: box-shadow 0.2s ease;
}

.shop-root .shop-header-top {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "logo actions"
    "search search";
  align-items: center;
  gap: var(--ar-s2) var(--ar-s3);
  width: 100%;
  padding: 10px var(--ar-gutter) 12px;
}

.shop-root .shop-logo { grid-area: logo; }
.shop-root .shop-hello { display: none !important; }
.shop-root .shop-search { grid-area: search; width: 100%; min-width: 0; }
.shop-root .shop-header-actions {
  grid-area: actions;
  display: flex !important;
  align-items: center;
  gap: var(--ar-s2);
}
.shop-root .shop-desktop-nav { display: none !important; }
.shop-root .shop-only-desktop { display: none !important; }
.shop-root .shop-only-mobile { display: inline-flex !important; }
.shop-root .shop-only-tablet-up { display: none !important; }
.shop-root .shop-menu-btn { display: inline-flex !important; }
.shop-root .shop-logo-name {
  display: inline !important;
  font-weight: 800;
  font-size: var(--ar-fs-lg);
  letter-spacing: 0.02em;
}

/* collapsed state — toggled by JS on scroll */
.shop-root .shop-header.is-collapsed .shop-hello { display: none; }
.shop-root .shop-header.is-collapsed .shop-header-top {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  grid-template-areas: "logo search actions";
  padding-block: 8px;
}
.shop-root .shop-header.is-collapsed .shop-search input { min-height: 38px; }
.shop-root .shop-header.is-collapsed { box-shadow: 0 4px 16px rgba(15, 61, 52, 0.1); }

.shop-root .shop-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--ar-s2);
  text-decoration: none;
  color: var(--ar-text);
}
.shop-root .shop-logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--ar-radius-sm);
  object-fit: cover;
}
.shop-root .shop-logo-fallback {
  width: 40px;
  height: 40px;
  border-radius: var(--ar-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ar-primary);
  color: #fff;
  font-weight: 800;
  font-size: var(--ar-fs-lg);
}

.shop-root .shop-icon-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ar-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.shop-root .shop-icon-btn.cart-circle {
  background: transparent;
  color: var(--ar-text);
}
.shop-root .shop-icon-btn.cart-filled {
  background: var(--ar-primary);
  color: #fff;
}
.shop-root .shop-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shop-root .shop-icon-btn svg path,
.shop-root .shop-icon-btn svg circle,
.shop-root .shop-icon-btn svg rect {
  stroke: inherit;
  fill: none;
}

.shop-root .shop-hello small {
  display: block;
  color: var(--ar-text-muted);
  font-size: var(--ar-fs-xs);
  font-weight: 500;
  line-height: 1.2;
}
.shop-root .shop-hello strong {
  display: block;
  font-size: var(--ar-fs-md);
  font-weight: 800;
  line-height: var(--ar-lh-tight);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-root .shop-search { position: relative; display: flex; gap: var(--ar-s2); }
.shop-root .shop-search input {
  width: 100%;
  min-height: var(--ar-tap);
  border: 0;
  border-radius: var(--ar-radius-pill);
  padding: 10px 46px 10px 14px;
  background: var(--ar-muted);
  color: var(--ar-text);
  font-size: 16px; /* prevents iOS zoom-on-focus */
  font-family: inherit;
  outline: none;
  transition: box-shadow 0.15s ease, min-height 0.15s ease;
}
.shop-root .shop-search input:focus-visible {
  box-shadow: 0 0 0 2px var(--ar-primary);
}
.shop-root .shop-search input::placeholder { color: var(--ar-text-tertiary); }
.shop-root .shop-search-field { position: relative; flex: 1 1 auto; min-width: 0; }
.shop-root .shop-search-btn {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ar-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.shop-root .shop-compare-pick { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.shop-root .shop-compare-pick-item { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 12px; padding: 10px; }
.shop-root .shop-compare-pick-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.shop-root .shop-suggest {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 40;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 61, 52, 0.18);
  max-height: 320px;
  overflow: auto;
}
.shop-root .shop-suggest-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  color: inherit;
  text-decoration: none;
}
.shop-root .shop-suggest-item:hover { background: var(--ar-muted); }
.shop-root .shop-suggest-item img {
  width: 40px; height: 40px; object-fit: cover; border-radius: 8px; background: var(--ar-muted);
}
.shop-root .shop-suggest-item small { display: block; color: var(--ar-text-tertiary); font-size: 12px; }
.shop-root .shop-cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--ar-muted); }
.shop-root .shop-cart-line img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--ar-muted); }
.shop-root .shop-qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.shop-root .shop-qty button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; }
.shop-root .shop-cart-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.shop-root .shop-search-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ===================== Category menu ===================== */
/* Phone: a horizontal chip bar under the header. Desktop: a hover mega-menu. */
.shop-root .shop-megamenu {
  display: flex;
  gap: var(--ar-s2);
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 var(--ar-gutter) var(--ar-s2);
  border-top: 1px solid var(--ar-border);
}
.shop-root .shop-megamenu::-webkit-scrollbar { display: none; }
.shop-root .shop-megamenu-item { position: relative; flex: 0 0 auto; }
.shop-root .shop-megamenu-root {
  display: inline-flex;
  align-items: center;
  gap: var(--ar-s1);
  min-height: 38px;
  padding: 6px var(--ar-s3);
  border: 0;
  background: none;
  border-radius: var(--ar-radius-pill);
  color: var(--ar-text);
  text-decoration: none;
  font-size: var(--ar-fs-sm);
  font-weight: 700;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.shop-root .shop-megamenu-root svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.15s ease;
}
.shop-root .shop-megamenu-item.is-open .shop-megamenu-root svg { transform: rotate(180deg); }
.shop-root .shop-megamenu-panel { display: none; }

/* Mobile/tablet: tapping a root with children opens this flat panel below the
   pill bar instead of navigating — the per-item hover panel below is desktop-only
   and would get clipped by the bar's own horizontal scroll on touch. */
.shop-root .shop-megamenu-flyout {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ar-s2);
  padding: 0 var(--ar-gutter) var(--ar-s3);
  border-top: 1px solid var(--ar-border);
}
.shop-root .shop-megamenu-flyout a {
  display: inline-flex;
  align-items: center;
  min-height: var(--ar-tap);
  padding: 6px var(--ar-s3);
  border-radius: var(--ar-radius-pill);
  background: var(--ar-muted);
  color: var(--ar-text);
  text-decoration: none;
  font-size: var(--ar-fs-sm);
  font-weight: 600;
  white-space: nowrap;
}
.shop-root .shop-megamenu-flyout a.shop-megamenu-all {
  background: transparent;
  border: 1px solid var(--ar-primary);
  color: var(--ar-primary);
  font-weight: 800;
}
.shop-root .shop-drawer-divider {
  height: 1px;
  margin: var(--ar-s3) 0;
  background: rgba(255, 255, 255, 0.18);
}

/* ===================== Quick nav + full category panel (Digikala-style) ===================== */
.shop-root .shop-quicknav {
  display: flex;
  align-items: center;
  gap: var(--ar-s3);
  overflow-x: auto;
  scrollbar-width: none;
  padding: var(--ar-s2) var(--ar-gutter) var(--ar-s3);
  border-top: 1px solid var(--ar-border);
}
.shop-root .shop-quicknav::-webkit-scrollbar { display: none; }
.shop-root .shop-quicknav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--ar-s2);
  flex: 0 0 auto;
  min-height: var(--ar-tap);
  padding: 8px var(--ar-s4);
  border: 0;
  border-radius: var(--ar-radius-pill);
  background: var(--ar-primary);
  color: #fff;
  font-family: inherit;
  font-size: var(--ar-fs-sm);
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.shop-root .shop-quicknav-toggle svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.shop-root .shop-quicknav-links {
  display: flex;
  align-items: center;
  gap: var(--ar-s4);
  flex: 0 0 auto;
}
.shop-root .shop-quicknav-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--ar-s1);
  color: var(--ar-text);
  text-decoration: none;
  font-size: var(--ar-fs-sm);
  font-weight: 700;
  white-space: nowrap;
}
.shop-root .shop-quicknav-chip svg {
  width: 14px; height: 14px;
  stroke: none; fill: currentColor;
}
.shop-root .shop-quicknav-chip.is-amazing { color: var(--ar-warn); }
.shop-root .shop-quicknav-chip.is-sale { color: var(--ar-danger); }
.shop-root .shop-quicknav-chip.is-active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.shop-root .shop-megapanel-scrim {
  position: fixed;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(28, 24, 21, 0.45);
  z-index: 60;
  cursor: pointer;
}
.shop-root .shop-megapanel {
  position: fixed;
  top: var(--ar-header-h);
  right: var(--ar-gutter);
  left: var(--ar-gutter);
  z-index: 61;
  max-height: min(72vh, 640px);
  display: flex;
  background: var(--ar-surface);
  border-radius: var(--ar-radius);
  box-shadow: var(--ar-shadow-lg);
  overflow: hidden;
}
.shop-root .shop-megapanel-sidebar {
  flex: 0 0 auto;
  width: 42%;
  max-width: 220px;
  overflow-y: auto;
  background: var(--ar-muted);
  border-inline-start: 1px solid var(--ar-border);
}
.shop-root .shop-megapanel-root {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px var(--ar-s4);
  border: 0;
  border-inline-end: 3px solid transparent;
  background: transparent;
  color: var(--ar-text);
  font-family: inherit;
  font-size: var(--ar-fs-sm);
  font-weight: 600;
  text-align: right;
  cursor: pointer;
}
.shop-root .shop-megapanel-root svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex: 0 0 auto;
}
.shop-root .shop-megapanel-root.is-active {
  background: var(--ar-surface);
  border-inline-end-color: var(--ar-primary);
  color: var(--ar-primary);
  font-weight: 800;
}
.shop-root .shop-megapanel-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: var(--ar-s5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--ar-s6);
  align-content: flex-start;
}
.shop-root .shop-megapanel-empty { color: var(--ar-text-muted); font-size: var(--ar-fs-sm); }
.shop-root .shop-megapanel-col {
  display: flex;
  flex-direction: column;
  gap: var(--ar-s2);
  min-width: 150px;
}
.shop-root .shop-megapanel-col-title {
  display: flex;
  align-items: center;
  gap: var(--ar-s1);
  color: var(--ar-primary, #1f6f5b);
  text-decoration: none;
  font-size: var(--ar-fs-sm);
  font-weight: 800;
  margin-bottom: var(--ar-s1);
}
.shop-root .shop-megapanel-col-title svg {
  width: 12px; height: 12px;
  stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.shop-root .shop-megapanel-body a:not(.shop-megapanel-col-title) {
  color: var(--ar-text, #1c1815);
  text-decoration: none;
  font-size: var(--ar-fs-sm);
  font-weight: 600;
}
.shop-root .shop-megapanel-body a:not(.shop-megapanel-col-title):hover { color: var(--ar-primary); }
.shop-root .shop-megapanel-all {
  align-self: flex-start;
  color: var(--ar-primary);
  text-decoration: none;
  font-size: var(--ar-fs-sm);
  font-weight: 800;
  border: 1px solid var(--ar-primary);
  border-radius: var(--ar-radius-pill);
  padding: 8px var(--ar-s4);
  white-space: nowrap;
}
@media (min-width: 768px) {
  .shop-root .shop-megapanel { right: auto; left: auto; width: 640px; }
}

/* ===================== Main stage ===================== */
.shop-root .shop-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: var(--ar-s3) var(--ar-gutter) calc(var(--ar-nav-h) + var(--ar-safe-bottom) + var(--ar-s5)) !important;
  overflow: visible;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
}

.shop-root .shop-footer {
  display: block !important;
  position: relative;
  background: linear-gradient(165deg, var(--ar-text) 0%, var(--ar-secondary) 100%);
  color: #f5f0e8;
  padding: var(--ar-s6) var(--ar-gutter) calc(var(--ar-nav-h) + var(--ar-safe-bottom) + var(--ar-s5));
  margin: var(--ar-s5) calc(-1 * var(--ar-gutter)) 0;
  border-top: 3px solid var(--ar-accent);
}
.shop-root .shop-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.shop-root .shop-footer a { color: var(--ar-accent); text-decoration: none; transition: color 0.15s ease; }
.shop-root .shop-footer a:hover { color: #fff; }
.shop-root .shop-footer-top { position: relative; margin-bottom: var(--ar-s4); }
.shop-root .shop-footer-brand {
  font-size: var(--ar-fs-2xl);
  font-weight: 800;
  margin: 0 0 var(--ar-s2);
  color: #fff;
  letter-spacing: -0.02em;
}
.shop-root .shop-footer-tag {
  margin: 0;
  font-size: var(--ar-fs-sm);
  color: rgba(245, 240, 232, 0.78);
  line-height: 1.6;
  max-width: 32ch;
}
.shop-root .shop-footer-mobile { position: relative; }
.shop-root .shop-footer-acc {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.shop-root .shop-footer-acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ar-s2);
  padding: var(--ar-s3) 0;
  font-weight: 700;
  font-size: var(--ar-fs-sm);
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease;
}
.shop-root .shop-footer-acc summary:hover { color: #fff; }
.shop-root .shop-footer-acc summary::-webkit-details-marker { display: none; }
.shop-root .shop-footer-acc summary svg {
  width: 18px;
  height: 18px;
  stroke: rgba(245, 240, 232, 0.6);
  fill: none;
  stroke-width: 2;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.shop-root .shop-footer-acc[open] summary svg { transform: rotate(180deg); }
.shop-root .shop-footer-acc-body {
  display: flex;
  flex-direction: column;
  gap: var(--ar-s2);
  padding: 0 0 var(--ar-s3);
  font-size: var(--ar-fs-sm);
  animation: ar-fade-up 0.2s ease both;
}
.shop-root .shop-footer-acc-body a { color: rgba(245, 240, 232, 0.88); }
.shop-root .shop-footer-social {
  display: flex;
  gap: var(--ar-s2);
  margin: var(--ar-s5) 0 var(--ar-s4);
  position: relative;
}
.shop-root .shop-footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #f5f0e8 !important;
  transition: background 0.15s ease, transform 0.15s ease;
}
.shop-root .shop-footer-social-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  color: #fff !important;
}
.shop-root .shop-footer-social-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shop-root .shop-footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ar-s2);
  margin: 0 0 var(--ar-s4);
  position: relative;
}
.shop-root .shop-footer-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--ar-radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--ar-fs-xs);
  font-weight: 600;
  color: rgba(245, 240, 232, 0.92);
}
.shop-root .shop-footer-trust svg {
  width: 14px;
  height: 14px;
  stroke: var(--ar-accent);
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}
.shop-root .shop-footer-bottom {
  position: relative;
  margin-top: var(--ar-s4);
  padding-top: var(--ar-s4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.shop-root .shop-footer-copy {
  text-align: center;
  margin: 0;
  font-size: var(--ar-fs-xs);
  color: rgba(245, 240, 232, 0.55);
}
.shop-root .shop-footer-grid { display: none; }

/* page transition */
.shop-root .shop-main > * { animation: ar-fade-up 0.24s ease both; }
@keyframes ar-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ===================== Page header ===================== */
.shop-root .shop-page-header {
  display: flex;
  align-items: center;
  gap: var(--ar-s3);
  margin: 0 0 var(--ar-s4);
}
.shop-root .shop-page-header .shop-back {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--ar-surface);
  box-shadow: var(--ar-shadow-sm);
  color: var(--ar-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.shop-root .shop-page-header .shop-back svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.shop-root .shop-page-header-text { min-width: 0; flex: 1 1 auto; }
.shop-root .shop-page-title,
.shop-root .shop-page-header h1 {
  margin: 0;
  font-size: var(--ar-fs-xl);
  font-weight: 800;
  line-height: var(--ar-lh-tight);
  letter-spacing: -0.01em;
}
.shop-root .shop-page-subtitle {
  margin: 2px 0 0;
  font-size: var(--ar-fs-sm);
  color: var(--ar-text-muted);
}
.shop-root .shop-page-header-actions { margin-inline-start: auto; display: flex; gap: var(--ar-s2); }

/* breadcrumb */
.shop-root .shop-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ar-s1);
  margin: 0 0 var(--ar-s3);
  font-size: var(--ar-fs-xs);
  color: var(--ar-text-muted);
}
.shop-root .shop-breadcrumb a { color: inherit; text-decoration: none; }
.shop-root .shop-breadcrumb a:hover { color: var(--ar-primary); }
.shop-root .shop-breadcrumb .sep { opacity: 0.5; }

/* ===================== Bottom nav ===================== */
.shop-root .shop-bottom-nav {
  position: fixed !important;
  inset: auto 0 0 0 !important;
  transform: none !important;
  flex: 0 0 auto;
  z-index: 40;
  width: 100%;
  max-width: var(--ar-app-max);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--ar-border);
  border-radius: 0;
  box-shadow: 0 -8px 24px rgba(15, 61, 52, 0.06);
  padding-bottom: var(--ar-safe-bottom);
  display: block !important;
}

.shop-root .shop-bottom-row {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: var(--ar-nav-h);
  width: 100%;
  padding: var(--ar-s1) 2px 2px;
}

.shop-root .shop-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: var(--ar-tap);
  padding: var(--ar-s1) 2px;
  color: #94a0aa;
  text-decoration: none;
  font-size: var(--ar-fs-xs);
  font-weight: 650;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.12s ease;
}
.shop-root .shop-bottom-item:active { transform: scale(0.94); }
.shop-root .shop-bottom-item > span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-root .shop-bottom-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.shop-root .shop-bottom-item svg path,
.shop-root .shop-bottom-item svg circle,
.shop-root .shop-bottom-item svg rect {
  stroke: inherit;
  fill: none;
}
.shop-root .shop-bottom-item.active {
  color: var(--ar-primary);
  font-weight: 800;
}
.shop-root .shop-bottom-item.active svg { stroke-width: 2.25; }

.shop-root .shop-bottom-item.is-cart .shop-cart-pill {
  position: relative;
  width: 44px;
  height: 28px;
  border-radius: var(--ar-radius-pill);
  background: var(--ar-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ar-text);
}
.shop-root .shop-bottom-item.is-cart.active .shop-cart-pill {
  background: var(--ar-primary);
  color: #fff;
}
.shop-root .shop-bottom-item.is-cart.active .shop-cart-pill svg { stroke: #fff; }
.shop-root .shop-cart-pill svg { width: 18px; height: 18px; }
.shop-root .shop-badge {
  position: absolute;
  top: -5px;
  left: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--ar-radius-pill);
  background: var(--ar-danger);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-weight: 700;
}

/* ===================== Drawer ===================== */
.shop-root .shop-scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 26, 22, 0.45);
  backdrop-filter: blur(2px);
  border: 0;
  padding: 0;
  animation: ar-fade 0.18s ease both;
}
@keyframes ar-fade { from { opacity: 0; } to { opacity: 1; } }

.shop-root .shop-drawer {
  position: fixed;
  z-index: 61;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(84%, 320px);
  height: 100vh;
  height: 100dvh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--ar-primary) 0%, var(--ar-primary-dark) 100%);
  color: #fff;
  box-shadow: var(--ar-shadow-lg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--ar-safe-top) + var(--ar-s5)) var(--ar-s5) calc(var(--ar-safe-bottom) + var(--ar-s5));
  animation: ar-drawer-in 0.22s ease both;
}
@keyframes ar-drawer-in {
  from { transform: translateX(100%); }
  to { transform: none; }
}
.shop-root .shop-drawer-close {
  position: absolute;
  top: calc(var(--ar-safe-top) + var(--ar-s3));
  left: var(--ar-s3);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.shop-root .shop-drawer-close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.shop-root .shop-drawer-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ar-s2);
  text-align: center;
  padding-bottom: var(--ar-s5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}
.shop-root .shop-drawer-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--ar-fs-xl);
  font-weight: 800;
  overflow: hidden;
}
.shop-root .shop-drawer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.shop-root .shop-drawer-name { font-size: var(--ar-fs-lg); font-weight: 800; }
.shop-root .shop-drawer-chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--ar-radius-pill);
  background: rgba(255, 255, 255, 0.18);
  font-size: var(--ar-fs-xs);
  font-weight: 700;
}
.shop-root .shop-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: var(--ar-s4);
  flex: 0 0 auto;
  overflow: visible;
}
.shop-root .shop-drawer-cats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: visible;
}
.shop-root .shop-drawer-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-inline-start: var(--ar-s8);
  overflow: visible;
}
.shop-root .shop-drawer-link,
.shop-root .shop-drawer-toggle {
  display: flex;
  align-items: center;
  gap: var(--ar-s3);
  min-height: var(--ar-tap);
  padding: var(--ar-s2) var(--ar-s3);
  border: 0;
  border-radius: var(--ar-radius-sm);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: var(--ar-fs-md);
  font-weight: 700;
  text-decoration: none;
  text-align: start;
  width: 100%;
  cursor: pointer;
}
.shop-root .shop-drawer-link:hover,
.shop-root .shop-drawer-toggle:hover { background: rgba(255, 255, 255, 0.12); }
.shop-root .shop-drawer-link svg,
.shop-root .shop-drawer-toggle svg {
  width: 20px; height: 20px; flex-shrink: 0;
  stroke: currentColor; fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.shop-root .shop-drawer-toggle .chev { margin-inline-start: auto; transition: transform 0.2s ease; }
.shop-root .shop-drawer-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.shop-root .shop-drawer-sub a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: var(--ar-fs-sm);
  font-weight: 600;
  min-height: 36px;
  display: flex;
  align-items: center;
}
.shop-root .shop-drawer-count {
  margin-inline-start: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--ar-radius-pill);
  background: var(--ar-accent);
  color: #1a2228;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
  font-weight: 800;
}

/* ===================== Checkout steps ===================== */
.shop-root .shop-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: var(--ar-s5);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.shop-root .shop-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ar-s1);
  flex: 1 1 0;
  min-width: 64px;
  position: relative;
  text-align: center;
}
/* خط اتصال بین دایره‌ها — قبل از هر مرحله به‌جز اولی */
.shop-root .shop-step:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 17px;
  inset-inline-end: 50%;
  width: 100%;
  height: 3px;
  background: var(--ar-border);
  z-index: 0;
}
.shop-root .shop-step.is-done:not(:first-child)::before,
.shop-root .shop-step.is-current:not(:first-child)::before {
  background: var(--ar-primary);
}
.shop-root .shop-step-dot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--ar-radius-pill);
  background: #fff;
  border: 2px solid var(--ar-border);
  color: var(--ar-text-tertiary);
  font-size: var(--ar-fs-sm);
  font-weight: 800;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.shop-root .shop-step-label {
  font-size: var(--ar-fs-xs);
  font-weight: 600;
  color: var(--ar-text-tertiary);
  white-space: nowrap;
}
.shop-root .shop-step.is-done .shop-step-dot {
  background: var(--ar-primary);
  border-color: var(--ar-primary);
  color: #fff;
}
.shop-root .shop-step.is-done .shop-step-label { color: var(--ar-text-muted); }
.shop-root .shop-step.is-current .shop-step-dot {
  background: #fff;
  border-color: var(--ar-primary);
  color: var(--ar-primary);
  transform: scale(1.12);
  box-shadow: 0 0 0 4px var(--ar-primary-soft);
}
.shop-root .shop-step.is-current .shop-step-label {
  color: var(--ar-primary);
  font-weight: 800;
}
.shop-root .shop-step.is-upcoming .shop-step-dot {
  background: var(--ar-muted);
  border-color: var(--ar-border);
  color: var(--ar-text-tertiary);
}

/* ===================== Buttons ===================== */
.shop-root .shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ar-s2);
  min-height: var(--ar-tap);
  padding: 10px var(--ar-s4);
  border-radius: var(--ar-radius-pill);
  border: 0;
  font-family: inherit;
  font-size: var(--ar-fs-md);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease;
}
.shop-root .shop-btn:active { transform: scale(0.97); }
.shop-root .shop-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.shop-root .shop-btn-primary { background: var(--ar-primary); color: #fff; }
.shop-root .shop-btn-secondary { background: var(--ar-muted); color: var(--ar-text); }
.shop-root .shop-btn-ghost {
  background: transparent;
  border: 1px solid var(--ar-border);
  color: var(--ar-text);
}
.shop-root .shop-btn-sm { min-height: 36px; padding: 6px var(--ar-s3); font-size: var(--ar-fs-sm); }
.shop-root .shop-btn-block { width: 100%; }

.shop-root .shop-card {
  background: var(--ar-surface);
  border: 0;
  border-radius: var(--ar-radius);
  box-shadow: var(--ar-shadow);
  overflow: hidden;
}

/* form controls inside the shell (storefront has no bootstrap) */
.shop-root .shop-field,
.shop-root .shop-main input[type="text"],
.shop-root .shop-main input[type="tel"],
.shop-root .shop-main input[type="email"],
.shop-root .shop-main input[type="number"],
.shop-root .shop-main select,
.shop-root .shop-main textarea,
.shop-root .form-control {
  width: 100%;
  min-height: var(--ar-tap);
  padding: 10px var(--ar-s3);
  border: 1px solid var(--ar-border);
  border-radius: var(--ar-radius-sm);
  background: var(--ar-surface);
  color: var(--ar-text);
  font-family: inherit;
  font-size: 16px;
  outline: none;
}
.shop-root .shop-main textarea { min-height: 96px; resize: vertical; }
.shop-root .form-control:focus,
.shop-root .shop-main input:focus,
.shop-root .shop-main select:focus,
.shop-root .shop-main textarea:focus {
  border-color: var(--ar-primary);
  box-shadow: 0 0 0 3px var(--ar-primary-soft);
}
.shop-root .shop-label {
  display: block;
  margin-bottom: var(--ar-s1);
  font-size: var(--ar-fs-sm);
  font-weight: 700;
  color: var(--ar-text-muted);
}

/* ===================== Hero / slider ===================== */
.shop-root .shop-hero {
  position: relative;
  background: linear-gradient(145deg, var(--ar-secondary) 0%, var(--ar-primary) 55%, var(--ar-accent) 135%);
  color: #fff;
  border-radius: var(--ar-radius-lg);
  padding: var(--ar-s5) var(--ar-s4);
  margin-bottom: var(--ar-s4);
  box-shadow: 0 14px 28px rgba(15, 61, 52, 0.2);
  overflow: hidden;
}
.shop-root .shop-hero-compact { padding: var(--ar-s4) var(--ar-s4); }
.shop-root .shop-hero h1,
.shop-root .shop-hero h2,
.shop-root .shop-hero .shop-hero-title {
  margin: 0 0 var(--ar-s1);
  font-size: var(--ar-fs-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: var(--ar-lh-tight);
}
.shop-root .shop-hero-kicker {
  margin: 0 0 var(--ar-s1);
  font-size: var(--ar-fs-xs);
  font-weight: 700;
  opacity: 0.85;
}
.shop-root .shop-hero p {
  margin: 0 0 var(--ar-s3);
  font-size: var(--ar-fs-sm);
  line-height: 1.45;
  opacity: 0.92;
}
.shop-root .shop-hero-actions { display: flex; flex-wrap: wrap; gap: var(--ar-s2); }
.shop-root .shop-hero .shop-btn-primary { background: #fff; color: var(--ar-primary); }
.shop-root .shop-hero-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
}
.shop-root .shop-hero-media {
  position: absolute;
  inset-inline-start: 0;
  inset-block: 0;
  width: 45%;
  object-fit: cover;
  opacity: 0.35;
  pointer-events: none;
}

.shop-root .shop-hero-slider {
  /* فول‌عرض مثل دیجی‌کالا — از داخل .shop-main بیرون می‌زند؛ بقیهٔ صفحه همان عرض قبلی */
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  margin-bottom: var(--ar-s4);
  border-radius: 0;
}
.shop-root .shop-hero-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: 0;
  padding-inline: 0;
  height: 180px;
  cursor: grab;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  user-select: none;
}
.shop-root .shop-hero-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.shop-root .shop-hero-track::-webkit-scrollbar { display: none; }
.shop-root .shop-hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 180px;
  max-height: 180px;
  scroll-snap-align: center;
  border-radius: 0;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, var(--ar-secondary) 0%, var(--ar-primary) 55%, var(--ar-accent) 135%);
  box-shadow: none;
}
/* لایه متن اسلاید کلاس shop-hero را هم دارد؛ پس‌زمینه و سایه آن باید خنثی شود،
   وگرنه گرادیان پیش‌فرض روی عکس و رنگ انتخابی ادمین می‌نشیند و آن‌ها را می‌پوشاند.
   ترتیب لایه‌ها: رنگ ادمین (خود اسلاید) ← عکس ← overlay ← متن. */
.shop-root .shop-hero-slide-inner {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  min-height: 0;
  height: 100%;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  /* متن داخل اسلاید با gutter؛ خود بنر لب‌به‌لب viewport است */
  padding-inline: max(var(--ar-gutter), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
}
.shop-root .shop-hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.shop-root .shop-hero-slide:has(.shop-hero-slide-bg) {
  min-height: 0;
  height: 180px;
  max-height: 180px;
  aspect-ratio: auto;
  background: #0b2e28;
}
.shop-root .shop-hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(145deg, rgba(15, 61, 52, 0.72) 0%, rgba(31, 111, 91, 0.55) 55%, rgba(15, 61, 52, 0.35) 100%);
  pointer-events: none;
}
.shop-root .shop-hero-slide:has(.shop-hero-slide-bg) .shop-hero-slide-inner {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: var(--ar-s3);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.shop-root .shop-hero-slide:has(.shop-hero-slide-bg)::after,
.shop-root .shop-hero-slide.has-custom-bg:has(.shop-hero-slide-bg)::after {
  background: linear-gradient(180deg, rgba(15, 61, 52, 0.18) 0%, rgba(15, 61, 52, 0.08) 45%, rgba(15, 61, 52, 0.45) 100%);
}
.shop-root .shop-hero-slide:has(.shop-hero-slide-bg) .shop-hero-slide-btn {
  text-shadow: none;
}
.shop-root .shop-hero-slide:not(:has(.shop-hero-slide-bg))::after,
.shop-root .shop-hero-slide.has-custom-bg:not(:has(.shop-hero-slide-bg))::after {
  background: transparent;
}
.shop-root .shop-hero-slide .shop-hero-slide-btn {
  color: var(--ar-primary);
}
.shop-root .shop-hero-slide .shop-hero-slide-btn[style*="background"] {
  color: #fff;
}
.shop-root .shop-hero-banner {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--ar-radius-lg);
  background: var(--ar-muted);
}
.shop-root .shop-hero-slide-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--ar-s6) var(--ar-s4) var(--ar-s4);
  background: linear-gradient(0deg, rgba(15, 61, 52, 0.78) 0%, rgba(15, 61, 52, 0) 100%);
  color: #fff;
}
.shop-root .shop-hero-slide-caption strong { font-size: var(--ar-fs-lg); font-weight: 800; }
.shop-root .shop-hero-slide-caption span { font-size: var(--ar-fs-sm); opacity: 0.92; }
.shop-root .shop-hero-slide-cta {
  display: inline-block;
  margin-top: var(--ar-s2);
  padding: 8px 16px;
  border-radius: var(--ar-radius-pill);
  background: #fff;
  color: var(--ar-primary);
  font-size: var(--ar-fs-sm);
  font-weight: 700;
}
.shop-root .shop-hero-nav {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.shop-root .shop-hero-slider:hover .shop-hero-nav,
.shop-root .shop-hero-slider:focus-within .shop-hero-nav {
  opacity: 1;
}
.shop-root .shop-hero-nav-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #424750;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.shop-root .shop-hero-nav-btn:hover {
  background: #fff;
  transform: scale(1.05);
}
.shop-root .shop-hero-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: var(--ar-s2);
}
.shop-root .shop-hero-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ar-border);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.shop-root .shop-hero-dots button.active { width: 20px; border-radius: var(--ar-radius-pill); background: var(--ar-primary); }

@media (max-width: 767.98px) {
  .shop-root .shop-hero-nav { display: none; }
}

/* ===================== Trust / USP strip ===================== */
.shop-root .shop-trust-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ar-s3);
  margin-bottom: var(--ar-s4);
}
.shop-root .shop-trust-item {
  display: flex;
  align-items: center;
  gap: var(--ar-s2);
  padding: var(--ar-s3);
  background: var(--ar-surface);
  border-radius: var(--ar-radius);
  box-shadow: var(--ar-shadow-sm);
  font-size: var(--ar-fs-xs);
  font-weight: 700;
  color: var(--ar-text);
}
.shop-root .shop-trust-item svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  stroke: var(--ar-primary);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===================== Category rail / grid ===================== */
.shop-root .shop-cats { display: none !important; }
.shop-root .shop-cats-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--ar-s3);
  padding: 2px 2px var(--ar-s3);
  margin: 0 0 var(--ar-s1);
}

.shop-root .shop-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--ar-s3);
  margin-bottom: var(--ar-s4);
}
.shop-root .shop-cat-grid .shop-cat-chip { width: auto; }

.shop-root .shop-cat-chip {
  flex: 0 0 auto;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ar-text);
  font-size: var(--ar-fs-xs);
  font-weight: 700;
  text-align: center;
  scroll-snap-align: start;
  transition: transform 0.12s ease;
}
.shop-root .shop-cat-chip:active { transform: scale(0.95); }
.shop-root .shop-cat-chip .shop-cat-ico {
  width: 56px;
  height: 56px;
  border-radius: var(--ar-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ar-surface);
  box-shadow: var(--ar-shadow);
  color: var(--ar-primary);
}
.shop-root .shop-cat-chip .shop-cat-ico svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shop-root .shop-cat-chip .shop-cat-ico.shop-cat-ico-img {
  overflow: hidden;
  padding: 0;
}
.shop-root .shop-cat-chip .shop-cat-ico-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.shop-root .shop-cat-chip .shop-cat-label {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: var(--ar-lh-tight);
  min-height: 2.5em;
  max-width: 100%;
}
.shop-root .shop-cat-chip:nth-child(4n + 2) .shop-cat-ico { color: #c9a227; }
.shop-root .shop-cat-chip:nth-child(4n + 3) .shop-cat-ico { color: #3b82c4; }
.shop-root .shop-cat-chip:nth-child(4n + 4) .shop-cat-ico { color: #ea4c62; }

/* ===================== Sections / rails ===================== */
.shop-root .shop-section { margin-bottom: var(--ar-s5); }
.shop-root .shop-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--ar-s2);
  margin-bottom: var(--ar-s3);
}
.shop-root .shop-section-head-text {
  min-width: 0;
}
.shop-root .shop-section-sub {
  margin: 6px 0 0;
  color: var(--ar-text-muted, #64748b);
  font-size: var(--ar-fs-sm);
  font-weight: 600;
  line-height: 1.6;
  max-width: 42rem;
}
.shop-root .shop-section-head h2 {
  margin: 0;
  font-size: var(--ar-fs-lg);
  font-weight: 800;
}
.shop-root .shop-section-head a {
  color: var(--ar-primary);
  font-size: var(--ar-fs-sm);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.shop-root .shop-magazine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ar-s3);
}
.shop-root .shop-magazine-card {
  display: flex;
  flex-direction: column;
  background: var(--ar-surface);
  border: 1px solid var(--ar-border);
  border-radius: var(--ar-radius-sm);
  overflow: hidden;
  text-decoration: none;
  color: var(--ar-text);
}
.shop-root .shop-magazine-img {
  aspect-ratio: 16 / 10;
  background: var(--ar-muted);
}
.shop-root .shop-magazine-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-root .shop-magazine-body { display: flex; flex-direction: column; gap: var(--ar-s1); padding: var(--ar-s3); }
.shop-root .shop-magazine-body strong {
  font-size: var(--ar-fs-sm);
  font-weight: 700;
  line-height: var(--ar-lh-tight);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-root .shop-magazine-body span {
  color: var(--ar-text-muted);
  font-size: var(--ar-fs-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) {
  .shop-root .shop-magazine-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.shop-root .shop-rail {
  display: flex;
  gap: var(--ar-s3);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  margin-inline: calc(var(--ar-gutter) * -1);
  padding-inline: var(--ar-gutter);
  padding-bottom: 2px;
  scrollbar-width: none;
}
.shop-root .shop-rail::-webkit-scrollbar { display: none; }
.shop-root .shop-rail-item {
  flex: 0 0 46%;
  max-width: 190px;
  scroll-snap-align: start;
}
.shop-root .shop-rail .shop-product-img,
.shop-root .shop-rail .shop-product-card img {
  aspect-ratio: 3 / 4;
}

.shop-root .shop-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ar-s3);
}
.shop-root .shop-grid-2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ar-s3);
}

/* ===================== Product card ===================== */
.shop-root .shop-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--ar-surface);
  border-radius: var(--ar-radius);
  box-shadow: var(--ar-shadow);
  overflow: hidden;
  border: 0;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.shop-root .shop-product-card:active { transform: scale(0.985); }
.shop-root .shop-product-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.shop-root .shop-product-img,
.shop-root .shop-product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--ar-muted);
  display: block;
}
/* یکسان‌سازی اندازه تصاویر از پنل ادمین (سایت‌ها) خاموش شده باشد: هر عکس با نسبت واقعی خودش نمایش داده می‌شود. */
.shop-root.shop-natural-images .shop-product-img,
.shop-root.shop-natural-images .shop-product-card img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}
.shop-root .shop-wish {
  position: absolute;
  top: var(--ar-s2);
  left: var(--ar-s2);
  width: 32px;
  height: 32px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ar-shadow-sm);
  z-index: 2;
  color: var(--ar-danger);
  text-decoration: none;
  cursor: pointer;
}
.shop-root .shop-wish svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.shop-root .shop-wish.is-on svg { fill: currentColor; }
.shop-root .shop-compare {
  position: absolute;
  top: 10px;
  left: 42px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(15,23,42,.12);
}
.shop-root .shop-compare svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; }

/* ===================== Compare page ===================== */
.shop-root .shop-compare-page { padding-bottom: var(--ar-s4); }
.shop-root .shop-compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ar-s3);
  flex-wrap: wrap;
  margin-bottom: var(--ar-s4);
}
.shop-root .shop-compare-title {
  margin: 0;
  font-size: var(--ar-fs-xl);
  font-weight: 800;
}
.shop-root .shop-compare-cat { margin: 0 0 var(--ar-s2); }
.shop-root .shop-compare-hint {
  margin: 0 0 var(--ar-s3);
  font-size: var(--ar-fs-sm);
  color: var(--ar-text-muted);
}
.shop-root .shop-compare-error {
  padding: 12px 14px;
  border-radius: var(--ar-radius-sm);
  background: #fef2f2;
  color: #991b1b;
  margin-bottom: var(--ar-s4);
  font-size: var(--ar-fs-sm);
  line-height: 1.6;
}
.shop-root .shop-compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ar-border);
  border-radius: var(--ar-radius);
  background: var(--ar-surface);
  box-shadow: var(--ar-shadow-sm);
}
.shop-root .shop-compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 560px;
}
.shop-root .shop-compare-table th,
.shop-root .shop-compare-table td {
  border-bottom: 1px solid var(--ar-border);
  border-left: 1px solid var(--ar-border);
  padding: 12px 10px;
  text-align: center;
  vertical-align: top;
  font-size: var(--ar-fs-sm);
  background: var(--ar-surface);
}
.shop-root .shop-compare-table thead th {
  background: var(--ar-muted);
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 2;
}
.shop-root .shop-compare-sticky-col {
  position: sticky;
  right: 0;
  z-index: 3;
  text-align: right !important;
  white-space: nowrap;
  min-width: 108px;
  max-width: 140px;
  background: var(--ar-muted) !important;
  box-shadow: -4px 0 8px rgba(15, 61, 52, 0.06);
}
.shop-root .shop-compare-table tbody th[scope="row"] {
  font-weight: 600;
  color: var(--ar-text);
}
.shop-root .shop-compare-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  max-width: 160px;
  margin: 0 auto;
}
.shop-root .shop-compare-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--ar-radius-sm);
  background: var(--ar-muted);
}
.shop-root .shop-compare-name {
  color: var(--ar-text);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--ar-fs-sm);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-root .shop-compare-name:hover { color: var(--ar-primary); }
.shop-root .shop-compare-price {
  color: var(--ar-primary);
  font-weight: 800;
  font-size: var(--ar-fs-sm);
}
.shop-root .shop-compare-price small { font-weight: 600; font-size: var(--ar-fs-xs); }
.shop-root .shop-compare-remove {
  align-self: flex-end;
  border: none;
  background: #fee2e2;
  color: #b91c1c;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.shop-root .shop-compare-actions {
  margin-top: var(--ar-s4);
  display: flex;
  gap: var(--ar-s2);
  flex-wrap: wrap;
}
.shop-root .shop-badge-tag {
  position: absolute;
  top: var(--ar-s2);
  right: var(--ar-s2);
  z-index: 2;
  color: #fff;
  font-size: var(--ar-fs-xs);
  font-weight: 700;
  padding: 4px var(--ar-s2);
  border-radius: var(--ar-radius-pill);
  background: var(--ar-primary);
}
.shop-root .shop-discount {
  position: absolute;
  top: var(--ar-s2);
  right: var(--ar-s2);
  z-index: 2;
  background: var(--ar-danger);
  color: #fff;
  font-size: var(--ar-fs-xs);
  font-weight: 700;
  padding: 4px var(--ar-s2);
  border-radius: var(--ar-radius-pill);
}
.shop-root .shop-product-body {
  padding: var(--ar-s3);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.shop-root .shop-product-name {
  margin: 0;
  font-size: var(--ar-fs-sm);
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.shop-root .shop-product-brand {
  margin: 0;
  font-size: var(--ar-fs-xs);
  font-weight: 600;
  color: var(--ar-text-tertiary);
}
.shop-root .shop-product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--ar-fs-xs);
  color: var(--ar-text-tertiary);
  min-height: 1.2em;
}
.shop-root .shop-product-rating svg {
  width: 11px;
  height: 11px;
  fill: var(--ar-accent);
  stroke: none;
  flex-shrink: 0;
}
.shop-root .shop-badge-tag.is-new { background: var(--ar-text); }
.shop-root .shop-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
}
.shop-root .shop-price {
  margin: 0;
  color: var(--ar-primary);
  font-size: var(--ar-fs-md);
  font-weight: 800;
  direction: ltr;
  unicode-bidi: isolate;
  line-height: 1.3;
}
.shop-root .shop-price small { font-size: var(--ar-fs-xs); font-weight: 700; }
.shop-root .shop-price-old {
  display: block;
  margin-top: 2px;
  color: var(--ar-text-muted);
  text-decoration: line-through;
  font-size: var(--ar-fs-xs);
  font-weight: 500;
}
.shop-root .shop-add {
  width: 32px;
  height: 32px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--ar-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}
.shop-root .shop-add svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.2;
}

/* ===================== Blocks / states ===================== */
.shop-root .shop-promo-banner {
  display: block;
  margin: 0;
  border-radius: var(--ar-radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 21 / 9;
  background: linear-gradient(120deg, #16302b 0%, #24443c 100%);
  text-decoration: none;
  color: #fff;
}
.shop-root .shop-promo-banner.is-alt {
  background: linear-gradient(120deg, var(--ar-primary-soft) 0%, #d7eae4 100%);
  color: var(--ar-text);
}
.shop-root .shop-promo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-root .shop-promo-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--ar-s5);
  gap: 4px;
}
.shop-root .shop-promo-copy strong {
  font-size: var(--ar-fs-md);
  font-weight: 800;
  line-height: var(--ar-lh-tight);
}
.shop-root .shop-promo-copy span {
  font-size: var(--ar-fs-sm);
  opacity: 0.88;
}

/* Shop by space */
.shop-root .shop-space-rail {
  display: flex;
  gap: var(--ar-s3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: calc(var(--ar-gutter) * -1);
  padding-inline: var(--ar-gutter);
}
.shop-root .shop-space-rail::-webkit-scrollbar { display: none; }
.shop-root .shop-space-card {
  flex: 0 0 auto;
  width: 150px;
  aspect-ratio: 3 / 4;
  border-radius: var(--ar-radius-lg);
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  text-decoration: none;
  color: #fff;
}
.shop-root .shop-space-fill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-root .shop-space-fill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-root .shop-space-fill.is-tone-0 { background: linear-gradient(165deg, #bfe0d6, #1f6f5b); }
.shop-root .shop-space-fill.is-tone-1 { background: linear-gradient(165deg, #16302b, #24443c); }
.shop-root .shop-space-fill.is-tone-2 { background: linear-gradient(165deg, #d8dcd3, #6c7263); }
.shop-root .shop-space-fill.is-tone-3 { background: linear-gradient(165deg, #d6e2e0, #4a6e68); }
.shop-root .shop-space-fill.is-tone-4 { background: linear-gradient(165deg, #ddd6c6, #8a7a4e); }
.shop-root .shop-space-label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: var(--ar-s3);
  font-size: var(--ar-fs-sm);
  font-weight: 800;
  line-height: 1.35;
  background: linear-gradient(0deg, rgba(20, 14, 9, 0.72) 0%, rgba(20, 14, 9, 0) 100%);
}

.shop-root .shop-banner-img {
  width: 100%;
  display: block;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.shop-root .shop-banner-fallback {
  padding: var(--ar-s5);
  background: var(--ar-primary-soft);
  color: var(--ar-primary);
  font-size: var(--ar-fs-lg);
  text-align: center;
}
.shop-root .shop-text-block { padding: var(--ar-s4); }
.shop-root .shop-text-block h2 { margin: 0 0 var(--ar-s2); font-size: var(--ar-fs-lg); }
.shop-root .shop-text-block p { margin: 0; font-size: var(--ar-fs-md); color: var(--ar-text-muted); }
.shop-root .shop-prewrap { white-space: pre-wrap; }
.shop-root .shop-empty,
.shop-root .shop-error,
.shop-root .shop-loading {
  text-align: center;
  padding: var(--ar-s4) var(--ar-s3);
}
.shop-root .shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ar-s2);
  margin-bottom: var(--ar-s3);
}
.shop-root .shop-listing { display: block; }
.shop-root .shop-filters { display: none; }
.shop-root .shop-filter-mobile { display: inline-flex; }
.shop-root .shop-alert {
  padding: var(--ar-s3) var(--ar-s4);
  border-radius: var(--ar-radius-sm);
  margin-bottom: var(--ar-s3);
  font-size: var(--ar-fs-sm);
  background: var(--ar-muted);
  color: var(--ar-text);
}
.shop-root .shop-alert-error { background: rgba(225, 29, 72, 0.1); color: var(--ar-danger); }
.shop-root .shop-alert-success { background: rgba(15, 157, 88, 0.1); color: var(--ar-success); }

/* chips */
.shop-root .shop-chip-row {
  display: flex;
  gap: var(--ar-s2);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: var(--ar-s1);
}
.shop-root .shop-chip-row::-webkit-scrollbar { display: none; }
.shop-root .shop-chip {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px var(--ar-s3);
  border: 1px solid var(--ar-border);
  border-radius: var(--ar-radius-pill);
  background: var(--ar-surface);
  color: var(--ar-text);
  font-family: inherit;
  font-size: var(--ar-fs-sm);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.shop-root .shop-chip.active {
  background: var(--ar-primary);
  border-color: var(--ar-primary);
  color: #fff;
}

/* bottom sheet (filters) */
.shop-root .shop-sheet {
  position: absolute;
  z-index: 61;
  inset-inline: 0;
  bottom: 0;
  max-height: 82%;
  display: flex;
  flex-direction: column;
  background: var(--ar-surface);
  border-radius: var(--ar-radius-lg) var(--ar-radius-lg) 0 0;
  box-shadow: var(--ar-shadow-lg);
  padding: var(--ar-s3) var(--ar-gutter) calc(var(--ar-safe-bottom) + var(--ar-s4));
  animation: ar-sheet-in 0.22s ease both;
}
@keyframes ar-sheet-in {
  from { transform: translateY(100%); }
  to { transform: none; }
}
.shop-root .shop-sheet-grip {
  width: 40px;
  height: 4px;
  border-radius: var(--ar-radius-pill);
  background: var(--ar-border);
  margin: 0 auto var(--ar-s3);
}
.shop-root .shop-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--ar-s3);
}
.shop-root .shop-sheet-head h2 { margin: 0; font-size: var(--ar-fs-lg); font-weight: 800; }
.shop-root .shop-sheet-body { overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.shop-root .shop-sheet-foot {
  display: flex;
  gap: var(--ar-s2);
  padding-top: var(--ar-s3);
  border-top: 1px solid var(--ar-border);
  margin-top: var(--ar-s3);
}
.shop-root .shop-sheet-foot .shop-btn { flex: 1; }
.shop-root .shop-filter-group { padding: var(--ar-s3) 0; border-bottom: 1px solid var(--ar-border); }
.shop-root .shop-filter-group:last-child { border-bottom: 0; }
.shop-root .shop-filter-group > h3 {
  margin: 0 0 var(--ar-s2);
  font-size: var(--ar-fs-md);
  font-weight: 800;
}
.shop-root .shop-check {
  display: flex;
  align-items: center;
  gap: var(--ar-s2);
  min-height: var(--ar-tap);
  font-size: var(--ar-fs-md);
  cursor: pointer;
}
.shop-root .shop-check input { width: 18px; height: 18px; min-height: 0; accent-color: var(--ar-primary); }
.shop-root .shop-range-row { display: flex; align-items: center; gap: var(--ar-s2); }

/* category tree in filters */
.shop-root .shop-tree { list-style: none; margin: 0; padding: 0; }
.shop-root .shop-tree ul { list-style: none; margin: 0; padding-inline-start: var(--ar-s4); }
.shop-root .shop-tree a {
  display: flex;
  align-items: center;
  min-height: 38px;
  color: var(--ar-text);
  text-decoration: none;
  font-size: var(--ar-fs-sm);
  font-weight: 600;
}
.shop-root .shop-tree a.active { color: var(--ar-primary); font-weight: 800; }

/* pagination */
.shop-root .shop-pagination {
  display: flex;
  justify-content: center;
  gap: var(--ar-s2);
  margin-top: var(--ar-s5);
}

/* skeleton */
.shop-root .shop-skeleton,
.shop-skeleton {
  background: linear-gradient(90deg, #eef2f5 25%, #f7f9fb 37%, #eef2f5 63%);
  background-size: 400% 100%;
  animation: ar-shimmer 1.2s ease infinite;
  border-radius: var(--ar-radius-sm);
}
@keyframes ar-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
.shop-root .shop-skeleton-card { height: 230px; }
.shop-root .shop-skeleton-hero {
  aspect-ratio: 4 / 5;
  border-radius: var(--ar-radius-lg);
  margin-bottom: var(--ar-s4);
}
.shop-root .shop-skeleton-cats {
  display: flex;
  gap: var(--ar-s3);
  overflow: hidden;
  margin-bottom: var(--ar-s4);
}
.shop-root .shop-skeleton-cat {
  flex: 0 0 66px;
  height: 88px;
  border-radius: var(--ar-radius-pill);
}
.shop-root .shop-skeleton-rail {
  display: flex;
  gap: var(--ar-s3);
  overflow: hidden;
  margin-bottom: var(--ar-s4);
}
.shop-root .shop-skeleton-rail-item {
  flex: 0 0 46%;
  max-width: 172px;
  aspect-ratio: 3 / 4;
  border-radius: var(--ar-radius);
}

/* pull to refresh */
.shop-root .shop-ptr {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0;
  overflow: hidden;
  color: var(--ar-primary);
  font-size: var(--ar-fs-xs);
  font-weight: 700;
  transition: height 0.15s ease;
}
.shop-root .shop-ptr.is-active { height: 34px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* floating widgets pinned to the app frame */
html:has(.shop-root) .chat-bubble {
  bottom: calc(var(--ar-nav-h) + var(--ar-safe-bottom) + 14px) !important;
  left: max(12px, calc(50% - (var(--ar-app-max) / 2) + 12px)) !important;
  right: auto !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  background: var(--ar-primary) !important;
  z-index: 45 !important;
}
html:has(.shop-root) .chat-panel {
  bottom: calc(var(--ar-nav-h) + var(--ar-safe-bottom) + 72px) !important;
  left: max(8px, calc(50% - (var(--ar-app-max) / 2) + 8px)) !important;
  right: max(8px, calc(50% - (var(--ar-app-max) / 2) + 8px)) !important;
  width: auto !important;
  max-width: calc(var(--ar-app-max) - 16px) !important;
  z-index: 46 !important;
}
#pwa-install-banner {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) translateY(100%);
  width: min(100%, var(--ar-app-max)) !important;
  bottom: calc(var(--ar-nav-h) + var(--ar-safe-bottom)) !important;
  z-index: 55 !important;
  pointer-events: none;
  visibility: hidden;
}
html:has(.shop-root) #pwa-install-banner.pwa-banner-visible {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  visibility: visible;
}

/* ===================== >= 480px : large phones ===================== */
@media (min-width: 480px) {
  html:has(.shop-root) body {
    background: linear-gradient(180deg, #e5ddd0 0%, #f0ebe3 100%) !important;
  }
  .shop-root {
    box-shadow:
      0 0 0 1px rgba(15, 61, 52, 0.06),
      0 24px 60px rgba(15, 61, 52, 0.16);
  }
  .shop-root .shop-rail-item { flex-basis: 42%; max-width: 200px; }
}

/* ===================== < 768px : phone app shell ===================== */
/* Minimal top bar (logo + search only) — every other action (menu/search/cart/account)
   already lives in the bottom nav, so duplicating them up top just adds clutter. */
@media (max-width: 767px) {
  .shop-root .shop-header-top {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "logo search";
  }
  .shop-root .shop-header-actions { display: none !important; }
  .shop-root .shop-header.is-collapsed .shop-header-top {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas: "logo search";
  }
}

/* ===================== >= 768px : tablet ===================== */
@media (min-width: 768px) {
  :root { --ar-app-max: 760px; --ar-gutter: 24px; }

  .shop-root .shop-header-top {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas: "logo search actions";
    gap: var(--ar-s4);
    padding: var(--ar-s3) var(--ar-gutter);
  }
  .shop-root .shop-hello { display: none !important; }
  .shop-root .shop-logo-name { display: inline !important; font-weight: 800; font-size: var(--ar-fs-lg); }
  .shop-root .shop-only-desktop { display: inline-flex !important; }
  .shop-root .shop-trust-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shop-root .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-root .shop-cat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .shop-root .shop-hero-banner { aspect-ratio: 16 / 9; }
  .shop-root .shop-hero { padding: var(--ar-s8) var(--ar-s6); }
  .shop-root .shop-hero-track,
  .shop-root .shop-hero-slide,
  .shop-root .shop-hero-slide:has(.shop-hero-slide-bg) {
    height: 400px;
    max-height: 400px;
    aspect-ratio: auto;
  }
  .shop-root .shop-hero-slide:has(.shop-hero-slide-bg) .shop-hero-slide-inner {
    padding-block: var(--ar-s5);
  }
}

/* ===================== >= 1100px : desktop web ===================== */
@media (min-width: 1100px) {
  :root { --ar-gutter: 24px; }

  html:has(.shop-root),
  html:has(.shop-root) body {
    overflow-x: hidden;
    overflow-y: auto !important;
    height: auto !important;
    max-height: none !important;
    background: var(--ar-bg) !important;
  }

  .shop-root {
    max-width: none;
    height: auto !important;
    max-height: none !important;
    min-height: 100dvh;
    margin: 0;
    overflow: visible !important;
    box-shadow: none;
    padding-bottom: 0 !important;
  }

  .shop-root .shop-header {
    position: sticky !important;
    top: 0;
  }

  .shop-root .shop-header-top {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    max-width: var(--ar-page-max);
    margin: 0 auto;
    gap: var(--ar-s4);
    padding: var(--ar-s3) var(--ar-s6);
  }

  .shop-root .shop-hello,
  .shop-root .shop-only-mobile { display: none !important; }
  .shop-root .shop-desktop-nav {
    display: flex !important;
    align-items: center;
    gap: var(--ar-s1);
  }
  .shop-root .shop-desktop-nav a {
    padding: var(--ar-s2) var(--ar-s3);
    border-radius: var(--ar-radius-pill);
    color: var(--ar-text);
    text-decoration: none;
    font-weight: 700;
    font-size: var(--ar-fs-md);
    white-space: nowrap;
  }
  .shop-root .shop-desktop-nav a.active,
  .shop-root .shop-desktop-nav a:hover {
    background: var(--ar-muted);
    color: var(--ar-primary);
  }
  .shop-root .shop-search {
    flex: 1 1 auto;
    width: auto;
    max-width: 440px;
    margin-inline-start: auto;
  }

  .shop-root .shop-megamenu {
    max-width: var(--ar-page-max);
    margin: 0 auto;
    overflow: visible;
    padding: 0 var(--ar-s6) var(--ar-s2);
  }
  .shop-root .shop-megamenu-root { font-size: var(--ar-fs-md); }
  .shop-root .shop-megamenu-item:hover .shop-megamenu-root,
  .shop-root .shop-megamenu-item:focus-within .shop-megamenu-root {
    background: var(--ar-muted);
    color: var(--ar-primary);
  }
  .shop-root .shop-megamenu-panel {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    z-index: 35;
    display: none;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 2px var(--ar-s3);
    min-width: 320px;
    padding: var(--ar-s3);
    background: var(--ar-surface);
    border: 1px solid var(--ar-border);
    border-radius: var(--ar-radius);
    box-shadow: var(--ar-shadow-lg);
  }
  .shop-root .shop-megamenu-item:hover .shop-megamenu-panel,
  .shop-root .shop-megamenu-item:focus-within .shop-megamenu-panel { display: grid; }
  .shop-root .shop-megamenu-item.is-open .shop-megamenu-root svg { transform: none; }
  .shop-root .shop-megamenu-flyout { display: none !important; }
  .shop-root .shop-megamenu-panel a {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 0 var(--ar-s2);
    border-radius: var(--ar-radius-xs);
    color: var(--ar-text);
    text-decoration: none;
    font-size: var(--ar-fs-sm);
    font-weight: 600;
  }
  .shop-root .shop-megamenu-panel a:hover { background: var(--ar-muted); color: var(--ar-primary); }
  .shop-root .shop-megamenu-all { grid-column: 1 / -1; color: var(--ar-primary) !important; font-weight: 800 !important; }

  .shop-root .shop-main {
    overflow: visible;
    max-width: var(--ar-page-max) !important;
    margin: 0 auto !important;
    padding: var(--ar-s6) !important;
  }

  .shop-root .shop-bottom-nav { display: none !important; }

  .shop-root .shop-drawer,
  .shop-root .shop-scrim,
  .shop-root .shop-sheet { position: fixed; }

  .shop-root .shop-footer {
    display: block !important;
    background: linear-gradient(165deg, var(--ar-text) 0%, var(--ar-secondary) 100%);
    color: #f5f5f4;
    padding: var(--ar-s8) var(--ar-s6) var(--ar-s6);
    margin: var(--ar-s6) calc(-1 * var(--ar-gutter)) 0;
  }
  .shop-root .shop-footer-mobile,
  .shop-root .shop-footer-top,
  .shop-root .shop-footer-social { display: none; }
  .shop-root .shop-footer-trust {
    display: none;
  }
  .shop-root .shop-footer-grid {
    display: grid !important;
    max-width: var(--ar-page-max);
    margin: 0 auto;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: var(--ar-s6);
  }
  .shop-root .shop-footer-col h2,
  .shop-root .shop-footer-col h3 {
    margin: 0 0 var(--ar-s4);
    font-size: var(--ar-fs-md);
    font-weight: 700;
    color: #fff;
  }
  .shop-root .shop-footer-col-brand h2 {
    font-size: var(--ar-fs-xl);
    font-weight: 800;
  }
  .shop-root .shop-footer-col-brand p {
    margin: 0;
    font-size: var(--ar-fs-sm);
    color: rgba(245, 240, 232, 0.72);
    line-height: 1.7;
    max-width: 28ch;
  }
  .shop-root .shop-footer-col {
    display: flex;
    flex-direction: column;
    gap: var(--ar-s2);
  }
  .shop-root .shop-footer-col a {
    font-size: var(--ar-fs-sm);
    color: rgba(245, 240, 232, 0.82) !important;
  }
  .shop-root .shop-footer-col a:hover { color: var(--ar-accent) !important; }
  .shop-root .shop-footer-bottom {
    max-width: var(--ar-page-max);
    margin: var(--ar-s6) auto 0;
    padding-top: var(--ar-s5);
  }

  .shop-root .shop-listing {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--ar-s5);
    align-items: start;
  }
  .shop-root .shop-filters {
    display: block;
    position: sticky;
    top: 90px;
    background: var(--ar-surface);
    border-radius: var(--ar-radius);
    box-shadow: var(--ar-shadow);
    padding: var(--ar-s4);
  }
  .shop-root .shop-filter-mobile { display: none !important; }
  .shop-root .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shop-root .shop-grid-2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shop-root .shop-space-rail {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
    gap: var(--ar-s3);
  }
  .shop-root .shop-space-card { width: auto; }
  .shop-root .shop-cats-rail {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    overflow: visible;
    gap: var(--ar-s3);
  }
  .shop-root .shop-cat-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .shop-root .shop-cat-chip { width: auto; }
  .shop-root .shop-rail { margin-inline: 0; padding-inline: 0; }
  .shop-root .shop-rail-item { flex-basis: 230px; max-width: 230px; }
  .shop-root .shop-hero { min-height: 0; padding: var(--ar-s6) var(--ar-s8); }
  .shop-root .shop-hero h1,
  .shop-root .shop-hero .shop-hero-title { font-size: var(--ar-fs-2xl); }
  .shop-root .shop-hero-slide { flex-basis: 100%; }
  .shop-root .shop-hero-track,
  .shop-root .shop-hero-slide,
  .shop-root .shop-hero-slide:has(.shop-hero-slide-bg) {
    height: 400px;
    max-height: 400px;
    aspect-ratio: auto;
  }
  .shop-root .shop-hero-slide-inner {
    padding-inline: max(var(--ar-s6), calc((100vw - var(--ar-page-max)) / 2 + var(--ar-s6)));
  }
  .shop-root .shop-product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ar-shadow-lg);
  }

  html:has(.shop-root) .chat-bubble {
    bottom: var(--ar-s6) !important;
    right: var(--ar-s6) !important;
    left: auto !important;
    width: 56px !important;
    height: 56px !important;
  }
  html:has(.shop-root) .chat-panel {
    bottom: 94px !important;
    right: var(--ar-s6) !important;
    left: auto !important;
    width: min(380px, calc(100vw - 48px)) !important;
    max-width: none !important;
  }
  #pwa-install-banner { display: none !important; }
}

/* ===================== small phones ===================== */
@media (max-width: 360px) {
  :root { --ar-gutter: 12px; }
  .shop-root .shop-cat-chip { width: 64px; }
  .shop-root .shop-cat-chip .shop-cat-ico { width: 48px; height: 48px; border-radius: var(--ar-radius-sm); }
  .shop-root .shop-rail-item { flex-basis: 52%; max-width: 165px; }
}

/* ===================== Product reviews (PDP) ===================== */
.shop-root .shop-reviews {
  margin-top: var(--ar-s6);
  padding: var(--ar-s5);
  background: var(--ar-surface);
  border: 1px solid var(--ar-border);
  border-radius: var(--ar-radius-lg);
}
.shop-root .shop-reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--ar-s2);
  margin-bottom: var(--ar-s4);
}
.shop-root .shop-reviews-head h2 { margin: 0; font-size: var(--ar-fs-lg); font-weight: 800; }
.shop-root .shop-reviews-summary { margin: 0; color: var(--ar-text-muted); font-size: var(--ar-fs-sm); font-weight: 600; }
.shop-root .shop-review-card {
  border: 1px solid var(--ar-border);
  border-radius: var(--ar-radius-md);
  padding: var(--ar-s3) var(--ar-s4);
  margin-bottom: var(--ar-s3);
  background: #fff;
}
.shop-root .shop-review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ar-s2);
  margin-bottom: var(--ar-s2);
  font-size: var(--ar-fs-sm);
}
.shop-root .shop-review-meta strong { font-weight: 800; }
.shop-root .shop-review-stars { color: #d97706; letter-spacing: 1px; }
.shop-root .shop-review-meta time { color: var(--ar-text-muted); font-size: var(--ar-fs-xs); margin-inline-start: auto; }
.shop-root .shop-review-text { margin: 0; line-height: 1.7; color: var(--ar-text); }
.shop-root .shop-reviews-empty { color: var(--ar-text-muted); margin: 0 0 var(--ar-s4); }
.shop-root .shop-review-form {
  margin-top: var(--ar-s4);
  padding-top: var(--ar-s4);
  border-top: 1px solid var(--ar-border);
}
.shop-root .shop-review-form h3 { margin: 0 0 var(--ar-s3); font-size: var(--ar-fs-md); font-weight: 800; }
.shop-root .shop-review-label { display: block; margin-bottom: var(--ar-s2); font-size: var(--ar-fs-sm); font-weight: 700; }
.shop-root .shop-review-rate-row { display: flex; gap: 4px; margin-bottom: var(--ar-s3); direction: ltr; justify-content: flex-end; }
.shop-root .shop-review-star-btn {
  width: 36px; height: 36px; border: 0; border-radius: 8px; background: var(--ar-muted);
  color: #94a3b8; font-size: 1.2rem; cursor: pointer; font-family: inherit;
}
.shop-root .shop-review-star-btn.active { background: #fef3c7; color: #d97706; }
.shop-root .shop-review-textarea {
  width: 100%; min-height: 96px; padding: var(--ar-s3); border: 1px solid var(--ar-border);
  border-radius: var(--ar-radius-sm); font-family: inherit; font-size: var(--ar-fs-sm); resize: vertical;
}
.shop-root .shop-review-check {
  display: flex; align-items: center; gap: 8px; margin: var(--ar-s3) 0; font-size: var(--ar-fs-sm); cursor: pointer;
}
.shop-root .shop-review-hint { margin: var(--ar-s2) 0 0; font-size: var(--ar-fs-xs); color: var(--ar-text-muted); }
.shop-root .shop-review-pending {
  margin-top: var(--ar-s4); padding: var(--ar-s3) var(--ar-s4); border-radius: var(--ar-radius-md);
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
}
.shop-root .shop-review-pending p { margin: 6px 0 0; }
.shop-root .shop-review-done, .shop-root .shop-review-login { margin-top: var(--ar-s4); color: var(--ar-text-muted); }
.shop-root .shop-review-login p { margin: 0 0 var(--ar-s3); }

@media (prefers-reduced-motion: reduce) {
  .shop-root *,
  .shop-root *::before,
  .shop-root *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Shared state / toast / offline (usable outside .shop-root) ===== */
.shop-state-card {
  width: min(100%, 320px);
  margin: var(--ar-s6) auto;
  background: var(--ar-surface, #fff);
  border-radius: var(--ar-radius-lg, 24px);
  box-shadow: var(--ar-shadow-sm, 0 2px 10px rgba(28, 24, 21, 0.07));
  padding: var(--ar-s8, 32px) var(--ar-s6, 24px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ar-s3, 12px);
}
.shop-state-ico {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ar-muted, #f2ebe1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-state-ico svg {
  width: 26px;
  height: 26px;
  stroke: var(--ar-primary-dark, #165544);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shop-state-ico.is-error { background: #f8dad3; }
.shop-state-ico.is-error svg { stroke: var(--ar-danger, #c23b2c); }
.shop-state-title {
  margin: 0;
  font-size: var(--ar-fs-md, 0.95rem);
  font-weight: 800;
  color: var(--ar-text, #1c1815);
}
.shop-state-sub {
  margin: 0;
  font-size: var(--ar-fs-sm, 0.84rem);
  color: var(--ar-text-tertiary, #8c8172);
  line-height: 1.6;
}
.shop-state-btn {
  margin-top: var(--ar-s1, 4px);
  padding: 9px 20px;
  border-radius: var(--ar-radius-pill, 999px);
  background: var(--ar-text, #1c1815);
  color: #fff;
  font-size: var(--ar-fs-sm, 0.84rem);
  font-weight: 700;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.shop-root .shop-offline-bar {
  display: none;
  align-items: center;
  gap: var(--ar-s2);
  padding: 10px var(--ar-gutter);
  background: #f8dad3;
  color: var(--ar-text);
  font-size: var(--ar-fs-xs);
  font-weight: 600;
  border-bottom: 1px solid rgba(194, 59, 44, 0.2);
}
.shop-root .shop-offline-bar.is-visible { display: flex; }
.shop-root .shop-offline-bar svg {
  width: 18px;
  height: 18px;
  stroke: var(--ar-danger);
  fill: none;
  stroke-width: 1.6;
  flex-shrink: 0;
}

.shop-root .shop-pwa-update {
  display: none;
  align-items: center;
  gap: var(--ar-s2);
  position: fixed;
  top: calc(var(--ar-header-h, 108px) + var(--ar-safe-top, 0px) + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 58;
  width: min(calc(100% - 32px), var(--ar-app-max, 480px));
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--ar-radius-pill);
  background: var(--ar-text);
  color: #fff;
  font-size: var(--ar-fs-sm);
  font-weight: 600;
  box-shadow: var(--ar-shadow);
}
.shop-root .shop-pwa-update.is-visible:not([hidden]) { display: flex; }
.shop-root .shop-pwa-update svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}
.shop-root .shop-pwa-update-btn {
  margin-inline-start: auto;
  padding: 6px 14px;
  border-radius: var(--ar-radius-pill);
  background: var(--ar-primary);
  color: #fff;
  font-size: var(--ar-fs-xs);
  font-weight: 700;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.shop-root .shop-toast,
.shop-toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  bottom: calc(var(--ar-nav-h, 64px) + var(--ar-safe-bottom, 0px) + 12px);
  z-index: 60;
  width: min(calc(100% - 32px), var(--ar-app-max, 480px));
  background: var(--ar-text, #1c1815);
  color: #fff;
  border-radius: var(--ar-radius-pill, 999px);
  padding: 12px 18px;
  display: none;
  align-items: center;
  gap: 10px;
  font-size: var(--ar-fs-sm, 0.84rem);
  font-weight: 600;
  box-shadow: var(--ar-shadow);
  transition: transform 0.28s ease, opacity 0.28s ease;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.shop-root .shop-toast[hidden],
.shop-toast[hidden] {
  display: none !important;
}
.shop-root .shop-toast.is-visible:not([hidden]),
.shop-toast.is-visible:not([hidden]) {
  display: flex;
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}
.shop-root .shop-toast svg,
.shop-toast svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.shop-search-page { margin: var(--ar-s3) 0 var(--ar-s5); }

html:has(.shop-root) #pwa-install-banner {
  background: var(--ar-surface, #fff) !important;
  color: var(--ar-text, #1c1815) !important;
  border-top: 1px solid var(--ar-border, #e7dfd2);
  box-shadow: var(--ar-shadow) !important;
  padding: 16px !important;
}
html:has(.shop-root) #pwa-install-banner .pwa-install-inner {
  max-width: var(--ar-app-max, 480px);
  gap: 14px;
}
html:has(.shop-root) #pwa-install-banner .pwa-install-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--ar-text, #1c1815);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
html:has(.shop-root) #pwa-install-banner .pwa-install-text span {
  color: var(--ar-text-tertiary, #8c8172) !important;
}
html:has(.shop-root) #pwa-install-banner .pwa-btn-install {
  background: var(--ar-primary, #1f6f5b) !important;
  border-radius: var(--ar-radius-pill, 999px) !important;
  font-weight: 700 !important;
}
html:has(.shop-root) #pwa-install-banner .pwa-btn-dismiss {
  background: transparent !important;
  color: var(--ar-text-muted, #4a4038) !important;
}

/* ----- PDP gallery + actions (Aramu overrides) ----- */
.shop-root .shop-pdp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.shop-root .shop-pdp-actions .shop-btn-ghost {
  flex: 1 1 auto;
  min-height: 44px;
}

.shop-root .shop-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.shop-root .shop-gallery-stage {
  position: relative;
  width: 100%;
  border-radius: var(--ar-radius, 14px);
  overflow: hidden;
  background: #f3eee6;
  touch-action: pan-y;
}

.shop-root .shop-gallery-stage > img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;
  max-height: min(55vh, 420px);
  object-fit: cover;
  border-radius: 0;
}

.shop-root .shop-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1c1815;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  padding: 0;
}

.shop-root .shop-gallery-prev { right: 10px; }
.shop-root .shop-gallery-next { left: 10px; }

.shop-root .shop-gallery-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 2px 0 0;
}

.shop-root .shop-gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #d4c8b8;
  cursor: pointer;
}

.shop-root .shop-gallery-dot.is-on {
  width: 18px;
  background: var(--ar-primary, #1f6f5b);
}

.shop-root .shop-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.shop-root .shop-thumbs button {
  border: 2px solid transparent;
  padding: 0;
  background: none;
  border-radius: 10px;
  min-width: 56px;
  flex: 0 0 auto;
  cursor: pointer;
}

.shop-root .shop-thumbs img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.shop-root .shop-thumbs .is-on {
  border-color: var(--ar-primary, #1f6f5b);
}

@media (min-width: 768px) {
  .shop-root .shop-gallery-stage > img {
    aspect-ratio: 1;
    max-height: none;
  }
}

.shop-search-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(31, 111, 91, 0.08);
  color: #1f6f5b;
  font-size: 0.9rem;
}
