/* ============================================================
   XANAY · MERCADO (fase 1) — encabezado con buscador, portada,
   tarjeta de pieza, listado y pie. Se carga después de brand.css.
   Tipografía y color: los de la marca. Nada de letra pequeña.
   ============================================================ */
:root{
  --line2:#E6DED1; --maiz:#FDF6EC; --muted2:#6E6270; --bug2:#A80057;
  --milpa:#2E8B57; --turq:#12A5A0; --cempa:#F7941D; --sol:#FFC533;
}
body.xm{ margin:0; background:#fff; color:var(--ink); font-size:15px; line-height:1.5; -webkit-font-smoothing:antialiased; }
body.xm *,body.xm *::before,body.xm *::after{ box-sizing:border-box; }
body.xm a{ text-decoration:none; }
body.xm img{ max-width:100%; height:auto; }
.xm-wrap{ max-width:1320px; margin:0 auto; padding:0 28px; }
body.xm .xcontain{ max-width:1320px; padding-left:28px; padding-right:28px; }
body.xm .xi{ flex:0 0 auto; }

/* ---------- Barra de servicio ---------- */
.xm-util{ background:var(--maiz); border-bottom:1px solid var(--line2); font-size:13px; color:var(--muted2); }
.xm-util .xm-wrap{ display:flex; justify-content:space-between; gap:18px; padding-top:9px; padding-bottom:9px; }
.xm-util b{ color:var(--ink); font-weight:700; }
.xm-util-r{ display:flex; gap:22px; white-space:nowrap; }
.xm-util a{ color:var(--muted2); } .xm-util a:hover{ color:var(--ink); }

/* ---------- Encabezado ---------- */
.xm-hd{ background:#fff; }
.xm-hd .xm-wrap{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:36px; align-items:center; padding-top:18px; padding-bottom:16px; }
.xm-brand{ display:flex; align-items:center; gap:10px; color:var(--ink); }
.xm-brand .wm{ display:block; font-family:'Playfair Display',serif; font-weight:800; font-size:30px; letter-spacing:3px; line-height:1; color:var(--ink); }
.xm-brand small{ display:block; font-size:11px; letter-spacing:2.6px; text-transform:uppercase; color:var(--gold); font-weight:700; margin-top:5px; }
.xm-search{ display:flex; height:52px; border:2px solid var(--ink); border-radius:8px; overflow:hidden; background:#fff; margin:0; }
.xm-search:focus-within{ border-color:var(--bug); }
.xm-search select{ border:0; border-right:1px solid var(--line2); background:var(--maiz); color:var(--ink); font-size:14px; font-weight:600; padding:0 12px 0 14px; max-width:170px; cursor:pointer; outline:none; border-radius:0; }
.xm-search input[type=search]{ flex:1; min-width:0; border:0; outline:none; padding:0 16px; font-size:16px; color:var(--ink); background:#fff; border-radius:0; -webkit-appearance:none; appearance:none; }
.xm-search input[type=search]::placeholder{ color:#8E8290; }
.xm-search button{ width:64px; border:0; background:var(--bug); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; border-radius:0; transition:background .2s; }
.xm-search button:hover{ background:var(--bug2); }
.xm-acts{ display:flex; gap:28px; align-items:center; }
.xm-act{ display:flex; align-items:center; gap:10px; color:var(--ink); line-height:1.2; }
.xm-act:hover{ color:var(--bug); }
.xm-act small{ display:block; color:var(--muted2); font-size:12.5px; }
.xm-act b{ display:block; font-weight:700; font-size:15px; }
.xm-bag-i{ position:relative; display:flex; margin-right:5px; }
.xm-bag-n{ position:absolute; top:-7px; right:-10px; min-width:20px; height:20px; padding:0 5px; border-radius:20px; background:var(--bug); color:#fff; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; }

/* ---------- Navegación de categorías ---------- */
.xm-nav{ background:#fff; border-top:1px solid var(--line2); position:relative; z-index:20; }
.xm-nav .xm-wrap{ display:flex; align-items:center; height:48px; gap:22px; }
.xm-all{ position:static; flex:0 0 auto; }
.xm-all summary{ list-style:none; display:flex; align-items:center; gap:8px; font-weight:700; font-size:14.5px; cursor:pointer; padding-right:22px; border-right:1px solid var(--line2); height:48px; user-select:none; }
.xm-all summary::-webkit-details-marker{ display:none; }
.xm-all summary:hover,.xm-all[open] summary{ color:var(--bug); }
.xm-all-menu{ position:absolute; top:100%; left:max(28px, calc((100% - 1320px)/2 + 28px)); width:330px; background:#fff; border:1px solid var(--line2); border-radius:0 0 12px 12px; box-shadow:0 14px 34px rgba(36,24,38,.16); padding:8px 0 10px; }
.xm-all-menu a{ display:flex; justify-content:space-between; gap:14px; padding:10px 20px; font-size:15px; color:var(--ink); }
.xm-all-menu a:hover{ background:var(--maiz); color:var(--bug); }
.xm-all-menu em{ font-style:normal; color:var(--muted2); font-size:13.5px; }
.xm-all-menu .xm-all-top{ font-weight:700; border-bottom:1px solid var(--line2); margin-bottom:4px; padding-bottom:12px; }
.xm-nav-s{ display:flex; align-items:center; gap:26px; flex:1; min-width:0; overflow-x:auto; scrollbar-width:none; height:48px; }
.xm-nav-s::-webkit-scrollbar{ display:none; }
.xm-nav-s a{ font-size:14.5px; font-weight:600; color:var(--ink); white-space:nowrap; }
.xm-nav-s a:hover{ color:var(--bug); }
.xm-nav-s .xm-gold{ color:var(--gold); font-weight:700; }
.xm-sp{ flex:1; }
.xm-franja{ height:5px; background:linear-gradient(90deg,var(--bug) 0 20%,var(--cempa) 20% 40%,var(--sol) 40% 60%,var(--milpa) 60% 80%,var(--turq) 80% 100%); }

/* ---------- Botones propios ---------- */
.xm-btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; font-weight:700; font-size:15px; letter-spacing:.4px; border-radius:8px; padding:13px 24px; border:2px solid transparent; transition:background .2s,color .2s,border-color .2s; }
.xm-btn--pri{ background:var(--bug); color:#fff !important; }
.xm-btn--pri:hover{ background:var(--bug2); }
.xm-btn--ghost{ border-color:#fff; color:#fff !important; }
.xm-btn--ghost:hover{ background:#fff; color:var(--ink) !important; }

/* ---------- Fondos por tipo de página ---------- */
body.xm.home .xmain,
body.xm.post-type-archive-product .xmain,
body.xm.tax-product_cat .xmain,
body.xm.tax-creador .xmain,
body.xm.search .xmain{ background:var(--warm); }

/* ---------- Portada ---------- */
.xm-home{ padding-bottom:20px; }
.xm-hero{ display:grid; grid-template-columns:2.1fr 1fr; gap:16px; padding-top:22px; }
.xm-hero-big{ position:relative; border-radius:12px; overflow:hidden; min-height:420px; background:#241826 center 46%/cover; display:flex; align-items:center; }
.xm-hero-sc{ position:absolute; inset:0; background:linear-gradient(90deg,rgba(24,12,20,.90),rgba(24,12,20,.62) 46%,rgba(24,12,20,.08) 82%); }
.xm-hero-in{ position:relative; z-index:2; padding:46px 46px; max-width:600px; }
.xm-hero-in .eyebrow{ color:#E7C77E; }
body.xm .xm-hero-in h1{ color:#fff; font-size:52px; line-height:1.05; margin:14px 0 14px; }
.xm-hero-in p{ color:#fff; font-size:17px; line-height:1.6; opacity:.96; margin:0 0 24px; }
.xm-hero-cta{ display:flex; gap:12px; flex-wrap:wrap; }
.xm-hero-side{ display:grid; grid-template-rows:1fr 1fr; gap:16px; }
.xm-promo{ position:relative; border-radius:12px; overflow:hidden; background:#241826 center/cover; display:flex; align-items:flex-end; min-height:202px; }
.xm-promo-sc{ position:absolute; inset:0; background:linear-gradient(180deg,rgba(24,12,20,0) 28%,rgba(24,12,20,.84)); transition:background .3s; }
.xm-promo:hover .xm-promo-sc{ background:linear-gradient(180deg,rgba(24,12,20,.14) 10%,rgba(24,12,20,.88)); }
.xm-promo-in{ position:relative; z-index:2; padding:18px 20px; color:#fff; }
.xm-promo-in b{ display:block; font-family:'Bodoni Moda',serif; font-weight:400; font-size:26px; line-height:1.1; color:#fff; }
.xm-promo-in span{ font-size:14px; font-weight:700; letter-spacing:.4px; color:#E7C77E; }

.xm-trust{ display:grid; grid-template-columns:repeat(4,1fr); background:#fff; border:1px solid var(--line2); border-radius:12px; margin-top:16px; }
.xm-trust>div{ display:flex; gap:14px; align-items:center; padding:17px 20px; border-right:1px solid var(--line2); color:var(--gold); }
.xm-trust>div:last-child{ border-right:0; }
.xm-trust>div>span{ display:block; line-height:1.35; }
.xm-trust b{ display:block; font-size:15px; color:var(--ink); }
.xm-trust span span{ font-size:13.5px; color:var(--muted2); }

.xm-sec{ margin:40px 0; }
.xm-sec-h{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:16px; }
body.xm .xm-sec-h h2{ font-size:30px; line-height:1.15; margin:0; }
.xm-sec-h a{ font-size:14.5px; font-weight:700; color:var(--gold); white-space:nowrap; }
.xm-sec-h a:hover{ color:var(--bug); }

.xm-cats{ display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:12px; }
.xm-cat{ text-align:center; color:var(--ink); }
.xm-cat-c{ display:block; width:100%; max-width:112px; aspect-ratio:1/1; border-radius:50%; margin:0 auto 10px; background:#fff center/cover; border:3px solid #fff; box-shadow:0 0 0 1px var(--line2); transition:box-shadow .2s, transform .2s; }
.xm-cat:hover .xm-cat-c{ box-shadow:0 0 0 2px var(--bug); transform:translateY(-2px); }
.xm-cat-n{ display:block; font-size:14.5px; font-weight:600; line-height:1.25; }

.xm-stores{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.xm-store{ display:flex; flex-direction:column; background:#fff; border:1px solid var(--line2); border-radius:12px; overflow:hidden; color:var(--ink); transition:box-shadow .2s, transform .2s; }
.xm-store:hover{ box-shadow:0 8px 24px rgba(36,24,38,.12); transform:translateY(-2px); color:var(--ink); }
.xm-store-cv{ display:block; height:130px; background:#241826 center/cover; }
.xm-store-bd{ display:flex; flex-direction:column; flex:1; padding:0 18px 18px; }
.xm-store-logo{ display:flex; width:66px; height:66px; border-radius:50%; border:3px solid #fff; margin-top:-33px; object-fit:cover; background:var(--maiz); box-shadow:0 2px 8px rgba(0,0,0,.18); position:relative; }
.xm-store-logo--ini{ align-items:center; justify-content:center; background:var(--bug); color:#fff; font-family:'Playfair Display',serif; font-weight:700; font-size:26px; }
.xm-store-n{ display:block; font-family:'Bodoni Moda',serif; font-weight:400; font-size:22px; line-height:1.15; margin:10px 0 3px; }
.xm-store-loc{ display:block; font-size:13.5px; color:var(--muted2); }
.xm-store-meta{ display:flex; justify-content:space-between; align-items:center; margin-top:auto; padding-top:14px; font-size:14px; }
.xm-store-go{ font-weight:700; color:var(--bug); }

.xm-story{ display:grid; grid-template-columns:1fr 1.15fr; background:var(--ink); border-radius:14px; overflow:hidden; }
.xm-story-im{ display:block; background:#33243A center/cover; min-height:400px; }
.xm-story-tx{ padding:46px 50px; }
.xm-story .eyebrow{ color:#E7C77E; }
body.xm .xm-story h2{ color:#fff; font-size:38px; line-height:1.1; margin:12px 0 16px; }
.xm-story p{ color:#F3E9DB; font-size:16.5px; line-height:1.75; margin:0 0 20px; }
.xm-story-who{ margin-bottom:24px; line-height:1.4; }
.xm-story-who b{ display:block; color:#fff; font-size:16px; }
.xm-story-who span{ color:#CDBFA9; font-size:14px; }

.xm-impacto{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; text-align:center; background:#fff; border:1px solid var(--line2); border-radius:14px; padding:34px 20px; margin:44px 0 36px; }
.xm-impacto b{ display:block; font-family:'Bodoni Moda',serif; font-weight:400; font-size:46px; line-height:1; color:var(--ink); }
.xm-impacto b i{ font-family:'Nunito Sans',sans-serif; font-style:normal; font-weight:400; font-size:.72em; margin-right:2px; vertical-align:.08em; }
.xm-impacto span{ display:block; font-size:13px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--muted2); margin-top:10px; }

/* ---------- Rejilla y tarjeta de pieza (todo el sitio) ---------- */
body.xm ul.products{ display:grid !important; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px !important; margin:0 !important; padding:0 !important; list-style:none; }
body.xm ul.products::before,body.xm ul.products::after{ content:none !important; display:none !important; }
body.xm ul.products li.product{ width:auto !important; float:none !important; clear:none !important; margin:0 !important; padding:0 !important; display:block; text-align:left; background:#fff; border:1px solid var(--line2); border-radius:10px; overflow:hidden; transition:box-shadow .2s, transform .2s; }
body.xm ul.products li.product:hover{ box-shadow:0 8px 24px rgba(36,24,38,.12); transform:translateY(-2px); }
.xpc-a{ display:flex; flex-direction:column; height:100%; color:var(--ink); }
.xpc-a:hover{ color:var(--ink); }
.xpc-ph{ position:relative; display:block; aspect-ratio:1/1; background:var(--maiz); overflow:hidden; }
body.xm ul.products li.product .xpc-ph img{ width:100%; height:100%; object-fit:cover; display:block; margin:0; }
.xpc-tag{ position:absolute; top:10px; left:10px; font-size:12px; font-weight:700; letter-spacing:.8px; text-transform:uppercase; padding:4px 9px; border-radius:4px; background:var(--ink); color:#fff; }
.xpc-tag--bug{ background:var(--bug); } .xpc-tag--off{ background:#7B6F7D; }
.xpc-bx{ display:flex; flex-direction:column; gap:5px; padding:12px 14px 15px; flex:1; }
.xpc-cr{ font-size:12px; font-weight:700; letter-spacing:1.1px; text-transform:uppercase; color:var(--gold); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.xpc-nm{ font-size:15px; line-height:1.32; min-height:40px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.xpc-st{ display:flex; align-items:center; gap:6px; font-size:13px; color:var(--muted2); }
.xpc-st em{ font-style:normal; }
body.xm .xpc-st .star-rating{ margin:0; float:none; font-size:13px; color:var(--cempa); }
.xpc-pr{ font-size:22px; font-weight:700; margin-top:2px; line-height:1.2; }
body.xm .xpc-pr .woocommerce-Price-amount{ font-weight:700; }
.xpc-pr small{ font-size:12.5px; font-weight:600; color:var(--muted2); margin-left:4px; }
.xpc-pr del{ font-size:14px; font-weight:400; margin-right:6px; }
body.xm .xpc-pr del .woocommerce-Price-amount{ font-weight:400; }
.xpc-msi{ font-size:13.5px; color:var(--muted2); }

/* ---------- Listado: tienda, categoría, búsqueda ---------- */
.xm-list{ padding-top:18px; padding-bottom:70px; }
.xm-crumb{ font-size:13.5px; color:var(--muted2); margin-bottom:12px; }
.xm-crumb a{ color:var(--muted2); } .xm-crumb a:hover{ color:var(--bug); }
.xm-crumb span{ color:var(--ink); }
.xm-list-h{ margin-bottom:14px; }
body.xm .xm-list-h h1{ font-size:36px; line-height:1.1; margin:0; }
.xm-list-desc{ max-width:760px; color:var(--muted2); font-size:15.5px; line-height:1.65; margin-top:8px; }
.xm-list-desc p{ margin:0; }
.xm-chips{ display:flex; gap:9px; flex-wrap:wrap; margin-bottom:16px; }
.xm-chips a{ background:#fff; border:1px solid var(--line2); border-radius:30px; padding:8px 16px; font-size:14.5px; font-weight:600; color:var(--ink); white-space:nowrap; }
.xm-chips a:hover{ border-color:var(--ink); color:var(--ink); }
.xm-chips a.on{ background:var(--ink); border-color:var(--ink); color:#fff; }
.xm-list-bar,body.xm .xarchive-bar{ display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:16px; border:0; padding:0; }
body.xm .woocommerce-result-count{ margin:0; float:none; font-size:14.5px; color:var(--muted2); letter-spacing:0; }
body.xm .woocommerce-ordering{ margin:0; float:none; }
body.xm .woocommerce-ordering select{ border:1px solid var(--line2); background:#fff; border-radius:8px; padding:10px 14px; font-size:14.5px; font-weight:600; color:var(--ink); letter-spacing:0; }
body.xm nav.woocommerce-pagination{ margin-top:30px; text-align:center; }
body.xm nav.woocommerce-pagination ul{ border:0; display:inline-flex; gap:8px; margin:0; padding:0; list-style:none; }
body.xm nav.woocommerce-pagination ul li{ border:0; float:none; }
body.xm nav.woocommerce-pagination ul li a,body.xm nav.woocommerce-pagination ul li span{ display:flex; align-items:center; justify-content:center; min-width:44px; height:44px; padding:0 12px; border:1px solid var(--line2); border-radius:8px; background:#fff; font-size:15px; font-weight:700; color:var(--ink); }
body.xm nav.woocommerce-pagination ul li span.current{ background:var(--ink); border-color:var(--ink); color:#fff; }
body.xm nav.woocommerce-pagination ul li a:hover{ border-color:var(--ink); background:#fff; color:var(--ink); }
.xm-empty{ text-align:center; padding:60px 0; color:var(--muted2); font-size:16px; }
.xm-empty p{ margin:0 0 18px; }
body.xm .xarchive{ padding-left:28px; padding-right:28px; }

/* ---------- Ficha: piezas relacionadas con la tarjeta nueva ---------- */
body.xm .xficha{ padding-left:28px; padding-right:28px; }
body.xm .xficha-rel h2{ text-align:left; font-size:30px; margin:0 0 18px; }

/* ---------- Pie ---------- */
.xm-ft{ background:var(--ink); color:#EFE6D8; padding:50px 0 28px; }
.xm-ft-cols{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:34px; }
.xm-ft .wm{ font-family:'Playfair Display',serif; font-weight:800; font-size:28px; letter-spacing:3px; color:#fff; }
.xm-ft-brand p{ color:rgba(239,230,216,.72); font-size:14.5px; line-height:1.7; margin:14px 0 0; max-width:330px; }
body.xm .xm-ft h4{ font-family:'Nunito Sans',sans-serif !important; font-weight:700 !important; font-size:13px; letter-spacing:2px; text-transform:uppercase; color:#fff; margin:0 0 16px; }
.xm-ft-cols a{ display:block; color:rgba(239,230,216,.72); font-size:15px; margin-bottom:11px; }
.xm-ft a:hover{ color:#fff; }
.xm-ft-pay{ margin-top:34px; padding-top:22px; border-top:1px solid rgba(239,230,216,.16); font-size:14.5px; color:rgba(239,230,216,.72); }
.xm-ft-pay b{ color:#fff; margin-right:10px; }
.xm-ft-bot{ display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-top:20px; font-size:13.5px; color:rgba(239,230,216,.6); }
.xm-ft-bot a{ color:rgba(239,230,216,.72); }

/* ============================================================
   Tableta
   ============================================================ */
@media(max-width:1100px){
  body.xm ul.products{ grid-template-columns:repeat(4,minmax(0,1fr)); }
  body.xm ul.xm-row5 li.product:nth-child(n+5),body.xm ul.xm-row10 li.product:nth-child(n+9){ display:none; }
  .xm-cats{ grid-auto-flow:row; grid-template-columns:repeat(5,1fr); row-gap:18px; }
  .xm-stores{ grid-template-columns:repeat(2,1fr); }
  .xm-hd .xm-wrap{ gap:22px; }
  .xm-act-t small{ display:none; }
  body.xm .xm-hero-in h1{ font-size:44px; }
}
@media(max-width:900px){
  body.xm ul.products{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  body.xm ul.xm-row5 li.product:nth-child(n+4){ display:none; }
  body.xm ul.xm-row10 li.product:nth-child(9){ display:block; }
  .xm-hero{ grid-template-columns:1fr; }
  .xm-hero-side{ grid-template-rows:none; grid-template-columns:1fr 1fr; }
  .xm-promo{ min-height:170px; }
  .xm-trust{ grid-template-columns:1fr 1fr; }
  .xm-trust>div:nth-child(2){ border-right:0; }
  .xm-trust>div:nth-child(-n+2){ border-bottom:1px solid var(--line2); }
  .xm-story{ grid-template-columns:1fr; }
  .xm-story-im{ min-height:300px; }
  .xm-ft-cols{ grid-template-columns:1fr 1fr; }
}

/* ============================================================
   Celular
   ============================================================ */
@media(max-width:720px){
  .xm-wrap,body.xm .xcontain{ padding-left:14px; padding-right:14px; }
  .xm-util .xm-wrap{ justify-content:center; text-align:center; }
  .xm-util-r{ display:none; }
  .xm-hd .xm-wrap{ grid-template-columns:1fr auto; gap:12px 14px; padding-top:12px; padding-bottom:12px; }
  .xm-search{ grid-column:1 / -1; grid-row:2; height:48px; }
  .xm-search select{ display:none; }
  .xm-search button{ width:56px; }
  .xm-brand svg{ width:36px; height:36px; }
  .xm-brand .wm{ font-size:24px; }
  .xm-brand small{ font-size:10.5px; letter-spacing:2px; }
  .xm-acts{ gap:20px; }
  .xm-act-t{ display:none; }
  .xm-nav .xm-wrap{ gap:14px; padding-right:0; }
  .xm-all summary{ padding-right:14px; font-size:14.5px; }
  .xm-all-menu{ left:0; right:0; width:auto; border-left:0; border-right:0; border-radius:0; }
  .xm-all-menu a{ padding:13px 18px; font-size:16px; }
  .xm-nav-s{ gap:20px; padding-right:14px; }
  .xm-sp{ display:none; }

  .xm-hero{ padding-top:12px; gap:10px; }
  .xm-hero-big{ min-height:0; }
  .xm-hero-sc{ background:linear-gradient(180deg,rgba(24,12,20,.82),rgba(24,12,20,.62)); }
  .xm-hero-in{ padding:30px 22px 32px; }
  body.xm .xm-hero-in h1{ font-size:36px; }
  .xm-hero-in p{ font-size:16px; }
  .xm-hero-side{ gap:10px; }
  .xm-promo{ min-height:150px; }
  .xm-promo-in{ padding:14px; }
  .xm-promo-in b{ font-size:21px; }
  .xm-trust{ margin-top:10px; }
  .xm-trust>div{ padding:13px 12px; gap:10px; flex-direction:column; align-items:flex-start; }
  .xm-trust b{ font-size:14.5px; }
  .xm-sec{ margin:30px 0; }
  body.xm .xm-sec-h h2{ font-size:25px; }
  .xm-cats{ display:flex; overflow-x:auto; gap:14px; padding-bottom:6px; margin-right:-14px; padding-right:14px; scrollbar-width:none; }
  .xm-cats::-webkit-scrollbar{ display:none; }
  .xm-cat{ flex:0 0 86px; }
  .xm-cat-n{ font-size:13.5px; }
  .xm-stores{ grid-template-columns:1fr; gap:10px; }
  body.xm ul.products{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px !important; }
  body.xm ul.xm-row5 li.product:nth-child(4),body.xm ul.xm-row10 li.product:nth-child(10){ display:block; }
  .xpc-bx{ padding:10px 11px 13px; }
  .xpc-nm{ font-size:14.5px; min-height:38px; }
  .xpc-pr{ font-size:19px; }
  .xm-story-im{ min-height:240px; }
  .xm-story-tx{ padding:26px 22px 30px; }
  body.xm .xm-story h2{ font-size:28px; }
  .xm-impacto{ grid-template-columns:1fr 1fr; padding:26px 12px; gap:24px 10px; }
  .xm-impacto b{ font-size:36px; }
  body.xm .xm-list-h h1{ font-size:28px; }
  .xm-chips{ flex-wrap:nowrap; overflow-x:auto; margin-right:-14px; padding-right:14px; scrollbar-width:none; }
  .xm-chips::-webkit-scrollbar{ display:none; }
  .xm-list-bar,body.xm .xarchive-bar{ flex-direction:row; align-items:center; }
  body.xm .woocommerce-ordering select{ max-width:190px; }
  .xm-ft{ padding:36px 0 24px; }
  .xm-ft-cols{ gap:26px 18px; }
  .xm-ft-brand{ grid-column:1 / -1; }
  body.xm .xarchive,body.xm .xficha{ padding-left:14px; padding-right:14px; }
}

/* ============================================================
   MI CUENTA  ·  VENDE EN XANAY
   ============================================================ */
body.xm .bd{ font-family:'Bodoni Moda',Georgia,serif; font-weight:400; }
.xm-util .xm-util-sell{ color:var(--ink); font-weight:700; }
.xm-only-m{ display:none; }
.xm-btn--line{ background:#fff; border-color:var(--ink); color:var(--ink) !important; }
.xm-btn--line:hover{ background:var(--ink); color:#fff !important; }

/* ---------- Mi cuenta: estructura ---------- */
body.xm.woocommerce-account .xmain{ background:var(--warm); }
body.xm.woocommerce-account .xpage{ padding-top:26px; padding-bottom:70px; }
body.xm.woocommerce-account .xpage-title{ text-align:left; font-size:36px; line-height:1.1; margin:0 0 20px; }
body.xm.woocommerce-account.logged-in .xpage-content > .woocommerce{ display:grid; grid-template-columns:280px minmax(0,1fr); gap:24px; align-items:start; }
body.xm.woocommerce-account .xpage-content > .woocommerce::before,
body.xm.woocommerce-account .xpage-content > .woocommerce::after{ content:none; display:none; }

body.xm .xacc-nav{ float:none !important; width:auto !important; background:#fff; border:1px solid var(--line2); border-radius:12px; overflow:hidden; }
body.xm .xacc-nav ul{ list-style:none; margin:0; padding:8px 0; }
body.xm .xacc-nav li{ margin:0; padding:0; list-style:none; }
body.xm .xacc-nav a{ display:flex; align-items:center; gap:12px; padding:13px 20px; font-size:16px; font-weight:600; color:var(--ink); border-left:4px solid transparent; }
body.xm .xacc-nav a:hover{ background:var(--maiz); color:var(--ink); }
body.xm .xacc-nav li.is-active a{ border-left-color:var(--bug); background:var(--maiz); color:var(--bug); }
body.xm .xacc-nav li.woocommerce-MyAccount-navigation-link--customer-logout{ border-top:1px solid var(--line2); margin-top:8px; padding-top:8px; }
body.xm .xacc-nav li.woocommerce-MyAccount-navigation-link--customer-logout a{ color:var(--muted2); }

body.xm .woocommerce-MyAccount-content{ float:none !important; width:auto !important; background:#fff; border:1px solid var(--line2); border-radius:12px; padding:28px 30px; font-size:16px; line-height:1.6; min-width:0; }
body.xm .woocommerce-MyAccount-content:has(.xacc-hello){ background:none; border:0; padding:0; }
body.xm .woocommerce-MyAccount-content h2,body.xm .woocommerce-MyAccount-content h3{ font-size:26px; line-height:1.15; margin:0 0 14px; }
body.xm .woocommerce-MyAccount-content a{ color:var(--bug); font-weight:600; }
body.xm .woocommerce-MyAccount-content a:hover{ color:var(--bug2); }

/* ---------- Mi cuenta: escritorio ---------- */
.xacc-hello{ margin-bottom:18px; }
body.xm .xacc-hello h2{ font-size:32px; margin:0 0 6px; }
.xacc-hello p{ margin:0; color:var(--muted2); font-size:16px; }
.xacc-last,.xacc-empty{ display:flex; align-items:center; gap:16px; background:#fff; border:1px solid var(--line2); border-radius:12px; padding:20px 22px; margin-bottom:16px; color:var(--ink) !important; font-weight:400 !important; }
a.xacc-last:hover{ box-shadow:0 8px 24px rgba(36,24,38,.10); }
.xacc-last-i{ flex:0 0 auto; width:54px; height:54px; border-radius:50%; background:var(--maiz); color:var(--gold); display:flex; align-items:center; justify-content:center; }
.xacc-last-t{ flex:1; min-width:0; display:block; line-height:1.4; }
.xacc-last-t small{ display:block; font-size:13px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:var(--gold); }
.xacc-last-t b{ display:block; font-size:17px; }
.xacc-last-t > span{ display:block; font-size:15px; color:var(--muted2); }
.xacc-last-go{ font-weight:700; color:var(--bug); white-space:nowrap; }
.xacc-cards{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:16px; }
a.xacc-card{ display:block; background:#fff; border:1px solid var(--line2); border-radius:12px; padding:22px; color:var(--gold) !important; transition:box-shadow .2s, transform .2s; }
a.xacc-card:hover{ box-shadow:0 8px 24px rgba(36,24,38,.10); transform:translateY(-2px); }
.xacc-card b{ display:block; font-size:18px; color:var(--ink); margin-top:12px; }
.xacc-card span{ display:block; font-size:15px; font-weight:400; color:var(--muted2); margin-top:2px; }
a.xacc-vende{ display:flex; align-items:center; gap:18px; background:var(--ink); border-radius:12px; padding:24px 26px; color:#fff !important; font-weight:400 !important; }
.xacc-vende-i{ flex:0 0 auto; color:#E7C77E; display:flex; }
.xacc-vende-t{ flex:1; min-width:0; display:block; }
.xacc-vende-t b{ display:block; font-size:24px; line-height:1.15; color:#fff; }
.xacc-vende-t span{ display:block; font-size:15.5px; color:#D9CDBB; margin-top:4px; }
a.xacc-vende .xm-btn{ white-space:nowrap; }

/* ---------- Mi cuenta: acceso (visitantes) ---------- */
.xacc-login{ display:grid; grid-template-columns:minmax(0,1fr); gap:24px; max-width:580px; }
.xacc-login:has(.xacc-sell){ grid-template-columns:minmax(0,1fr) 380px; max-width:1000px; }
.xacc-login-main{ background:#fff; border:1px solid var(--line2); border-radius:12px; padding:30px 32px; }
body.xm .xacc-login-main h2{ font-size:30px; margin:0 0 16px; }
body.xm.woocommerce-account .woocommerce form.login,
body.xm.woocommerce-account .woocommerce form.register,
body.xm.woocommerce-account .woocommerce form.lost_reset_password{ border:0; padding:0; margin:0; border-radius:0; }
body.xm.woocommerce-account .woocommerce form.lost_reset_password{ background:#fff; border:1px solid var(--line2); border-radius:12px; padding:30px 32px; max-width:620px; font-size:16px; }
.xacc-sell{ background:var(--ink); border-radius:12px; padding:30px; color:#E7C77E; align-self:start; }
.xacc-sell b{ display:block; font-size:27px; line-height:1.12; color:#fff; margin:14px 0 10px; }
.xacc-sell p{ color:#D9CDBB; font-size:16px; line-height:1.6; margin:0 0 20px; }

/* ---------- Mi cuenta: formularios, tablas y botones ---------- */
body.xm.woocommerce-account .woocommerce form .form-row{ padding:0; margin:0 0 16px; }
body.xm.woocommerce-account .woocommerce form .form-row label{ font-size:15px; font-weight:700; line-height:1.4; margin-bottom:6px; display:block; color:var(--ink); }
body.xm.woocommerce-account .woocommerce form .form-row label.woocommerce-form__label-for-checkbox{ display:inline-flex; align-items:center; gap:8px; font-weight:400; margin:0 0 14px; }
body.xm.woocommerce-account .woocommerce input.input-text,
body.xm.woocommerce-account .woocommerce select,
body.xm.woocommerce-account .woocommerce textarea{ width:100%; min-height:50px; border:1.5px solid #CFC6BA; border-radius:8px; padding:11px 14px; font-size:16px; color:var(--ink); background:#fff; outline:none; box-shadow:none; }
body.xm.woocommerce-account .woocommerce input.input-text:focus,
body.xm.woocommerce-account .woocommerce select:focus,
body.xm.woocommerce-account .woocommerce textarea:focus{ border-color:var(--bug); }
body.xm.woocommerce-account .woocommerce fieldset{ border:1px solid var(--line2); border-radius:10px; padding:18px 20px 6px; margin:22px 0; }
body.xm.woocommerce-account .woocommerce fieldset legend{ font-size:16px; font-weight:700; padding:0 8px; }
body.xm.woocommerce-account .woocommerce em{ font-size:14px; color:var(--muted2); }
body.xm.woocommerce-account .woocommerce a.button,
body.xm.woocommerce-account .woocommerce button.button,
body.xm.woocommerce-account .woocommerce input.button{ background:var(--bug) !important; color:#fff !important; border-radius:8px !important; text-transform:none !important; letter-spacing:.4px !important; font-size:15px !important; font-weight:700 !important; padding:13px 24px !important; }
body.xm.woocommerce-account .woocommerce a.button:hover,
body.xm.woocommerce-account .woocommerce button.button:hover{ background:var(--bug2) !important; }
body.xm.woocommerce-account .woocommerce .lost_password{ margin:14px 0 0; font-size:15px; }
body.xm.woocommerce-account .woocommerce .lost_password a{ color:var(--bug); font-weight:600; }
body.xm.woocommerce-account .woocommerce table.shop_table{ border:1px solid var(--line2); border-radius:10px; border-collapse:separate; border-spacing:0; width:100%; margin:0 0 18px; font-size:15.5px; }
body.xm.woocommerce-account .woocommerce table.shop_table th{ font-size:13px; padding:13px 14px; background:var(--maiz); color:var(--muted2); }
body.xm.woocommerce-account .woocommerce table.shop_table td{ padding:13px 14px; border-top:1px solid var(--line2); }
body.xm.woocommerce-account .woocommerce table.shop_table .button{ padding:9px 16px !important; font-size:14px !important; }
body.xm.woocommerce-account .woocommerce .woocommerce-Addresses{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:16px; }
body.xm.woocommerce-account .woocommerce .woocommerce-Addresses::before,
body.xm.woocommerce-account .woocommerce .woocommerce-Addresses::after{ content:none; display:none; }
body.xm.woocommerce-account .woocommerce .woocommerce-Address{ float:none; width:auto; border:1px solid var(--line2); border-radius:10px; padding:20px; }
body.xm.woocommerce-account .woocommerce .woocommerce-Address-title h2,
body.xm.woocommerce-account .woocommerce .woocommerce-Address-title h3{ font-size:22px; margin:0 0 6px; float:none; }
body.xm.woocommerce-account .woocommerce .woocommerce-Address-title a{ float:none; display:inline-block; margin-bottom:10px; }
body.xm.woocommerce-account .woocommerce address{ font-style:normal; line-height:1.6; }
body.xm.woocommerce-account .woocommerce-info,
body.xm.woocommerce-account .woocommerce-message,
body.xm.woocommerce-account .woocommerce-error{ border-radius:10px; font-size:15.5px; background:#fff; margin:0 0 16px; }

/* ---------- Vende en Xanay ---------- */
.xv{ background:var(--warm); padding-bottom:70px; }
.xv-hero{ background:var(--ink); padding:54px 0 74px; }
.xv-hero .eyebrow{ color:#E7C77E; }
body.xm .xv-hero h1{ color:#fff; font-size:54px; line-height:1.05; margin:12px 0 14px; }
.xv-hero p{ color:#F3E9DB; font-size:17.5px; line-height:1.65; max-width:680px; margin:0 0 26px; }
.xv-steps{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:-38px; }
.xv-steps>div{ background:#fff; border:1px solid var(--line2); border-radius:12px; padding:24px; }
.xv-n{ display:flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:50%; background:var(--bug); color:#fff; font-weight:700; font-size:19px; }
.xv-steps b{ display:block; font-size:19px; margin:14px 0 6px; }
.xv-steps p{ margin:0; font-size:15.5px; line-height:1.6; color:var(--muted2); }
.xv-main{ display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:24px; margin-top:28px; scroll-margin-top:16px; align-items:start; }
.xv-form{ background:#fff; border:1px solid var(--line2); border-radius:12px; padding:34px 36px; }
body.xm .xv-form h2{ font-size:32px; line-height:1.1; margin:0 0 6px; }
.xv-sub{ margin:0 0 22px; color:var(--muted2); font-size:15px; }
.xv-form form>label,.xv-row>label{ display:block; font-size:15px; font-weight:700; margin:0 0 18px; }
.xv-form input[type=text],.xv-form input[type=tel],.xv-form input[type=email],.xv-form input[type=url],.xv-form select,.xv-form textarea{ display:block; width:100%; margin-top:7px; min-height:50px; border:1.5px solid #CFC6BA; border-radius:8px; padding:11px 14px; font-size:16px; font-weight:400; color:var(--ink); background:#fff; outline:none; font-family:inherit; }
.xv-form textarea{ min-height:112px; resize:vertical; line-height:1.5; }
.xv-form input:focus,.xv-form select:focus,.xv-form textarea:focus{ border-color:var(--bug); }
.xv-form ::placeholder{ color:#8E8290; }
.xv-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.xv-tipo{ border:0; padding:0; margin:0 0 20px; display:grid; grid-template-columns:1fr 1fr; gap:12px; min-width:0; }
.xv-tipo legend{ font-size:15px; font-weight:700; padding:0; margin-bottom:8px; }
.xv-tipo label{ display:flex; gap:12px; align-items:flex-start; border:1.5px solid #CFC6BA; border-radius:10px; padding:14px 16px; cursor:pointer; }
.xv-tipo label:hover{ border-color:var(--ink); }
.xv-tipo label:has(input:checked){ border-color:var(--bug); background:var(--maiz); }
.xv-tipo input{ margin:4px 0 0; accent-color:var(--bug); width:18px; height:18px; flex:0 0 auto; }
.xv-tipo b{ display:block; font-size:16px; }
.xv-tipo small{ display:block; font-size:14px; color:var(--muted2); font-weight:400; }
.xv-hp{ position:absolute !important; left:-9999px; width:1px; height:1px; overflow:hidden; }
.xv-form label.xv-check{ display:flex; gap:10px; align-items:flex-start; font-weight:400; font-size:15px; line-height:1.5; margin:4px 0 22px; }
.xv-check input{ margin:3px 0 0; width:18px; height:18px; accent-color:var(--bug); flex:0 0 auto; }
.xv-check a{ color:var(--bug); font-weight:700; }
button.xv-send{ width:100%; padding:16px 24px; font-size:17px; border:0; cursor:pointer; font-family:inherit; }
.xv-err{ background:#FDECEC; border:1px solid #E8A9A9; color:#8A1C1C; border-radius:10px; padding:14px 16px; font-size:15.5px; margin:0 0 20px; }
.xv-done{ text-align:center; padding:26px 8px 12px; }
.xv-done-i{ display:inline-flex; align-items:center; justify-content:center; width:70px; height:70px; border-radius:50%; background:var(--milpa); color:#fff; }
body.xm .xv-done h2{ margin:18px 0 10px; }
.xv-done p{ max-width:520px; margin:0 auto 24px; font-size:16.5px; line-height:1.65; color:var(--muted2); }
.xv-side{ display:grid; gap:16px; }
.xv-box{ background:#fff; border:1px solid var(--line2); border-radius:12px; padding:22px 24px; }
.xv-box>b{ display:block; font-size:23px; line-height:1.15; margin-bottom:10px; }
.xv-box ul{ list-style:none; margin:0 0 10px; padding:0; }
.xv-box li{ position:relative; padding:5px 0 5px 22px; font-size:15.5px; }
.xv-box li::before{ content:''; position:absolute; left:2px; top:14px; width:8px; height:8px; border-radius:50%; background:var(--gold); }
.xv-box p{ margin:0 0 14px; font-size:15.5px; line-height:1.6; color:var(--muted2); }
.xv-box p:last-child{ margin-bottom:0; }
.xv-box .xm-btn{ width:100%; font-size:15px; padding:12px 14px; }

@media(max-width:900px){
  body.xm.woocommerce-account.logged-in .xpage-content > .woocommerce{ grid-template-columns:1fr; gap:14px; }
  body.xm .xacc-nav{ border:0; background:none; border-radius:0; margin:0 -14px; }
  body.xm .xacc-nav ul{ display:flex; gap:8px; overflow-x:auto; padding:2px 14px 8px; scrollbar-width:none; }
  body.xm .xacc-nav ul::-webkit-scrollbar{ display:none; }
  body.xm .xacc-nav a{ border:1px solid var(--line2); border-radius:30px; background:#fff; padding:9px 15px; font-size:15px; white-space:nowrap; gap:8px; }
  body.xm .xacc-nav li.is-active a{ background:var(--ink); border-color:var(--ink); color:#fff; }
  body.xm .xacc-nav li.woocommerce-MyAccount-navigation-link--customer-logout{ border:0; margin:0; padding:0; }
  .xacc-login,.xacc-login:has(.xacc-sell){ grid-template-columns:1fr; }
  .xv-main{ grid-template-columns:1fr; }
  .xv-steps{ grid-template-columns:1fr; margin-top:-30px; gap:10px; }
}
@media(max-width:720px){
  .xm-only-m{ display:inline; }
  body.xm.woocommerce-account .xpage{ padding-top:16px; padding-bottom:50px; }
  body.xm.woocommerce-account .xpage-title{ font-size:28px; margin-bottom:14px; }
  body.xm .woocommerce-MyAccount-content{ padding:20px 16px; }
  body.xm .xacc-hello h2{ font-size:26px; }
  .xacc-last,.xacc-empty{ flex-wrap:wrap; padding:16px; }
  .xacc-last-go{ width:100%; }
  .xacc-empty .xm-btn{ width:100%; }
  .xacc-cards{ grid-template-columns:1fr; gap:10px; }
  a.xacc-card{ display:grid; grid-template-columns:auto 1fr; column-gap:14px; align-items:center; padding:16px; }
  .xacc-card svg{ grid-row:1 / 3; }
  .xacc-card b{ margin-top:0; }
  a.xacc-vende{ flex-direction:column; align-items:flex-start; padding:22px 18px; }
  a.xacc-vende .xm-btn{ width:100%; }
  .xacc-login-main,.xacc-sell{ padding:22px 18px; }
  body.xm.woocommerce-account .woocommerce .woocommerce-Addresses{ grid-template-columns:1fr; }
  .xv-hero{ padding:34px 0 56px; }
  body.xm .xv-hero h1{ font-size:38px; }
  .xv-hero p{ font-size:16px; }
  .xv-hero .xm-btn{ width:100%; }
  .xv-form{ padding:22px 16px; }
  body.xm .xv-form h2{ font-size:26px; }
  .xv-row,.xv-tipo{ grid-template-columns:1fr; gap:0; }
  .xv-tipo{ gap:10px; }
}
