/* ================================================================
   C-Hub — Style Sheet
  Palette: business marketplace premium, corporate blue & gold
   ================================================================ */

/* ── CSS Custom Properties ──────────────────────────────────── */
:root {
  --bg-base: #07111f;
  --bg-card: rgba(255, 255, 255, 0.045);
  --bg-card-hover: rgba(255, 255, 255, 0.075);
  --bg-input: rgba(255, 255, 255, 0.055);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(216, 168, 63, 0.42);

  --text-primary: rgba(255, 255, 255, 0.94);
  --text-secondary: rgba(255, 255, 255, 0.66);
  --text-muted: rgba(255, 255, 255, 0.44);
  --text-on-accent: #07111f;

  --accent: #d8a83f;
  --accent-hover: #f0c86f;
  --accent-secondary: #4ea1d3;
  --accent-soft: rgba(216, 168, 63, 0.13);
  --accent-secondary-soft: rgba(78, 161, 211, 0.11);
  --focus-ring: rgba(216, 168, 63, 0.18);
  --shadow-accent: 0 16px 42px rgba(216, 168, 63, 0.18);
  --hero-glow-primary: rgba(216, 168, 63, 0.12);
  --hero-glow-secondary: rgba(78, 161, 211, 0.10);
  --hero-glow-muted: rgba(255, 255, 255, 0.035);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1140px;
  --gutter: 24px;

  --bg-header: rgba(7, 17, 31, 0.88);
  --bg-overlay: rgba(7, 17, 31, 0.97);
  --bg-hover-subtle: rgba(255, 255, 255, 0.06);
  --bg-hover-faint: rgba(255, 255, 255, 0.04);
  --shadow-dropdown: 0 8px 32px rgba(0, 0, 0, 0.4);

  /* Scrollbar */
  --scrollbar-track: rgba(7, 17, 31, 0.65);
  --scrollbar-thumb: rgba(255, 255, 255, 0.15);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.28);
}

/* ── Google Places autocomplete (dark mode) ─────────────────── */
.pac-container {
  background: var(--bg-overlay) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-dropdown) !important;
  font-family: var(--font) !important;
  color: var(--text-primary) !important;
  z-index: 10000 !important;
  line-height: 1.4 !important;
  font-size: 14px !important;
}
.pac-container::after {
  display: none !important;
}
.pac-item {
  border-top: 1px solid var(--border-subtle) !important;
  padding: 8px 12px !important;
  color: var(--text-primary) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  line-height: 1.4 !important;
  font-size: 14px !important;
  min-height: 36px !important;
}
.pac-item:hover, .pac-item-selected {
  background: var(--bg-hover-subtle) !important;
}
.pac-item-query {
  color: var(--text-primary) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}
.pac-item-query span {
  color: var(--text-primary) !important;
  font-size: 14px !important;
}
.pac-item > span:last-child {
  color: var(--text-secondary) !important;
  font-size: 13px !important;
}
.pac-icon,
.pac-icon-marker {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  background: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.pac-item .pac-icon {
  display: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.pac-container img {
  display: inline !important;
  max-width: none !important;
}
.pac-logo::after {
  display: none !important;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* ── Scrollbar (Webkit + Blink) ─────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

.btn-primary {
  background: var(--accent);
  color: var(--text-on-accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.logo::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 2px;
  vertical-align: super;
}

.main-nav ul {
  display: flex;
  gap: 20px;
}
.main-nav a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--text-primary);
}
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.header-cta { flex-shrink: 0; margin-right: 10px; }

/* Header search */
.header-search {
  display: flex;
  align-items: center;
  position: relative;
  margin: 0 12px 0 0;
  flex-shrink: 1;
  min-width: 0;
}

.header-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  flex-shrink: 0;
}
.header-search-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-hover-subtle);
  border-color: var(--border-hover);
}

.header-search-form {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  z-index: 120;
}

.header-search.open .header-search-form {
  display: block;
}

.header-search.open .header-search-toggle {
  color: var(--accent);
  border-color: var(--accent);
}

.header-search-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-overlay);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-dropdown);
  outline: none;
  transition: border-color var(--transition);
}
.header-search-input::placeholder {
  color: var(--text-muted);
}
.header-search-input:focus {
  border-color: var(--accent);
}

/* Header actions group */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.header-icon-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover-subtle);
}

/* Language switcher */
.lang-switcher { position: relative; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  transition: border-color var(--transition), background var(--transition);
}
.lang-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover-faint);
}
.lang-chevron {
  transition: transform var(--transition);
}
.lang-switcher.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--bg-overlay);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 0;
  z-index: 110;
  box-shadow: var(--shadow-dropdown);
}
.lang-switcher.open .lang-dropdown {
  display: flex;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 16px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.85rem;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  text-align: left;
}
.lang-option:hover {
  color: var(--text-primary);
  background: var(--bg-hover-subtle);
}
.lang-option.active {
  color: var(--accent);
}

.lang-flag { font-size: 1.1rem; }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}
.mobile-toggle span {
  display: block;
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 9px; }
.mobile-toggle span:nth-child(3) { top: 18px; }

.mobile-toggle[aria-expanded="true"] span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}
.hero-small {
  padding: 140px 0 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 28%, var(--hero-glow-primary) 0%, transparent 70%),
    radial-gradient(ellipse 50% 42% at 78% 62%, var(--hero-glow-secondary) 0%, transparent 72%),
    radial-gradient(ellipse 38% 46% at 50% 8%, var(--hero-glow-muted) 0%, transparent 62%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  margin-bottom: 20px;
}

.accent-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════
   SECTIONS (generic)
   ══════════════════════════════════════════════════════════════ */
.section {
  padding: 100px 0;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 12px;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
}

/* ══════════════════════════════════════════════════════════════
   TRENDING BOXES
   ══════════════════════════════════════════════════════════════ */
.trending-section { padding-top: 32px; }

.trending-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.trending-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.trending-box-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.trending-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trending-tag {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}

.trending-tag:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--text-on-accent);
}

/* ══════════════════════════════════════════════════════════════
   TOP BOUGHT PRODUCTS
   ══════════════════════════════════════════════════════════════ */
.top-bought-section { padding-top: 0; }

.product-grid.top-bought-grid {
  grid-template-columns: repeat(5, 1fr);
}

/* ══════════════════════════════════════════════════════════════
   AD SPACES
   ══════════════════════════════════════════════════════════════ */

/* Layout: main content + sidebar */
.category-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

/* Top horizontal banner */
.ad-banner-top {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
}

.ad-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ad-placeholder-h {
  width: 100%;
  min-height: 120px;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Vertical ad placeholder (sidebar) */
.ad-placeholder-v {
  width: 100%;
  min-height: 600px;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Sticky sidebar (desktop) */
.ad-sidebar-desktop {
  display: block;
}

.ad-sidebar-sticky {
  position: sticky;
  top: 90px;
}

/* Mobile version of sidebar ad (hidden on desktop) */
.ad-sidebar-mobile {
  display: none;
}

/* ══════════════════════════════════════════════════════════════
   CATEGORIE GRID
   ══════════════════════════════════════════════════════════════ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  position: relative;
}
.cat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.cat-icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--accent-secondary);
}

.cat-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.cat-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.cat-arrow {
  display: inline-block;
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--accent);
  transition: transform var(--transition);
}
.cat-card:hover .cat-arrow { transform: translateX(4px); }

/* ══════════════════════════════════════════════════════════════
   VANTAGGI GRID
   ══════════════════════════════════════════════════════════════ */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.adv-card {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  text-align: center;
}

.adv-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.adv-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.adv-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   COME FUNZIONA — STEPS
   ══════════════════════════════════════════════════════════════ */
.how-it-works {
  background:
    radial-gradient(ellipse 50% 45% at 70% 50%, var(--accent-secondary-soft) 0%, transparent 70%),
    var(--bg-base);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.step-card {
  padding: 32px 24px;
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-on-accent);
  background: var(--accent);
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   CTA FINALE
   ══════════════════════════════════════════════════════════════ */
.final-cta {
  background:
    radial-gradient(ellipse 55% 50% at 50% 50%, var(--hero-glow-primary) 0%, transparent 70%),
    var(--bg-base);
}

/* ══════════════════════════════════════════════════════════════
   LIVE SCORE + CONTENT PROTECTION
   ══════════════════════════════════════════════════════════════ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.live-score-section,
.trust-section {
  padding-top: 72px;
}

.score-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.score-meta-row time {
  color: var(--text-primary);
  font-weight: 600;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.score-card,
.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.score-card {
  min-height: 210px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.score-card--highlight {
  background: linear-gradient(160deg, var(--accent-soft), var(--bg-card));
  border-color: var(--border-hover);
}

.score-card-label,
.trust-card-index {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.score-card strong {
  display: block;
  margin: 18px 0 10px;
  color: var(--text-primary);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.05;
}

.score-card p,
.score-note p,
.trust-card p,
.trust-intro p,
.trust-action-band p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.score-note {
  max-width: 760px;
  margin: 34px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--border-subtle);
}

.score-note h2,
.trust-intro h2,
.trust-action-band h2 {
  margin-bottom: 10px;
  color: var(--text-primary);
  font-size: 1.35rem;
  line-height: 1.25;
}

.inline-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.inline-link:hover {
  color: var(--accent-hover);
}

.trust-layout {
  display: grid;
  gap: 34px;
}

.trust-intro {
  max-width: 760px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-card {
  min-height: 230px;
  padding: 24px;
}

.trust-card h3 {
  margin: 18px 0 10px;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.35;
}

.trust-action-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-secondary-soft));
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
}

.final-cta-inner {
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.final-cta p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* ══════════════════════════════════════════════════════════════
   CATEGORY PLACEHOLDER
   ══════════════════════════════════════════════════════════════ */
.category-placeholder {
  padding: 60px 0;
}

.placeholder-box {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  max-width: 540px;
  margin: 0 auto;
}

.placeholder-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 20px;
  color: var(--accent-secondary);
}

.placeholder-box h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.placeholder-box p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   PRODUCT GRID + CARDS
   ══════════════════════════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.products-showcase .product-grid {
  grid-template-columns: repeat(5, 1fr);
}

.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-primary);
}

.product-card:hover .product-card-img {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}

.product-card-img {
  position: relative;
  width: 100%;
  padding-top: 130%; /* 10:13 portrait aspect ratio */
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-no-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.product-card-body {
  padding: 10px 2px 0;
}

.product-card-title {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.products-showcase {
  padding-top: 40px;
  padding-bottom: 0;
}

/* ══════════════════════════════════════════════════════════════
   SELLER PROFILE
   ══════════════════════════════════════════════════════════════ */
.seller-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  text-align: left;
  justify-content: flex-start;
  max-width: var(--container);
}

.seller-avatar-wrap {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
}

.seller-avatar-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}

.seller-avatar-initials {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}

.seller-info {
  min-width: 0;
}

.seller-name {
  font-size: 2rem;
  margin: 0 0 4px;
  line-height: 1.2;
}

.seller-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.seller-count {
  color: var(--text-muted);
  font-weight: 400;
}

.follow-btn {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.follow-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.follow-btn--active {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.follow-btn--active:hover {
  background: var(--accent-soft);
}

.follow-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.follow-btn-icon {
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-col ul a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── Footer store badges ────────────────────────────────────── */
.footer-store-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.store-coming-soon {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0;
}

.store-badge img {
  height: 40px;
  width: auto;
  border-radius: 6px;
}

/* ── Footer social icons ────────────────────────────────────── */
.footer-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-icon {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-social-icon:hover {
  color: var(--accent);
}

/* ── Footer legal links ─────────────────────────────────────── */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 20px;
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--accent);
}

/* ── Footer language switcher ───────────────────────────────── */
.footer-lang-switcher {
  position: relative;
}

.footer-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.85rem;
  transition: border-color var(--transition), background var(--transition);
}

.footer-lang-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover-faint);
}

.footer-lang-label {
  font-size: 0.85rem;
}

.footer-lang-dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  background: var(--bg-overlay);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 0;
  z-index: 110;
  box-shadow: var(--shadow-dropdown);
}

.footer-lang-switcher.open .footer-lang-dropdown {
  display: flex;
}

.footer-lang-switcher.open .lang-chevron {
  transform: rotate(180deg);
}

/* ══════════════════════════════════════════════════════════════
   AUTH (LOGIN / REGISTER)
   ══════════════════════════════════════════════════════════════ */
.section-auth {
  padding-top: 48px;
  padding-bottom: 48px;
}

.section-auth.profile-section {
  padding-top: 140px;
}

.hero-auth {
  padding-bottom: 80px;
}

.hero-auth .hero-content {
  max-width: 100%;
  text-align: center;
}

.hero-auth .hero-sub {
  margin-left: auto;
  margin-right: auto;
}

.hero-auth .auth-card {
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 40px 36px 32px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-hover-faint);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

/* Password toggle wrap */
.input-pw-wrap {
  position: relative;
}
.input-pw-wrap .form-input {
  padding-right: 44px;
}
.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.pw-toggle:hover {
  color: var(--text-primary);
}

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  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='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

select.form-input option {
  background: #fff;
  color: #111;
}

.form-row {
  display: flex;
  align-items: center;
}

.form-row-between {
  justify-content: flex-end;
}

.form-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  transition: color var(--transition);
}

.form-link:hover {
  color: var(--accent-hover);
}

.btn-full {
  width: 100%;
}

.btn-google {
  gap: 10px;
}

.btn-google svg {
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ── Auth card wide (register) ──────────────────────────────── */
.auth-card-wide {
  max-width: 540px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-help {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.form-error {
  display: none;
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 4px;
  line-height: 1.4;
}

.form-input-error {
  border-color: #ef4444 !important;
}

.form-input-error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-check-input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.form-check-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.form-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.5;
}

.form-alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.auth-success {
  text-align: center;
  padding: 20px 0;
}

.auth-success h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.auth-success p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.verify-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.verify-icon.success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.verify-icon.error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* ── Profile page ───────────────────────────────────────────── */
.profile-card {
  text-align: center;
  max-width: 720px;
}

.profile-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: left;
}

.profile-menu-grid .profile-menu {
  height: 100%;
  justify-content: space-between;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.profile-menu-grid .profile-menu-item {
  min-height: 52px;
}

.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: left;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  background: var(--bg-hover-faint);
  border: none;
  width: 100%;
  cursor: pointer;
  font-family: var(--font);
}

.profile-menu-item:hover {
  background: var(--accent);
  color: #fff;
}

.profile-menu-item:hover .profile-menu-arrow {
  color: #fff;
}

.profile-menu-arrow {
  margin-left: auto;
  color: var(--text-muted);
  flex-shrink: 0;
}

.profile-menu-item--danger {
  color: #ef4444;
}

.profile-menu-item--logout,
.profile-menu-item--logout .profile-menu-arrow {
  color: #fff;
}

button.profile-menu-item {
  border: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: left;
}

.profile-menu-item--danger:hover {
  background: #ef4444;
  color: #fff;
}

.profile-menu-item--logout:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 96px 0 48px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s linear 0s;
}
.modal-box {
  background: var(--bg-overlay);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 144px);
  margin: var(--gutter);
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease-out;
}
.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}
.modal-box-wide { max-width: 640px; max-height: 90vh; overflow-y: auto; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover {
  color: var(--text-primary);
}
.modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-footer {
  padding: 16px 24px 24px;
}

.discount-actions-row {
  display: flex;
  gap: 12px;
}
.discount-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font);
  white-space: nowrap;
}
.discount-action-btn:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}
@media (max-width: 480px) {
  .discount-actions-row { flex-direction: column; }
}

/* Complete profile modal */
.cp-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}
.cp-fieldset {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.cp-legend {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0 8px;
}
.cp-social-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}
.cp-social-row + .cp-social-row { border-top: 1px solid var(--border-subtle); }
.cp-social-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}
.cp-social-info {
  display: flex;
  flex-direction: column;
  min-width: 100px;
  flex-shrink: 0;
}
.cp-social-name { font-weight: 600; font-size: 0.92rem; color: var(--text-primary); }
.cp-social-sub { font-size: 0.78rem; color: var(--text-secondary); }
.cp-social-input { flex: 1; min-width: 0; }
.cp-text-block {
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  margin-bottom: 20px;
}
.cp-text-icon { grid-row: 1 / 3; align-self: start; padding-top: 2px; }
.cp-text-meta { display: flex; flex-direction: column; }
.cp-text-label { font-weight: 600; font-size: 0.92rem; color: var(--text-primary); }
.cp-text-sub { font-size: 0.78rem; color: var(--text-secondary); }
.cp-textarea { grid-column: 1 / -1; margin-top: 8px; resize: vertical; }
.cp-textarea-lg { min-height: 100px; }
@media (max-width: 480px) {
  .cp-social-row { flex-wrap: wrap; }
  .cp-social-input { width: 100%; }
}

/* Discount form expand panel */
.discount-form-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.discount-form-inner {
  overflow: hidden;
  min-height: 0;
}
.discount-form-panel.open {
  grid-template-rows: 1fr;
}
.discount-form-panel .profile-field { margin-top: 16px; }
.discount-form-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 20px;
}
.discount-form-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}
.input-suffix-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.input-suffix-wrap .form-input { flex: 1; }
.input-suffix {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.discount-form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease, padding-bottom 0.3s ease;
}
.discount-form-footer.visible {
  max-height: 80px;
  padding-bottom: 24px;
  opacity: 1;
}

.profile-avatar-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
}

.profile-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  border: 2px solid var(--bg-base);
}

.profile-avatar-edit:hover {
  background: var(--accent-hover);
}

.profile-edit-form .form-input {
  width: 100%;
}

.profile-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.profile-username {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.profile-fields {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0;
}

.profile-value {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.profile-actions {
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.profile-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.profile-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-top: 6px;
}

.profile-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.profile-radio input[type="radio"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 8px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0;
  line-height: 1.4;
}

.profile-badge--verified {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
}

.profile-badge--unverified {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

/* ── Login form errors ──────────────────────────────────────── */
.field-error {
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 4px;
}

.form-input.error {
  border-color: #ef4444;
}

.form-banner {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

.form-banner-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.form-banner-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Post Product page ──────────────────────────────────────── */
.post-product-card {
  max-width: 600px;
}

/* ── Category label + search ───────────────────────────────── */
.category-label-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  margin-bottom: 6px;
}

.category-label-row .category-label {
  margin: 0;
  transition: opacity 0.25s ease;
}

.category-label-row.searching .category-label {
  opacity: 0;
  pointer-events: none;
}

.category-search {
  position: absolute;
  top: 0;
  right: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.category-search-input {
  width: 0;
  max-width: 0;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--bg-elevated, rgba(255, 255, 255, 0.04));
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  opacity: 0;
  transform-origin: left center;
  transition: width 0.32s ease, max-width 0.32s ease, padding 0.32s ease, opacity 0.2s ease 0.05s, border-color 0.2s ease;
}

.category-label-row.searching .category-search {
  left: 0;
  width: 100%;
}

.category-label-row.searching .category-search-input {
  width: calc(100% - 44px);
  max-width: calc(100% - 44px);
  padding: 0 14px;
  opacity: 1;
  border-color: var(--border-subtle);
  margin-right: 8px;
}

.category-label-row.searching .category-search-input:focus {
  border-color: var(--accent);
}

.category-search-toggle {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.category-search-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.category-search-icon-close { display: none; }
.category-label-row.searching .category-search-icon-search { display: none; }
.category-label-row.searching .category-search-icon-close { display: inline-block; }

.product-type-btn.hidden-by-search {
  display: none !important;
}

/* ── Product type switch ────────────────────────────────────── */
.product-type-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-type-btn {
  flex: 1 1 calc(25% - 12px);
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  white-space: nowrap;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.product-type-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.product-type-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.photo-upload-zone {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}

.photo-upload-zone:hover,
.photo-upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--bg-hover-faint);
}

.photo-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}

.photo-upload-placeholder svg {
  color: var(--text-muted);
  opacity: 0.6;
}

.photo-upload-hint {
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 320px;
  color: var(--text-muted);
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 0;
}

.photo-preview-grid:empty {
  display: none;
}

.photo-preview-grid + .photo-upload-placeholder { display: none; }
.photo-preview-grid:empty + .photo-upload-placeholder { display: flex; }

.photo-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  transition: background var(--transition);
}

.photo-preview-remove:hover {
  background: #ef4444;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: var(--font);
}

.form-input-price {
  max-width: 200px;
}

.form-select {
  width: 100%;
}

.form-hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 6px;
  min-height: 1.2em;
}

/* ── Condition trigger button ───────────────────────────────── */
.condition-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-family: var(--font);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.condition-trigger:hover {
  border-color: var(--border-hover);
}
.condition-trigger.has-value {
  color: var(--text-primary);
}

/* ── Condition modal ────────────────────────────────────────── */
.condition-modal-box {
  max-width: 500px;
}
.condition-modal-body {
  gap: 0 !important;
  padding: 8px 0 16px !important;
}
.condition-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition);
}
.condition-option:last-child {
  border-bottom: none;
}
.condition-option:hover {
  background: var(--bg-hover-subtle);
}
.condition-option.selected {
  background: var(--bg-hover-faint);
}
.condition-option-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.condition-option-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.condition-option-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.condition-radio {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-subtle);
  border-radius: 50%;
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
}
.condition-option.selected .condition-radio {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 5px var(--accent);
}

/* ── Subcategory sliding modal ─────────────────────────────── */
.subcat-slider-box {
  overflow: hidden;
  padding: 0;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.subcat-slider {
  display: flex;
  width: 500%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: flex-start;
}
.subcat-slider.level-2 {
  transform: translateX(-20%);
}
.subcat-slider.level-3 {
  transform: translateX(-40%);
}
.subcat-slider.level-4 {
  transform: translateX(-60%);
}
.subcat-slider.level-5 {
  transform: translateX(-80%);
}
.subcat-panel {
  width: 20%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.subcat-panel .modal-header {
  padding: 20px 24px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.subcat-panel .modal-body {
  overflow-y: auto;
  max-height: 75vh;
  user-select: none;
  -webkit-user-select: none;
}
.subcat-back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.subcat-back svg {
  flex-shrink: 0;
}
.subcat-search-wrap {
  padding: 4px 24px 8px;
}
.subcat-search {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}
.subcat-search:focus {
  border-color: var(--accent);
}
.subcat-search::placeholder {
  color: var(--text-muted);
}
.subcat-chevron {
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.4;
}
.subcat-l1-item,
.subcat-l2-item,
.subcat-l3-item {
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
.subcat-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.subcat-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

/* ── ISBN modal ────────────────────────────────────────────── */
.isbn-modal-box {
  max-width: 460px;
}
.isbn-modal-body {
  padding: 20px 24px 24px !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.isbn-input-row {
  display: flex;
  gap: 8px;
}
.isbn-input-row .form-input {
  flex: 1;
  font-size: 1rem;
  letter-spacing: 0;
}
.isbn-example {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-hover-faint);
}
.isbn-example-number {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.isbn-barcode-icon {
  color: var(--text-primary);
  opacity: 0.8;
  max-width: 100%;
  height: auto;
}
.isbn-hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.isbn-scan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 1.05rem;
}
.isbn-submit-btn {
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 1.05rem;
}
.isbn-scanner-area {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}
.isbn-scanner-area video {
  width: 100% !important;
  border-radius: var(--radius-md);
}

.post-product-link {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.post-product-link p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.direct-link-url {
  display: inline-block;
  font-size: 0.85rem;
  padding: 6px 14px;
  background: var(--bg-hover-faint);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--accent);
  word-break: break-all;
  user-select: all;
}

/* ── Footer controls (lang + theme) ─────────────────────────── */

/* ══════════════════════════════════════════════════════════════
   MANAGE SHOP
   ══════════════════════════════════════════════════════════════ */
.manage-shop-section { padding-top: 160px; }
.manage-shop-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.manage-shop-discounts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
}
@media (max-width: 768px) {
  .manage-shop-section { padding-top: 140px; padding-bottom: 48px; }
  .manage-shop-actions { width: 100%; }
  .manage-shop-actions .btn { width: 100%; }
  .manage-shop-discounts-btn { padding: 16px 20px; }
  .manage-card-row .manage-btn--delete span { display: none; }
  .manage-card-row .manage-btn--delete { flex: 0 0 44px; padding: 8px 0; }
}

/* ══════════════════════════════════════════════════════════════
/* ══════════════════════════════════════════════════════════════
   HELP CENTER
   ══════════════════════════════════════════════════════════════ */
.help-section { padding-top: 100px; padding-bottom: 64px; }
.help-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.help-sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.help-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.help-sidebar-link {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.help-sidebar-link:hover { color: var(--text-primary); background: var(--bg-input); }
.help-sidebar-link.active { color: var(--accent); font-weight: 600; }
.help-heading {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 28px;
}
.help-generic-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.help-search-wrap {
  position: relative;
  margin-bottom: 36px;
}
.help-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}
.help-search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
}
.help-search-input:focus { border-color: var(--accent); }
.help-search-input::placeholder { color: var(--text-secondary); }
.help-topics-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.help-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.help-topic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--bg-overlay);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  transition: border-color 0.15s, transform 0.15s;
}
.help-topic-card:hover { border-color: var(--accent); transform: translateY(-2px); }
@media (max-width: 768px) {
  .help-layout { grid-template-columns: 1fr; gap: 24px; }
  .help-sidebar { display: none; }
}
@media (max-width: 480px) {
  .help-topics-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   MY ORDERS
   ══════════════════════════════════════════════════════════════ */
.my-orders-section { padding-top: 100px; }
.my-orders-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.my-orders-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}
.my-orders-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font);
}
.my-orders-tab:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}
.my-orders-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.my-orders-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 64px 24px;
  color: var(--text-muted);
  text-align: center;
}
.my-orders-empty svg { opacity: 0.4; }
.my-orders-empty p { font-size: 0.95rem; }

@media (max-width: 480px) {
  .my-orders-tabs { flex-direction: column; }
  .my-orders-tab { justify-content: center; }
}

.manage-shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.manage-shop-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}
.manage-shop-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.manage-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ── Product Detail Page ────────────────────────────────────── */
.product-detail-section { padding: 100px 0 60px; }

.product-detail {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 48px;
  align-items: start;
}

/* Gallery */
.pd-gallery { position: sticky; top: 100px; }

.pd-main-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pd-no-img {
  color: var(--text-muted);
}
.pd-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
}
.pd-thumb {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  background: var(--bg-card);
  cursor: pointer;
  padding: 0;
  transition: border-color var(--transition);
}
.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-thumb:hover,
.pd-thumb--active {
  border-color: var(--accent);
}

/* Info Panel */
.pd-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.pd-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.pd-breadcrumb a:hover { color: var(--accent); }
.pd-breadcrumb-sep { margin: 0 6px; }

.pd-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 8px;
}
.pd-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.pd-price-block { margin-bottom: 20px; }
.pd-fees {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.pd-fees svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Quantity selector */
.pd-quantity { margin-bottom: 20px; }
.pd-quantity-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.pd-quantity-select {
  appearance: auto;
  padding: 8px 12px;
  font-size: 0.92rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  min-width: 72px;
}
.pd-quantity-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.pd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.pd-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
}
.pd-badge--digital {
  background: var(--accent-secondary-soft);
  color: var(--accent-secondary);
}
.pd-badge--physical {
  background: var(--accent-soft);
  color: var(--accent);
}
.pd-category-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* Description */
.pd-desc { margin-bottom: 24px; }
.pd-desc-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.pd-desc-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-wrap;
}

/* Shipping */
.pd-shipping {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}
.pd-shipping svg { flex-shrink: 0; color: var(--accent-secondary); }

/* Condition */
.pd-condition {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}
.pd-condition svg { flex-shrink: 0; color: var(--accent-secondary); }

/* Seller Card (below product detail grid) */
.pd-seller-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 580px;
  margin: 48px auto 0;
  padding: 36px 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}
.pd-seller-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
}
.pd-seller-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-seller-card-initials {
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
}
.pd-seller-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.pd-seller-card-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.pd-seller-card-dot { font-weight: 700; }
.pd-seller-card-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.pd-seller-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.pd-seller-card-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.pd-seller-card-btn--follow {
  border-color: var(--accent);
  color: var(--accent);
}
.pd-seller-card-btn--follow:hover {
  background: var(--accent-soft);
}
.pd-seller-card-btn--following {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.pd-seller-card-btn--following:hover {
  background: var(--accent-hover);
}
.pd-seller-card-followers {
  font-size: 0.82rem;
  color: var(--accent);
}

/* More from this shop */
.pd-more-section { padding: 0 0 48px; }
.pd-more-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}
.pd-more-header .section-title { margin-bottom: 0; }
.pd-more-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.pd-more-link:hover { color: var(--accent-hover); }
.pd-more-grid {
  grid-template-columns: repeat(4, 1fr);
}
/* Card fees line */
.product-card-fees {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.product-card-fees svg {
  color: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .pd-more-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-seller-card { margin-top: 32px; padding: 28px 20px 24px; }
  .pd-seller-card-actions { flex-wrap: wrap; justify-content: center; }
}

/* Action Buttons */
.pd-actions-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.pd-btn-cart {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 40px;
  background: var(--text-primary);
  color: var(--bg-body);
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
}
.pd-btn-cart:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.pd-btn-buy {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 40px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.pd-btn-buy:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.pd-btn-buy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Buy + Follow row */
.pd-actions-pair {
  display: flex;
  gap: 10px;
}
.pd-btn-follow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--accent);
  border-radius: 40px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.pd-btn-follow:hover {
  background: var(--accent-soft);
}
.pd-btn-follow--active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.pd-btn-follow--active:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Small action buttons row */
.pd-actions-row {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}
.pd-sm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.pd-sm-btn:hover:not(:disabled) {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.pd-sm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pd-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Product Detail Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pd-gallery { position: static; }
  .pd-title { font-size: 1.4rem; }
  .pd-price { font-size: 1.3rem; }
  .pd-actions-row { flex-wrap: wrap; }
}

.manage-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.manage-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.manage-card-img {
  display: block;
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: var(--surface-1);
}
.manage-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.manage-card-img .product-card-no-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.manage-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.manage-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.manage-card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.manage-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}
.manage-card-row {
  display: flex;
  gap: 8px;
}
.manage-card-row .manage-btn {
  flex: 1;
}
.manage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
}
.manage-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.manage-btn--delete {
  color: var(--error, #ef4444);
  border-color: color-mix(in srgb, var(--error, #ef4444) 30%, transparent);
}
.manage-btn--delete:hover {
  background: color-mix(in srgb, var(--error, #ef4444) 10%, transparent);
  border-color: var(--error, #ef4444);
  color: var(--error, #ef4444);
}
.manage-btn--edit {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  text-decoration: none;
}
.manage-btn--edit:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: var(--accent);
  color: var(--accent);
}
.manage-btn--promote {
  width: 100%;
  color: var(--text-primary);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  text-decoration: none;
}
.manage-btn--promote:hover {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}

/* Hide lang + theme from header on desktop (shown in footer) */
.header-actions .lang-switcher { display: none; }
.header-actions .theme-toggle { display: none; }

/* Hero post-product CTA — mobile only */
.hero-actions .hero-post-product {
  display: none;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

/* ── Laptop ≤ 1280px: compact nav ─────────────────────────── */
@media (max-width: 1280px) {
  .main-nav ul { gap: 14px; }
  .main-nav a { font-size: 0.8rem; }
  .header-cta { font-size: 0.82rem; padding: 8px 14px; }
}

@media (max-width: 768px) {
  :root { --gutter: 18px; }

  /* ── Header restructure ─────────────────────────────────── */
  .site-header { padding-bottom: 0; }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 0;
  }

  /* Top row: logo left, icons right */
  .logo { order: 1; }
  .mobile-toggle { display: block; order: 3; margin-left: auto; }
  .header-actions { order: 2; margin-left: auto; gap: 2px; }
  .main-nav { order: 5; }

  .header-cta { display: none; }

  /* Show hero post-product CTA on mobile */
  .hero-actions .hero-post-product {
    display: inline-flex;
  }

  /* Search bar — full-width row below logo (Vinted style) */
  .header-search {
    order: 4;
    width: 100%;
    margin: 8px 0 0 0;
    flex-shrink: 0;
  }

  .header-search .header-search-toggle { display: none; }

  .header-search .header-search-form {
    display: block;
    position: static;
    width: 100%;
  }

  .header-search-input {
    background: var(--bg-hover-faint);
    border: 1px solid var(--border-subtle);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 10px 14px;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
  }

  /* Hide search bar when nav is open */
  .site-header.nav-open .header-search { display: none; }

  /* Nav dropdown — fixed panel below header */
  .main-nav {
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0 var(--gutter);
    border-bottom: 1px solid transparent;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s ease, padding .3s ease, opacity .3s ease, border-color .3s ease;
    pointer-events: none;
    z-index: 101;
  }
  .main-nav.open {
    max-height: 400px;
    padding: 20px var(--gutter) 24px;
    border-bottom: 1px solid var(--border-subtle);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav ul { flex-direction: column; gap: 18px; }
  .main-nav a { font-size: 1rem; }

  .header-search-form { right: -60px; width: 280px; }
  .lang-dropdown { right: -40px; }

  /* Footer controls already visible from base styles */

  .hero { padding: 120px 0 60px; }
  .hero-small { padding: 110px 0 40px; }
  .hero-content { text-align: center; margin: 0 auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero h1 { padding: 16px 0; }
  .section { padding: 64px 0; }
  .auth-card { padding: 28px 20px 24px; }
  .auth-card-wide { max-width: 100%; }

  /* Profile page — compact mobile layout */
  .section-auth.profile-section {
    padding-top: 140px;
    padding-bottom: 32px;
  }
  .hero-auth .profile-card,
  .section-auth .profile-card {
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    border: none;
    background: transparent;
    border-radius: 0;
    padding: 8px 12px 20px;
    max-width: none;
  }
  .profile-card .profile-fields {
    gap: 10px;
    margin-bottom: 20px;
    padding-top: 14px;
  }
  .profile-card .profile-menu {
    gap: 4px;
    margin-top: 16px;
    padding-top: 16px;
  }
  .profile-card .profile-menu-grid {
    gap: 0 8px;
    margin-top: 16px;
    padding-top: 16px;
  }
  .profile-card .profile-menu-item {
    padding: 12px 6px;
    gap: 10px;
  }
  .profile-card .profile-row-2 { gap: 10px; }
  .profile-card .profile-username { margin-bottom: 20px; }
  .post-product-card { max-width: 100%; }
  .photo-preview-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .manage-shop-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .manage-shop-title { font-size: 1.4rem; }
  .form-input-price { max-width: 100%; }
  .form-row-2col { grid-template-columns: 1fr; gap: 0; }
  .profile-row-2 { grid-template-columns: 1fr; }
  .profile-menu-grid { grid-template-columns: 1fr; }
  .trending-grid { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .score-card--highlight { grid-column: span 2; }
  .score-meta-row { align-items: flex-start; flex-direction: column; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-action-band { align-items: flex-start; flex-direction: column; }
  .trust-action-band .btn { width: 100%; }
  .category-layout { grid-template-columns: 1fr; }
  .ad-sidebar-desktop { display: none; }
  .ad-sidebar-mobile { display: block; margin-top: 32px; }
  .products-showcase .product-card:nth-child(n+7) { display: none; }
  .top-bought-grid { grid-template-columns: repeat(2, 1fr); }
  .top-bought-grid .product-card:nth-child(n+3) { display: none; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .adv-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .score-card--highlight { grid-column: span 2; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1280px) and (min-width: 1025px) {
  .products-showcase .product-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .score-grid,
  .trust-grid { grid-template-columns: 1fr; }
  .score-card--highlight { grid-column: auto; }
  .score-card,
  .trust-card { min-height: auto; }
}

/* ── Wishlist Heart Button (injected by JS on product cards) ─ */
.wish-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition), transform var(--transition);
}
.product-card:hover .wish-btn,
.wish-btn:focus-visible { opacity: 1; }
.wish-btn--active { opacity: 1; }
.wish-btn:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.1);
}
.wish-btn--active svg {
  fill: #ff4d6d;
  stroke: #ff4d6d;
}

/* ── Product Detail — Save Button ───────────────────────────── */
.pd-wish-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.pd-wish-btn--active {
  border-color: #ff4d6d;
  background: rgba(255, 77, 109, 0.08);
  color: #ff4d6d;
}
.pd-wish-btn--active svg {
  fill: #ff4d6d;
  stroke: #ff4d6d;
}

/* ── Wishlist Page ──────────────────────────────────────────── */
.wishlist-section { padding: 100px 0 60px; }
.wishlist-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.wishlist-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}
.wishlist-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}
.wishlist-empty {
  text-align: center;
  padding: 80px 20px;
}
.wishlist-empty-icon {
  color: var(--text-muted);
  margin-bottom: 20px;
}
.wishlist-empty h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.wishlist-empty p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ── Wishlist grid — always show hearts ──────────────────────── */
.wishlist-grid .wish-btn { opacity: 1; }
