/* ═══════════════════════════════════════════════════════
   ReFashion — Editorial secondhand marketplace
   Aesthetic: Warm editorial / luxury fashion meets sustainable
   Colors: Cream, charcoal, terracotta accent
═══════════════════════════════════════════════════════ */

:root {
  --cream: #F5F0E8;
  --cream-dark: #EDE6D8;
  --charcoal: #1A1A1A;
  --charcoal-mid: #3D3D3D;
  --charcoal-light: #6B6B6B;
  --terracotta: #C4643A;
  --terracotta-light: #E8845A;
  --sage: #7A8C6E;
  --white: #FFFFFF;
  --border: #D8D0C2;
  --shadow: 0 4px 24px rgba(26,26,26,0.08);
  --shadow-hover: 0 12px 40px rgba(26,26,26,0.16);
  --radius: 4px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }
a { color: inherit; text-decoration: none; }

/* ─── LAYOUT ─────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ─── BUTTONS ────────────────────────────────────────── */
.btn-primary {
  background: var(--charcoal);
  color: var(--cream);
  border: none;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--charcoal-mid); transform: translateY(-1px); }
.btn-primary.large { padding: 16px 36px; font-size: 15px; }
.btn-primary.full { width: 100%; justify-content: center; margin-top: 8px; padding: 16px; }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-ghost:hover { background: var(--charcoal); color: var(--cream); }
.btn-ghost.large { padding: 16px 36px; font-size: 15px; }
.btn-ghost.full { width: 100%; justify-content: center; margin-top: 8px; padding: 14px; }

.btn-danger {
  background: #c0392b;
  color: white;
  border: none;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-danger:hover { background: #a93226; }

/* ─── HEADER ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo span { color: var(--terracotta); }
.header-nav { display: flex; gap: 28px; flex: 1; }
.header-nav a {
  font-size: 14px;
  color: var(--charcoal-light);
  font-weight: 400;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.header-nav a:hover { color: var(--charcoal); }

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(196, 100, 58, 0.08);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: var(--terracotta); }
.hero-sub {
  font-size: 17px;
  color: var(--charcoal-light);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 40px;
  background: var(--white);
  min-width: 200px;
}
.stat { text-align: center; padding: 20px 0; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal-light);
}
.stat-divider { height: 1px; background: var(--border); }

/* ─── CATEGORY BAR ───────────────────────────────────── */
.category-bar {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.category-bar .container { display: flex; align-items: center; gap: 16px; }
.category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }
.cat-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--charcoal-light);
  padding: 7px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  border-radius: 100px;
  transition: var(--transition);
  white-space: nowrap;
}
.cat-btn:hover { border-color: var(--charcoal); color: var(--charcoal); }
.cat-btn.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--cream);
  font-weight: 500;
}
.search-box { position: relative; flex-shrink: 0; }
.search-box input {
  border: 1.5px solid var(--border);
  background: var(--white);
  padding: 8px 16px 8px 36px;
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: 100px;
  width: 220px;
  outline: none;
  transition: var(--transition);
  color: var(--charcoal);
}
.search-box input:focus { border-color: var(--charcoal); }
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--charcoal-light);
  pointer-events: none;
}

/* ─── PRODUCT GRID ───────────────────────────────────── */
main.container { padding-top: 48px; padding-bottom: 80px; }
.grid-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 32px;
}
.grid-header h2 { font-size: 28px; font-weight: 700; }
.grid-count { font-size: 14px; color: var(--charcoal-light); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* ─── PRODUCT CARD ───────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--charcoal);
}
.card-images {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--cream-dark);
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.4s ease;
  position: absolute;
  inset: 0;
}
.card-img.secondary { opacity: 0; }
.product-card:hover .card-img.primary { opacity: 0; }
.product-card:hover .card-img.secondary { opacity: 1; }
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--charcoal);
  color: var(--cream);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  z-index: 2;
}
.card-badge.ai-processing { background: var(--terracotta); }
.card-id {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(26,26,26,0.7);
  color: white;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
  font-family: monospace;
}
.card-body { padding: 16px; }
.card-category {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  margin-bottom: 6px;
}
.card-desc {
  font-size: 14px;
  color: var(--charcoal-light);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
}
.card-location { font-size: 12px; color: var(--charcoal-light); }

/* ─── AI PLACEHOLDER ─────────────────────────────────── */
.ai-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cream-dark) 0%, #E8E0D0 100%);
  color: var(--charcoal-light);
  gap: 8px;
  font-size: 13px;
}
.ai-placeholder .spin { animation: spin 1.5s linear infinite; display: inline-block; font-size: 24px; }

/* ─── LOADING / EMPTY ────────────────────────────────── */
.loading-state, .empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 0;
  color: var(--charcoal-light);
  font-size: 15px;
}
.spinner {
  width: 32px; height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--charcoal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── PAGINATION ─────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
}
.page-btn:hover, .page-btn.active {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}

/* ─── MODAL ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--cream);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 520px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-wide { max-width: 860px; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--charcoal-light);
  padding: 8px;
  line-height: 1;
  border-radius: 50%;
  transition: var(--transition);
}
.modal-close:hover { background: var(--cream-dark); color: var(--charcoal); }
.modal-title { font-family: var(--font-display); font-size: 28px; margin-bottom: 8px; }
.modal-sub { font-size: 14px; color: var(--charcoal-light); margin-bottom: 28px; line-height: 1.5; }

/* ─── FORMS ──────────────────────────────────────────── */
.form-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal-light);
  margin: 24px 0 12px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.single { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--charcoal); }
.form-group input, .form-group select, .form-group textarea {
  border: 1.5px solid var(--border);
  background: var(--white);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: var(--radius);
  outline: none;
  transition: var(--transition);
  color: var(--charcoal);
}
.form-group input:focus, .form-group select:focus { border-color: var(--charcoal); }
.form-group small { font-size: 12px; color: var(--charcoal-light); }

/* ─── UPLOAD ZONE ────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 24px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--charcoal);
  background: var(--cream-dark);
}
.upload-placeholder { pointer-events: none; }
.upload-icon { font-size: 36px; margin-bottom: 12px; }
.upload-placeholder p { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.upload-placeholder span { font-size: 12px; color: var(--charcoal-light); }
.image-preview {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 4px;
}
.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(245,240,232,0.4);
  border-top-color: var(--cream);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* ─── DETAIL MODAL ───────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Image container — clips white borders from AI generation */
.detail-img-wrapper {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 8px;
  background: var(--cream-dark);
}
.detail-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.detail-img-thumb {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
  border: 2px solid transparent;
}
.detail-img-thumb.active, .detail-img-thumb:hover {
  opacity: 1;
  border-color: var(--charcoal);
}
.thumb-hint { font-size: 11px; color: var(--charcoal-light); margin-top: 4px; }

.detail-images { display: flex; flex-direction: column; gap: 12px; }
.detail-info { padding-top: 8px; }

.detail-id {
  font-family: monospace;
  font-size: 12px;
  color: var(--charcoal-light);
  background: var(--cream-dark);
  padding: 4px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 16px;
}
.detail-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--terracotta);
  margin-bottom: 12px;
}

/* Popis produktu — lepšie formátovanie */
.detail-description { margin-bottom: 4px; }
.detail-desc-main {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.detail-desc-sub {
  font-size: 14px;
  color: var(--charcoal-light);
  line-height: 1.6;
}

.detail-price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 20px 0;
}
.detail-price span { font-size: 20px; font-weight: 400; }

.detail-meta {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 4px;
  margin-bottom: 20px;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.meta-row:last-child { border-bottom: none; }
.meta-label { color: var(--charcoal-light); }
.meta-value { font-weight: 500; }

/* Akčné tlačidlá v detaile */
.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--charcoal);
  color: var(--cream);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.btn-contact:hover { background: var(--charcoal-mid); transform: translateY(-1px); }

.btn-manage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.btn-manage:hover { border-color: var(--charcoal); background: var(--cream-dark); }

.detail-email {
  font-size: 13px;
  color: var(--charcoal-light);
  text-align: center;
  padding: 8px;
  background: var(--cream-dark);
  border-radius: var(--radius);
}
.detail-email strong { color: var(--charcoal); }

/* ─── MANAGE MODAL ───────────────────────────────────── */
.manage-buttons { display: flex; gap: 12px; margin-top: 16px; }
hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.msg {
  margin-top: 12px;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  display: none;
}
.msg.success { background: #d4edda; color: #155724; display: block; }
.msg.error { background: #f8d7da; color: #721c24; display: block; }

/* ─── FAB ────────────────────────────────────────────── */
.fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  z-index: 200;
}
.fab:hover { background: var(--charcoal); box-shadow: var(--shadow-hover); transform: scale(1.05); }

/* ─── FOOTER ─────────────────────────────────────────── */
footer { background: var(--charcoal); color: var(--cream); padding: 48px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-brand .logo { font-size: 20px; }
.footer-brand p { font-size: 14px; color: rgba(245,240,232,0.6); margin-top: 8px; max-width: 280px; }
.footer-note p { font-size: 13px; color: rgba(245,240,232,0.5); margin: 4px 0; }

/* ─── SUCCESS SCREEN ─────────────────────────────────── */
.success-screen { text-align: center; padding: 20px 0; }
.success-icon { font-size: 56px; margin-bottom: 16px; }
.success-screen h3 { font-family: var(--font-display); font-size: 28px; margin-bottom: 12px; }
.success-screen p { color: var(--charcoal-light); margin-bottom: 8px; font-size: 15px; }
.success-id {
  font-family: monospace;
  font-size: 28px;
  font-weight: 700;
  background: var(--cream-dark);
  border: 2px solid var(--charcoal);
  padding: 12px 24px;
  border-radius: 8px;
  display: inline-block;
  margin: 16px 0;
  letter-spacing: 0.1em;
}
.success-note {
  font-size: 13px;
  color: var(--charcoal-light);
  background: rgba(196,100,58,0.08);
  border-left: 3px solid var(--terracotta);
  padding: 12px 16px;
  text-align: left;
  border-radius: 0 4px 4px 0;
  margin: 16px 0;
}

/* ─── FILTER PANEL ───────────────────────────────────── */
.filter-toggle { flex-shrink: 0; padding: 8px 16px; font-size: 13px; }
.filter-panel {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  animation: slideDown 0.2s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.filter-grid { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.filter-group { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.filter-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--charcoal-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.filter-group input, .filter-group select {
  border: 1.5px solid var(--border);
  background: var(--cream);
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: var(--radius);
  outline: none;
  transition: var(--transition);
  color: var(--charcoal);
}
.filter-group input:focus, .filter-group select:focus { border-color: var(--charcoal); }
.filter-reset { justify-content: flex-end; }

/* ─── FACEBOOK SHARE ─────────────────────────────────── */
.btn-facebook {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1877F2;
  color: white;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  text-decoration: none;
  margin-top: 16px;
  transition: var(--transition);
  justify-content: center;
}
.btn-facebook:hover { background: #0d65d9; transform: translateY(-1px); }

/* ─── SELLER PROFILE MODAL ───────────────────────────── */
.seller-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.seller-avatar {
  width: 64px; height: 64px;
  background: var(--charcoal);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  flex-shrink: 0;
}
.seller-name { font-family: var(--font-display); font-size: 26px; margin-bottom: 4px; }
.seller-meta { font-size: 14px; color: var(--charcoal-light); margin-bottom: 6px; }
.seller-rating { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.stars { color: var(--terracotta); font-size: 18px; letter-spacing: 2px; }
.seller-listings { margin-bottom: 32px; }
.seller-listings h3, .seller-ratings h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 16px;
}
.product-grid.mini {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

/* ─── RATINGS ────────────────────────────────────────── */
.seller-ratings { border-top: 1px solid var(--border); padding-top: 24px; }
.rating-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.rating-item .stars { font-size: 16px; }
.rating-item p { font-size: 14px; margin: 4px 0; color: var(--charcoal-mid); }
.rating-item small { font-size: 12px; color: var(--charcoal-light); }
.no-ratings { color: var(--charcoal-light); font-size: 14px; }
.add-rating { margin-top: 20px; background: var(--cream-dark); border-radius: 8px; padding: 20px; }
.add-rating h4 { font-size: 16px; margin-bottom: 12px; }
.star-select { display: flex; gap: 8px; margin-bottom: 12px; }
.star-btn {
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: 100px;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.star-btn.active, .star-btn:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: white;
}
.add-rating textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  background: var(--white);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: var(--radius);
  outline: none;
  resize: vertical;
  margin-bottom: 12px;
  color: var(--charcoal);
}
.add-rating textarea:focus { border-color: var(--charcoal); }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px; }
  .hero-stats { flex-direction: row; padding: 16px; min-width: unset; }
  .stat-divider { width: 1px; height: auto; }
  .form-row { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-actions { grid-template-columns: 1fr; }
  .modal { padding: 24px; }
  .header-nav { display: none; }
  .footer-inner { flex-direction: column; }
  .search-box input { width: 160px; }
}

/* ─── HEADER RIGHT + USER NAV ───────────────────────────── */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.user-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}
.user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
}
.btn-logout {
  font-size: 12px;
  color: var(--charcoal-light);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 100px;
  transition: var(--transition);
}
.btn-logout:hover {
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-google-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--white);
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-google-login:hover {
  border-color: var(--charcoal);
  box-shadow: var(--shadow);
}

/* ─── CONTACT SECTION IN DETAIL ─────────────────────────── */
.detail-contacts {
  margin-bottom: 16px;
}
.contact-full {
  background: var(--cream-dark);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.contact-icon { font-size: 16px; }
.contact-link {
  color: var(--charcoal);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}
.contact-link:hover {
  color: var(--terracotta);
  text-decoration: underline;
}
.contact-locked {
  background: var(--cream-dark);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-row.masked {
  opacity: 0.5;
  font-size: 14px;
  filter: blur(2px);
  user-select: none;
}
.btn-unlock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  transition: var(--transition);
  margin-top: 4px;
}
.btn-unlock:hover {
  border-color: var(--charcoal);
  box-shadow: var(--shadow);
}

/* ─── PSC NEARBY FILTER ──────────────────────────────────── */
.psc-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.psc-nearby-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--charcoal-light);
  white-space: nowrap;
  cursor: pointer;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* ─── HERO STATS MOBILE ──────────────────────────────────── */
@media (max-width: 600px) {
  .hero-stats {
    flex-direction: row;
    padding: 12px 16px;
    min-width: unset;
    justify-content: space-around;
  }
  .stat { padding: 8px 4px; }
  .stat-num { font-size: 24px; }
  .stat-divider { width: 1px; height: auto; align-self: stretch; }
  .header-nav { display: none; }
  .user-name { display: none; }
}
