/* ==========================================================================
   Pinktag — Mobile-First Editorial Deal Discovery Design System
   Warm Porcelain · Rose-Berry · Editorial Charcoal · Zero-CLS Ad Slots
   ========================================================================== */

:root {
  --bg: #FFFBF9;
  --surface: #FFFFFF;
  --surface-soft: #FDF2F5;
  --surface-warm: #F9F2EE;
  --ink: #1C1917;
  --ink-secondary: #57504C;
  --ink-muted: #857D78;
  --border: #EFE5E1;
  --border-strong: #DFD1CB;
  --accent: #D44472;
  --accent-hover: #B8325E;
  --accent-soft: #FCE8EF;
  --gold: #A97932;
  --gold-soft: #FBF4E7;
  --men-bg: #EEF2F6;
  --men-ink: #334E68;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(28, 25, 23, 0.045);
  --shadow-md: 0 10px 28px rgba(28, 25, 23, 0.09);
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.has-sticky-ad {
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 14px;
}

/* Bilingual Toggle Rules */
html[data-lang="zh"] .en-only,
html[data-lang="zh"] .sep-dot {
  display: none !important;
}

html[data-lang="en"] .zh-only,
html[data-lang="en"] .sep-dot {
  display: none !important;
}

/* Top Announcement Strip */
.top-strip {
  background: var(--ink);
  color: #FAF6F3;
  font-size: 12px;
  padding: 7px 0;
}

.top-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.top-strip-link {
  white-space: nowrap;
  color: #FBCAD9;
  font-weight: 500;
}

.top-strip-link:hover {
  text-decoration: underline;
}

.sep-dot {
  margin: 0 5px;
  opacity: 0.6;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 251, 249, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-wordmark {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.header-nav {
  display: none;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  display: inline-flex;
  gap: 5px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle {
  display: inline-flex;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-btn.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.wishlist-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wishlist-badge[hidden] {
  display: none;
}

/* Compact Hero + Search */
.hero-band {
  padding: 18px 0 12px;
  background: linear-gradient(180deg, #FDF2F5 0%, #FFFBF9 100%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.hero-title .en-only {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
  font-size: 21px;
}

.hero-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-secondary);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  padding: 0 14px;
  height: 44px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s;
}

.search-bar:focus-within {
  border-color: var(--accent);
}

.search-icon {
  color: var(--ink-muted);
  flex-shrink: 0;
}

.search-bar input {
  border: 0;
  background: transparent;
  width: 100%;
  padding: 0 10px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

.search-clear {
  border: 0;
  background: var(--surface-warm);
  color: var(--ink-secondary);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

/* Filter Bar */
.filter-bar-wrap {
  position: sticky;
  top: 58px;
  z-index: 30;
  background: rgba(255, 251, 249, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.cat-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.cat-scroll::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex: 0 0 auto;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-secondary);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 36px;
}

.cat-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

.cat-icon {
  font-size: 12px;
  opacity: 0.85;
}

.subfilter-row {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.quick-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1 1 auto;
}

.quick-chips::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-secondary);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
}

.chip-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.compact-select {
  flex: 1 1 0;
  height: 34px;
  border: 1px solid var(--border-strong);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2357504C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 12px;
  -webkit-appearance: none;
  appearance: none;
  color: var(--ink);
  border-radius: 9px;
  padding: 0 28px 0 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  min-width: 0;
  text-overflow: ellipsis;
}

.compact-select:focus {
  outline: none;
  border-color: var(--accent);
}

.layout-toggle-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: 9px;
  cursor: pointer;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Feed Shell & Desktop Store Sidebar */
.feed-section {
  padding: 14px 0 36px;
}

.feed-shell {
  display: block;
}

.desktop-sidebar {
  display: none;
}

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.reset-filters-btn {
  border: 0;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

/* Responsive Deal Grid */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.deals-grid.cols-1 {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

/* Product Deal Card */
.deal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.deal-card:hover {
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #F7F1EE;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  touch-action: pan-y;
}

.deals-grid.cols-1 .card-media {
  aspect-ratio: 4 / 3.6;
}

.card-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.card-img.active {
  opacity: 1;
}

.badge-stack-tl {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  z-index: 2;
  pointer-events: none;
}

.discount-badge {
  background: var(--accent);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 3px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(212, 68, 114, 0.35);
}

.meta-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
}

.badge-gold {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(169, 121, 50, 0.25);
}

.badge-ink {
  background: rgba(28, 25, 23, 0.84);
  color: #FFFBF9;
}

.badge-men {
  background: var(--men-bg);
  color: var(--men-ink);
}

.heart-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.heart-btn.saved {
  color: var(--accent);
}

.heart-btn.saved svg {
  fill: var(--accent);
  stroke: var(--accent);
}

.img-count-pill {
  position: absolute;
  right: 8px;
  bottom: 24px;
  z-index: 2;
  background: rgba(28, 25, 23, 0.62);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  pointer-events: none;
}

.card-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  opacity: 0.92;
  transition: opacity 0.16s ease, transform 0.14s ease, background 0.14s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Invisible expanded touch target on mobile so smaller visual buttons stay effortless to tap */
.card-nav-btn::after {
  content: "";
  position: absolute;
  inset: -7px;
}

.card-nav-prev { left: 6px; }
.card-nav-next { right: 6px; }

.card-nav-btn:hover {
  background: #FFFFFF;
}

.card-nav-btn:active {
  transform: translateY(-50%) scale(0.92);
}

/* Desktop hover-capable browsers: bigger buttons, shown only on hover/focus */
@media (hover: hover) and (min-width: 640px) {
  .card-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 22px;
    opacity: 0;
    pointer-events: none;
  }
  .card-nav-prev { left: 8px; }
  .card-nav-next { right: 8px; }
  .card-media:hover .card-nav-btn,
  .card-media:focus-within .card-nav-btn {
    opacity: 0.95;
    pointer-events: auto;
  }
}

.card-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
}

.dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s, background 0.15s;
}

.dot-indicator.active {
  background: var(--accent);
  transform: scale(1.25);
}

/* Card Body */
.card-body {
  padding: 10px 10px 11px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.card-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 3px;
}

.card-brand {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gender-tag-men {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--men-bg);
  color: var(--men-ink);
}

.card-title-zh {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}

.card-title-en {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}

.card-snippet {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: var(--ink-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deals-grid.cols-2 .card-snippet {
  display: none;
}

.price-row {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.deal-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
}

.reg-price {
  font-size: 12px;
  color: var(--ink-muted);
  text-decoration: line-through;
}

.save-pill {
  font-size: 10.5px;
  font-weight: 600;
  color: #166534;
  background: #DCFCE7;
  padding: 1px 6px;
  border-radius: 999px;
}

.card-actions {
  margin-top: 9px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 6px;
}

.btn-detail {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  min-height: 36px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.btn-detail:hover {
  border-color: var(--ink);
}

.btn-shop {
  border: 0;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  min-height: 36px;
  padding: 0 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: background 0.15s;
}

.btn-shop:hover {
  background: var(--accent-hover);
}

/* Zero-CLS Native In-Feed Sponsored Card */
.native-ad-card {
  min-height: 320px;
  background: linear-gradient(155deg, #FDF2F5 0%, #FFF8FA 55%, #FAF3EE 100%);
  border: 1px dashed #E2B6C5;
}

.native-ad-inner {
  padding: 16px 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
}

.native-ad-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(212, 68, 114, 0.12);
  color: var(--accent);
}

.native-ad-emblem {
  font-size: 22px;
  color: var(--accent);
}

.native-ad-sponsor {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.native-ad-title,
.native-ad-title-en {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
}

.native-ad-title-en {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.native-ad-desc {
  margin: 0;
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.45;
}

.native-ad-cta {
  margin-top: auto;
  width: 100%;
}

/* Load More & Empty State */
.load-more-wrap {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.btn-load-more {
  border: 1.5px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
}

.btn-load-more:hover {
  background: var(--ink);
  color: #fff;
}

.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--ink-muted);
}

/* Bottom Sheet / Modal Detail Drawer */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(28, 25, 23, 0.55);
  backdrop-filter: blur(3px);
}

.detail-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  transform: translateY(104%);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.22);
}

.detail-sheet.open {
  transform: translateY(0);
}

.sheet-handle-bar {
  display: flex;
  justify-content: center;
  padding: 10px 0 4px;
}

.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: var(--border-strong);
}

.sheet-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  font-size: 15px;
  cursor: pointer;
}

.detail-sheet-scroll {
  overflow-y: auto;
  padding: 0 16px calc(22px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
}

.sheet-gallery-stage {
  position: relative;
  aspect-ratio: 4 / 4.2;
  max-height: 380px;
  width: 100%;
  background: #F6F0ED;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 10px;
}

.sheet-stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #F6F0ED;
  opacity: 0;
  transition: opacity 0.2s;
}

.sheet-stage-img.active {
  opacity: 1;
}

.stage-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.stage-nav-prev { left: 10px; }
.stage-nav-next { right: 10px; }

.detail-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.thumb-btn {
  flex: 0 0 auto;
  width: 58px;
  height: 68px;
  padding: 0;
  border-radius: 9px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #F7F1EE;
  cursor: pointer;
}

.thumb-btn.active {
  border-color: var(--accent);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-brand-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.detail-store-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: 999px;
}

.detail-title-zh {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.detail-title-en {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.detail-price-box {
  margin: 14px 0;
  padding: 12px 14px;
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  border: 1px solid #F6D5E0;
}

.detail-price-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.detail-deal-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.detail-reg-price {
  font-size: 16px;
  color: var(--ink-muted);
  text-decoration: line-through;
}

.detail-savings-line {
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 600;
  color: #166534;
}

.promo-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--gold-soft);
  border: 1px dashed var(--gold);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.promo-label {
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
}

.promo-code-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.btn-copy-code {
  border: 0;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.detail-cta-row {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.btn-shop-lg {
  flex: 1 1 auto;
  min-height: 48px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  box-shadow: 0 6px 18px rgba(212, 68, 114, 0.3);
}

.btn-shop-lg:hover {
  background: var(--accent-hover);
}

.btn-icon-lg {
  position: static;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bilingual-desc-card {
  padding: 12px 14px;
  background: var(--surface-warm);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.bilingual-desc-card h3 {
  margin: 0 0 5px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.bilingual-desc-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
}

.detail-meta-footnote {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-muted);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* Dedicated Detail Page */
.detail-page-wrap {
  padding: 16px 14px 48px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-secondary);
  margin-bottom: 14px;
}

.detail-page-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.detail-main-stage {
  position: relative;
  aspect-ratio: 4 / 4.5;
  background: #F6F0ED;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 10px;
}

.detail-stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s;
}

.detail-stage-img.active {
  opacity: 1;
}

.detail-stage-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 12px;
  padding: 5px 10px;
}

.related-section {
  margin-top: 32px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 20px;
  margin: 0 0 14px;
}

/* Stores & Ops Pages */
.page-wrap {
  padding: 20px 14px 48px;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: 26px;
  margin: 0 0 6px;
}

.page-lead {
  color: var(--ink-secondary);
  font-size: 14px;
  margin: 0 0 20px;
}

.tier-grid,
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.tier-card,
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.tier-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.tier-1 { background: var(--accent-soft); color: var(--accent); }
.tier-2 { background: var(--gold-soft); color: var(--gold); }
.tier-3 { background: var(--men-bg); color: var(--men-ink); }

.tier-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.tier-card p {
  margin: 4px 0;
  font-size: 13px;
}

.muted {
  color: var(--ink-muted);
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-val {
  font-size: 28px;
  font-weight: 700;
  margin: 4px 0;
  color: var(--ink);
}

.kpi-sub {
  font-size: 12px;
  color: var(--ink-secondary);
}

.ops-btn-row {
  display: flex;
  gap: 8px;
  margin: 8px 0 6px;
}

.table-section {
  margin-top: 24px;
}

.table-scroll {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 600px;
}

.data-table th,
.data-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  background: var(--surface-warm);
}

.sub-cell {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.cat-tag,
.tier-mini {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-warm);
  color: var(--ink-secondary);
}

.btn-table,
.btn-table-muted {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.btn-table {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn-table-muted {
  background: var(--surface-warm);
  color: var(--ink-secondary);
}

/* Sticky Mobile Footer Ad Bar (Zero-CLS Fixed 56px) */
.sticky-ad-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(28, 25, 23, 0.96);
  color: #FFFBF9;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
}

.sticky-ad-bar[hidden] {
  display: none;
}

.sticky-ad-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
}

.ad-pill {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  color: #FBCAD9;
}

.sticky-ad-copy {
  flex: 1 1 auto;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-ad-cta {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
}

.sticky-ad-close {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #C9C1BC;
  font-size: 20px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

/* Wishlist Side Drawer */
.wishlist-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 90vw);
  z-index: 85;
  background: var(--surface);
  transform: translateX(102%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.16);
}

.wishlist-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.drawer-header h3 {
  margin: 0;
  font-size: 16px;
  display: flex;
  gap: 6px;
}

.drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.saved-item-row {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  align-items: center;
}

.saved-item-row img {
  width: 56px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.saved-item-info {
  flex: 1 1 auto;
  min-width: 0;
}

.saved-item-title {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-item-actions {
  display: flex;
  gap: 6px;
  margin-top: 5px;
}

.empty-muted {
  color: var(--ink-muted);
  font-size: 13px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-warm);
  padding: 28px 0 34px;
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
}

.footer-desc {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-secondary);
  max-width: 640px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-disclosure {
  font-size: 11.5px;
  color: var(--ink-muted);
  line-height: 1.55;
  padding-top: 12px;
  border-top: 1px solid var(--border-strong);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%) translateY(20px);
  z-index: 95;
  background: var(--ink);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints (Tablet & Desktop)
   ========================================================================== */
@media (min-width: 640px) {
  .container { padding: 0 20px; }
  .deals-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .deals-grid.cols-2 .card-snippet { display: -webkit-box; }
  .controls-right { width: auto; }
  .compact-select { flex: 0 0 auto; min-width: 150px; }
  .layout-toggle-btn { display: none; }
  .tier-grid { grid-template-columns: repeat(3, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-sheet {
    left: 50%;
    right: auto;
    bottom: 50%;
    width: min(760px, 92vw);
    max-height: 88vh;
    border-radius: 22px;
    transform: translate(-50%, 60%) scale(0.96);
    opacity: 0;
    pointer-events: none;
  }
  .detail-sheet.open {
    transform: translate(-50%, 50%) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 960px) {
  .header-nav { display: flex; }
  .hero-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .search-bar { width: 420px; }
  .feed-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }
  .desktop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 162px;
  }
  .sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
  }
  .sidebar-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--ink-muted);
    margin-bottom: 10px;
  }
  .sidebar-all {
    color: var(--accent);
  }
  .sidebar-store-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 460px;
    overflow-y: auto;
  }
  .sidebar-store-btn {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--ink-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
  }
  .sidebar-store-btn:hover {
    background: var(--surface-warm);
    color: var(--ink);
  }
  .sidebar-store-btn.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
  }
  .count-pill {
    font-size: 11px;
    color: var(--ink-muted);
  }
  .mix-bar {
    height: 8px;
    background: var(--men-bg);
    border-radius: 999px;
    overflow: hidden;
  }
  .mix-fill-women {
    height: 100%;
    background: var(--accent);
  }
  .mix-legend {
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--ink-muted);
  }
  .detail-page-card {
    grid-template-columns: 1fr 1.08fr;
    padding: 24px;
    gap: 28px;
  }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Admin Auth, Gated Nav & Comment-Anywhere Overlay (Admin Only)
   ========================================================================== */

.nav-link-admin {
  align-items: center;
  color: var(--accent);
}

.admin-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.admin-pill-mobile {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
}

.admin-logout-btn {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-secondary);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.admin-logout-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (min-width: 960px) {
  .admin-pill-mobile { display: none; }
}

/* Admin Login Page */
.login-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 14px;
}

.login-card {
  width: 100%;
  max-width: 410px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-md);
}

.login-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 10px;
}

.login-card h1 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 24px;
}

.login-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.login-error {
  padding: 10px 12px;
  border-radius: 10px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  font-size: 13px;
  margin-bottom: 14px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.form-field input {
  height: 44px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}

.form-field input:focus {
  border-color: var(--accent);
}

.login-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
  margin-top: 4px;
}

.login-foot {
  margin-top: 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

/* Floating Admin Dock & Comment-Anywhere Layer */
.pt-admin-dock {
  position: fixed;
  right: 14px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 65;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(28, 25, 23, 0.94);
  padding: 6px;
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

body.has-sticky-ad .pt-admin-dock {
  bottom: calc(68px + env(safe-area-inset-bottom, 0px));
}

.pt-dock-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFBF9;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.pt-dock-primary {
  background: var(--accent);
}

.pt-dock-primary.active {
  background: #16A34A;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.35);
}

.pt-admin-banner {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 68;
  background: var(--ink);
  color: #FFFBF9;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  max-width: 92vw;
}

.pt-admin-banner[hidden] {
  display: none;
}

.pt-admin-banner button {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

body.pt-comment-mode {
  cursor: crosshair !important;
}

.pt-admin-hover-ring {
  outline: 2px dashed var(--accent) !important;
  outline-offset: 2px !important;
}

.pt-pins-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 55;
}

.pt-pin-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 4px;
  border: 2px solid #FFFFFF;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(212, 68, 114, 0.48);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pt-pin-marker:hover {
  transform: translate(-50%, -50%) scale(1.12);
}

.pt-admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(28, 25, 23, 0.58);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.pt-admin-modal-backdrop[hidden] {
  display: none;
}

.pt-admin-modal {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  max-height: 88vh;
  overflow-y: auto;
}

.pt-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.pt-modal-head h3 {
  margin: 0;
  font-size: 16px;
}

.pt-modal-x {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
}

.pt-target-meta {
  background: var(--surface-warm);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 12px;
  color: var(--ink-secondary);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  word-break: break-word;
}

.pt-target-excerpt {
  font-style: italic;
  color: var(--ink-muted);
}

.pt-admin-modal textarea {
  width: 100%;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  resize: vertical;
  outline: none;
}

.pt-admin-modal textarea:focus {
  border-color: var(--accent);
}

.pt-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-secondary);
  margin: 10px 0 14px;
  cursor: pointer;
}

.pt-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.pt-comment-body {
  font-size: 14px;
  line-height: 1.55;
  padding: 10px 12px;
  background: var(--surface-soft);
  border-radius: 10px;
  margin-bottom: 12px;
  white-space: pre-wrap;
}

.pt-agent-reply {
  font-size: 12px;
  margin-bottom: 12px;
}

.pt-agent-reply pre {
  margin: 4px 0 0;
  padding: 8px 10px;
  background: #1C1917;
  color: #FAF6F3;
  border-radius: 8px;
  white-space: pre-wrap;
  max-height: 160px;
  overflow-y: auto;
  font-size: 11.5px;
}

/* Share Sheet Fallback Modal (for HTTP / Desktop browsers without Web Share API) */
.share-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 92;
  background: rgba(28, 25, 23, 0.56);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
}

.share-modal-backdrop[hidden] {
  display: none;
}

.share-modal-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.share-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.share-modal-head h3 {
  margin: 0;
  font-size: 16px;
}

.share-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}

.share-preview-box {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-warm);
  font-size: 12.5px;
  color: var(--ink);
  margin-bottom: 12px;
  word-break: break-word;
}

.share-url-line {
  color: var(--accent);
  font-size: 11.5px;
}

.share-btn-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-btn-grid .btn-shop,
.share-btn-grid .btn-detail {
  min-height: 42px;
  font-size: 13px;
}

.share-quick-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.share-quick-links a:hover {
  color: var(--accent);
}

.share-https-hint {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--ink-muted);
  text-align: center;
}

@media (min-width: 640px) {
  .share-modal-backdrop {
    align-items: center;
  }
}

/* Infinite-Scroll Waterfall Sentinel & Spinner */
.feed-sentinel {
  margin-top: 24px;
  padding: 12px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
}

.feed-sentinel[hidden] {
  display: none;
}

.feed-loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}

.feed-loader[hidden],
.feed-end[hidden] {
  display: none;
}

.loader-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  animation: ptSpin 0.75s linear infinite;
}

@keyframes ptSpin {
  to { transform: rotate(360deg); }
}

.feed-end {
  font-size: 12.5px;
  color: var(--ink-muted);
  display: inline-flex;
  gap: 6px;
}
