/* Tienda WebCenter: diseño nuevo (catálogo, producto, carrito y pedidos).
   Todo va dentro de .wc-store para no afectar la barra de navegación ni el héroe. */

.wc-store {
  --primary-fill: #0670d0;
  --primary-fill-hover: #0560b5;
  --bg: #f7f9fb;
  --surface: #ffffff;
  --text: #111319;
  --muted: #696f78;
  --border: #e7eaee;
  --primary: #087be4;
  --primary-hover: #0668c2;
  --primary-soft: #e6f2fd;
  --cyan: #19bcd0;
  --navy: #091b2c;
  --accent: #c83b4c;
  --success: #12a37a;
  --gradient: linear-gradient(120deg, #087be4 0%, #19bcd0 100%);
  --shadow: 0 1px 2px rgba(9, 27, 44, .05), 0 10px 30px rgba(9, 27, 44, .08);
  --radius: 19px;
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: normal;
}

:root[data-theme="dark"] .wc-store {
  --primary-fill: #0a6ccc;
  --primary-fill-hover: #0b5fb2;
  --bg: #08121c;
  --surface: #102031;
  --text: #edf5f8;
  --muted: #9daebc;
  --border: #1d3247;
  --primary: #2f95f0;
  --primary-hover: #57abf5;
  --primary-soft: #12304b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
}

.wc-store [hidden] { display: none !important; }
.wc-store button, .wc-store input, .wc-store select { font: inherit; color: inherit; }
.wc-store a { color: inherit; }
.wc-store svg { fill: currentColor; }

/* ---------- Pestañas de la tienda (reemplazan la barra lateral) ---------- */
.wc-store .store-tabs {
  max-width: 1240px; margin: 28px auto 0; padding: 0 28px;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  scroll-margin-top: 100px;
}
.wc-store .store-tabs::-webkit-scrollbar { display: none; }
.wc-store .store-tab {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); text-decoration: none;
  font-weight: 600; font-size: .92rem; transition: color .2s, border-color .2s, background .2s;
}
.wc-store .store-tab svg { width: 18px; height: 18px; }
.wc-store .store-tab:hover { color: var(--text); border-color: var(--primary); }
.wc-store .store-tab.active { background: var(--primary-fill); border-color: var(--primary-fill); color: #fff; }

/* ---------- Estructura ---------- */
.wc-store .view { width: 100%; max-width: 1240px; margin: 0 auto; padding: 8px 28px 24px; min-height: 40vh; }

.wc-store .badge {
  position: absolute; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; font-style: normal;
  display: grid; place-items: center; border: 2px solid var(--surface);
}
.wc-store .bump, #cart-count.bump { animation: wc-bump .35s ease; }
@keyframes wc-bump { 50% { transform: scale(1.18); } }

/* ---------- Botones ---------- */
.wc-store .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; cursor: pointer; text-decoration: none; transition: background .2s, transform .1s;
}
.wc-store .btn:active { transform: scale(.97); }
.wc-store .btn-main { background: var(--primary-fill); color: #fff; }
.wc-store .btn-main:hover { background: var(--primary-fill-hover); }
.wc-store .btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.wc-store .btn-ghost:hover { background: var(--primary-soft); }
.wc-store .btn-dark { background: var(--navy); color: #fff; }
.wc-store .btn-dark:hover { background: #17324b; }
:root[data-theme="dark"] .wc-store .btn-dark { background: #edf5f8; color: var(--navy); }
:root[data-theme="dark"] .wc-store .btn-dark:hover { background: #fff; }
.wc-store .btn-block { width: 100%; }
.wc-store .btn-lg { padding: 14px 22px; font-size: 1rem; }
.wc-store .btn:disabled { opacity: .6; cursor: not-allowed; }
.wc-store .icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; display: grid; place-items: center;
}
.wc-store .icon-btn:hover { background: var(--primary-soft); }

/* ---------- Secciones y carruseles ---------- */
.wc-store .wc-section { margin-top: 44px; }
.wc-store .section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.wc-store .section-head h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; }
.wc-store .section-head a { color: var(--primary); font-weight: 600; text-decoration: none; font-size: .92rem; }
.wc-store .section-head a:hover { text-decoration: underline; }
.wc-store .arrows { display: flex; gap: 6px; align-items: center; }

.wc-store .rail {
  display: grid; grid-auto-flow: column; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 12px;
}
.wc-store .rail::-webkit-scrollbar { display: none; }
.wc-store .rail > * { scroll-snap-align: start; }

/* Categorías como tiendas */
.wc-store .rail-stores { grid-auto-columns: minmax(260px, 1fr); }
.wc-store .store-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s; text-align: left; padding: 0;
}
.wc-store .store-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.wc-store .store-cover { height: 130px; display: grid; grid-template-columns: 2fr 1fr; gap: 3px; }
.wc-store .store-cover > div { display: grid; place-items: center; font-size: 3.2rem; }
.wc-store .store-cover .stack { display: grid; grid-template-rows: 1fr 1fr; gap: 3px; }
.wc-store .store-cover .stack > div { display: grid; place-items: center; font-size: 1.7rem; }
.wc-store .store-info { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.wc-store .store-logo {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; overflow: hidden;
  color: #fff; font-weight: 800; font-size: 1.3rem; flex-shrink: 0;
}
.wc-store .store-logo img { width: 100%; height: 100%; object-fit: cover; }
.wc-store .store-info strong { display: block; }
.wc-store .store-info small { color: var(--muted); }

/* Productos */
.wc-store .rail-products { grid-auto-columns: minmax(200px, 220px); }
.wc-store .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.wc-store .card { display: flex; flex-direction: column; gap: 8px; animation: wc-fade-up .3s ease both; }
@keyframes wc-fade-up { from { opacity: 0; transform: translateY(8px); } }
.wc-store .card-media {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); width: 100%;
  display: grid; place-items: center; font-size: 4.2rem; cursor: pointer; transition: transform .25s;
  padding: 14px; border: 1px solid var(--border);
}
.wc-store .card-media:hover { transform: scale(1.02); }
.wc-store .quick-add {
  position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow);
  font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; transition: transform .15s, background .2s;
}
.wc-store .quick-add:hover { transform: scale(1.1); background: var(--primary-fill); color: #fff; }
.wc-store .quick-add.added { background: var(--success); color: #fff; }
.wc-store .tag {
  position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
}
.wc-store .card-store { font-size: .78rem; color: var(--muted); }
.wc-store .card-title { font-weight: 600; margin: 0; font-size: .95rem; cursor: pointer; line-height: 1.3; }
.wc-store .card-title:hover { color: var(--primary); }
.wc-store .price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.wc-store .price { font-weight: 800; }

.wc-store .stock { font-size: .75rem; color: var(--cyan); font-weight: 600; }
.wc-store .stock.low { color: #f29d38; }
.wc-store .stock.out { color: var(--accent); }

/* Fotos: se muestran completas, sin recortar */
.wc-store .pimg { width: 100%; height: 100%; object-fit: contain; display: block; }
.wc-store .picon { font-size: inherit; line-height: 1; }
.wc-store .card-media, .wc-store .store-cover > div, .wc-store .store-cover .stack > div,
.wc-store .cart-thumb, .wc-store .order-thumbs span { background: #fff; overflow: hidden; }
:root[data-theme="dark"] .wc-store .card-media, :root[data-theme="dark"] .wc-store .store-cover > div,
:root[data-theme="dark"] .wc-store .store-cover .stack > div, :root[data-theme="dark"] .wc-store .cart-thumb,
:root[data-theme="dark"] .wc-store .order-thumbs span { background: #f2f6f9; }
.wc-store .store-cover .stack { background: none !important; }
.wc-store .card-media .pimg { transition: transform .3s; }
.wc-store .card-media:hover .pimg { transform: scale(1.04); }
.wc-store .store-cover > div, .wc-store .store-cover .stack > div { padding: 8px; }
.wc-store .cart-thumb, .wc-store .order-thumbs span { padding: 4px; }

/* Contacto */
.wc-store .contact {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
}
.wc-store .contact h2 { margin: 0; font-size: 1.3rem; }
.wc-store .contact p { margin: 4px 0 0; color: var(--muted); }
.wc-store .contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Catálogo ---------- */
.wc-store .page-head { margin: 16px 0 20px; }
.wc-store .page-head h1 { margin: 0; font-size: 1.8rem; letter-spacing: -.02em; }
.wc-store .page-head p { margin: 4px 0 0; color: var(--muted); }
.wc-store .toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.wc-store .chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.wc-store .chips::-webkit-scrollbar { display: none; }
.wc-store .chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; white-space: nowrap; font-weight: 500; font-size: .9rem; transition: all .2s;
}
.wc-store .chip:hover { border-color: var(--primary); }
.wc-store .chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .wc-store .chip.active { background: var(--primary); border-color: var(--primary); }
.wc-store .sort select { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }

.wc-store .empty, .wc-store .cart-empty { text-align: center; color: var(--muted); padding: 48px 16px; }
.wc-store .empty p, .wc-store .cart-empty p { margin: 8px 0 16px; }
.wc-store .empty-icon { font-size: 3rem; }
.wc-store .loading { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin-top: 24px; }
.wc-store .loading span {
  aspect-ratio: 1; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  animation: wc-pulse 1.2s ease-in-out infinite;
}
@keyframes wc-pulse { 50% { opacity: .5; } }

/* ---------- Pedidos ---------- */
.wc-store .orders { display: flex; flex-direction: column; gap: 14px; }
.wc-store .order {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center;
}
.wc-store .order-thumbs { display: flex; gap: 6px; }
.wc-store .order-thumbs span { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 1.4rem; }
.wc-store .order small { color: var(--muted); display: block; }
.wc-store .status { background: var(--primary-soft); color: var(--primary); padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; }

/* ---------- Página de producto ---------- */
.wc-store .crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 18px; font-size: .88rem; color: var(--muted); }
.wc-store .crumbs a { text-decoration: none; }
.wc-store .crumbs a:hover { color: var(--primary); }
.wc-store .crumbs [aria-current] { color: var(--text); font-weight: 500; }
.wc-store .crumb-back {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; font-size: 1.2rem; line-height: 1; margin-right: 4px;
}
.wc-store .crumb-back:hover { background: var(--primary-soft); }

.wc-store .pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.wc-store .pdp-gallery { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 12px; }
.wc-store .pdp-main {
  position: relative; aspect-ratio: 1; border-radius: 26px; background: #fff; border: 1px solid var(--border);
  display: grid; place-items: center; padding: 36px; overflow: hidden; font-size: 8rem;
}
:root[data-theme="dark"] .wc-store .pdp-main { background: #f2f6f9; }
.wc-store .pdp-main .pimg {
  position: absolute; inset: var(--pdp-pad, 36px);
  width: calc(100% - 2 * var(--pdp-pad, 36px)); height: calc(100% - 2 * var(--pdp-pad, 36px));
}
/* Flechas de la galería: círculo de vidrio que se resalta al pasar el mouse por la foto. */
.wc-store .pdp-arrow {
  position: absolute; top: 50%; z-index: 1; width: 46px; height: 46px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(9, 27, 44, .08); color: #0b2540;
  background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(9, 27, 44, .16), 0 1px 3px rgba(9, 27, 44, .1);
  transform: translateY(-50%); opacity: .9;
  transition: opacity .2s ease, transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.wc-store .pdp-arrow.prev { left: 16px; }
.wc-store .pdp-arrow.next { right: 16px; }
.wc-store .pdp-arrow.prev svg { transform: scaleX(-1); }
.wc-store .pdp-arrow:hover { background: var(--primary); color: #fff; border-color: transparent; box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 45%, transparent); transform: translateY(-50%) scale(1.08); }
.wc-store .pdp-arrow:active { transform: translateY(-50%) scale(.94); }
.wc-store .pdp-arrow:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 60%, transparent); outline-offset: 3px; opacity: 1; }
@media (hover: hover) {
  .wc-store .pdp-main .pdp-arrow { opacity: 0; }
  .wc-store .pdp-main .pdp-arrow.prev { transform: translate(-6px, -50%); }
  .wc-store .pdp-main .pdp-arrow.next { transform: translate(6px, -50%); }
  .wc-store .pdp-main:hover .pdp-arrow, .wc-store .pdp-main .pdp-arrow:focus-visible { opacity: 1; transform: translateY(-50%); }
  .wc-store .pdp-main .pdp-arrow:hover { transform: translateY(-50%) scale(1.08); }
}
.wc-store .pdp-count {
  position: absolute; right: 14px; bottom: 14px; z-index: 1; padding: 4px 11px; border-radius: 999px;
  background: rgba(9, 27, 44, .72); color: #fff; font-size: .76rem; font-weight: 700; letter-spacing: .02em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) { .wc-store .pdp-arrow { transition: none; } }
.wc-store .pdp-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.wc-store .pdp-thumbs button {
  width: 72px; height: 72px; flex-shrink: 0; border-radius: 14px; border: 2px solid transparent;
  background: #fff; padding: 6px; cursor: pointer; opacity: .65;
}
.wc-store .pdp-thumbs button { transition: opacity .2s ease, border-color .2s ease, transform .2s ease; }
.wc-store .pdp-thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.wc-store .pdp-thumbs button.active { border-color: var(--primary); opacity: 1; box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 25%, transparent); }
.wc-store .pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.wc-store .pdp-info { display: flex; flex-direction: column; gap: 14px; }
.wc-store .pdp-store { display: flex; align-items: center; gap: 10px; }
.wc-store .pdp-store img, .wc-store .pdp-store-card img { width: 36px; height: 36px; object-fit: contain; border-radius: 10px; }
.wc-store .pdp-store strong, .wc-store .pdp-store-card strong { display: block; font-size: .92rem; }
.wc-store .pdp-store small, .wc-store .pdp-store-card small { color: var(--muted); font-size: .8rem; }
.wc-store .pdp-info h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; }
.wc-store .pdp-price { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wc-store .pdp-price .price { font-size: 1.8rem; }
.wc-store .pdp-tax { margin: -8px 0 0; color: var(--muted); font-size: .85rem; }
.wc-store .pdp-qty { display: flex; align-items: center; justify-content: space-between; }
.wc-store .pdp-qty > span { font-weight: 500; }
.wc-store .pdp-qty .qty { margin: 0; }
.wc-store .pdp-qty .qty button { width: 38px; height: 38px; font-size: 1.1rem; }
.wc-store .pdp-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.wc-store .pdp-section { border-top: 1px solid var(--border); padding: 4px 0; }
.wc-store .pdp-section summary {
  list-style: none; cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center;
}
.wc-store .pdp-section summary::-webkit-details-marker { display: none; }
.wc-store .pdp-section summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--muted); transition: transform .2s; }
.wc-store .pdp-section[open] summary::after { transform: rotate(45deg); }
.wc-store .pdp-section p, .wc-store .pdp-section ul { margin: 0 0 14px; color: var(--muted); }
.wc-store .pdp-section ul { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.wc-store .specs { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: .92rem; }
.wc-store .specs th, .wc-store .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.wc-store .specs th { color: var(--muted); font-weight: 500; width: 42%; }
.wc-store .specs tr:last-child th, .wc-store .specs tr:last-child td { border-bottom: 0; }

.wc-store .pdp-store-card {
  display: flex; align-items: center; gap: 12px; padding: 16px; margin-top: 6px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.wc-store .pdp-store-card div { flex: 1; }

/* ---------- Carrito ---------- */
.wc-store .overlay { position: fixed; inset: 0; background: rgba(9, 27, 44, .5); z-index: 3000; animation: wc-fade .2s; }
@keyframes wc-fade { from { opacity: 0; } }
.wc-store .drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: var(--surface); z-index: 3100; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease; box-shadow: var(--shadow);
  visibility: hidden;
}
.wc-store .drawer.open { transform: none; visibility: visible; }
.wc-store .drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.wc-store .drawer-head h2 { margin: 0; font-size: 1.2rem; }
.wc-store .cart-items { list-style: none; margin: 0; padding: 8px 20px; overflow-y: auto; flex: 1; }
.wc-store .cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center; }
.wc-store .cart-thumb { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; font-size: 2rem; }
.wc-store .cart-item h4 { margin: 0 0 2px; font-size: .92rem; font-weight: 600; }
.wc-store .cart-item .unit { color: var(--muted); font-size: .8rem; }
.wc-store .qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; margin-top: 6px; }
.wc-store .qty button { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.wc-store .qty button:hover { background: var(--primary-soft); }
.wc-store .qty button:disabled { opacity: .35; cursor: not-allowed; }
.wc-store .qty span { min-width: 26px; text-align: center; font-weight: 600; }
.wc-store .item-side { text-align: right; }
.wc-store .item-side strong { display: block; }
.wc-store .remove { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .8rem; margin-top: 6px; }
.wc-store .remove:hover { color: var(--accent); }
.wc-store .drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--border); }
.wc-store .drawer-foot .row { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--muted); }
.wc-store .drawer-foot .total { color: var(--text); font-size: 1.15rem; font-weight: 800; margin: 10px 0 14px; }

/* ---------- Checkout ---------- */
.wc-store .modal {
  margin: auto; border: 0; border-radius: 24px; padding: 0; width: min(520px, calc(100% - 32px));
  max-height: calc(100dvh - 32px); overflow-y: auto;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
.wc-store .modal::backdrop { background: rgba(9, 27, 44, .55); }
.wc-store .modal[open] { animation: wc-pop .2s ease; }
@keyframes wc-pop { from { opacity: 0; transform: scale(.96); } }
.wc-store .modal-close { position: absolute; top: 12px; right: 12px; z-index: 1; }
.wc-store .checkout, .wc-store .order-done { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.wc-store .checkout h2 { margin: 0 0 4px; font-size: 1.4rem; }
.wc-store .checkout label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 500; }
.wc-store .checkout small { color: var(--muted); font-weight: 400; }
.wc-store .checkout input, .wc-store .checkout select { width: 100%; min-width: 0; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); outline: none; }
.wc-store .checkout .two > label { min-width: 0; }
.wc-store .checkout select { color: inherit; font: inherit; }
.wc-store .checkout input:focus, .wc-store .checkout select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.wc-store .checkout input.invalid, .wc-store .checkout select.invalid { border-color: var(--accent); }
.wc-store .checkout .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wc-store .checkout-total { font-size: 1.05rem; }
.wc-store .hint { color: var(--muted); font-size: .82rem; text-align: center; margin: 0; }
.wc-store .order-done { text-align: center; align-items: center; }
.wc-store .checkout-step { padding: 36px 28px 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.wc-store .checkout-step h2 { margin: 0; font-size: 1.4rem; }
.wc-store .checkout-step p { margin: 0; color: var(--muted); }
.wc-store .checkout-step .btn { width: 100%; }
.wc-store .checkout-user { margin: -6px 0 0; color: var(--muted); font-size: .88rem; }
.wc-store .saved-addresses { display: grid; gap: 8px; }
.wc-store .saved-addresses .pay-option span { min-width: 0; }
.wc-store .saved-addresses small { overflow-wrap: anywhere; }
.wc-store .saved-addresses .link-btn { justify-self: start; padding: 0; border: 0; background: none; color: var(--primary); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.wc-store .address-fields { display: flex; flex-direction: column; gap: 14px; }
.wc-store .address-fields .hint { text-align: left; }
.wc-store .order-done h2 { margin: 0; font-size: 1.4rem; }
.wc-store .order-done p { margin: 0; }
.wc-store .order-done .btn { width: 100%; }

/* ---------- Avisos y pie ---------- */
.wc-store .toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 3200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.wc-store .toast { background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: .9rem; box-shadow: var(--shadow); animation: wc-toast-in .25s ease; }
:root[data-theme="dark"] .wc-store .toast { background: #edf5f8; color: var(--navy); }
.wc-store .toast.out { opacity: 0; transition: opacity .3s; }
@keyframes wc-toast-in { from { opacity: 0; transform: translateY(10px); } }

.wc-store .wc-footer {
  margin-top: 48px; padding: 24px 28px; background: none; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .88rem; text-align: center;
}
.wc-store .wc-footer p { margin: 6px 0 0; }
.wc-store .footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.wc-store .footer-links a { text-decoration: none; }
.wc-store .footer-links a:hover { color: var(--primary); }

/* ---------- Móvil ---------- */
@media (max-width: 900px) {
  .wc-store .pdp { grid-template-columns: 1fr; gap: 24px; }
  .wc-store .pdp-gallery { position: static; }
  .wc-store .pdp-main { --pdp-pad: 22px; padding: 22px; border-radius: 22px; }
}

@media (max-width: 760px) {
  .wc-store .store-tabs { padding: 0 16px; margin-top: 20px; }
  .wc-store .view { padding: 4px 16px 24px; }
  .wc-store .rail-products { grid-auto-columns: 46%; }
  .wc-store .grid, .wc-store .loading { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .wc-store .card-media { font-size: 3.2rem; }
  .wc-store .checkout .two { grid-template-columns: 1fr; }
  .wc-store .arrows .icon-btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wc-store *, .wc-store *::before, .wc-store *::after, #cart-count { animation: none !important; transition: none !important; }
}

/* ---------- Lista de deseos ---------- */
.wc-store .wish {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #8a94a3; cursor: pointer;
  box-shadow: 0 2px 8px rgba(9, 27, 44, .12); transition: transform .15s, color .15s;
}
.wc-store .wish svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.wc-store .wish:hover { transform: scale(1.08); color: var(--accent); }
.wc-store .wish.on { color: var(--accent); }
.wc-store .wish.on svg { fill: currentColor; }
.wc-store .wish-text.on { color: var(--accent); border-color: var(--accent); }

/* ---------- Cupón en el checkout ---------- */
.wc-store .coupon-row { display: grid; gap: 6px; }
.wc-store .coupon-row label { font-size: .9rem; font-weight: 600; }
.wc-store .coupon-input { display: flex; gap: 8px; }
.wc-store .coupon-input input { flex: 1; min-width: 0; text-transform: uppercase; }
.wc-store .coupon-msg { margin: 0; font-size: .85rem; }
.wc-store .coupon-msg.ok { color: var(--success); }
.wc-store .coupon-msg.err { color: var(--accent); }
.wc-store .checkout-total small { display: block; color: var(--muted); font-size: .85rem; margin-bottom: 2px; }

/* ---------- Estados de pedido ---------- */
.wc-store .status.st-recibido { background: rgba(243, 185, 95, .16); color: #a86a0d; }
.wc-store .status.st-confirmado { background: var(--primary-soft); color: var(--primary); }
.wc-store .status.st-enviado { background: rgba(110, 120, 255, .14); color: #4752c4; }
.wc-store .status.st-entregado { background: rgba(18, 163, 122, .14); color: var(--success); }
.wc-store .status.st-cancelado { background: rgba(200, 59, 76, .12); color: var(--accent); }
:root[data-theme="dark"] .wc-store .status.st-recibido { color: #f3b95f; }
:root[data-theme="dark"] .wc-store .status.st-enviado { color: #8ea4ff; }
.wc-store .orders-note { margin: 0 0 16px; padding: 12px 16px; border: 1px dashed var(--border); border-radius: 14px; color: var(--muted); font-size: .92rem; }
.wc-store .orders-note a { color: var(--primary); font-weight: 600; }

/* ---------- Medios de pago en el checkout ---------- */
.wc-store .pay-methods { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.wc-store .pay-methods legend { margin-bottom: 6px; padding: 0; font-size: .9rem; font-weight: 600; }
.wc-store .pay-option { display: flex !important; flex-direction: row !important; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.wc-store .pay-option:hover { border-color: var(--primary); }
.wc-store .pay-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.wc-store .pay-option input { width: 18px !important; height: 18px; min-height: 0 !important; padding: 0 !important; accent-color: var(--primary); flex: 0 0 auto; }
.wc-store .pay-option span { display: grid; gap: 2px; }
.wc-store .pay-option b { font-size: .92rem; }
.wc-store .pay-option small { color: var(--muted); font-size: .8rem; font-weight: 400; }

.wc-store .breb-box { display: grid; gap: 8px; width: 100%; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); text-align: left; }
.wc-store .breb-box img { width: 180px; height: 180px; justify-self: center; object-fit: contain; padding: 8px; border-radius: 12px; background: #fff; }
.wc-store .breb-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wc-store .breb-row span { flex: 0 0 90px; color: var(--muted); font-size: .85rem; }
.wc-store .breb-row strong { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.wc-store .breb-row .btn { padding: 6px 12px; font-size: .8rem; }
.wc-store .breb-amount strong { font-size: 1.3rem; font-weight: 800; }
.wc-store .breb-status { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(79, 124, 255, .1); font-size: .88rem; font-weight: 600; }
.wc-store .breb-status::before { content: ""; flex: 0 0 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: breb-spin .9s linear infinite; }
.wc-store .breb-status.is-ok { background: rgba(74, 222, 128, .14); color: #16a34a; }
.wc-store .breb-status.is-ok::before { content: "✓"; border: 0; animation: none; text-align: center; line-height: 16px; }
@keyframes breb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wc-store .breb-status::before { animation-duration: 3s; } }

/* ---------- Tarjeta dentro de la página ---------- */
.wc-store .card-box { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
.wc-store .card-box [hidden] { display: none !important; }
.wc-store .saved-cards { display: grid; gap: 8px; }
.wc-store .saved-cards-title { margin: 0; font-size: .9rem; font-weight: 600; }
.wc-store .saved-cards-installments, .wc-store .wcc label { display: grid !important; gap: 6px; font-size: .86rem; font-weight: 500; }
.wc-store .wcc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wc-store .wcc .wcc-full { grid-column: 1 / -1; }
.wc-store .wcc input, .wc-store .wcc select, .wc-store .saved-cards-installments select { width: 100%; min-width: 0; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); outline: none; font: inherit; color: inherit; }
.wc-store .wcc input:focus, .wc-store .wcc select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.wc-store .wcc input.invalid { border-color: var(--accent); }
.wc-store .wcc small { color: var(--muted); font-size: .76rem; font-weight: 400; }
.wc-store .wcc-number { position: relative; display: block; }
.wc-store .wcc-number input { padding-right: 92px; letter-spacing: .04em; }
.wc-store .wcc-number b { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: .78rem; }
.wc-store .wcc-check { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 9px; font-size: .84rem !important; font-weight: 400 !important; line-height: 1.45; cursor: pointer; }
.wc-store .wcc-check input { width: 17px; height: 17px; margin-top: 1px; padding: 0; flex: 0 0 auto; accent-color: var(--primary); }
.wc-store .wcc-check a, .wc-store .card-terms a { color: var(--primary); }
.wc-store .card-terms { display: grid; gap: 8px; }
.wc-store .wcc-secure { margin: 2px 0 0; color: var(--muted); font-size: .78rem; }
.wc-store .wcc-error { margin: 0; color: var(--accent); font-size: .85rem; }
.wc-store .pay-status { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-size: .88rem; font-weight: 600; text-align: center; }
.wc-store .pay-status.is-error { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.wc-store #checkoutSubmit:disabled { opacity: .55; cursor: not-allowed; }

.wc-store .saved-cards-empty { margin: 0; color: var(--muted); font-size: .84rem; }
.wc-store .saved-cards-empty a { color: var(--primary); }
