/* =========================================================================
   CrafTrader — Sistema de diseño (handoff Claude Design)
   Tokens como custom properties · modo claro y oscuro · Instrument Serif/Sans
   ========================================================================= */

:root {
  /* Colores — modo claro */
  --crema: #fbf8f2;
  --lino: #efe8db;
  --blanco: #ffffff;
  --tinta: #26211b;
  --texto: #4e463b;
  --texto-2: #5a5145;
  --piedra: #8a7d6c;
  --arcilla: #a4593a;
  --arcilla-hover: #8f4a2e;
  --arcilla-tint: #f6e9e1;
  --arcilla-tint-tx: #8f4a2e;
  --salvia: #3e6b5b;
  --salvia-hover: #2f5d4f;
  --salvia-tint: #e9f0eb;
  --salvia-tint-tx: #2f5d4f;
  --miel: #c89b5f;
  --borde: #e5dccb;
  --hairline: #ede5d6;
  --borde-input: #d9cdb8;
  --error: #b3452e;
  --error-bg: #fdf4f1;
  --grad-ia: linear-gradient(135deg, #3e6b5b, #a4593a);
  --placeholder: linear-gradient(155deg, #efe8db, #e0d3bc);

  /* Superficies semánticas */
  --page-bg: var(--crema);
  --surface: var(--blanco);
  --surface-soft: var(--lino);
  --ink: var(--tinta);
  --shadow-rest: 0 1px 2px rgba(38, 33, 27, 0.06);
  --shadow-hover: 0 14px 34px rgba(38, 33, 27, 0.14);
  --shadow-flash: 0 8px 24px rgba(38, 33, 27, 0.2);
  --shadow-drawer: -18px 0 50px rgba(38, 33, 27, 0.25);

  /* Radios y espaciado */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 20px;
  --pill: 999px;
  --maxw: 1360px;
  --pad: 40px;
}

:root[data-theme='dark'] {
  --crema: #201b15;
  --lino: #2b251d;
  --blanco: #2b251d;
  --tinta: #f2ebe0;
  --texto: #cbb9a2;
  --texto-2: #cbb9a2;
  --piedra: #a79a89;
  --arcilla: #d08a64;
  --arcilla-hover: #e0a07f;
  --arcilla-tint: rgba(208, 138, 100, 0.16);
  --arcilla-tint-tx: #e6b598;
  --salvia: #7fa895;
  --salvia-hover: #96bca9;
  --salvia-tint: rgba(127, 168, 149, 0.14);
  --salvia-tint-tx: #a7c9b9;
  --borde: #3a332a;
  --hairline: #3a332a;
  --borde-input: #4a4234;
  --error: #e08a76;
  --error-bg: rgba(179, 69, 46, 0.14);
  --page-bg: #201b15;
  --surface: #2b251d;
  --surface-soft: #322b22;
  --ink: #f2ebe0;
  --shadow-rest: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 14px 34px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  background: var(--page-bg);
  color: var(--texto);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}
h1, h2, h3, .serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.12;
}
a { color: var(--arcilla); text-decoration: none; }
a:hover { color: var(--arcilla-hover); }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--piedra); }
.serif-em { font-style: italic; color: var(--arcilla); }
.text-center { text-align: center; }

/* ---------- Header ---------- */
.site-header { background: var(--page-bg); border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 28px; padding: 16px var(--pad); max-width: var(--maxw); margin: 0 auto; }
.logo { font-family: 'Instrument Serif', Georgia, serif; font-size: 26px; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.logo b { color: var(--arcilla); font-weight: 400; }
.search-form { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--borde); border-radius: var(--pill); padding: 10px 16px; box-shadow: var(--shadow-rest); transition: border-color 0.2s, box-shadow 0.2s; }
.search-form:focus-within { border-color: var(--arcilla); box-shadow: 0 3px 10px rgba(38, 33, 27, 0.07); }
.search-form svg { flex-shrink: 0; }
.search-form input { flex: 1; border: none; background: none; font-size: 14px; color: var(--ink); outline: none; font-family: inherit; }
.search-form input::placeholder { color: var(--piedra); }
.chip-ia { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--salvia); background: var(--salvia-tint); border-radius: var(--pill); padding: 5px 11px; white-space: nowrap; border: none; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 500; color: var(--texto); white-space: nowrap; }
.header-actions a { color: var(--texto); }
.header-actions a:hover { color: var(--arcilla); }
.icon-btn { background: none; border: none; cursor: pointer; font-size: 18px; color: var(--texto); display: inline-flex; align-items: center; }
.cart-link { position: relative; display: flex; align-items: center; }
.cart-badge { position: absolute; top: -7px; right: -9px; background: var(--arcilla); color: var(--crema); font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: var(--pill); display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.avatar-me { width: 32px; height: 32px; border-radius: var(--pill); background: var(--grad-ia); color: #fbf8f2; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; }
.theme-toggle { background: none; border: none; cursor: pointer; font-size: 17px; color: var(--texto); }

/* Category nav */
.cat-nav { border-top: 1px solid var(--hairline); }
.cat-nav .row { display: flex; gap: 6px; justify-content: center; padding: 8px var(--pad); max-width: var(--maxw); margin: 0 auto; flex-wrap: wrap; }
.cat-link { font-size: 13.5px; font-weight: 500; color: var(--texto-2); padding: 7px 14px; border-radius: var(--pill); transition: background 0.2s; white-space: nowrap; }
.cat-link:hover { background: var(--surface-soft); color: var(--texto-2); }
.cat-link.active { font-weight: 600; color: var(--arcilla); background: var(--arcilla-tint); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--pill); border: none; background: var(--arcilla); color: #fff; font-size: 14.5px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background 0.2s, transform 0.1s; }
.btn:hover { background: var(--arcilla-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-block { display: flex; width: 100%; }
.btn-dark { background: var(--tinta); color: var(--crema); }
.btn-dark:hover { background: #000; color: var(--crema); }
.btn-outline { background: transparent; border: 1.5px solid var(--borde-input); color: var(--ink); }
.btn-outline:hover { background: var(--surface-soft); color: var(--ink); border-color: var(--piedra); }
.btn-sage { background: var(--salvia); color: #fff; }
.btn-sage:hover { background: var(--salvia-hover); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- Pills / chips / badges ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 8px 15px; background: var(--surface); border: 1px solid var(--borde); border-radius: var(--pill); font-size: 13.5px; font-weight: 500; color: var(--texto-2); cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.pill:hover, .pill.active { background: var(--arcilla); color: #fff; border-color: var(--arcilla); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--pill); font-size: 12.5px; font-weight: 600; background: var(--arcilla-tint); color: var(--arcilla-tint-tx); }
.chip-sage { background: var(--salvia-tint); color: var(--salvia-tint-tx); }
.badge-soft { display: inline-block; background: var(--surface-soft); color: var(--piedra); font-size: 12px; font-weight: 600; padding: 3px 11px; border-radius: var(--pill); }
.badge-made { position: absolute; left: 10px; bottom: 10px; background: rgba(251, 248, 242, 0.94); backdrop-filter: blur(4px); color: #5a4636; font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: var(--pill); box-shadow: 0 1px 3px rgba(38, 33, 27, 0.12); }
.stars { color: var(--miel); letter-spacing: 1px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding: 44px 0 20px; }
.hero h1 { font-size: 56px; line-height: 1.06; margin: 0 0 18px; text-wrap: pretty; }
.hero p { font-size: 17px; color: var(--texto); max-width: 460px; margin: 0 0 22px; }
.hero-search { display: flex; gap: 8px; background: var(--surface); border: 1px solid var(--borde); border-radius: var(--pill); padding: 8px 8px 8px 18px; box-shadow: var(--shadow-rest); max-width: 500px; }
.hero-search input { flex: 1; border: none; background: none; outline: none; font-size: 15px; color: var(--ink); font-family: inherit; }
.hero-search input::placeholder { color: var(--piedra); }
.hero-collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 380px; }
.hero-collage .tile { border-radius: var(--r-lg); background: var(--placeholder); position: relative; overflow: hidden; }
.hero-collage .tile:first-child { grid-row: span 2; }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; }
.hero-collage .live { position: absolute; left: 12px; bottom: 12px; background: rgba(251, 248, 242, 0.94); color: #5a4636; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: var(--pill); }

/* ---------- Sections ---------- */
.section { margin: 46px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.section-head h2 { font-size: 30px; margin: 0; }
.section-head .link { font-size: 14px; color: var(--arcilla); font-weight: 600; }

/* Category circles */
.cat-circles { display: flex; gap: 22px; flex-wrap: wrap; justify-content: space-between; }
.cat-circle { display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; }
.cat-circle .disc { width: 96px; height: 96px; border-radius: var(--pill); background: var(--placeholder); display: flex; align-items: center; justify-content: center; font-family: 'Instrument Serif', serif; font-size: 30px; color: #b7a585; transition: transform 0.2s, box-shadow 0.2s; }
.cat-circle:hover .disc { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.cat-circle span { font-size: 13.5px; color: var(--texto-2); font-weight: 500; }

/* ---------- Product grid + card ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .grid, .grid-3 { grid-template-columns: repeat(2, 1fr); } }

.card { display: flex; flex-direction: column; gap: 10px; cursor: pointer; min-width: 0; }
.card-img { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--placeholder); aspect-ratio: 4 / 5; box-shadow: var(--shadow-rest); transition: box-shadow 0.3s ease; }
.card:hover .card-img { box-shadow: var(--shadow-hover); }
.card-img .ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.card-img .ph .ini { font-family: 'Instrument Serif', serif; font-size: 34px; color: #c4b49b; }
.card-img .ph .lbl { font-family: ui-monospace, Menlo, monospace; font-size: 10px; letter-spacing: 0.08em; color: #a8987f; text-transform: uppercase; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover .card-img img { transform: scale(1.045); }
.fav-btn { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: var(--pill); border: none; background: rgba(251, 248, 242, 0.92); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 4px rgba(38, 33, 27, 0.14); transition: transform 0.2s ease; font-size: 16px; line-height: 1; color: #5a4636; }
.fav-btn:hover { transform: scale(1.08); }
.fav-btn.on { color: var(--arcilla); }
.fav-btn.pop { animation: ctPop 0.35s ease; }
@keyframes ctPop { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.card-body { display: flex; flex-direction: column; gap: 3px; padding: 0 2px; }
.card-title { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-shop { font-size: 12.5px; color: var(--piedra); }
.card-meta { display: flex; align-items: baseline; gap: 8px; margin-top: 3px; }
.card-price { font-size: 15px; font-weight: 600; color: var(--ink); }
.card-rating { font-size: 12px; color: var(--piedra); }

/* ---------- Featured shops ---------- */
.shop-card { background: var(--surface); border: 1px solid var(--borde); border-radius: var(--r-lg); overflow: hidden; }
.shop-card .banner { height: 120px; background: var(--placeholder) center/cover; }
.shop-card .body { padding: 0 18px 18px; }
.shop-card .avatar { width: 56px; height: 56px; border-radius: var(--pill); background: var(--surface-soft); border: 3px solid var(--surface); margin-top: -28px; display: flex; align-items: center; justify-content: center; font-family: 'Instrument Serif', serif; font-size: 22px; color: var(--arcilla); box-shadow: 0 2px 6px rgba(38, 33, 27, 0.15); overflow: hidden; }
.shop-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.shop-card h3 { font-family: 'Instrument Serif', serif; font-size: 21px; margin: 12px 0 4px; color: var(--ink); }

/* ---------- AI blocks ---------- */
.ai-band { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; background: var(--salvia-tint); border: 1px solid transparent; border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 20px; font-size: 14px; color: var(--salvia-tint-tx); }
.ai-band .lead { font-weight: 600; }
.ai-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--borde); border-radius: var(--pill); padding: 4px 10px; font-size: 12.5px; color: var(--texto-2); }
.ai-summary { border-radius: var(--r-md); padding: 18px 20px; margin: 20px 0; background: linear-gradient(135deg, rgba(62, 107, 91, 0.06), rgba(164, 89, 58, 0.06)); border: 1px solid var(--hairline); }
.ai-summary .cap { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--salvia-tint-tx); margin-bottom: 8px; }
.ai-summary .sent { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ai-note { font-size: 11.5px; color: var(--piedra); margin-top: 10px; }

/* ---------- PDP ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; margin: 24px 0; }
.pdp-gallery .main { aspect-ratio: 5 / 4; border-radius: var(--r-lg); background: var(--placeholder); overflow: hidden; position: relative; }
.pdp-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.pdp-thumbs img { width: 74px; height: 74px; object-fit: cover; border-radius: var(--r-sm); background: var(--placeholder); cursor: pointer; }
.pdp-thumbs img.active { outline: 2px solid var(--arcilla); outline-offset: 1px; }
.pdp h1 { font-size: 36px; line-height: 1.15; margin: 0 0 10px; text-wrap: pretty; }
.pdp-price { font-size: 32px; font-family: 'Instrument Serif', serif; color: var(--ink); margin: 14px 0; display: flex; align-items: center; gap: 12px; }
.highlights { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 8px; }
.highlights li { font-size: 14px; color: var(--texto); display: flex; align-items: center; gap: 8px; }
.highlights .ok { color: var(--salvia); font-weight: 700; }
.qty-row { display: flex; align-items: stretch; gap: 12px; margin: 18px 0; }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--borde-input); border-radius: var(--pill); overflow: hidden; }
.stepper button { background: none; border: none; width: 40px; font-size: 18px; cursor: pointer; color: var(--texto); }
.stepper input { width: 46px; border: none; text-align: center; background: none; font-size: 15px; color: var(--ink); font-family: inherit; }
.fav-circle { width: 52px; height: 52px; border-radius: var(--pill); border: 1.5px solid var(--borde-input); background: var(--surface); font-size: 20px; cursor: pointer; color: var(--arcilla); flex-shrink: 0; }
.pdp-shopcard { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--borde); border-radius: var(--r-md); margin: 22px 0; }
.pdp-shopcard .av { width: 52px; height: 52px; border-radius: var(--pill); background: var(--surface-soft); overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: 'Instrument Serif', serif; color: var(--arcilla); }
.pdp-shopcard .av img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Shop storefront ---------- */
.shop-banner { height: 230px; border-radius: var(--r-lg); background: var(--placeholder) center/cover; position: relative; margin: 22px 0 0; overflow: hidden; }
.shop-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(38, 33, 27, 0.4), transparent 45%); }
.shop-head { display: flex; align-items: flex-end; gap: 20px; margin: -52px 0 0 24px; position: relative; z-index: 1; }
.shop-head .av { width: 104px; height: 104px; border-radius: var(--pill); background: var(--surface-soft); border: 4px solid var(--surface); overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: 'Instrument Serif', serif; font-size: 40px; color: var(--arcilla); box-shadow: var(--shadow-rest); }
.shop-head .av img { width: 100%; height: 100%; object-fit: cover; }
.shop-head h1 { font-size: 34px; margin: 0 0 8px; }
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--borde); margin: 22px 0; }
.tabs a { padding: 12px 0; font-weight: 600; font-size: 14.5px; color: var(--piedra); border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--ink); border-color: var(--arcilla); }

/* ---------- Two-col / panels ---------- */
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: start; margin: 26px 0; }
.two-col.filters { grid-template-columns: 230px 1fr; }
.panel { background: var(--surface); border: 1px solid var(--borde); border-radius: var(--r-md); padding: 22px; }
.panel-sticky { position: sticky; top: 92px; }
.sidebar h3 { font-size: 15px; margin: 0 0 14px; color: var(--ink); font-family: inherit; font-weight: 700; }
.filter-group { margin-bottom: 18px; }
.filter-group > label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--texto); margin: 6px 0; cursor: pointer; }
.check input { accent-color: var(--arcilla); }

/* Cart */
.cart-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.cart-item img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r-sm); background: var(--placeholder); }
.cart-item .grow { flex: 1; }
.summary-row { display: flex; justify-content: space-between; margin: 8px 0; font-size: 14px; }
.summary-total { font-size: 20px; font-weight: 700; color: var(--ink); border-top: 1px solid var(--borde); padding-top: 14px; margin-top: 14px; }

/* Forms */
.form { max-width: 480px; margin: 34px auto; }
.form.wide { max-width: 680px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--borde-input); border-radius: var(--r-sm); font-size: 15px; font-family: inherit; background: var(--surface); color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--piedra); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--arcilla); box-shadow: 0 0 0 3px rgba(164, 89, 58, 0.14); }
.field .hint { font-size: 12.5px; color: var(--piedra); margin-top: 5px; }
.form-row { display: flex; gap: 14px; }
.form-row .field { flex: 1; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.checkbox input { width: auto; accent-color: var(--arcilla); }

/* Radio cards (checkout) */
.radio-card { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--borde); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 10px; cursor: pointer; }
.radio-card.active { border-color: var(--arcilla); background: var(--arcilla-tint); }
.radio-card input { accent-color: var(--arcilla); }

/* Stepper (checkout progress) */
.steps { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--piedra); margin: 8px 0 24px; flex-wrap: wrap; }
.steps .st { display: flex; align-items: center; gap: 7px; }
.steps .st.done { color: var(--salvia); }
.steps .st.active { color: var(--ink); font-weight: 600; }
.steps .num { width: 22px; height: 22px; border-radius: var(--pill); background: var(--surface-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.steps .st.active .num { background: var(--arcilla); color: #fff; }
.steps .st.done .num { background: var(--salvia); color: #fff; }
.steps .sep { width: 22px; height: 1px; background: var(--borde); }

/* Auth split */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--borde); margin: 30px 0; }
.auth-aside { background: var(--placeholder); position: relative; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--tinta); }
.auth-aside .serif { font-size: 30px; line-height: 1.15; }
.auth-form { background: var(--surface); padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.auth-form h1 { font-size: 27px; margin: 0 0 20px; }
.auth-alt { margin-top: 18px; font-size: 14px; color: var(--piedra); }

/* Confirmation */
.confirm { max-width: 640px; margin: 40px auto; text-align: center; }
.confirm .tick { width: 72px; height: 72px; border-radius: var(--pill); background: var(--salvia); color: #fff; font-size: 34px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.confirm h1 { font-size: 40px; margin: 0 0 6px; }
.timeline { display: flex; justify-content: space-between; margin: 20px 0; position: relative; }
.timeline::before { content: ''; position: absolute; top: 9px; left: 10%; right: 10%; height: 2px; background: var(--borde); }
.timeline .pt { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--piedra); position: relative; z-index: 1; flex: 1; }
.timeline .dot { width: 18px; height: 18px; border-radius: var(--pill); background: var(--surface-soft); border: 2px solid var(--borde); }
.timeline .pt.done .dot { background: var(--salvia); border-color: var(--salvia); }

/* Seller dashboard */
.dash { display: grid; grid-template-columns: 220px 1fr; gap: 30px; margin: 24px 0; align-items: start; }
.dash-side { background: var(--tinta); color: var(--crema); border-radius: var(--r-md); padding: 20px; }
.dash-side a { display: block; color: rgba(251, 248, 242, 0.8); padding: 9px 0; font-size: 14px; }
.dash-side a:hover, .dash-side a.active { color: #fff; }
.dash-side .copilot { background: rgba(127, 168, 149, 0.18); border-radius: var(--r-sm); padding: 14px; margin-top: 16px; font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--surface); border: 1px solid var(--borde); border-radius: var(--r-md); padding: 16px; }
.kpi .n { font-family: 'Instrument Serif', serif; font-size: 28px; color: var(--ink); }
.kpi .l { font-size: 12.5px; color: var(--piedra); }
.copilot-col { background: var(--surface); border: 1px solid var(--borde); border-radius: var(--r-md); padding: 18px; }
.copilot-col .cap { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--salvia-tint-tx); font-size: 14px; margin-bottom: 12px; }

/* Flash / toast */
.flash-wrap { margin: 16px 0; }
.flash { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 8px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.flash.success { background: var(--salvia-tint); color: var(--salvia-tint-tx); }
.flash.error { background: var(--error-bg); color: var(--error); }
.flash.info { background: var(--surface-soft); color: var(--texto-2); }

/* Empty state */
.empty { text-align: center; padding: 70px 20px; color: var(--piedra); }
.empty h2 { color: var(--ink); font-size: 28px; }
.ghost-card { border: 1.5px dashed var(--borde-input); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; min-height: 220px; color: var(--piedra); font-size: 14px; cursor: pointer; }

/* Footer */
.site-footer { background: var(--tinta); color: #cbb9a2; margin-top: 64px; }
.site-footer .cols { max-width: var(--maxw); margin: 0 auto; padding: 52px var(--pad) 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .logo { color: #fbf8f2; }
.site-footer .logo b { color: #d08a64; }
.site-footer p { font-size: 13.5px; line-height: 1.6; max-width: 300px; color: #cbb9a2; }
.site-footer h4 { font-weight: 600; color: #fbf8f2; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; font-size: 13.5px; }
.site-footer a { color: #cbb9a2; }
.site-footer a:hover { color: #fbf8f2; }
.footer-bottom { border-top: 1px solid rgba(251, 248, 242, 0.12); padding: 16px var(--pad); text-align: center; font-size: 12px; color: #8a7d6c; }

/* Mini-cart drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(38, 33, 27, 0.28); opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 100; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; width: 400px; max-width: 92vw; height: 100%; background: var(--surface); box-shadow: var(--shadow-drawer); transform: translateX(100%); transition: transform 0.35s ease-out; z-index: 101; display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer .d-head { padding: 20px; border-bottom: 1px solid var(--hairline); display: flex; align-items: center; justify-content: space-between; }
.drawer .d-body { padding: 20px; overflow-y: auto; flex: 1; }
.drawer .d-foot { padding: 20px; border-top: 1px solid var(--hairline); }

/* Utilities */
.divider { height: 1px; background: var(--hairline); margin: 26px 0; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }

/* Responsive */
@media (max-width: 900px) {
  :root { --pad: 20px; }
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .hero-collage { height: 280px; }
  .pdp, .two-col, .two-col.filters, .auth-split, .dash { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .cat-circles { justify-content: center; }
}
