/* ================================================================
   BAKI FITNESS · FICHA DE PRODUCTO v22
   01. Variables y base                 02. Barras y navegación
   03. Presentación y galería           04. Opciones y compra
   05. Descripción y relacionados       06. Carrito y vista ampliada
   07. Responsivo
   ================================================================ */

/* 01. VARIABLES Y BASE */
:root {
  --ink: #161718;
  --muted: #71767b;
  --light: #f5f5f3;
  --paper: #ffffff;
  --hairline: #e5e5e4;
  --black: #050506;
  --orange: #f87822;
  --font-body: 'DM Sans', Arial, sans-serif;
  --font-heading: 'Barlow Condensed', Impact, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 14px/1.6 var(--font-body); }
body.no-scroll { overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .47; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.shell { width: min(1230px, calc(100% - 52px)); margin: 0 auto; }

/* 02. FRANJA, REDES Y NAVEGACIÓN */
.shipping-banner {
  background: #f5741e;
  color: #171009;
  text-align: center;
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.shipping-banner span { font-weight: 500; letter-spacing: 0; }
.social-strip { background: #151927; color: #fff; }
.social-layout { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; min-height: 40px; gap: 18px; }
.social-icons { display: flex; align-items: center; gap: 16px; }
.social-icons a { width: 20px; height: 20px; display: grid; place-items: center; }
.social-icons img { width: 20px; height: 20px; object-fit: contain; }
.social-icons a:hover { transform: translateY(-2px); }
.social-motto { text-align: center; font-size: 9px; letter-spacing: .08em; white-space: nowrap; }
.social-motto b { color: #ffab73; margin-left: 7px; }
.social-contact { text-align: right; font-size: 10px; letter-spacing: .04em; font-weight: 700; }
.header { background: #000; color: white; border-bottom: 1px solid #252525; position: sticky; top: 0; z-index: 30; }
.header-layout { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 84px; gap: 22px; }
.header-links { display: flex; gap: 24px; }
.header-links a, .header-return { font-size: 11px; font-weight: 800; letter-spacing: .055em; }
.header-links a:hover, .header-return:hover { color: var(--orange); }
.brand img { display: block; width: 170px; height: 69px; object-fit: contain; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.header-return { display: inline-flex; align-items: center; gap: 5px; }
.header-return svg { height: 16px; width: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.cart-trigger { border: 0; background: transparent; color: white; display: inline-flex; align-items: center; gap: 8px; }
.cart-trigger svg { width: 25px; height: 25px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.cart-trigger span { border-radius: 50%; background: var(--orange); color: #101010; min-width: 22px; height: 22px; display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.crumbs { display: flex; gap: 11px; align-items: center; color: #949494; padding: 30px 0; font-size: 12px; }
.crumbs a:hover { color: var(--orange); }
.crumbs span:last-child { color: #242424; font-weight: 700; }

/* 03. FICHA DE PRODUCTO + FOTOGRAFÍA */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr); gap: clamp(35px, 5vw, 76px); align-items: start; padding-bottom: 78px; }
.gallery-col { min-width: 0; }
.gallery-frame { position: relative; height: min(580px, 49vw); min-height: 380px; background: #f1f0ee; border: 1px solid #e8e7e6; overflow: hidden; display: grid; place-items: center; }
.gallery-frame > img { display: block; max-width: 90%; max-height: 87%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 16px 22px #0001); }
.gallery-badge { position: absolute; top: 22px; left: 24px; letter-spacing: .14em; font-weight: 800; font-size: 9px; color: #7e7c7a; }
.zoom-control { position: absolute; right: 20px; top: 17px; border: 1px solid #ddd; border-radius: 50%; padding: 9px; background: #fff; z-index: 1; }
.zoom-control svg { width: 17px; height: 17px; display: block; fill: none; stroke: #111; stroke-width: 2; }
.gallery-thumbs { display: flex; gap: 12px; padding-top: 16px; }
.thumb-button { width: 92px; height: 92px; background: #f3f2f0; border: 1px solid #dedede; padding: 8px; }
.thumb-button.active { border: 2px solid #1e1e20; }
.thumb-button img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery-hint { color: #898989; font-size: 11px; margin-top: 18px; display: flex; gap: 8px; }
.product-panel { padding-top: 15px; }
.overline { margin: 0 0 8px; font-size: 10px; letter-spacing: .17em; color: #999; font-weight: 800; text-transform: uppercase; }
.product-panel h1 { font: 800 clamp(42px, 4.2vw, 66px)/.98 var(--font-heading); text-transform: uppercase; margin: 15px 0 16px; letter-spacing: .008em; }
.product-meta { display: flex; align-items: center; gap: 9px; color: #747474; font-size: 12px; }
.meta-dot { width: 7px; height: 7px; border-radius: 50%; background: #d97928; }
.headline-price { font-size: clamp(28px, 2.6vw, 38px); margin: 22px 0 2px; color: #1d1d1f; font-weight: 600; letter-spacing: -.045em; }
.tax-note { color: #818181; font-size: 11px; }
.section-line { height: 1px; background: #e5e5e5; margin: 25px 0 22px; }

/* 04. VARIANTES, SABORES, REGALOS, CANTIDAD */
.option-set { border: 0; padding: 0; margin: 0 0 25px; min-width: 0; }
.option-set legend, .quantity-label { font-weight: 700; font-size: 13px; margin-bottom: 14px; }
.option-set legend small { font-size: 10px; font-weight: 500; color: #999; }
.option-pills { display: flex; gap: 9px; flex-wrap: wrap; }
.option-pill { background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 10px 14px; font-size: 12px; color: #555; min-width: 65px; transition: border .15s, background .15s, color .15s; }
.option-pill.active { border: 1px solid #161616; color: white; background: #171719; box-shadow: inset 0 0 0 1px #171719; }
.option-pill:hover:not(.active) { border-color: #999; color: #111; }
.quantity-label { margin: 8px 0 12px; }
.purchase-row { display: flex; gap: 14px; align-items: stretch; }
.quantity-control { display: flex; border: 1px solid #dedede; border-radius: 4px; height: 54px; align-items: center; }
.quantity-control button { border: 0; background: transparent; width: 42px; height: 100%; font-size: 22px; color: #666; }
.quantity-control output { display: grid; place-items: center; min-width: 34px; font-size: 14px; }
.add-button { display: flex; align-items: center; justify-content: center; gap: 14px; flex: 1; background: #090909; color: #fff; border: 1px solid #090909; border-radius: 4px; min-height: 54px; font-weight: 800; font-size: 13px; letter-spacing: .025em; }
.add-button:hover { background: var(--orange); color: #090909; border-color: var(--orange); }
.share-link { border: 0; background: none; margin-top: 27px; padding: 0; display: flex; gap: 10px; align-items: center; color: #646464; font-size: 12px; }
.share-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.share-link:hover { color: var(--orange); }
.small-benefits { border-top: 1px solid var(--hairline); margin-top: 26px; padding-top: 18px; display: grid; gap: 13px; }
.small-benefits > div { display: flex; align-items: center; gap: 15px; }
.small-benefit-icon { display: grid; place-items: center; border: 1px solid #d8d8d8; width: 36px; height: 36px; border-radius: 50%; font-size: 17px; }
.small-benefits p { margin: 0; font-size: 12px; font-weight: 700; }
.small-benefits small { display: block; color: #898989; font-size: 11px; font-weight: 400; }

/* 05. DESCRIPCIÓN, COMPRA Y RELACIONADOS */
.information-grid { display: grid; grid-template-columns: 1.5fr .8fr; gap: 75px; border-top: 1px solid var(--hairline); padding-top: 60px; padding-bottom: 90px; }
.section-kicker { font-weight: 800; color: #c16c37; font-size: 10px; letter-spacing: .16em; }
.description-block h2, .similar-head h2 { font: 900 42px/.95 var(--font-heading); margin: 12px 0 20px; }
.detail-description { color: #626262; line-height: 1.85; font-size: 14px; max-width: 680px; }
.features { color: #686868; line-height: 1.85; padding-left: 23px; }
.features li { padding-bottom: 9px; }
.disclaimer { border-left: 3px solid #eee; margin-top: 22px; padding: 12px 15px; color: #999; background: #fafafa; font-size: 11px; }
.information-aside { background: #faf9f8; border: 1px solid #f0eded; padding: 27px 29px; align-self: start; }
.aside-title { font-weight: 800; font-size: 12px; letter-spacing: .08em; margin-bottom: 18px; }
.information-aside dl { margin: 0; }
.information-aside dl div { padding: 14px 0; border-top: 1px solid #e7e6e5; }
.information-aside dt { font-weight: 700; font-size: 11px; }
.information-aside dd { margin: 3px 0 0; color: #858585; font-size: 12px; }
.ask-link { display: inline-block; font-weight: 700; font-size: 12px; margin-top: 15px; color: #bd5a20; }
.similar-section { background: #f7f7f6; padding: 70px 0 88px; }
.similar-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.similar-head h2 { margin-bottom: 0; }
.similar-head > a { font-size: 11px; font-weight: 800; color: #b65c22; }
.similar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.similar-card { background: white; border: 1px solid #e9e8e8; overflow: hidden; }
.similar-card img { width: 100%; height: 205px; object-fit: contain; padding: 15px; background: #f0efed; display: block; }
.similar-card-content { padding: 18px; }
.similar-card span { display: block; color: #a1765c; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.similar-card h3 { margin: 8px 0; font: 800 24px/1 var(--font-heading); text-transform: uppercase; }
.similar-card strong { display: block; margin-bottom: 15px; }
.similar-card .see-detail { font-weight: 800; font-size: 11px; letter-spacing: .04em; }
.similar-card:hover { border-color: #e69b6b; }
.footer { background: #070708; color: #fff; padding: 35px 0 32px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand img { width: 145px; display: block; }
.footer-brand p { font-size: 11px; color: #a5a5a5; margin: 0; }
.footer-links { display: flex; gap: 22px; font-size: 11px; }
.footer-links a:hover { color: var(--orange); }
.footer-copy { color: #888; font-size: 10px; }

/* 06. CARRITO, VISOR Y NOTIFICACIONES */
.overlay { position: fixed; inset: 0; background: #000a; z-index: 60; }
.cart-drawer { position: fixed; top: 0; bottom: 0; right: 0; z-index: 61; background: white; display: flex; flex-direction: column; width: min(470px, 100%); transform: translateX(105%); visibility: hidden; transition: .25s ease; box-shadow: -14px 0 45px #0003; }
.cart-drawer.open { transform: translateX(0); visibility: visible; }
.cart-head { padding: 25px 24px; background: #090909; color: white; display: flex; justify-content: space-between; align-items: center; }
.cart-kicker { font-size: 10px; letter-spacing: .14em; color: #e49662; }
.cart-head h2 { font: 900 34px/1 var(--font-heading); margin: 6px 0 0; }
.cart-head h2 span { color: var(--orange); font-size: 23px; }
.cart-head button { border: 1px solid #666; border-radius: 50%; background: transparent; color: #fff; width: 37px; height: 37px; font-size: 27px; }
.cart-content { overflow: auto; padding: 14px 23px; flex: 1; }
.empty-cart { text-align: center; padding: 55px 15px; color: #888; }
.empty-cart h3 { color: #222; font: 900 27px var(--font-heading); }
.empty-cart a { font-weight: 700; color: #bf622d; }
.cart-item { display: grid; grid-template-columns: 78px 1fr auto; gap: 13px; align-items: start; padding: 17px 0; border-bottom: 1px solid #eee; }
.cart-item > img { width: 76px; height: 88px; object-fit: contain; background: #f4f4f3; }
.cart-item h3 { font: 800 22px/1 var(--font-heading); margin: 0 0 6px; }
.cart-item small { color: #999; font-size: 11px; }
.cart-item strong { display: block; margin-top: 7px; font-size: 13px; }
.cart-item-quantity { display: flex; align-items: center; gap: 11px; margin-top: 11px; }
.cart-item-quantity button { width: 25px; height: 25px; border: 1px solid #ddd; background: #fff; }
.cart-remove { border: 0; background: none; color: #b76f44; font-size: 11px; }
.cart-checkout { padding: 22px 24px; border-top: 1px solid #ddd; background: #fafafa; }
.subtotal { display: flex; justify-content: space-between; align-items: center; }
.subtotal strong { font-size: 24px; }
.delivery-line { font-size: 11px; color: #868686; margin: 8px 0 16px; }
.cart-checkout label { display: block; margin: 11px 0 5px; font-size: 11px; font-weight: 700; }
.cart-checkout input { display: block; width: 100%; border: 1px solid #ddd; padding: 11px; border-radius: 3px; background: white; }
.whatsapp-button { width: 100%; padding: 15px; background: #21b96e; border: 0; color: #061c10; font-weight: 800; font-size: 12px; margin-top: 17px; }
.whatsapp-note { text-align: center; font-size: 10px; color: #888; margin: 9px 0 0; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: #050506ed; display: grid; place-items: center; padding: 45px; }
.lightbox img { max-height: 87vh; max-width: 90vw; object-fit: contain; }
.lightbox button { position: absolute; top: 12px; right: 20px; color: #fff; background: none; border: 0; font-size: 40px; }
.toast { position: fixed; bottom: 23px; left: 50%; transform: translate(-50%, 25px); z-index: 110; pointer-events: none; opacity: 0; background: #141414; color: white; padding: 13px 19px; font-size: 12px; transition: .2s; border-radius: 4px; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* 07. RESPONSIVO */
@media (max-width: 1030px) {
  .header-links { gap: 12px; }
  .header-links a { font-size: 10px; }
  .detail-grid { gap: 36px; }
  .similar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .social-motto { display: none; }
  .social-layout { grid-template-columns: 1fr 1fr; }
  .header-links { display: none; }
  .header-layout { height: 75px; grid-template-columns: 1fr auto 1fr; }
  .detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery-frame { height: 490px; }
  .product-panel { padding-top: 4px; }
  .information-grid { grid-template-columns: 1fr; gap: 30px; }
  .similar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .shell { width: calc(100% - 30px); }
  .shipping-banner { font-size: 9px; }
  .shipping-banner span { display: block; }
  .social-contact { font-size: 9px; }
  .header-layout { gap: 7px; height: 69px; }
  .brand img { width: 126px; height: 55px; }
  .header-return span { display: none; }
  .header-actions { gap: 11px; }
  .crumbs { padding: 21px 0; }
  .gallery-frame { height: 350px; min-height: 310px; }
  .gallery-badge { font-size: 8px; top: 14px; left: 12px; }
  .thumb-button { width: 76px; height: 76px; }
  .product-panel h1 { font-size: 42px; }
  .detail-grid { padding-bottom: 55px; }
  .purchase-row { gap: 8px; }
  .quantity-control button { width: 35px; }
  .add-button { font-size: 11px; }
  .information-grid { padding-top: 38px; padding-bottom: 52px; }
  .similar-section { padding: 50px 0; }
  .similar-head h2 { font-size: 34px; }
  .similar-grid { gap: 10px; }
  .similar-card img { height: 150px; }
  .similar-card-content { padding: 13px; }
  .similar-card h3 { font-size: 20px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 15px; }
  .footer-brand img { margin: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
