:root {
  /* ── Arvin Boutique — stone & rose ── */
  --grad-main: linear-gradient(135deg, #1c1917, #44403c);
  --grad-secondary: linear-gradient(135deg, #e11d48, #fb7185);
  --grad-luxury: linear-gradient(135deg, #1c1917, #78716c, #b07d6b);

  --purple: #e11d48;
  --purple-light: #fb7185;
  --purple-soft: #fda4af;
  --pink: #fb7185;
  --gold: #b07d6b;
  --gold-dark: #9a6b5c;
  --nude-pink: #fecdd3;

  --bg-page: #f5f5f4;
  --bg-main: #fafaf9;
  --text: #1c1917;
  --text-muted: rgba(28, 25, 23, 0.62);
  --white: #FFFFFF;

  --cream: var(--bg-page);
  --cream-light: var(--bg-main);
  --cream-dark: #e7e5e4;
  --cream-deep: #d6d3d1;
  --rose: #e11d48;
  --rose-dark: #be123c;
  --blush: #fecdd3;
  --accent: #e11d48;
  --accent-light: #fb7185;

  --danger: #e11d48;
  --success: #059669;
  --surface: rgba(255, 255, 255, 0.94);
  --surface2: #FFFFFF;
  --border: rgba(28, 25, 23, 0.1);
  --shadow: 0 8px 32px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 16px 48px rgba(225, 29, 72, 0.12);
  --shadow-btn: 0 6px 20px rgba(225, 29, 72, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --nav-h: 68px;
  --topbar-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Vazirmatn", "Segoe UI", sans-serif;
  --app-max-w: 480px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  background: var(--cream-light);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
}

.app-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 85% 0%, rgba(192, 132, 252, 0.22), transparent),
    radial-gradient(ellipse 55% 45% at 5% 95%, rgba(244, 114, 182, 0.14), transparent),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(243, 232, 255, 0.5), transparent),
    linear-gradient(180deg, var(--bg-main) 0%, var(--bg-page) 50%, var(--bg-main) 100%);
  pointer-events: none;
}

@media (min-width: 481px) {
  body { background: #d6d3d1; }

  .app-bg {
    left: 0;
    right: 0;
    margin-inline: auto;
    width: 100%;
    max-width: var(--app-max-w);
  }
}

/* Splash — same light style as Shiva */
.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, rgba(243, 232, 255, 0.95), transparent),
    linear-gradient(160deg, #F3E8FF 0%, var(--bg-main) 100%);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-inner {
  text-align: center;
  padding: 0 24px;
}

.splash-brand {
  position: relative;
  width: min(280px, 78vw);
  margin: 0 auto;
}

.splash-brand img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transform: scale(0.9);
  animation: splashLogoIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.splash-brand::after {
  content: "";
  position: absolute;
  inset: -10% -30%;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.65) 50%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: splashShine 1.4s ease 0.55s 1;
  pointer-events: none;
}

.splash-tagline {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  animation: splashTagIn 0.6s ease 0.15s forwards;
}

.splash-progress {
  width: min(180px, 46vw);
  height: 3px;
  margin-top: 32px;
  background: rgba(76, 63, 94, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.splash-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--grad-main);
  animation: splashProgress 0.85s ease 0.2s forwards;
}

@keyframes splashLogoIn {
  to { opacity: 1; transform: scale(1); }
}

@keyframes splashShine {
  to { transform: translateX(120%); }
}

@keyframes splashTagIn {
  to { opacity: 1; }
}

@keyframes splashProgress {
  to { width: 100%; }
}

/* App shell */
.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--app-max-w);
  margin-inline: auto;
  overflow-x: clip;
}

.app.hidden { display: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  min-height: var(--topbar-h);
}

.topbar-side {
  width: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.topbar-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.topbar-logo img {
  height: 52px;
  width: auto;
  max-width: min(150px, 42vw);
  object-fit: contain;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden,
[hidden] {
  display: none !important;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
  position: relative;
}

.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.hidden { display: none; }

.topbar .icon-btn {
  background: var(--grad-main);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.topbar .icon-btn:active {
  transform: scale(0.96);
}

.topbar .cart-count {
  background: #fff;
  color: var(--purple);
  box-shadow: 0 2px 8px rgba(76, 63, 94, 0.18);
}

.cart-count {
  position: absolute;
  top: -4px;
  left: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--grad-main);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-count.hidden { display: none; }

.main {
  flex: 1;
  width: 100%;
  min-width: 0;
  overflow-x: clip;
  padding: 12px 16px calc(var(--nav-h) + var(--safe-b) + 16px);
  transition: opacity 0.15s;
}

.main:has(> .product-detail) {
  padding-top: 0;
  padding-inline: 0;
}

.app.sub-page .main {
  padding-bottom: calc(var(--safe-b) + 24px);
}

.main.fade-out {
  opacity: 0;
  transition: opacity 0.16s ease;
}

.main.fade-out-tab {
  opacity: 0;
  transition: opacity 0.14s ease;
}

.main.fade-in { animation: fadeIn 0.28s ease; }
.main.fade-in-tab { animation: fadeInTab 0.24s ease; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInTab {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Bottom nav — fixed like Shiva, centered on desktop */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max-w);
  display: flex;
  align-items: stretch;
  justify-content: space-evenly;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 6px 8px calc(6px + var(--safe-b));
  z-index: 50;
  box-shadow: 0 -4px 24px rgba(28, 25, 23, 0.06);
}

.bottom-nav.hidden { display: none; }

.nav-item {
  flex: 1 1 0;
  max-width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 600;
  transition: color 0.2s;
  min-width: 0;
  border-radius: 12px;
}

.nav-item svg { width: 22px; height: 22px; flex-shrink: 0; }

.nav-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}

.nav-item.active {
  color: var(--rose);
}

.nav-item.active svg { stroke: var(--rose); }

.bottom-nav--arvin .nav-item {
  max-width: 68px;
  font-size: 0.58rem;
}

.bottom-nav--arvin .nav-item.active { color: var(--rose); }
.bottom-nav--arvin .nav-item.active svg { stroke: var(--rose); }

.bottom-nav--arvin:has(#nav-admin:not(.hidden)) .nav-item {
  max-width: 64px;
  font-size: 0.58rem;
  padding: 6px 2px;
}

.bottom-nav--arvin:has(#nav-admin:not(.hidden)) .nav-item svg {
  width: 20px;
  height: 20px;
}

/* Sections */
.section { margin-bottom: 20px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

/* Hero */
.hero-banner {
  background: var(--grad-luxury);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-banner .hero-text h2,
.hero-banner .hero-text p,
.hero-banner .hero-tag {
  color: #fff;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.22);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
  backdrop-filter: blur(4px);
}

.hero-text h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
}

.hero-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Request banner (home) */
.request-banner-btn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0 0 20px;
  border: none;
  background: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.request-banner-btn:active {
  transform: scale(0.98);
}

.request-banner-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Product request form */
.request-page-head {
  margin-bottom: 16px;
}

.request-page-head h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.request-page-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.qty-selector--inline {
  display: inline-flex;
  margin-bottom: 12px;
}

.request-upload-zone {
  margin-bottom: 16px;
}

.request-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  margin-bottom: 10px;
}

.request-preview.empty .request-preview-img {
  display: none;
}

.request-preview:not(.empty) .request-preview-placeholder {
  display: none;
}

.request-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.request-preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Pending cart items — legacy, kept for reference */
.cart-pending-section {
  margin-bottom: 20px;
}

.profile-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.admin-tab .profile-tab-badge {
  margin-inline-start: 4px;
}

.profile-page .admin-tabs {
  gap: 12px;
  margin-bottom: 14px;
}

#profile-tab-panel {
  min-height: 120px;
}

.user-requests-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-request-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  padding-top: 70px;
  border-radius: var(--radius);
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.05);
}

.user-request-card--final {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.07);
}

.user-request-label {
  position: absolute;
  top: 22px;
  right: 20px;
  left: auto;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.user-request-label--final {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: #fff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
}

.user-request-label--review {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-muted);
}

.user-request-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.user-request-body img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.user-request-info {
  flex: 1;
  min-width: 0;
}

.user-request-info strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.user-request-info small {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.user-request-admin-msg {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.user-request-hint {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.user-request-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(139, 92, 246, 0.14);
}

.user-request-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  direction: rtl;
  text-align: right;
}

.user-request-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: center;
}

.user-request-actions .btn-confirm-request {
  white-space: nowrap;
  font-size: 0.75rem;
  padding: 10px 14px;
}

.user-request-actions .btn-cancel-request {
  padding: 10px 14px;
  font-size: 0.78rem;
}

.cart-section-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.cart-item--pending {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.06);
}

.cart-item-pending-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cart-item--pending img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.pending-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
}

.pending-admin-msg {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.pending-request-actions {
  display: flex;
  gap: 8px;
}

.pending-request-actions .btn {
  flex: 1;
}

/* Admin requests */
.request-admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.request-admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.request-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.request-admin-name {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.request-admin-qty {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.request-admin-card .request-price-input,
.request-admin-card .request-msg-input {
  margin-bottom: 10px;
}

/* Slider */
.slider-track, .testimonial-track {
  display: flex;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 8px;
  margin: 0;
}

.slider-track::-webkit-scrollbar, .testimonial-track::-webkit-scrollbar { display: none; }

.slider-item {
  flex: 0 0 160px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

/* Product card */
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:active { transform: scale(0.97); }

.product-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--nude-pink);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-discount {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--grad-secondary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 8px;
}

.badge-hot {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--grad-luxury);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 8px;
}

.badge-soldout {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 8px;
}

.product-card-body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.product-brand {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card h3 {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  height: calc(0.8rem * 1.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: auto;
}

.price-old {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--danger);
}

.price-new {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple);
}

/* Testimonials */
.testimonial-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.testimonial-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nude-pink);
  border-radius: 50%;
  font-size: 1.1rem;
}

.testimonial-avatar--photo {
  overflow: hidden;
  background: var(--surface2);
}

.testimonial-avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-top strong { font-size: 0.85rem; display: block; }

.stars { color: var(--gold); font-size: 0.75rem; letter-spacing: 1px; }

.testimonial-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Trust strip */
.trust-strip {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.trust-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.trust-item span { font-size: 1.2rem; }
.trust-item small {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
}

/* Profile review */
.profile-review-card { margin: 16px 0; }

.profile-review-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.profile-review-head h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.profile-review-head p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.profile-review-icon { font-size: 1.8rem; line-height: 1; }

/* Star rating picker */
.star-picker {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 10px 0 6px;
  direction: ltr;
}

.star-btn {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #d1d5db;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  transition: color 0.15s, transform 0.15s;
}

.star-btn:active { transform: scale(0.92); }
.star-btn.active { color: #f59e0b; }

.star-picker-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.review-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin: 12px 0 0;
  line-height: 1.45;
}

.stars { color: #f59e0b; letter-spacing: 1px; }
.stars--lg { font-size: 1.15rem; letter-spacing: 2px; margin-bottom: 8px; }

.review-admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.review-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.review-admin-text {
  margin: 0 0 8px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.search-bar svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }

.search-bar input {
  flex: 1;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
}

.filter-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 99px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
}

.filter-chip.active {
  background: var(--grad-main);
  color: #fff;
  border-color: transparent;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Product detail */
.product-detail {
  margin: 0;
  width: 100%;
}

.product-detail .product-info {
  padding: 20px 16px;
}

.gallery {
  position: relative;
  background: var(--nude-pink);
  aspect-ratio: 1;
  overflow: hidden;
}

.gallery-track { width: 100%; height: 100%; position: relative; }

.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-slide.active { opacity: 1; }

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
}

.gallery-dot.active { background: #fff; width: 20px; border-radius: 4px; }

.product-info { padding: 20px 16px; }

.product-info h1 {
  margin: 6px 0 14px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
}

.price-block { margin-bottom: 14px; }

.price-old-lg {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--danger);
  display: block;
  margin-bottom: 2px;
}

.price-new-lg {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--purple);
}

.discount-tag {
  display: inline-block;
  margin-top: 6px;
  background: #fff;
  color: var(--pink);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 8px;
  border: 1px solid rgba(244, 114, 182, 0.22);
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 20px;
}

.feature-tag {
  font-size: 0.72rem;
  padding: 5px 10px;
  background: rgba(139, 92, 246, 0.12);
  border-radius: 8px;
  color: var(--purple);
  font-weight: 500;
}

.desc-block {
  margin-bottom: 20px;
  padding: 14px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.desc-block h4 { margin: 0 0 8px; font-size: 0.85rem; }
.desc-block p { margin: 0; font-size: 0.85rem; line-height: 1.7; color: var(--text-muted); }

.qty-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.qty-block > span { font-weight: 600; font-size: 0.9rem; }

.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  direction: ltr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-selector--sm { scale: 0.9; }

.qty-selector.qty-selector--inline {
  display: inline-flex;
  width: max-content;
}

.request-qty-block {
  margin-bottom: 12px;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--grad-main);
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
  font-family: var(--font);
}

.qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.qty-selector span {
  min-width: 36px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  text-decoration: none;
}

.btn:active { transform: scale(0.97); }

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.btn-primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-block { width: 100%; }
.btn-lg { padding: 15px 20px; font-size: 0.95rem; border-radius: var(--radius); }
.btn-sm { padding: 8px 14px; font-size: 0.78rem; }

/* Cart */
.cart-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.cart-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cart-remove-btn {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  z-index: 1;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.cart-remove-btn svg {
  width: 14px;
  height: 14px;
}

.cart-remove-btn:active {
  color: var(--rose);
  border-color: rgba(225, 29, 72, 0.35);
  background: rgba(225, 29, 72, 0.06);
}

.cart-item-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  min-height: 24px;
  padding-inline-end: 36px;
}

.cart-variant-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.cart-variant-tag--size {
  background: var(--rose);
  color: #fff;
  min-width: 2rem;
  justify-content: center;
  text-align: center;
  padding: 4px 12px;
  font-size: 0.78rem;
  line-height: 1;
  direction: ltr;
  unicode-bidi: isolate;
}

.cart-variant-tag--color {
  background: var(--rose);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.cart-item-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cart-item-main img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.cart-item-info strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
  padding-inline-end: 34px;
}

.cart-item-info small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.74rem;
  padding-inline-end: 34px;
}

.cart-item-price {
  margin: 0;
  white-space: nowrap;
  line-height: 1.3;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.cart-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 5px;
  width: 100%;
}

.cart-item-foot .cart-item-price {
  flex-shrink: 0;
  order: 1;
}

.cart-item-foot .qty-selector--sm {
  flex-shrink: 0;
  order: 2;
}

.cart-item-price--soldout {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--danger);
}

.size-guide-widget {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.size-guide-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  margin-bottom: 12px;
  background: var(--cream);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.size-guide-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: none;
  border-radius: 11px;
  background: transparent;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.28s ease, box-shadow 0.28s ease, transform 0.22s ease;
}

.size-guide-tab:active {
  transform: scale(0.96);
}

.size-guide-tab.active {
  background: #fff;
  box-shadow: var(--shadow);
  transform: scale(1.02);
}

.size-guide-panels {
  position: relative;
}

.size-guide-panel {
  width: 100%;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  transition: opacity 0.26s ease;
}

.size-guide-panel.active {
  position: relative;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.size-guide-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.size-guide-table-wrap::-webkit-scrollbar {
  display: none;
}

.size-guide-note {
  margin: 0.85rem 0 0;
  padding: 12px 14px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.size-guide-table--pants {
  width: 100%;
  min-width: 100%;
  table-layout: auto;
  font-size: 0.72rem;
}

.size-guide-table--pants th,
.size-guide-table--pants td {
  padding: 0.5rem 0.35rem;
  white-space: nowrap;
  line-height: 1.35;
}

.cart-discount-box {
  margin: 0 0 16px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cart-discount-box label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}

.cart-discount-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cart-discount-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream-light);
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.cart-discount-row #cart-discount-apply {
  background: var(--grad-main);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-btn);
}

.cart-discount-msg {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.cart-discount-msg.success,
.checkout-row.discount strong {
  color: #15803d;
}

.checkout-row.discount {
  color: #15803d;
}

.checkout-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.checkout-trust {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.12), rgba(192, 132, 252, 0.18));
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.checkout-trust-icon { font-size: 1.5rem; flex-shrink: 0; }

.checkout-trust p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
}

.checkout-rows { margin-bottom: 14px; }

.checkout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.88rem;
  border-bottom: 1px dashed var(--border);
}

.checkout-row:last-child { border-bottom: none; }

.checkout-row.highlight {
  background: rgba(139, 92, 246, 0.08);
  margin: 0 -8px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border-bottom: none;
}

.text-accent { color: var(--purple); }

.delivery-note {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: var(--cream-light);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.delivery-note span { font-size: 1.2rem; flex-shrink: 0; }
.delivery-note p { margin: 0; }

/* Checkout info */
.checkout-info-page {
  padding-bottom: 8px;
}

.checkout-info-hero {
  margin-bottom: 14px;
}

.checkout-info-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.form-field--wide {
  grid-column: 1 / -1;
}

.form-field span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream-light);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.88rem;
  padding: 12px 13px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.form-field textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.7;
}

.form-field input:focus,
.form-field textarea:focus {
  background: #fff;
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.13);
}

.checkout-info-note {
  margin-bottom: 0;
}

.checkout-info-summary {
  margin-bottom: 0;
}

.admin-delivery-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-delivery-info div {
  padding: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.admin-delivery-info .wide {
  grid-column: 1 / -1;
}

.admin-delivery-info span,
.admin-delivery-info strong {
  display: block;
}

.admin-delivery-info span {
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.admin-delivery-info strong {
  font-size: 0.82rem;
  line-height: 1.6;
}

.discount-admin-form {
  margin-bottom: 14px;
}

.discount-admin-grid {
  display: grid;
  grid-template-columns: 1fr 82px 110px;
  gap: 10px;
  margin-bottom: 12px;
}

.discount-admin-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.discount-admin-check input {
  accent-color: var(--purple);
}

.discount-admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.discount-admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.discount-admin-row strong {
  display: block;
  color: var(--purple);
  font-size: 0.92rem;
}

.discount-admin-row small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.74rem;
}

.payment-settings-form {
  margin-bottom: 14px;
}

.payment-settings-note {
  margin-bottom: 12px;
}

.payment-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

@media (max-width: 620px) {
  .payment-settings-grid {
    grid-template-columns: 1fr;
  }
}

/* Success */
.success-page { text-align: center; padding: 20px 0; }

.success-icon { font-size: 3rem; margin-bottom: 12px; }

.success-page h2 { margin: 0 0 8px; }

.success-page > p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 20px;
}

.tracking-box {
  background: var(--surface);
  border: 2px dashed var(--purple-light);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.tracking-box small { color: var(--text-muted); display: block; margin-bottom: 6px; }

.tracking-box code {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 10px;
  word-break: break-all;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.success-page .delivery-note,
.success-page .delivery-note--success {
  text-align: right;
  justify-content: flex-start;
  align-items: center;
  padding: 10px 8px;
  gap: 6px;
}

.success-page .delivery-note span,
.success-page .delivery-note--success span {
  font-size: 1rem;
}

.success-page .delivery-note p,
.success-page .delivery-note--success p {
  flex: 1;
  min-width: 0;
  text-align: right;
  font-size: 0.74rem;
  line-height: 1.4;
  white-space: nowrap;
}

.empty-state .success-actions {
  width: 100%;
  max-width: 320px;
  margin: 16px auto 0;
}

/* Profile */
.profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-secondary);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.profile-avatar--photo {
  padding: 0;
  overflow: hidden;
  background: var(--nude-pink);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-header h2 { margin: 0; font-size: 1.1rem; font-weight: 700; }
.profile-header small { color: var(--text-muted); }

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 8px;
}

.card-head h3 { margin: 0; font-size: 0.95rem; }

.tracking-code-sm {
  font-size: 0.7rem;
  color: var(--purple);
  background: var(--bg-page);
  padding: 4px 8px;
  border-radius: 6px;
}

/* Progress bar */
.progress-wrap { margin-bottom: 12px; }

.progress-bar {
  height: 4px;
  background: var(--nude-pink);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-fill {
  height: 100%;
  background: var(--grad-main);
  border-radius: 99px;
  transition: width 0.5s ease;
}

.progress-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.45;
  transition: opacity 0.3s;
}

.progress-step.done { opacity: 1; }
.progress-step.current .step-dot { background: var(--grad-main); color: #fff; }

.step-dot {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nude-pink);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.progress-step small { font-size: 0.78rem; line-height: 1.3; }

.order-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.info-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.order-history { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.order-row {
  padding: 14px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.order-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}

.order-row-top code { font-size: 0.72rem; color: var(--purple); }

.order-status {
  font-size: 0.7rem;
  padding: 3px 8px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--purple);
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
}

.order-row-items {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.5;
}

.order-row-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}

.help-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font);
  text-align: right;
  box-shadow: var(--shadow);
}

.help-link-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nude-pink);
  border-radius: 14px;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.help-link-card strong { display: block; font-size: 0.9rem; color: var(--text); }
.help-link-card small { color: var(--text-muted); font-size: 0.75rem; }
.help-link-card svg { width: 18px; color: var(--text-muted); flex-shrink: 0; margin-right: auto; }

/* Help page */
.help-hero {
  text-align: center;
  padding: 20px;
  margin-bottom: 20px;
}

.help-hero span { font-size: 2.5rem; display: block; margin-bottom: 8px; }
.help-hero h2 { margin: 0 0 6px; }
.help-hero p { margin: 0; color: var(--text-muted); font-size: 0.88rem; }

.help-steps {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.help-steps h3 { margin: 0 0 14px; font-size: 0.95rem; }

.help-steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.7;
}

.help-step-body {
  flex: 1;
  min-width: 0;
}

.help-steps li span {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-main);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.help-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.help-card h3 { margin: 0 0 14px; font-size: 0.95rem; }

.timeline { display: flex; flex-direction: column; gap: 14px; }

.timeline-item {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
}

.timeline-item span { font-size: 1.3rem; flex-shrink: 0; }
.timeline-item strong { display: block; margin-bottom: 2px; }
.timeline-item p { margin: 0; color: var(--text); font-size: 0.85rem; line-height: 1.7; }

.support-btn { margin-top: 8px; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-state.compact { padding: 32px 16px; }

.empty-state .icon { font-size: 2.5rem; margin-bottom: 12px; }

.empty-state h4 { margin: 0 0 8px; }

.empty-state p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 16px;
}

.empty-state.hidden { display: none; }

/* Toast */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + var(--safe-b) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: rgba(76, 63, 94, 0.92);
  color: #fff;
  padding: 12px 20px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  max-width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
}

.toast.hidden { display: none; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (min-width: 481px) {
  .app {
    box-shadow: var(--shadow-lg);
    background: var(--cream-light);
  }
}

/* ── Admin panel ── */
.admin-page .admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-page .admin-header h2 { margin: 0; font-size: 1.15rem; }

.admin-badge {
  font-size: 0.68rem;
  padding: 4px 10px;
  background: var(--grad-main);
  color: #fff;
  border-radius: 99px;
  font-weight: 600;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.admin-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  box-shadow: var(--shadow);
}

.admin-stat.wide { grid-column: 1 / -1; }

.admin-stat span {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--purple);
}

.admin-stat small { color: var(--text-muted); font-size: 0.68rem; }

.admin-toolbar { margin-bottom: 14px; }

.admin-order-list { display: flex; flex-direction: column; gap: 10px; }

.admin-order-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: var(--shadow);
}

.admin-order-row.clickable { cursor: pointer; transition: transform 0.15s; }
.admin-order-row.clickable:active { transform: scale(0.98); }

.admin-order-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.admin-order-row-top code { font-size: 0.72rem; color: var(--purple); }

.admin-order-row-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.admin-order-row-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}

.order-status.delivered {
  background: var(--grad-main);
  color: #fff;
}

.order-status.approved {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.2);
}

.admin-customer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.card-subtitle {
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.admin-items { display: flex; flex-direction: column; gap: 10px; }

.admin-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}

.admin-item img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.admin-item div { flex: 1; min-width: 0; }
.admin-item strong { display: block; font-size: 0.82rem; }
.admin-item small { color: var(--text-muted); }

.admin-stage-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.admin-stage-btn {
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--surface2);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.82rem;
  text-align: right;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}

.admin-stage-btn.done { border-color: rgba(139, 92, 246, 0.35); }
.admin-stage-btn.active {
  background: var(--grad-main);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}

#admin-advance-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.bottom-nav .nav-item.hidden { display: none; }

/* Telegram-only block */
.tg-blocked {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, var(--bg-page) 0%, var(--bg-main) 100%);
}

.tg-blocked.hidden { display: none; }

.tg-blocked-inner {
  max-width: 360px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-lg);
}

.tg-blocked-logo {
  width: min(200px, 55vw);
  height: auto;
  display: block;
  margin: 0 auto 16px;
}

.tg-blocked-icon { font-size: 3rem; display: block; margin-bottom: 12px; }

.tg-blocked-inner h1 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.tg-blocked-inner p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Admin tabs ── */
.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar { display: none; }

.admin-tabs--grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  padding-bottom: 0;
}

.admin-tab {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
}

.admin-tabs--grid .admin-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 6px;
  min-width: 0;
  font-size: 0.72rem;
}

.admin-tab.active {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
  color: var(--purple);
}

.sold-out-label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 700;
}

.sold-out-label--lg {
  font-size: 1rem;
  padding: 8px 14px;
}

.sold-out-banner {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.admin-user-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.admin-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.admin-user-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-user-main strong { font-size: 0.88rem; }

.admin-user-id {
  font-size: 0.75rem;
  color: var(--purple);
  word-break: break-all;
}

.admin-user-main small {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.admin-broadcast-card { margin-top: 8px; }

.admin-danger-card {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.04);
}

.admin-reset-btn {
  border-color: rgba(239, 68, 68, 0.45) !important;
  color: #b91c1c !important;
}

.admin-reset-hint {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.img-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.img-tab-empty {
  opacity: 0.65;
  border-style: dashed !important;
}

/* ── Admin product management ── */
.glass-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.glass-panel h4 { margin: 0 0 12px; font-size: 0.9rem; }

.pick-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.input, .textarea, select.input {
  width: 100%;
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 0.88rem;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.textarea { resize: vertical; min-height: 80px; }

.input:focus, .textarea:focus, select.input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  margin-bottom: 8px;
  cursor: pointer;
}

.admin-ad-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-products-toolbar { margin-bottom: 14px; }

.product-admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}

.product-admin-card.inactive { opacity: 0.65; }

.product-admin-card-top {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.product-admin-preview {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream-light);
  border: 1px solid var(--border);
}

.product-admin-preview img {
  width: 100%;
  height: 100%;
  display: block;
}

.product-admin-meta { flex: 1; min-width: 0; }

.product-admin-meta h4 {
  margin: 0 0 4px;
  font-size: 0.88rem;
  line-height: 1.35;
}

.product-admin-meta p {
  margin: 0 0 3px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.product-admin-price { color: var(--purple) !important; font-weight: 700; }

.product-admin-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.product-admin-actions .btn { flex: 1; min-width: 0; }

.ad-upload-hint {
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ad-upload-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}

.ad-file-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.ad-file-name {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
}

.img-preview-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--cream-light);
  aspect-ratio: 1;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}

.img-preview-wrap.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.img-preview-wrap.empty::after {
  content: "پیش‌نمایش تصویر";
  color: var(--text-muted);
  font-size: 0.82rem;
}

.img-preview-wrap.empty .img-preview-img { display: none; }

.img-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}

.img-fit-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  border: 1px solid var(--border);
}

.img-fit-controls input[type="range"] {
  width: 100%;
  accent-color: var(--purple);
}

.gallery-slide {
  overflow: hidden;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Payment checkout ── */
.checkout-pay-hero {
  text-align: center;
  margin-bottom: 18px;
}

.checkout-pay-hero span { font-size: 2.2rem; display: block; margin-bottom: 8px; }
.checkout-pay-hero h2 { margin: 0 0 8px; font-size: 1.15rem; }
.checkout-pay-hero p { margin: 0; color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

.payment-info-card { margin-bottom: 14px; }

.payment-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.payment-info-row:last-child { border-bottom: none; }
.payment-info-row span { color: var(--text-muted); }
.invoice-code, .card-number { font-size: 0.82rem; font-weight: 700; color: var(--purple); }

.payment-card-copy-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
  padding-top: 6px;
}

.payment-card-copy-row #copy-card-number {
  background: var(--grad-main);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-btn);
}

.receipt-upload-zone { margin-top: 8px; margin-bottom: 0; }

.receipt-upload-desc {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.receipt-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.receipt-preview {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--surface2);
  cursor: pointer;
}

.receipt-preview.is-uploading { cursor: wait; }

.receipt-preview img {
  display: none;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
}

.receipt-preview[data-state="uploading"] img,
.receipt-preview[data-state="uploaded"] img {
  display: block;
}

.receipt-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

.receipt-preview[data-state="uploading"] .receipt-placeholder,
.receipt-preview[data-state="uploaded"] .receipt-placeholder {
  display: none;
}

.receipt-placeholder-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.receipt-uploading {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.receipt-preview[data-state="uploading"] .receipt-uploading {
  display: flex !important;
}

.receipt-uploading p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.receipt-uploaded-msg {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.request-upload-actions {
  margin-bottom: 20px;
}

.request-submit-btn {
  margin-top: 4px;
}

.payment-pending-banner,
.payment-rejected-banner {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 12px;
  text-align: center;
}

.payment-pending-banner {
  background: rgba(139, 92, 246, 0.1);
  color: var(--purple);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.payment-rejected-banner {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.order-status.rejected {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
}

/* ── Admin payments ── */
.payment-admin-list { display: flex; flex-direction: column; gap: 12px; }

.payment-admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.payment-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.payment-admin-user {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.payment-status-badge {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 99px;
  white-space: nowrap;
}

.payment-status-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.payment-admin-amounts {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.payment-admin-items {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}

.payment-delivery-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.payment-delivery-info div {
  padding: 9px 10px;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.14);
  border-radius: var(--radius-sm);
}

.payment-delivery-info .wide {
  grid-column: 1 / -1;
}

.payment-delivery-info span,
.payment-delivery-info strong {
  display: block;
}

.payment-delivery-info span {
  margin-bottom: 3px;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.payment-delivery-info strong {
  font-size: 0.78rem;
  line-height: 1.55;
}

.payment-receipt-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  margin-bottom: 8px;
  border: none;
  width: 100%;
  font: inherit;
  text-align: right;
  cursor: pointer;
}

.payment-receipt-link:active {
  opacity: 0.85;
}

.payment-receipt-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--surface);
}

.receipt-image-modal .overlay-modal-body {
  padding: 0 16px 16px;
}

.receipt-image-modal-img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.admin-users-pager-wrap {
  margin-bottom: 10px;
}

.admin-users-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-users-page-info,
.admin-users-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  flex: 1;
}

.payment-admin-date {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  margin-bottom: 10px;
}

.payment-admin-actions {
  display: flex;
  gap: 8px;
}

.payment-admin-actions .btn { flex: 1; }

/* ── Loading & performance UX ── */
.spinner,
.btn-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(139, 92, 246, 0.2);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border-width: 2px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.page-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 220px;
  padding: 32px 16px;
}

.page-loading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.global-loading {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
}

.global-loading.hidden { display: none; }

.global-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 28px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg, 0 8px 32px rgba(76, 63, 94, 0.12));
  border: 1px solid var(--border);
}

.global-loading-inner p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.btn.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0.92;
}

.app.is-navigating {
  pointer-events: auto;
}

.app.is-navigating .bottom-nav,
.app.is-navigating .topbar {
  opacity: 0.92;
}

/* ── Arvin Boutique extensions ── */
.arvin-wordmark {
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.5rem;
}

.topbar-logo--text {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.topbar-logo--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.bottom-nav--arvin .nav-item.active { color: var(--rose); }

.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 12rem;
  margin: 0 0 1rem;
  box-shadow: var(--shadow-lg);
}
.hero-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-banner-content {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
  color: #fff;
}
.hero-tag {
  display: inline-block;
  background: var(--rose);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
  margin-bottom: 0.35rem;
}
.shipping-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
}

.shipping-badge-emoji {
  font-size: 1.15em;
  line-height: 1;
  flex-shrink: 0;
}

.shipping-badge strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: #065f46;
  line-height: 1.45;
}
.shipping-badge-icon {
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.45rem;
  color: #059669;
  box-shadow: var(--shadow);
}
.category-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0 0 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-strip::-webkit-scrollbar { display: none; }

.category-icon-btn {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 4.5rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  font-family: inherit;
}
.category-icon-circle {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  color: #57534e;
  transition: 0.2s ease;
}
.category-icon-circle svg {
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
}
.category-icon-btn:active .category-icon-circle,
.category-icon-btn:hover .category-icon-circle {
  background: #fff1f2;
  border-color: #fecdd3;
  color: var(--rose);
}
.category-icon-label {
  font-size: 0.62rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
  max-width: 4.5rem;
  word-break: keep-all;
}

/* Categories page — list cards */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0 0 1rem;
}
.category-list-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: right;
  font-family: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.category-list-card:active {
  border-color: #fecdd3;
  box-shadow: var(--shadow-lg);
}
.category-list-icon {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fafaf9;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #57534e;
}
.category-list-icon svg {
  width: 1.45rem;
  height: 1.45rem;
  flex-shrink: 0;
}
.category-list-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.category-list-body strong {
  font-size: 0.92rem;
  color: var(--text);
}
.category-list-body small {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.category-list-card > svg:last-child {
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0.45;
}

.filter-bar-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
}
.filter-bar-btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.categories-page .product-grid {
  padding: 0 0 1rem;
}
.categories-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.15rem 0 0.5rem;
}

.categories-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.categories-count {
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* legacy aliases */
.category-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 4.2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}
.category-chip-icon {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}
.category-chip-icon svg { width: 1.5rem; height: 1.5rem; }

.product-card--boutique .product-card-body h3 { font-size: 0.82rem; }
.product-card-img--34 img { object-fit: cover; width: 100%; height: 100%; }

.testimonial-card {
  flex: 0 0 16rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  box-shadow: var(--shadow);
}
.testimonial-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0 0 0.75rem;
}

.cat-search {
  position: relative;
  margin: 0 0 0.75rem;
}
.cat-search svg {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text-muted);
}
.cat-search input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 2.5rem 0.75rem 0.75rem;
  font-family: inherit;
  background: #fff;
}
.filter-bar {
  display: flex;
  gap: 0.5rem;
  padding: 0 0 0.75rem;
}
.filter-bar .btn { flex: 1; font-size: 0.72rem; }

.color-swatch-row { display: flex; flex-wrap: wrap; gap: 10px; }

.size-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Product variants — color & size pickers */
.variant-block {
  margin-bottom: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.variant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.variant-head .pick-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.variant-selected {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rose-dark);
}

.link-btn {
  background: none;
  border: none;
  padding: 4px 0;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.size-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.size-btn {
  min-width: 52px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.size-btn.active,
.size-btn.selected {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  box-shadow: 0 4px 12px rgba(28, 25, 23, 0.12);
}

.product-material {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: -6px 0 14px;
  line-height: 1.6;
}

.product-material span {
  color: var(--text);
  font-weight: 600;
}

.gallery--boutique {
  aspect-ratio: 3 / 4;
}

/* Color picker grid (product + filter) */
.color-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 12px;
}

.color-pick-grid--product {
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
}

.color-pick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: var(--cream-light);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.color-pick-item.active {
  border-color: var(--rose);
  background: rgba(225, 29, 72, 0.06);
  box-shadow: 0 0 0 1px rgba(225, 29, 72, 0.1);
}

.color-pick-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.color-pick-dot--all {
  background: linear-gradient(135deg, #f5f5f4 45%, #e7e5e4 55%);
  border: 1px dashed rgba(28, 25, 23, 0.22);
}

.color-pick-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.35;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.color-pick-item.active .color-pick-label {
  color: var(--rose-dark);
}

/* Filter modal panel */
.filter-panel {
  display: flex;
  flex-direction: column;
}

.filter-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.filter-section:last-of-type {
  border-bottom: none;
}

.filter-section-title {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.option-grid--wrap {
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
}

.option-pill {
  min-height: 42px;
  padding: 10px 8px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  text-align: center;
  line-height: 1.3;
}

.option-pill.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  box-shadow: 0 4px 12px rgba(28, 25, 23, 0.14);
}

.price-range-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-range-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.88rem;
  background: #fff;
  text-align: center;
}

.price-range-input:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.price-range-sep {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.filter-apply-btn {
  margin: 16px 20px 20px;
  width: calc(100% - 40px);
}

/* Overlay modal (filter, size guide) */
.overlay-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.overlay-modal.open {
  pointer-events: auto;
  opacity: 1;
}

.overlay-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.48);
  backdrop-filter: blur(6px);
}

.overlay-modal-sheet {
  position: relative;
  width: 100%;
  max-width: var(--app-max-w);
  max-height: 88vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -8px 40px rgba(28, 25, 23, 0.12);
}

.overlay-modal.open .overlay-modal-sheet {
  transform: translateY(0);
}

.overlay-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.overlay-modal-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.overlay-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--cream-light);
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--text);
}

.overlay-modal-body {
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.overlay-modal-panel {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 1.5rem 1.5rem 0 0;
  padding: 1.25rem 1.25rem calc(1.5rem + var(--safe-b));
  max-height: 85vh;
  overflow-y: auto;
}
.size-guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.size-guide-table th,
.size-guide-table td {
  padding: 0.55rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.size-guide-table th { background: var(--cream-dark); font-weight: 700; }

.cart-variant-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  color: var(--text-muted);
  background: var(--cream);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}
.cart-color-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.product-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0 0 1rem;
}

.category-list-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem;
  margin: 0 0 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.filter-sheet {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.filter-sheet label { font-size: 0.75rem; font-weight: 600; }
.filter-sheet select,
.filter-sheet input {
  width: 100%;
  padding: 0.55rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  font-family: inherit;
}

.shipping-method-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shipping-method-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.shipping-method-opt:has(input:checked) {
  border-color: var(--rose);
  background: rgba(225, 29, 72, 0.04);
  box-shadow: 0 0 0 1px rgba(225, 29, 72, 0.1);
}

.shipping-method-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.shipping-method-body strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.shipping-method-body small {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.shipping-method-opt input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin: 0;
  border: 2px solid #d6d3d1;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
}

.shipping-method-opt input[type="radio"]:checked {
  border-color: var(--rose);
  background: #fff;
  box-shadow: inset 0 0 0 5px var(--rose);
}

.shipping-method-opt input[type="radio"]:focus-visible {
  outline: 2px solid rgba(225, 29, 72, 0.35);
  outline-offset: 2px;
}

