/* Themes de las tiendas AxerOk. Un theme = sus variables (abajo) + unas pocas reglas de forma al final.
   Los colores y las letras que elige el comercio llegan en /_site.css y pisan estas variables. */
:root, [data-theme="clasico"] {
  --bg: #fbfaf7; --surface: #ffffff; --text: #1f2328; --muted: #6b7078; --line: #e8e4db;
  --primary: #b4531f; --primary-ink: #ffffff; --accent: #2f5d50; --soft: #f4ede3;
  --radius: 12px; --radius-lg: 18px; --btn-radius: 8px;
  --font: "Inter", system-ui, sans-serif; --font-title: "Playfair Display", Georgia, serif;
  --hero-bg: linear-gradient(120deg, #f4ede3 0%, #efe2cf 100%); --hero-ink: #1f2328;
  --topbar-bg: #2f5d50; --topbar-ink: #eaf2ef; --footer-bg: #1f2328; --footer-ink: #d9d6cf;
  --card-border: 1px solid var(--line); --card-shadow: 0 18px 40px -22px rgba(0,0,0,.35);
}
[data-theme="moderno"] {
  --bg: #0f1115; --surface: #171a21; --text: #f2f3f5; --muted: #9aa1ad; --line: #262a33;
  --primary: #ffb020; --primary-ink: #111111; --accent: #5b8cff; --soft: #1d212a;
  --radius: 6px; --radius-lg: 10px; --btn-radius: 999px;
  --font: "Inter", system-ui, sans-serif; --font-title: "Inter", system-ui, sans-serif;
  --hero-bg: radial-gradient(1200px 500px at 80% 20%, #2a2f3a 0%, #0f1115 60%); --hero-ink: #ffffff;
  --topbar-bg: #ffb020; --topbar-ink: #111111; --footer-bg: #0a0b0e; --footer-ink: #9aa1ad;
}
[data-theme="fresco"] {
  --bg: #f6fbf8; --surface: #ffffff; --text: #17332a; --muted: #5d7a70; --line: #dcebe3;
  --primary: #0e9f6e; --primary-ink: #ffffff; --accent: #ff7a59; --soft: #e6f5ee;
  --radius: 20px; --radius-lg: 28px; --btn-radius: 14px;
  --font: "Poppins", system-ui, sans-serif; --font-title: "Poppins", system-ui, sans-serif;
  --hero-bg: linear-gradient(135deg, #e6f5ee 0%, #d5efe3 50%, #fdeee8 100%); --hero-ink: #17332a;
  --topbar-bg: #17332a; --topbar-ink: #d5efe3; --footer-bg: #17332a; --footer-ink: #bcd6cb;
}
[data-theme="boutique"] {
  --bg: #ffffff; --surface: #ffffff; --text: #111111; --muted: #7a7a7a; --line: #ececec;
  --primary: #111111; --primary-ink: #ffffff; --accent: #a8845c; --soft: #f5f3ef;
  --radius: 0px; --radius-lg: 0px; --btn-radius: 0px;
  --font: "Jost", system-ui, sans-serif; --font-title: "Cormorant Garamond", Georgia, serif;
  --hero-bg: linear-gradient(180deg, #efe9e1 0%, #e6ddd1 100%); --hero-ink: #111111;
  --topbar-bg: #111111; --topbar-ink: #ffffff; --footer-bg: #111111; --footer-ink: #b5b5b5;
  --card-border: 0; --card-shadow: none;
}
[data-theme="mercado"] {
  --bg: #fffaf0; --surface: #ffffff; --text: #3b2314; --muted: #8a6d5a; --line: #f1e3cc;
  --primary: #e2462f; --primary-ink: #ffffff; --accent: #f2a900; --soft: #fff1d6;
  --radius: 18px; --radius-lg: 26px; --btn-radius: 999px;
  --font: "Nunito", system-ui, sans-serif; --font-title: "Nunito", system-ui, sans-serif;
  --hero-bg: linear-gradient(135deg, #ffe7b3 0%, #ffd27a 100%); --hero-ink: #3b2314;
  --topbar-bg: #e2462f; --topbar-ink: #ffffff; --footer-bg: #3b2314; --footer-ink: #e9d5c1;
}
[data-theme="tecno"] {
  --bg: #f3f5f9; --surface: #ffffff; --text: #0b1220; --muted: #5b6475; --line: #e1e6ef;
  --primary: #2563eb; --primary-ink: #ffffff; --accent: #10b981; --soft: #eaf0fd;
  --radius: 10px; --radius-lg: 16px; --btn-radius: 10px;
  --font: "Space Grotesk", system-ui, sans-serif; --font-title: "Space Grotesk", system-ui, sans-serif;
  --hero-bg: linear-gradient(120deg, #0b1220 0%, #1e3a8a 60%, #2563eb 100%); --hero-ink: #ffffff;
  --topbar-bg: #0b1220; --topbar-ink: #c7d2fe; --footer-bg: #0b1220; --footer-ink: #94a3b8;
}
[data-theme="gourmet"] {
  --bg: #faf6ef; --surface: #fffdf8; --text: #2a1a14; --muted: #7d6a5f; --line: #eadfce;
  --primary: #6d1a2b; --primary-ink: #f7ecd6; --accent: #b8913a; --soft: #f3eadb;
  --radius: 4px; --radius-lg: 6px; --btn-radius: 2px;
  --font: "Jost", system-ui, sans-serif; --font-title: "Cormorant Garamond", Georgia, serif;
  --hero-bg: linear-gradient(120deg, #2a1a14 0%, #4a1f26 100%); --hero-ink: #f7ecd6;
  --topbar-bg: #b8913a; --topbar-ink: #2a1a14; --footer-bg: #2a1a14; --footer-ink: #cdbba7;
}
[data-theme="pop"] {
  --bg: #fff7e8; --surface: #ffffff; --text: #111111; --muted: #444444; --line: #111111;
  --primary: #7c3aed; --primary-ink: #ffffff; --accent: #ff4d8d; --soft: #ffe066;
  --radius: 14px; --radius-lg: 18px; --btn-radius: 12px;
  --font: "Nunito", system-ui, sans-serif; --font-title: "Archivo Black", system-ui, sans-serif;
  --hero-bg: #ffe066; --hero-ink: #111111;
  --topbar-bg: #111111; --topbar-ink: #ffe066; --footer-bg: #111111; --footer-ink: #e5e5e5;
  --card-border: 3px solid #111; --card-shadow: 6px 6px 0 #111;
}
[data-theme="studio"] {
  --bg: #fdf8f6; --surface: #ffffff; --text: #3a2e2c; --muted: #9a8a86; --line: #f1e4df;
  --primary: #d98c8c; --primary-ink: #ffffff; --accent: #8c9bd9; --soft: #fbeeea;
  --radius: 24px; --radius-lg: 32px; --btn-radius: 999px;
  --font: "Jost", system-ui, sans-serif; --font-title: "Jost", system-ui, sans-serif;
  --hero-bg: linear-gradient(135deg, #fbeeea 0%, #f6e3ec 50%, #e9ecfb 100%); --hero-ink: #3a2e2c;
  --topbar-bg: #fbeeea; --topbar-ink: #9a6b6b; --footer-bg: #3a2e2c; --footer-ink: #d6c7c3;
  --card-border: 0; --card-shadow: 0 10px 30px -18px rgba(90,50,50,.35);
}
[data-theme="industrial"] {
  --bg: #eeeeec; --surface: #ffffff; --text: #1a1a1a; --muted: #5e5e5e; --line: #d6d6d2;
  --primary: #f5c400; --primary-ink: #111111; --accent: #e4572e; --soft: #e2e2df;
  --radius: 2px; --radius-lg: 2px; --btn-radius: 2px;
  --font: "Inter", system-ui, sans-serif; --font-title: "Oswald", Impact, sans-serif;
  --hero-bg: linear-gradient(120deg, #1a1a1a 0%, #2d2d2d 100%); --hero-ink: #ffffff;
  --topbar-bg: repeating-linear-gradient(135deg, #f5c400 0 18px, #111 18px 36px); --topbar-ink: #111111;
  --footer-bg: #1a1a1a; --footer-ink: #a8a8a8;
}


/* ======================================================================== base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--font); background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.12; margin: 0; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.nw { white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--btn-radius); border: 2px solid var(--primary); background: var(--primary); color: var(--primary-ink); cursor: pointer; font: 600 15px var(--font); text-align: center; transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.sm { padding: 9px 14px; font-size: 14px; width: 100%; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--primary); }
.empty { color: var(--muted); padding: 24px 0; }
.rich a { color: var(--primary); text-decoration: underline; }
.rich ul, .rich ol { padding-left: 22px; }

/* ======================================================================== header */
.topbar { background: var(--topbar-bg); color: var(--topbar-ink); font-size: 13px; text-align: center; padding: 8px 12px; }
header.site { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-title); font-size: 22px; font-weight: 700; white-space: nowrap; }
.logo { min-width: 0; }
.logo-name { overflow: hidden; text-overflow: ellipsis; }
.logo img { max-height: 46px; width: auto; }
.logo .mark { width: 36px; height: 36px; border-radius: min(10px, var(--radius-lg)); background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font: 800 18px var(--font); flex: none; }
nav.main { display: flex; gap: 22px; font-weight: 500; white-space: nowrap; overflow: hidden; min-width: 0; }
nav.main a { color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
nav.main a.on, nav.main a:hover { color: var(--text); border-color: var(--primary); }
.search { flex: 1; max-width: 340px; margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--btn-radius); padding: 0 14px; color: var(--muted); font-size: 14px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; font: inherit; color: var(--text); outline: none; }
.search.big { max-width: 380px; margin-left: 0; }
.icons { display: flex; gap: 6px; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: transparent; border: 0; cursor: pointer; font-size: 17px; list-style: none; }
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover { background: var(--soft); }
.menu-mobile { display: none; position: relative; }
.menu-mobile nav { position: absolute; top: 48px; left: 0; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; display: grid; box-shadow: 0 18px 40px -20px rgba(0,0,0,.35); z-index: 30; }
.menu-mobile nav a { padding: 10px 12px; border-radius: 8px; }
.menu-mobile nav a:hover { background: var(--soft); }

/* ======================================================================== bloques: general */
.blk { padding: 56px 0; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.head h1, .head h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 6px; }
.head > a { color: var(--primary); font-weight: 600; white-space: nowrap; }

/* portada */
.hero { background: var(--hero-bg); color: var(--hero-ink); padding: 0; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); margin: 12px 0 16px; }
.hero .lead { font-size: 18px; color: color-mix(in srgb, var(--hero-ink) 72%, transparent); max-width: 540px; margin: 0 0 28px; }
.hero .ctas, .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn.ghost { color: var(--hero-ink); }
.hero-art { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); overflow: visible; }
.hero-art > img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.hero-art .emoji { font-size: 140px; line-height: 1; }
.hero-art .chip { position: absolute; left: -18px; bottom: 28px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; font-size: 14px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.25); display: grid; }
.hero-art .chip b { font-size: 20px; color: var(--primary); }
.hero--centrado .wrap { grid-template-columns: 1fr; text-align: center; justify-items: center; padding-top: 96px; padding-bottom: 96px; }
.hero--centrado .lead { margin-left: auto; margin-right: auto; }
.hero--centrado .ctas { justify-content: center; }

/* beneficios: si vienen después de la portada, se montan sobre ella */
.blk-perks { padding: 24px 0; }
.blk-hero + .blk-perks { padding-top: 0; }
.blk-hero + .blk-perks .perks { margin-top: -32px; position: relative; }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.perk { background: var(--surface); border: var(--card-border, 1px solid var(--line)); box-shadow: var(--card-shadow, none); border-radius: var(--radius); padding: 18px; display: flex; gap: 12px; align-items: center; font-size: 14px; }
.perk .ic { width: 40px; height: 40px; border-radius: min(10px, var(--radius)); background: var(--soft); display: grid; place-items: center; font-size: 20px; flex: none; }
.perk b { display: block; font-size: 15px; }
.perk span { color: var(--muted); }

/* categorías */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cat { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; padding: 18px; display: flex; flex-direction: column; justify-content: end; color: #fff; }
.cat .emoji { position: absolute; right: 14px; top: 8px; font-size: 64px; transition: transform .3s; }
.cat:hover .emoji { transform: scale(1.12) rotate(-6deg); }
.cat b { font-size: 19px; position: relative; }
.cat span { font-size: 13px; opacity: .85; position: relative; }
.cat.c1 { background: linear-gradient(160deg, #3b6e8f, #1f3f55); }
.cat.c2 { background: linear-gradient(160deg, #c2562a, #7d3214); }
.cat.c3 { background: linear-gradient(160deg, #3c8a5f, #1c4d33); }
.cat.c4 { background: linear-gradient(160deg, #7a5bb3, #45306e); }
.cat.c5 { background: linear-gradient(160deg, #b8913a, #6f5419); }
.cat.c6 { background: linear-gradient(160deg, #c24a6e, #7a2340); }

/* productos */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: var(--card-border, 1px solid var(--line)); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow); }
.card .img { position: relative; aspect-ratio: 1 / 1; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.ph { font: 700 64px var(--font-title); color: color-mix(in srgb, var(--primary) 45%, transparent); }
.card .tag, .tag-inline { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; }
.card .tag { position: absolute; top: 12px; left: 12px; }
.tag.out, .tag-inline.out { background: var(--muted); display: inline-block; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .name { font-weight: 600; line-height: 1.3; }
.card .prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: auto; padding-top: 6px; }
.price { white-space: nowrap; font-size: 20px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.price.big { font-size: 34px; margin: 8px 0 4px; }
.cuotas { font-size: 13px; color: var(--accent); font-weight: 600; }
.card.soldout .img { filter: grayscale(1); opacity: .6; }

/* promo y llamado a la acción */
.promo { border-radius: var(--radius-lg); background: var(--primary); color: var(--primary-ink); padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; overflow: hidden; position: relative; }
.promo h2 { font-size: clamp(26px, 3.2vw, 40px); position: relative; }
.promo p { margin: 10px 0 0; opacity: .9; position: relative; }
.promo .btn { background: var(--primary-ink); color: var(--primary); border-color: var(--primary-ink); position: relative; }
.promo .big { position: absolute; right: 220px; font-size: 180px; opacity: .15; top: -30px; }
.cta { text-align: center; background: var(--soft); border-radius: var(--radius-lg); padding: 48px 28px; }
.cta h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.cta p { color: var(--muted); margin-bottom: 20px; }

/* texto, imagen y texto, contacto */
.blk-text h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 16px; }
.blk-text.center { text-align: center; }
.rich { font-size: 17px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.reverse .media { order: 2; }
.split .media { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.split .media .emoji { font-size: 110px; }
.split h2 { font-size: clamp(26px, 3vw, 38px); margin: 8px 0 14px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; background: var(--surface); border: var(--card-border, 1px solid var(--line)); border-radius: var(--radius); padding: 16px; }
.contact-list .ic { font-size: 22px; }
.contact-list b { display: block; }
.contact-list a { color: var(--primary); font-weight: 600; }

/* opiniones */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.review { background: var(--surface); border: var(--card-border, 1px solid var(--line)); box-shadow: var(--card-shadow, none); border-radius: var(--radius); padding: 22px; }
.review .stars { color: #f5a524; letter-spacing: 2px; }
.review p { margin: 10px 0 14px; }
.review .who { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.review .av { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-weight: 700; color: var(--primary); flex: none; }

/* preguntas */
.blk-faq h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 18px; }
.faq details { background: var(--surface); border: var(--card-border, 1px solid var(--line)); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq .rich { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* galería */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery .shot { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.gallery .shot img { width: 100%; height: 100%; object-fit: cover; }
.gallery .shot .emoji { font-size: 72px; }
.gallery figcaption { font-size: 14px; color: var(--muted); padding-top: 8px; }

/* tienda, producto, avisos */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chips a { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.chips a.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a:hover { color: var(--primary); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-img { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img .ph { font-size: 140px; }
.product-info h1 { font-size: clamp(28px, 3.4vw, 42px); }
.product-info .desc { white-space: pre-line; color: var(--muted); margin: 18px 0 24px; }
.related { margin-top: 56px; }
.message { text-align: center; padding: 40px 0; }
.message h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }

/* ======================================================================== pie */
footer.site { margin-top: 56px; background: var(--footer-bg); color: var(--footer-ink); padding: 56px 0 24px; font-size: 14px; }
.fcols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
footer h4 { color: #fff; font-size: 15px; margin: 0 0 12px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a:hover { color: #fff; }
footer .logo { color: #fff; margin-bottom: 12px; }
footer p { margin-top: 12px; }
.socials { display: flex; gap: 12px; margin-top: 12px; }
.socials a { text-decoration: underline; }
.legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.legal a { text-decoration: underline; }
.legal b { color: #fff; }

/* ======================================================================== forma propia de cada theme */
/* Boutique: logo centrado con el menú abajo, todo recto y en mayúsculas finas */
[data-theme="boutique"] .bar { display: grid; grid-template-columns: 1fr auto 1fr; padding-top: 18px; row-gap: 12px; }
[data-theme="boutique"] .logo { grid-column: 2; grid-row: 1; font-size: 30px; letter-spacing: .08em; text-transform: uppercase; }
[data-theme="boutique"] .logo .mark { display: none; }
[data-theme="boutique"] .search { grid-column: 1; grid-row: 1; max-width: 220px; margin: 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
[data-theme="boutique"] .icons { grid-column: 3; grid-row: 1; justify-self: end; }
[data-theme="boutique"] nav.main { grid-column: 1 / -1; justify-content: center; padding-bottom: 12px; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; }
[data-theme="boutique"] .btn { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 500; }
[data-theme="boutique"] .hero h1 { font-weight: 500; font-size: clamp(40px, 6vw, 76px); }
[data-theme="boutique"] .card .img { aspect-ratio: 3 / 4; }
[data-theme="boutique"] .card .body { padding: 12px 2px; text-align: center; align-items: center; }
[data-theme="boutique"] .card .name { font-weight: 400; }
[data-theme="boutique"] .price { font-weight: 500; font-size: 17px; }
[data-theme="boutique"] .cat { aspect-ratio: 3 / 4; }

/* Pop: bordes gruesos y sombras duras */
[data-theme="pop"] header.site { border-bottom: 3px solid #111; background: #fff; }
[data-theme="pop"] .btn { border: 3px solid #111; box-shadow: 4px 4px 0 #111; font-weight: 800; }
[data-theme="pop"] .btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #111; }
[data-theme="pop"] .hero { border-bottom: 3px solid #111; }
[data-theme="pop"] .hero-art, [data-theme="pop"] .hero-art .chip { border: 3px solid #111; box-shadow: 8px 8px 0 #111; }
[data-theme="pop"] .cat { border: 3px solid #111; box-shadow: 6px 6px 0 #111; }
[data-theme="pop"] .card .img { border-bottom: 3px solid #111; }
[data-theme="pop"] .card .tag { border: 2px solid #111; color: #111; background: var(--soft); }
[data-theme="pop"] .promo, [data-theme="pop"] .cta { border: 3px solid #111; box-shadow: 8px 8px 0 #111; }
[data-theme="pop"] .search { border: 2px solid #111; background: #fff; }

/* Industrial: títulos condensados en mayúsculas, franja de seguridad, todo recto */
[data-theme="industrial"] h1, [data-theme="industrial"] h2, [data-theme="industrial"] .logo { text-transform: uppercase; letter-spacing: .02em; }
[data-theme="industrial"] .topbar { font-weight: 800; text-shadow: 0 0 6px #f5c400, 0 0 2px #f5c400; }
[data-theme="industrial"] .btn { text-transform: uppercase; font-weight: 800; letter-spacing: .04em; }
[data-theme="industrial"] .price { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 24px; }
[data-theme="industrial"] .card .tag { border-radius: 2px; }
[data-theme="industrial"] .hero-art { background: #2d2d2d; border-color: #444; }
[data-theme="industrial"] .hero-art .chip { background: var(--primary); color: #111; border: 0; }
[data-theme="industrial"] .hero-art .chip b { color: #111; }

/* Tecno y Gourmet: portada oscura */
[data-theme="tecno"] .hero .btn:not(.ghost) { background: #fff; color: var(--primary); border-color: #fff; }
[data-theme="tecno"] .hero-art { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); backdrop-filter: blur(6px); }
[data-theme="tecno"] .card .price { color: var(--primary); }
[data-theme="gourmet"] .hero h1 { font-weight: 600; font-style: italic; }
[data-theme="gourmet"] .hero-art { background: #3a2226; border-color: #5c3a3f; }
[data-theme="gourmet"] .btn { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
[data-theme="gourmet"] .hero .btn:not(.ghost) { background: var(--accent); border-color: var(--accent); color: #2a1a14; }
[data-theme="gourmet"] .card .name { font-family: "Cormorant Garamond", serif; font-size: 20px; font-weight: 600; }
[data-theme="gourmet"] .eyebrow { color: var(--accent); }

/* Studio: aire, pasteles, sin bordes */
[data-theme="studio"] .hero h1 { font-weight: 300; letter-spacing: -.01em; }
[data-theme="studio"] .hero-art { border: 0; }
[data-theme="studio"] .card .img { margin: 10px 10px 0; border-radius: calc(var(--radius) - 6px); }
[data-theme="studio"] h2 { font-weight: 400; }

/* Mercado: todo redondo y alegre */
[data-theme="mercado"] .card .img { background: #fff1d6; }
[data-theme="mercado"] .card .price { color: var(--primary); }
[data-theme="mercado"] .hero h1 { font-weight: 800; }
[data-theme="mercado"] .perk .ic { background: #ffe7b3; }

/* ======================================================================== responsive */
@media (max-width: 1000px) {
  .fcols { grid-template-columns: 1fr 1fr; }
  nav.main { display: none; }
  .menu-mobile { display: block; }
  .search { display: none; }
  .shop .search, .search.big { display: flex; }
  .icons { margin-left: auto; }
  [data-theme="boutique"] .bar { grid-template-columns: auto 1fr auto; padding-bottom: 14px; }
  [data-theme="boutique"] .menu-mobile { grid-column: 1; grid-row: 1; }
  [data-theme="boutique"] .logo { justify-self: center; }
}
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 56px; }
  .hero-art { width: 100%; max-width: 320px; justify-self: center; }
  .hero-art .emoji { font-size: 110px; }
  .hero-art .chip { left: 8px; }
  .grid, .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat .emoji { font-size: 40px; right: 10px; top: 6px; }
  .cat b { font-size: 16px; }
  .split, .product-grid { grid-template-columns: 1fr; gap: 24px; }
  .split.reverse .media { order: 0; }
  .promo { grid-template-columns: 1fr; padding: 28px; }
  .promo .big { display: none; }
  .ph { font-size: 44px; }
  .card .body { padding: 12px; }
  .price { font-size: 17px; }
  .fcols { grid-template-columns: 1fr; }
  .blk { padding: 40px 0; }
  [data-theme="boutique"] .logo { font-size: 22px; }
}

/* ======================================================================== comprar */
.cart-btn { position: relative; }
.cart-btn .badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--primary); color: var(--primary-ink); font: 700 11px var(--font); display: grid; place-items: center; padding: 0 5px; }
.card form { margin: 0; }
.card form .btn { width: 100%; }
.buy { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin: 8px 0 16px; }
.qty { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.qty input, .qty-form input[type=number] { width: 84px; padding: 11px 10px; border: 1px solid var(--line); border-radius: var(--btn-radius); font: inherit; background: var(--surface); color: var(--text); }
.notice { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; }
.empty-box { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-lines { display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto auto; gap: 16px; align-items: center; background: var(--surface); border: var(--card-border, 1px solid var(--line)); border-radius: var(--radius); padding: 12px; }
.cart-line .thumb { width: 72px; height: 72px; border-radius: calc(var(--radius) - 4px); background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .thumb .ph { font-size: 28px; }
.cart-line .info { display: grid; gap: 2px; }
.cart-line .name { font-weight: 600; }
.cart-line .sub { font-variant-numeric: tabular-nums; white-space: nowrap; }
.qty-form { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; margin: 0; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }
.summary { background: var(--surface); border: var(--card-border, 1px solid var(--line)); border-radius: var(--radius-lg); padding: 22px; display: grid; gap: 12px; position: sticky; top: 96px; }
.summary h3 { font-size: 20px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.summary .row b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary .row.sep { border-top: 1px solid var(--line); padding-top: 12px; }
.summary .row.total { font-size: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
.summary .link { color: var(--primary); font-size: 14px; }
.small { font-size: 13px; }
.center { text-align: center; justify-content: center; }
.checkout { display: grid; gap: 18px; }
.checkout fieldset { border: var(--card-border, 1px solid var(--line)); border-radius: var(--radius-lg); background: var(--surface); padding: 18px 20px; margin: 0; display: grid; gap: 12px; }
.checkout legend { font: 700 17px var(--font-title); padding: 0 6px; }
.fld { display: grid; gap: 5px; }
.fld > span { font-weight: 600; font-size: 14px; }
.fld small { font-weight: 400; color: var(--muted); }
.fld input, .fld textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--btn-radius); font: inherit; background: var(--bg); color: var(--text); }
.fld input:focus, .fld textarea:focus { outline: 2px solid color-mix(in srgb, var(--primary) 45%, transparent); border-color: var(--primary); }
.fld.bad input, .fld.bad textarea { border-color: #c0392b; }
.fld em, em.err { color: #c0392b; font-style: normal; font-size: 13px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.opt:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.opt input { margin-top: 4px; accent-color: var(--primary); }
.ship-fields { display: grid; gap: 12px; }
.big-btn { padding: 16px 24px; font-size: 17px; }
.thanks { text-align: center; margin-bottom: 28px; }
.thanks .check { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 32px; display: grid; place-items: center; margin: 0 auto 16px; }
.thanks h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.lead-plain { font-size: 17px; color: var(--muted); }
.order-page .summary { position: static; }
.order-info { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.order-info h3 { font-size: 18px; margin-bottom: 6px; }
.orders { display: grid; gap: 10px; }
.order-row { background: var(--surface); border: var(--card-border, 1px solid var(--line)); border-radius: var(--radius); padding: 14px 18px; }
.order-row summary { display: grid; grid-template-columns: 80px 1fr auto auto auto; gap: 16px; align-items: center; cursor: pointer; }
.order-detail { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--soft); text-transform: capitalize; }
.pill.nuevo { background: var(--primary); color: var(--primary-ink); }
.pill.tomado { background: var(--accent); color: #fff; }
@media (max-width: 860px) {
  .cart-grid, .order-info, .two { grid-template-columns: 1fr; }
  .summary { position: static; }
  .cart-line { grid-template-columns: 56px 1fr; }
  .cart-line .thumb { width: 56px; height: 56px; }
  .cart-line .qty-form, .cart-line .sub { grid-column: 1 / -1; }
  .qty-form { flex-wrap: wrap; }
  .order-row summary { grid-template-columns: 1fr auto; }
}

/* muchas categorías: las principales como botones y el resto en un desplegable */
.more-cats { position: relative; }
.more-cats summary { list-style: none; cursor: pointer; padding: 8px 14px; border-radius: 999px; border: 1px dashed var(--line); font-size: 14px; color: var(--muted); }
.more-cats summary::-webkit-details-marker { display: none; }
.more-cats[open] summary { border-style: solid; color: var(--text); }
.more-list { position: absolute; z-index: 15; top: calc(100% + 8px); left: 0; width: min(640px, 90vw); max-height: 360px; overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px;
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.35); display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2px; }
.more-list a { padding: 7px 10px; border-radius: 8px; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.more-list a:hover, .more-list a.on { background: var(--soft); }
.more-list small { color: var(--muted); }

.paid { color: var(--accent); font-weight: 700; }
.order-row summary.with-pay { grid-template-columns: 80px 1fr auto auto auto auto; }

.made-with { display: inline-flex; align-items: center; gap: 6px; text-decoration: none !important; opacity: .85; }
.made-with:hover { opacity: 1; }
.made-with img { height: 10px; width: auto; display: inline-block; }
