/*
Theme Name: Entrenadores Tienda
Theme URI: https://entrenadorespokemon.com
Description: Tema hijo de Storefront con el diseño de la tienda Pokémon de EntrenadoresPokémon.com. Estilo coleccionista con paleta de tipos, efecto de logo y fichas-carta. Idéntico al boceto aprobado.
Author: EntrenadoresPokémon.com
Template: storefront
Version: 1.0.0
Text Domain: entrenadores-tienda
*/

/* =========================================================================
   TOKENS DE MARCA  (mundo crema Psyduck; el oscuro solo si se fuerza data-theme)
   ========================================================================= */
:root {
  --cream: #FCF6E3;
  --cream-2: #FBEFC9;
  --panel: #FFFFFF;
  --ink: #22243A;
  --ink-soft: #5B5D72;
  --yellow: #FFCB05;
  --yellow-deep: #F2B705;
  --red: #EE1515;
  --blue: #2A5CAA;
  --blue-stroke: #23407A;
  --line: rgba(34,36,58,.12);
  --shadow: rgba(34,36,58,.16);

  --t-electric: #F7C300;
  --t-fire: #EE8130;
  --t-water: #4F86E8;
  --t-grass: #61B24A;
  --t-psychic: #F0507E;
  --t-dragon: #6F52E8;
  --t-fairy: #D06BAF;
  --t-normal: #8C8C74;

  --font-display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif;
  --font-body: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --maxw: 1140px;
  --r: 18px;
}
:root[data-theme="dark"] {
  --cream: #14162B; --cream-2: #1B1E3B; --panel: #23264A;
  --ink: #F4EFDC; --ink-soft: #A6A8C4; --blue: #6D9BEC;
  --blue-stroke: #16305F; --line: rgba(255,255,255,.13); --shadow: rgba(0,0,0,.45);
}
:root[data-theme="light"] {
  --cream: #FCF6E3; --cream-2: #FBEFC9; --panel: #FFFFFF;
  --ink: #22243A; --ink-soft: #5B5D72; --blue: #2A5CAA;
  --blue-stroke: #23407A; --line: rgba(34,36,58,.12); --shadow: rgba(34,36,58,.16);
}

/* =========================================================================
   BASE  (anula Storefront para dar el fondo y la tipografía de la marca)
   ========================================================================= */
body.woocommerce,
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(circle at 12% -5%, rgba(255,203,5,.20), transparent 42%),
    radial-gradient(circle at 92% 8%, rgba(42,92,170,.14), transparent 40%);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* Contenedor central igual que el boceto; neutraliza el ancho de Storefront */
.et-wrap,
.woocommerce-page .col-full,
.col-full { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Ocultamos cabecera/pie propios de Storefront: usamos header.php y footer.php */
.storefront-primary-navigation,
.site-header-cart .widget_shopping_cart,
.storefront-handheld-footer-bar { }

/* =========================================================================
   BARRA DE AVISO
   ========================================================================= */
.topbar {
  background: var(--blue); color: #fff; font-size: .82rem; letter-spacing: .02em;
  text-align: center; padding: 7px 16px; font-weight: 600;
}
.topbar b { color: var(--yellow); }

/* =========================================================================
   CABECERA
   ========================================================================= */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 18px; padding: 14px 20px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.pokeball {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(#EE1515 0 49%, #fff 49% 51%, #fff 51% 100%);
  border: 2.5px solid var(--ink); position: relative; flex: 0 0 auto;
}
.pokeball::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink);
}
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; line-height: 1;
  color: var(--yellow); -webkit-text-stroke: 2px var(--blue-stroke); paint-order: stroke fill;
  text-shadow: 2px 2px 0 var(--shadow); letter-spacing: .01em;
}
.brand-name span {
  display: block; font-size: .58rem; letter-spacing: .38em; -webkit-text-stroke: 0;
  color: var(--ink-soft); text-shadow: none; font-family: var(--font-body); font-weight: 700; margin-top: 3px;
}
/* Logo real de la marca (mismo que la web principal) */
.brand-logo { height: 44px; width: auto; display: block; }
.site-foot .brand-logo-dark { height: 42px; width: auto; display: block; margin-bottom: 6px; }
.search {
  flex: 1 1 auto; display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 2px solid var(--line); border-radius: 999px;
  padding: 8px 16px; min-width: 0; transition: border-color .15s; margin: 0;
}
.search:focus-within { border-color: var(--yellow); }
.search svg { flex: 0 0 auto; color: var(--ink-soft); }
.search input[type="search"] {
  border: 0; background: transparent; outline: none; width: 100%;
  font-family: var(--font-body); font-size: .95rem; color: var(--ink); box-shadow: none; padding: 0;
}
.search input::placeholder { color: var(--ink-soft); }
.search .search-submit { display: none; }

.cart-btn {
  position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow); color: #22243A; border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 9px 16px 9px 14px; font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s;
}
.cart-btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); color: #22243A; }
.cart-btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.cart-count {
  background: var(--red); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800;
}
.cart-count.bump { animation: bump .4s; }
@keyframes bump { 0%{transform:scale(1)} 35%{transform:scale(1.5)} 100%{transform:scale(1)} }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative; overflow: hidden; margin: 26px auto; max-width: var(--maxw); border-radius: 26px;
  background:
    radial-gradient(circle at 85% 30%, rgba(255,255,255,.35), transparent 55%),
    linear-gradient(135deg, var(--yellow) 0%, var(--yellow-deep) 100%);
  border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
}
.hero-inner { padding: 46px 44px; max-width: 62%; position: relative; z-index: 2; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 7px; background: #22243A; color: var(--yellow);
  font-family: var(--font-display); font-weight: 800; font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; padding: 6px 13px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 800; color: #fff;
  -webkit-text-stroke: 3px var(--blue-stroke); paint-order: stroke fill;
  font-size: clamp(2.1rem, 5.2vw, 3.5rem); line-height: .98; margin: 0 0 14px; text-wrap: balance;
  text-shadow: 4px 4px 0 rgba(34,36,58,.28);
}
.hero p { color: #3a2f05; font-size: 1.08rem; font-weight: 600; max-width: 42ch; margin: 0 0 26px; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 9px; background: var(--red); color: #fff;
  border: 3px solid var(--ink); border-radius: 999px; padding: 13px 26px; font-family: var(--font-display);
  font-weight: 800; font-size: 1.05rem; cursor: pointer; box-shadow: 5px 5px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.hero-cta:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); color: #fff; }
.hero-cta:active { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--ink); }
.hero-ball { position: absolute; right: -70px; top: 50%; transform: translateY(-50%); width: 340px; height: 340px; z-index: 1; opacity: .96; animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100%{transform:translateY(-50%)} 50%{transform:translateY(-58%)} }
.hero-ball .ball-svg { filter: drop-shadow(6px 10px 0 rgba(34,36,58,.22)); }

/* =========================================================================
   TÍTULOS DE SECCIÓN + CATEGORÍAS
   ========================================================================= */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 42px 0 18px; }
.section-head h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; margin: 0; color: var(--ink); }
.section-head a { color: var(--blue); font-weight: 700; font-size: .95rem; }
.section-head a:hover { text-decoration: underline; }
.cats { display: flex; flex-wrap: wrap; gap: 11px; list-style: none; margin: 0; padding: 0; }
.cat {
  display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 2px solid var(--line);
  border-radius: 999px; padding: 9px 17px 9px 11px; font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: transform .12s, border-color .12s, box-shadow .12s;
}
.cat:hover { transform: translateY(-2px); box-shadow: 0 6px 14px var(--shadow); color: var(--ink); }
.cat .dot { width: 20px; height: 20px; border-radius: 50%; display: inline-block; border: 2px solid rgba(0,0,0,.18); }

/* =========================================================================
   REJILLA Y FICHAS DE PRODUCTO  (portada + tienda de WooCommerce)
   ========================================================================= */
ul.products,
.woocommerce ul.products,
.woocommerce-page ul.products {
  list-style: none; margin: 0 0 10px; padding: 0;
  display: grid !important; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important; margin: 0 !important; float: none !important; padding: 0 !important;
}
.woocommerce ul.products li.product::before { display: none; }

.card {
  background: var(--panel); border: 2.5px solid var(--ink); border-radius: var(--r); overflow: hidden;
  cursor: pointer; display: flex; flex-direction: column; box-shadow: 5px 5px 0 var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease; opacity: 0; transform: translateY(14px);
  animation: rise .5s forwards; animation-delay: var(--d, 0s);
}
@keyframes rise { to { opacity: 1; transform: none; } }
.card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 9px 12px 0 var(--shadow); }

.thumb {
  position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, rgba(255,255,255,.55), transparent 60%), var(--tint, var(--cream-2));
  border-bottom: 2.5px solid var(--ink);
}
.thumb .type-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2; font-family: var(--font-display); font-weight: 800;
  font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; padding: 4px 10px;
  border-radius: 999px; background: var(--tint-solid, #888); border: 2px solid rgba(0,0,0,.22); text-shadow: 0 1px 1px rgba(0,0,0,.3);
}
.thumb .flag {
  position: absolute; top: 10px; right: 10px; z-index: 2; font-family: var(--font-display); font-weight: 800;
  font-size: .68rem; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--yellow); border: 2px solid var(--ink);
}
.thumb .flag.sale { background: var(--red); color: #fff; border-color: var(--red); }
.thumb .prod-icon { width: 58%; height: 58%; }
.thumb img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.thumb .wm { position: absolute; bottom: -18px; right: -18px; width: 96px; height: 96px; opacity: .18; }

.card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.card-body h3 { font-size: 1.02rem; margin: 0; font-weight: 700; line-height: 1.25; }
.card-body h3 a { color: inherit; }
.stars { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; color: var(--ink-soft); }
.stars b { color: var(--yellow-deep); letter-spacing: .05em; }
.price-row { display: flex; align-items: center; gap: 9px; margin-top: auto; flex-wrap: wrap; }

/* Precio de WooCommerce (incluye ofertas con del/ins) */
.card .price,
.price {
  font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; color: var(--ink);
  font-variant-numeric: tabular-nums; margin: 0;
}
.card .price del { color: var(--ink-soft); font-weight: 600; font-size: .95rem; opacity: 1; }
.card .price ins { text-decoration: none; }
.price-old { color: var(--ink-soft); text-decoration: line-through; font-size: .95rem; font-weight: 600; }

/* Botón "Añadir a la cesta" (mío y el de WooCommerce comparten estilo) */
.add,
.card .button,
.woocommerce .card .button,
.woocommerce a.button.add_to_cart_button {
  margin-top: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; background: var(--yellow); color: #22243A; border: 2.5px solid var(--ink); border-radius: 12px;
  padding: 10px; font-family: var(--font-display); font-weight: 800; font-size: .95rem; cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .1s, box-shadow .1s, background .15s; text-transform: none;
}
.add:hover,
.card .button:hover,
.woocommerce a.button.add_to_cart_button:hover { background: #FFD73C; color: #22243A; transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.add:active,
.card .button:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.woocommerce .card .added_to_cart { display: none; }

/* =========================================================================
   PROMOS DOBLES
   ========================================================================= */
.promos { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; margin-top: 8px; }
.promo { position: relative; overflow: hidden; border-radius: 22px; border: 3px solid var(--ink); padding: 30px; box-shadow: 6px 6px 0 var(--ink); min-height: 150px; display: flex; flex-direction: column; justify-content: center; }
.promo.a { background: linear-gradient(135deg, var(--t-water), #6FA6F0); }
.promo.b { background: linear-gradient(135deg, var(--t-psychic), #F77FA0); }
.promo h3 { font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1.5rem; margin: 0 0 6px; text-shadow: 2px 2px 0 rgba(0,0,0,.22); text-wrap: balance; }
.promo p { color: rgba(255,255,255,.95); margin: 0 0 14px; font-weight: 600; max-width: 26ch; }
.promo .plink { align-self: flex-start; background: #fff; color: #22243A; font-family: var(--font-display); font-weight: 800; font-size: .9rem; padding: 9px 18px; border-radius: 999px; border: 2.5px solid #22243A; }
.promo .plink:hover { color: #22243A; }

/* =========================================================================
   TIRA DE CONFIANZA
   ========================================================================= */
.trust { margin: 46px auto; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.trust-item { background: var(--panel); border: 2px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; align-items: center; gap: 13px; }
.trust-item .ti-ico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; background: var(--cream-2); display: grid; place-items: center; color: var(--blue); }
.trust-item b { display: block; font-family: var(--font-display); font-weight: 800; font-size: .98rem; }
.trust-item span { font-size: .85rem; color: var(--ink-soft); }

/* =========================================================================
   PIE
   ========================================================================= */
footer.site-foot { margin-top: 54px; background: #1B1D30; color: #EDEAF3; border-top: 4px solid var(--yellow); }
.site-foot .foot-row { display: flex; flex-wrap: wrap; gap: 30px 60px; padding: 40px 20px 24px; max-width: var(--maxw); margin: 0 auto; }
.site-foot .foot-brand { flex: 1 1 240px; }
.site-foot .foot-brand .brand-name { text-shadow: 2px 2px 0 rgba(0,0,0,.4); }
.site-foot .foot-brand p { color: #B9B6CC; font-size: .9rem; margin: 12px 0 0; max-width: 34ch; }
.site-foot .foot-col h4 { font-family: var(--font-display); font-weight: 800; font-size: .95rem; color: var(--yellow); margin: 0 0 12px; text-transform: uppercase; letter-spacing: .05em; }
.site-foot .foot-col a { display: block; color: #C9C6DA; font-size: .92rem; padding: 4px 0; }
.site-foot .foot-col a:hover { color: #fff; }
.site-foot .foot-legal { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 20px 34px; max-width: var(--maxw); margin: 0 auto; color: #9A97AE; font-size: .78rem; text-align: center; }

/* =========================================================================
   TOAST
   ========================================================================= */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(30px); background: var(--ink); color: #fff; border: 2.5px solid var(--yellow); border-radius: 999px; padding: 12px 22px; font-family: var(--font-display); font-weight: 800; display: flex; align-items: center; gap: 10px; z-index: 60; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .tb { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(#EE1515 0 49%, #fff 49% 100%); border: 2px solid #fff; }

/* =========================================================================
   PÁGINAS DE PRODUCTO / CARRITO / PAGO  (heredan la marca)
   ========================================================================= */
.woocommerce div.product .product_title { font-family: var(--font-display); font-weight: 800; color: var(--ink); }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--ink); font-family: var(--font-display); font-weight: 800; }
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--yellow); color: #22243A; border: 2.5px solid var(--ink); border-radius: 12px;
  font-family: var(--font-display); font-weight: 800; box-shadow: 3px 3px 0 var(--ink); text-transform: none;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover { background: #FFD73C; color: #22243A; transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.woocommerce span.onsale { background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 800; border-radius: 999px; }
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info { border-top-color: var(--yellow); }
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before { color: var(--yellow); }
.woocommerce-breadcrumb { color: var(--ink-soft); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--panel); border-bottom-color: var(--panel); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 760px) {
  .hero-inner { max-width: 100%; padding: 34px 26px; }
  .hero-ball { opacity: .16; right: -90px; }
  .hero p { color: #4a3d0a; }
  .promos { grid-template-columns: 1fr; }
  .cart-btn .label-txt { display: none; }
  .brand-name { font-size: 1.05rem; }
  .brand-logo { height: 36px; }
  .search { order: 3; flex-basis: 100%; }
  .head-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .card { opacity: 1; transform: none; }
  .hero-ball { animation: none; }
}

/* =========================================================================
   PÁGINAS WOOCOMMERCE  —  ancho completo + contenedor de marca
   ========================================================================= */
#secondary, .widget-area.sidebar { display: none !important; }
.woocommerce-page .content-area,
.woocommerce .content-area,
.woocommerce-page #primary,
.woocommerce #primary {
  width: 100% !important; max-width: var(--maxw); margin: 0 auto !important; float: none !important; padding: 0 20px;
}
.woocommerce-page .site-main, .woocommerce .site-main { margin: 0; }
.woocommerce .col-full { max-width: var(--maxw); }

/* Migas y encabezados de la tienda */
.woocommerce .woocommerce-breadcrumb {
  color: var(--ink-soft); font-size: .9rem; margin: 22px 0 10px;
}
.woocommerce .woocommerce-breadcrumb a { color: var(--blue); }
.woocommerce-products-header { margin: 12px 0 6px; }
.woocommerce-products-header__title,
.woocommerce .page-title,
.woocommerce h1.entry-title {
  font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 2rem;
}
.woocommerce .woocommerce-result-count { color: var(--ink-soft); font-size: .9rem; }

/* Selects y campos de formulario (marca) */
.woocommerce .woocommerce-ordering select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .quantity input.qty,
.woocommerce #payment .form-row input.input-text,
.woocommerce table.cart td.actions .input-text,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="number"],
.woocommerce select,
.woocommerce textarea {
  background: var(--panel); border: 2px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-family: var(--font-body); font-size: .98rem; color: var(--ink); box-shadow: none;
}
.woocommerce .woocommerce-ordering select { padding: 10px 14px; font-weight: 700; cursor: pointer; }
.woocommerce input:focus, .woocommerce select:focus, .woocommerce textarea:focus { border-color: var(--yellow); outline: none; }
.woocommerce form .form-row label { font-weight: 700; color: var(--ink); }

/* Estrellas de valoración */
.woocommerce .star-rating span::before,
.woocommerce p.stars a::before { color: var(--yellow-deep); }
.woocommerce .star-rating { color: var(--yellow-deep); }

/* -------------------------------------------------------------------------
   FICHA DE PRODUCTO INDIVIDUAL
   ------------------------------------------------------------------------- */
.woocommerce div.product {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; margin-top: 16px;
}
/* Fila 1: imagen (izq) + resumen (der). Fila 2+: pestañas y relacionados a lo ancho */
.woocommerce div.product .woocommerce-product-gallery {
  flex: 1 1 340px; min-width: 280px; width: auto !important; float: none !important; margin: 0 !important;
}
.woocommerce div.product .summary {
  flex: 1 1 340px; min-width: 280px; width: auto !important; float: none !important; margin: 0 !important;
  background: var(--panel); border: 2.5px solid var(--ink); border-radius: var(--r);
  box-shadow: 6px 6px 0 var(--shadow); padding: 28px;
}
.woocommerce div.product > .woocommerce-tabs,
.woocommerce div.product > .related,
.woocommerce div.product > .upsells { flex: 0 0 100%; width: 100%; }
.woocommerce div.product .woocommerce-product-gallery__image img,
.woocommerce div.product div.images img {
  border-radius: var(--r); border: 2.5px solid var(--ink);
  background: var(--panel); box-shadow: 5px 5px 0 var(--shadow);
}
.woocommerce div.product .flex-control-thumbs li img { border-width: 2px; box-shadow: none; }
/* Etiqueta de oferta anclada sobre la imagen */
.woocommerce div.product span.onsale {
  position: absolute; top: 14px; left: 14px; z-index: 3; margin: 0;
  min-height: auto; min-width: auto; line-height: 1; padding: 7px 14px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 800;
}
.woocommerce div.product .product_title {
  font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; margin: 0 0 12px; line-height: 1.1;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--ink); margin: 6px 0 16px;
}
.woocommerce div.product p.price del { color: var(--ink-soft); font-weight: 600; font-size: 1.1rem; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--ink-soft); margin-bottom: 20px; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 10px 0 18px; }
.woocommerce div.product form.cart .quantity { margin: 0; }
.woocommerce .quantity input.qty { width: 78px; text-align: center; }
.woocommerce div.product form.cart .button,
.woocommerce div.product .single_add_to_cart_button {
  width: auto; flex: 1 1 auto; min-width: 200px; padding: 14px 24px; font-size: 1.05rem;
}
.woocommerce div.product .product_meta { font-size: .88rem; color: var(--ink-soft); border-top: 2px dashed var(--line); padding-top: 14px; margin-top: 6px; }
.woocommerce div.product .product_meta a { color: var(--blue); }
.woocommerce div.product form.variations_form .variations select { min-width: 180px; }
/* Fila de confianza dentro del resumen */
.et-prod-trust { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 2px dashed var(--line); display: grid; gap: 10px; }
.et-prod-trust li { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--ink-soft); font-weight: 600; margin: 0; padding: 0; }
.et-prod-trust li::before { content: none; }
.et-prod-trust svg { color: var(--blue); flex: 0 0 auto; }
/* Galería como panel enmarcado (buen aspecto también sin foto) */
.woocommerce div.product .woocommerce-product-gallery {
  background: var(--panel); border: 2.5px solid var(--ink); border-radius: var(--r);
  box-shadow: 5px 5px 0 var(--shadow); padding: 16px;
}
.woocommerce div.product .woocommerce-product-gallery__image img,
.woocommerce div.product div.images img { border: 0; box-shadow: none; border-radius: 12px; }

/* Pestañas de descripción / valoraciones */
.woocommerce div.product .woocommerce-tabs { margin-top: 8px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; text-align: left; margin: 0 0 -2px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--ink); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-bottom-color: var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: var(--cream-2); border: 2px solid var(--line); border-radius: 12px 12px 0 0;
  font-family: var(--font-display); font-weight: 800;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--panel); border-bottom-color: var(--panel); }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs .panel {
  background: var(--panel); border: 2px solid var(--line); border-radius: 0 var(--r) var(--r) var(--r); padding: 24px;
}
.woocommerce div.product .woocommerce-tabs .panel h2 { font-family: var(--font-display); font-weight: 800; }

/* Productos relacionados / ventas cruzadas (usan las mismas fichas-carta) */
.woocommerce .related.products,
.woocommerce .upsells.products { margin-top: 34px; }
.woocommerce .related.products > h2,
.woocommerce .upsells.products > h2,
.woocommerce .cross-sells > h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; margin-bottom: 18px; }

/* -------------------------------------------------------------------------
   CARRITO
   ------------------------------------------------------------------------- */
.woocommerce table.shop_table {
  border: 2.5px solid var(--ink); border-radius: var(--r); border-collapse: separate; border-spacing: 0;
  overflow: hidden; background: var(--panel); box-shadow: 5px 5px 0 var(--shadow);
}
.woocommerce table.shop_table thead th {
  font-family: var(--font-display); font-weight: 800; background: var(--cream-2);
  color: var(--ink); padding: 15px; border: 0;
}
.woocommerce table.shop_table td { padding: 15px; border-top: 1px solid var(--line); vertical-align: middle; }
.woocommerce table.cart img { width: 62px; border-radius: 10px; border: 2px solid var(--line); }
.woocommerce a.remove {
  color: var(--red) !important; border: 2px solid var(--line); font-weight: 700;
  width: 24px; height: 24px; line-height: 20px;
}
.woocommerce a.remove:hover { background: var(--red) !important; color: #fff !important; }
.woocommerce table.cart td.actions .coupon .input-text { width: 180px; margin-right: 8px; }
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-cart .cart-collaterals .cart_totals {
  background: var(--panel); border: 2.5px solid var(--ink); border-radius: var(--r);
  box-shadow: 5px 5px 0 var(--shadow); padding: 8px 22px 22px;
}
.woocommerce .cart_totals h2 { font-family: var(--font-display); font-weight: 800; margin-top: 16px; }
.woocommerce .cart_totals table.shop_table { border: 0; box-shadow: none; }
.woocommerce .cart_totals .order-total .amount { font-family: var(--font-display); font-weight: 800; color: var(--ink); }
.woocommerce .wc-proceed-to-checkout a.checkout-button { text-align: center; font-size: 1.1rem; padding: 16px; }

/* -------------------------------------------------------------------------
   PAGO / CHECKOUT
   ------------------------------------------------------------------------- */
.woocommerce-checkout h3,
.woocommerce-checkout #order_review_heading {
  font-family: var(--font-display); font-weight: 800; color: var(--ink);
}
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 { float: none; width: 100%; }
form.checkout.woocommerce-checkout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: start; }
.woocommerce-checkout #customer_details { grid-column: 1; }
.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading { grid-column: 2; }
.woocommerce-checkout #customer_details .woocommerce-billing-fields,
.woocommerce-checkout #customer_details .woocommerce-shipping-fields,
.woocommerce-checkout #customer_details .woocommerce-additional-fields {
  background: var(--panel); border: 2px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 18px;
}
.woocommerce-checkout #order_review {
  background: var(--panel); border: 2.5px solid var(--ink); border-radius: var(--r);
  box-shadow: 6px 6px 0 var(--shadow); padding: 22px; position: sticky; top: 90px;
}
.woocommerce-checkout #order_review table.shop_table { border: 0; box-shadow: none; }
.woocommerce-checkout #payment { background: var(--cream-2); border-radius: var(--r); }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--line); }
.woocommerce-checkout #payment div.payment_box { background: var(--panel); border-radius: 10px; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--panel); }
.woocommerce #payment #place_order,
.woocommerce-checkout #place_order { width: 100%; padding: 16px; font-size: 1.15rem; }

/* Avisos / mensajes con el color de la marca (texto visible) */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews {
  background: var(--panel); color: var(--ink); border: 2px solid var(--line);
  border-top: 3px solid var(--yellow); border-radius: 12px;
  padding: 1em 1.5em 1em 3.2em; box-shadow: 3px 3px 0 var(--shadow); list-style: none;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--yellow-deep); left: 1.3em; top: 1em; }
.woocommerce-message a.button, .woocommerce-info a.button {
  padding: 8px 14px; font-size: .85rem; min-width: 0; box-shadow: 2px 2px 0 var(--ink);
}

/* -------------------------------------------------------------------------
   RESPONSIVE de las páginas de tienda
   ------------------------------------------------------------------------- */
@media (max-width: 820px) {
  .woocommerce div.product { grid-template-columns: 1fr; gap: 24px; }
  form.checkout.woocommerce-checkout { grid-template-columns: 1fr; gap: 20px; }
  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review,
  .woocommerce-checkout #order_review_heading { grid-column: 1; }
  .woocommerce-checkout #order_review { position: static; }
}
