/* public/css/style.css */
/* Identidad visual de "KOREAS". Paleta limpia y elegante inspirada en Shein:
   fondo blanco puro, negro suave para texto, rosa coral como acento principal.
   Tipografía con Playfair Display para títulos grandes y Jost para el resto. */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Jost:wght@300;400;500;600;700&display=swap");

:root {
  --bg: #ffffff;
  --ink: #1c1c1c;
  --surface: #f9f9f9;
  --line: #ebebeb;
  --muted: #999999;
  --accent: #e8175d;          /* rojo-rosa vibrante: botones, precios destacados */
  --accent-2: #e8175d;        /* mismo rojo-rosa */
  --accent-3: #fff0f5;        /* rosa muy pálido: tags, fondos suaves */
  --accent-soft: #fff0f5;
  --accent-ink: #ffffff;
  --radius: 8px;
  --font-display: "Playfair Display", serif;
  --font-body: "Jost", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100vw;
}

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

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

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Barra de utilidad (envios / devoluciones) ---------- */
/* ---------- Utility bar animado (marquee) ---------- */
.utility-bar { display: none; } /* reemplazado en index.ejs */
.utility-bar__inner { display:flex; justify-content:space-between; align-items:center; padding:8px 0; font-size:12px; font-weight:600; }
.utility-bar a { color: var(--accent-2); text-decoration: underline; }

.utility-bar-scroll {
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.utility-bar-track {
  display: inline-block;
  animation: marquee 32s linear infinite;
}
.utility-bar-track span {
  display: inline-block;
  padding: 0 28px;
}
.utility-bar-track span::after {
  content: " ·";
  opacity: 0.35;
  padding-left: 28px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Benefits bar ---------- */
.benefits-bar {
  background: var(--surface);
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  padding: 20px 0;
}
.benefits-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 820px) { .benefits-bar__inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .benefits-bar__inner { grid-template-columns: 1fr; } }
.benefit-item { display:flex; align-items:center; gap:12px; }
.benefit-item__icon { font-size:26px; flex-shrink:0; }
.benefit-item strong { display:block; font-size:13px; }
.benefit-item p { font-size:11.5px; color:var(--muted); margin:2px 0 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--bg);
  margin-top: 60px;
  padding: 52px 0;
}
.cta-banner__inner {
  display:flex; justify-content:space-between; align-items:center;
  gap:24px; flex-wrap:wrap;
}
.cta-banner__title { font-family:var(--font-display); font-size:28px; margin:0 0 8px; text-transform:uppercase; }
.cta-banner__sub { font-size:15px; opacity:0.85; margin:0; max-width:520px; line-height:1.5; }
.cta-banner__btn { background:var(--bg) !important; color:var(--accent) !important; border-color:var(--bg) !important; font-weight:700; }
.cta-banner__btn-sec { border-color:rgba(255,255,255,0.5) !important; color:var(--bg) !important; }
@media (max-width:720px) { .cta-banner__inner { flex-direction:column; text-align:center; } }

/* ---------- Site footer ---------- */
.site-footer { background:var(--ink); color:var(--bg); padding:52px 0 0; }
.site-footer__grid {
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px;
  padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,0.1);
}
@media (max-width:820px) { .site-footer__grid { grid-template-columns:1fr 1fr; } }
@media (max-width:500px) { .site-footer__grid { grid-template-columns:1fr; gap:28px; } }
.site-footer__col h4 { font-size:11px; text-transform:uppercase; letter-spacing:0.08em; color:rgba(255,255,255,0.35); margin:0 0 14px; }
.site-footer__col a { display:block; color:rgba(255,255,255,0.7); font-size:13.5px; margin-bottom:10px; transition:color 0.15s; }
.site-footer__col a:hover { color:var(--accent); }
.site-footer__bottom {
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:8px; padding:18px 0;
  font-size:12px; color:rgba(255,255,255,0.3);
}


/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--ink);
  color: var(--bg);
}
.header__top {
  background: var(--ink);
  color: var(--bg);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  flex-wrap: nowrap;
  min-height: 56px;
}
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bg);
  flex-shrink: 0;
  font-style: italic;
}
.search-form {
  flex: 1;
  display: flex;
  max-width: 440px;
  min-width: 0;
}
.search-form input {
  flex: 1;
  border: none;
  border-radius: 999px 0 0 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-family: inherit;
  min-width: 0;
}
.search-form button {
  border: none;
  background: var(--accent);
  color: var(--bg);
  padding: 0 16px;
  border-radius: 0 999px 999px 0;
  font-size: 14px;
  flex-shrink: 0;
}
.search-form input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bg);
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: auto;
}
.header__actions a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .search-form { max-width: 160px; }
  .logo { font-size: 18px; }
}
.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 999px;
  padding: 8px 14px;
}
.cart-pill:hover { color: var(--bg); }
.cart-pill__count {
  background: var(--bg);
  color: var(--accent);
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 0 4px;
}
@media (max-width: 720px) {
  .search-form { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.hero__layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: center;
}
.hero__content {}

/* Carrusel */
.hero__carousel {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.hero__carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.hero__carousel-slide {
  flex: 0 0 100%;
  height: 320px;
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}
.hero__carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__carousel-slide__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 22px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
}
.hero__carousel-slide__name {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero__carousel-slide__price { margin: 0; font-size: 15px; font-weight: 700; }
.hero__carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.hero__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.hero__dot.active { background: #fff; }

@media (max-width: 900px) {
  .hero__layout { grid-template-columns: 1fr; }
  .hero__carousel { max-height: 220px; }
  .hero__carousel-slide { height: 220px; }
}

/* ---------- Header móvil ---------- */
@media (max-width: 768px) {
  .search-form { display: none; }
  .header__inner {
    gap: 12px;
    padding: 12px 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .header__inner::-webkit-scrollbar { display: none; }
  .header__actions { gap: 8px; font-size: 12px; }
  .logo { font-size: 20px; }
}

.hero__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(40px, 8vw, 84px);
  line-height: 0.95;
  margin: 0 0 16px;
}
.hero__title .hl { color: var(--accent); }
.hero__subtitle {
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--bg); }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.hero__price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  padding: 10px 22px 10px 18px;
  margin-bottom: 28px;
}
.hero__price-badge span.from { font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--accent-2); }
.hero__price-badge strong { font-family: var(--font-display); font-size: 22px; color: var(--bg); }

/* ---------- Categorias en circulo ---------- */
.category-circles {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 36px 0 12px;
}
.category-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 92px;
  text-align: center;
}
.category-circle__image {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  border: 2px solid transparent;
  transition: border-color 0.15s ease;
}
.category-circle:hover .category-circle__image,
.category-circle.active .category-circle__image { border-color: var(--accent); }
.category-circle__image img { width: 100%; height: 100%; object-fit: cover; }
.category-circle__label { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }

/* ---------- Grid de productos ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding-bottom: 64px;
}
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px)  { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (max-width: 560px)  { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ---------- Profile dropdown ---------- */
.profile-dropdown-wrap { position:relative; }
.profile-dropdown-btn {
  display:flex; align-items:center; gap:6px;
  background:none; border:none; cursor:pointer;
  font-family:inherit; font-size:13px; font-weight:600; color:var(--bg);
  padding:6px 10px; border-radius:8px;
}
.profile-dropdown-btn:hover { background:rgba(255,255,255,0.1); }
.profile-dropdown-name { max-width:80px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.profile-dropdown__menu {
  display:none; position:absolute; top:calc(100% + 8px); right:0;
  background:var(--bg); border:1.5px solid var(--line); border-radius:12px;
  box-shadow:0 8px 32px rgba(0,0,0,0.12); z-index:600; min-width:200px; padding:6px;
}
.profile-dropdown-wrap.is-open .profile-dropdown__menu { display:block; }
.profile-dropdown__item {
  display:block; width:100%; text-align:left; padding:10px 14px;
  font-size:13px; font-weight:500; color:var(--ink); border-radius:8px;
  background:none; border:none; cursor:pointer; font-family:inherit;
  transition:background 0.12s;
}
.profile-dropdown__item:hover { background:var(--surface); }
.profile-dropdown__item--admin { color:var(--accent); font-weight:700; }
.profile-dropdown__item--danger { color:#c0392b; }
.profile-dropdown__divider { height:1px; background:var(--line); margin:6px 0; }

.header-icon-btn {
  position:relative; font-size:18px; padding:6px 8px; border-radius:8px;
  display:flex; align-items:center; color:var(--bg); transition:background 0.12s;
}
.header-icon-btn:hover { background:rgba(255,255,255,0.1); }
.header-badge {
  position:absolute; top:-4px; right:-4px;
  background:var(--accent); color:#fff; font-size:10px; font-weight:700;
  min-width:17px; height:17px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  line-height:1;
}

/* ---------- Country picker ---------- */
.country-picker { position:relative; }
.country-picker__btn {
  display:flex; align-items:center; gap:5px;
  background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.25);
  border-radius:8px; padding:5px 10px; cursor:pointer; font-family:inherit; font-size:12px;
  color:var(--bg); white-space:nowrap;
}
.country-picker__btn:hover { background:rgba(255,255,255,0.18); }
.country-picker__currency { font-weight:700; font-size:11px; }
.country-picker__dropdown {
  display:none; position:fixed; top:auto; right:auto;
  background:var(--bg); border:1.5px solid var(--line); border-radius:12px;
  box-shadow:0 12px 40px rgba(0,0,0,0.2); z-index:9999; width:260px;
}
.country-picker.is-open .country-picker__dropdown { display:block; }
.country-picker__list { max-height:300px; overflow-y:auto; padding:8px; }
.country-picker__item {
  display:flex; align-items:center; gap:8px;
  padding:8px 10px; border-radius:8px; cursor:pointer; font-size:13px;
  color: var(--ink);
}
.country-picker__item:hover, .country-picker__item.is-selected { background:var(--accent-soft); }
.country-picker__flag { font-size:18px; flex-shrink:0; }
.country-picker__name { flex:1; }
.country-picker__cur { font-size:11px; font-weight:700; color:var(--muted); }

/* ---------- Variant buttons (Shein style) ---------- */
.variant-group-block { margin-bottom:18px; }
.variant-group-label {
  display:flex; align-items:center; gap:8px;
  font-size:13px; font-weight:700; margin-bottom:8px; color:var(--ink);
}
.variant-group-selected { color:var(--accent); font-weight:400; }
.variant-btn-row { display:flex; flex-wrap:wrap; gap:7px; }
.variant-btn {
  padding:7px 14px; border:1.5px solid var(--line); border-radius:8px;
  background:var(--bg); font-size:13px; font-weight:600; cursor:pointer;
  transition:all 0.15s; font-family:inherit; color:var(--ink);
  min-width:44px; text-align:center;
}
.variant-btn:hover:not(:disabled) { border-color:var(--accent-2); color:var(--accent-2); }
.variant-btn--selected { border-color:var(--accent-2) !important; background:var(--accent-soft) !important; color:var(--accent-2) !important; }
.variant-btn--out { opacity:0.4; cursor:not-allowed; text-decoration:line-through; }

/* variant group editor in vendor form */
.variant-group-editor {
  background:var(--surface); border-radius:10px; padding:14px; margin-bottom:12px;
}

/* ---------- Pestañas de pedidos del vendedor ---------- */
.pedido-tab {
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--muted); font-weight: 600; font-size: 13px;
  cursor: pointer; font-family: inherit;
}
.pedido-tab--active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Step indicator (formulario de proveedor) ---------- */
.step-indicator {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  background: var(--surface); color: var(--muted); border: 2px solid var(--line);
  flex-shrink: 0;
}
.step-indicator--active { background: var(--accent); color: #fff; border-color: var(--accent); }
.step-indicator--done { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Tag de codigo de producto ---------- */
.tag-codigo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff0f5;
  color: #c2185b;
  font-size: 11px;
  font-weight: 700;
  font-family: monospace, monospace;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid #f8bbd0;
  margin-top: 4px;
  cursor: pointer;
  transition: background 0.15s;
  letter-spacing: 0.02em;
}
.tag-codigo:hover { background: #fce4ec; }
.tag-codigo.is-copied { background: #e8f5e9; color: #2e7d32; border-color: #a5d6a7; }
.tag-codigo--alt { background: #fffde7; color: #f57f17; border-color: #fff59d; }
.tag-codigo--alt:hover { background: #fff9c4; }

.tag-envio-gratis {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid #a5d6a7;
  margin-top: 4px;
}
.tag-envio-costo {
  display: inline-block;
  background: #fff3e0;
  color: #e65100;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid #ffcc80;
  margin-top: 4px;
}
.tag-local {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid #a5d6a7;
  margin-top: 4px;
}
.tag-internacional {
  display: inline-block;
  background: #e3f2fd;
  color: #1565c0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid #90caf9;
  margin-top: 4px;
}

/* ---------- Card rating ---------- */
.card__rating { display:flex; align-items:center; gap:4px; margin-top:4px; }
.stars--xs { font-size:11px; color:#f5a623; letter-spacing:1px; }
.card__rating-count { font-size:11px; color:var(--muted); }

.card {
  position: relative;
}
.card__image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 3 / 4;
}
.card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.card:hover .card__image-wrap img { transform: scale(1.04); }
.card__link { display:block; }
.card__vendor {
  display:flex;
  align-items:center;
  gap:7px;
  padding:10px 2px 2px;
  font-size:12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top:8px;
}
.card__vendor:hover { color: var(--accent); }
.card__vendor img {
  width:22px;
  height:22px;
  border-radius:50%;
  object-fit:cover;
  flex-shrink:0;
}
.card__vendor-name { font-weight:600; }

.tag {
  position: absolute;
  top: 12px;
  left: -6px;
  background: var(--accent-3);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  transform: rotate(-4deg);
  border-radius: 4px;
}
.tag-oferta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 9px 12px;
  text-align: center;
}

.card__body { padding-top: 8px; }
.card__name { font-weight: 600; font-size: 12.5px; margin: 0 0 3px; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card__category { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 4px; }
.card__price { font-weight: 700; font-size: 13px; }

/* ---------- Reseñas ---------- */
.stars { color: #f5b400; font-size: 17px; letter-spacing: 2px; }
.stars--sm { font-size: 14px; }
.rating-summary { display:flex; align-items:center; gap:10px; margin-bottom: 18px; }
.rating-summary__count { color: var(--muted); font-size: 14px; }

.review-card { border-bottom: 1px solid var(--line); padding: 18px 0; }
.review-card__header { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin-bottom:6px; }
.review-card__name { font-weight:700; }
.review-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
}
.review-card__date { color: var(--muted); font-size: 12px; margin-left:auto; }
.review-card__body { margin: 6px 0 8px; }
.review-reply {
  background: var(--surface);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 10px;
  font-size: 14px;
}
.review-reply strong { color: var(--accent-2); }
.review-card__actions { display:flex; gap:14px; margin-top:8px; }
.review-card__actions button {
  background:none; border:none; padding:0; font-size:12.5px; font-weight:600; color: var(--muted); cursor:pointer;
}
.review-card__actions button:hover { color: var(--accent); }

.tag--verified {
  background: #ffd23b !important;
  color: var(--ink) !important;
}

/* ---------- Panel del vendedor ---------- */
.vendor-layout { display:flex; gap:32px; align-items:flex-start; }
.vendor-sidebar {
  flex: 0 0 200px;
  display:flex;
  flex-direction:column;
  gap:6px;
  position:sticky;
  top:24px;
}
.vendor-sidebar__link {
  padding:12px 16px;
  border-radius:10px;
  color:var(--ink);
  font-weight:600;
  font-size:14px;
}
.vendor-sidebar__link:hover { background: var(--surface); }
.vendor-sidebar__link.is-active { background: var(--accent-2); color:#fff; }
.vendor-content { flex:1; min-width:0; }

.vendor-product-row {
  display:grid;
  grid-template-columns: 56px 1fr 90px 90px;
  gap:10px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
.vendor-product-row img { width:56px; height:56px; border-radius:8px; object-fit:cover; }

.variant-row {
  display:grid;
  grid-template-columns: 1fr 90px 110px 32px;
  gap:8px;
  margin-bottom:8px;
  align-items:center;
}
.variant-row input { padding:10px 12px; border:1.5px solid var(--line); border-radius:8px; font-size:14px; }
.variant-row__remove {
  background:none; border:none; color:var(--muted); font-size:18px; cursor:pointer; padding:0;
}
.variant-row__remove:hover { color:var(--accent); }

@media (max-width: 720px) {
  .vendor-layout { flex-direction:column; }
  .vendor-sidebar { flex-direction:row; position:static; width:100%; overflow-x:auto; }
}

/* ---------- Perfil ---------- */
.avatar-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 6px;
  background: var(--surface);
}
.avatar-lg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1.5px var(--line);
}
.profile-header { display:flex; align-items:center; gap:20px; margin-bottom: 28px; flex-wrap:wrap; }
.profile-stats { display:grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap:16px; margin-bottom: 32px; }
.coupon-box { border-radius: 12px; padding: 18px; text-align:center; }
.coupon-box__label { font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:0.03em; margin:0 0 6px; }
.coupon-box__count { font-family: var(--font-display); font-size: 26px; margin:0; }
.coupon-box--gris { background:#e7e4ec; color:#3a3650; }
.coupon-box--morado { background: var(--accent-2); color:#fff; }
.coupon-box--amarillo { background:#ffd23b; color:var(--ink); }

/* ---------- Cupones seleccionables en el carrito ---------- */
.coupon-select {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 8px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.coupon-select:hover { border-color: var(--accent); }
.coupon-select.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.coupon-select.is-disabled { opacity: 0.45; cursor: not-allowed; }
.coupon-select.is-disabled:hover { border-color: var(--line); }
.coupon-select__swatch {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
}
.coupon-select__swatch--gris { background: #9e9e9e; }
.coupon-select__swatch--morado { background: var(--accent-2); }
.coupon-select__swatch--amarillo { background: #ffd23b; }
.coupon-select__info { flex: 1; }
.coupon-select__title { font-weight: 700; font-size: 13px; margin: 0; }
.coupon-select__sub { color: var(--muted); font-size: 12px; margin: 2px 0 0; }


/* ---------- Pagina de producto ---------- */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  padding: 44px 0 64px;
}
@media (max-width: 800px) { .product-detail { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.product-detail__image {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 3 / 4;
  max-height: 510px;
  margin: 0 auto;
}
.product-detail__image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) {
  .product-detail__image { max-height: 430px; }
}

/* Galeria de imagenes con miniaturas */
.product-gallery { display: flex; gap: 12px; }
.product-gallery__thumbs {
  display: flex; flex-direction: column; gap: 8px;
  width: 64px; flex-shrink: 0; max-height: 510px; overflow-y: auto;
}
.product-gallery__thumb {
  border: 1.5px solid var(--line); border-radius: 8px; padding: 0; overflow: hidden;
  width: 64px; height: 64px; cursor: pointer; background: var(--surface); flex-shrink: 0;
}
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-gallery__thumb.is-active { border-color: var(--accent); border-width: 2px; }
.product-gallery .product-detail__image { flex: 1; min-width: 0; }
@media (max-width: 800px) {
  .product-gallery { flex-direction: column-reverse; }
  .product-gallery__thumbs { flex-direction: row; width: 100%; max-height: none; overflow-x: auto; }
}

.product-detail__category { color: var(--muted); text-transform: uppercase; font-size: 13px; letter-spacing: 0.03em; margin-bottom: 8px; }
.product-detail__name { font-family: var(--font-display); font-size: 21px; line-height: 1.3; margin: 0 0 12px; }
.product-vendor-row {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
  font-size:14px;
}
.product-vendor-row img {
  width:34px;
  height:34px;
  border-radius:50%;
  object-fit:cover;
  flex-shrink:0;
}
.product-vendor-row__name { font-weight:700; }
.product-vendor-row:hover .product-vendor-row__name { color: var(--accent); }
.product-detail__price { font-size: 26px; font-weight: 700; color: var(--accent); margin-bottom: 18px; }
.product-detail__description { color: var(--muted); margin-bottom: 28px; max-width: 460px; }
.qty-form { margin-bottom: 16px; }
.qty-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.qty-form input[type="number"] {
  width: 72px;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  text-align: center;
}
.stock-note { font-size: 13px; color: var(--muted); }

.section-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 22px;
  margin: 0 0 18px;
}

/* ---------- Carrito ---------- */
.cart-page { padding: 44px 0 80px; }
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-item {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item__image { width: 86px; height: 110px; border-radius: 10px; overflow: hidden; background: var(--surface); }
.cart-item__image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-weight: 600; margin: 0 0 4px; }
.cart-item__price { color: var(--muted); font-size: 14px; }
.cart-item__controls { display: flex; align-items: center; gap: 10px; }
.cart-item__controls input {
  width: 56px;
  padding: 8px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  text-align: center;
}
.link-danger { color: var(--accent); font-size: 13px; font-weight: 600; background: none; border: none; padding: 0; }

.summary-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
}
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.summary-row--total { font-size: 18px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.empty-state { text-align: center; padding: 80px 0; color: var(--muted); }

/* ---------- Formularios (login / registro) ---------- */
.auth-page { display: flex; justify-content: center; padding: 64px 0 96px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-family: var(--font-display); text-transform: uppercase; font-size: 32px; margin-bottom: 6px; }
.auth-box p.lead { color: var(--muted); margin-bottom: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.02em; }
.field input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
}
.field input:focus { border-color: var(--ink); }
.alert {
  background: #fff0f0;
  border: 1px solid #ffd0d0;
  color: #a31313;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 18px;
}
.auth-switch { margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-switch a { color: var(--accent); font-weight: 600; }

.google-btn {
  background: var(--bg);
  color: var(--ink);
  border: 1.5px solid var(--line);
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
}
.google-btn:hover { background: var(--surface); border-color: var(--line); }
.google-btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* ---------- Paginas de confirmacion ---------- */
.status-page { text-align: center; padding: 100px 0; }
.status-page__icon { font-size: 56px; margin-bottom: 16px; }
.status-page h1 { font-family: var(--font-display); text-transform: uppercase; font-size: 32px; margin-bottom: 10px; }
.status-page p { color: var(--muted); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}