/**
 * PDP demo-b — clients/demo-b.local/design/b.local-producto.html
 * Regenerar: python themes/base/scripts/extract-demo-b-pages-css.py
 * Requiere demo-b-shell.css (chrome).
 */

body.dpy-product-pure {
  margin: 0 !important;
  padding: 0 !important;
  --wp--style--root--padding-top: 0 !important;
  --wp--style--root--padding-right: 0 !important;
  --wp--style--root--padding-bottom: 0 !important;
  --wp--style--root--padding-left: 0 !important;
}
body.dpy-product-pure.admin-bar { padding-top: 32px !important; margin-top: 0 !important; }
body.dpy-product-pure.admin-bar #main-header { top: 32px; }
body.dpy-product-pure p,
body.dpy-product-pure h1,
body.dpy-product-pure h2,
body.dpy-product-pure h3 {
  margin: 0;
  padding: 0;
}

  #product-page { padding: 16px 0 40px; }
  .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    text-align: left;
    font-size: 12px;
    color: #777;
    margin-bottom: 16px;
    line-height: 1.4;
  }
  .breadcrumb a { color: var(--dpy-magenta, #e91e8c); text-decoration: none; }
  .breadcrumb a:hover { text-decoration: underline; }
  .breadcrumb span[aria-hidden="true"] { margin: 0 4px; color: #999; }
  .breadcrumb .current { color: #333; }

  /* 2-column product layout — gallery | info (Figma 008) */
  .product-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
  }
  .product-gallery {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    flex: 1 1 52%;
    min-width: 0;
  }

  /* GALLERY — thumbs column + main image (nav + zoom) */
  .gallery-col {
    width: 80px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .gallery-thumbs-viewport {
    width: 80px;
    max-height: 360px;
    overflow: hidden;
    position: relative;
  }
  .gallery-thumbs-track {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.25s ease;
  }
  .gallery-thumbs-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .gallery-thumbs-nav:hover {
    background: var(--dpy-magenta, #e91e8c);
    border-color: var(--dpy-magenta, #e91e8c);
    color: #fff;
  }
  .gallery-thumbs-nav[hidden] { display: none !important; }
  .gallery-thumbs-nav .material-icons { font-size: 20px; line-height: 1; }
  .thumb {
    width: 80px;
    height: 69px;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    flex-shrink: 0;
  }
  .thumb.active { border-color: var(--dpy-magenta, #e91e8c); }
  .thumb .material-icons { font-size: 32px; color: rgba(0,0,0,.15); }
  .main-img {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    width: 100%;
    background: #f5f5f5;
    border-radius: 8px;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    overflow: hidden;
    position: relative;
  }
  .main-img__stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: default;
  }
  .main-img--zoomable .main-img__stage {
    cursor: zoom-in;
  }
  .main-img__stage.is-zooming {
    cursor: crosshair;
  }
  .main-img__stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.05s linear;
    will-change: transform;
    user-select: none;
    pointer-events: none;
  }
  .main-img__stage.is-zooming img {
    transition: none;
  }
  .main-img .material-icons { font-size: 120px; color: rgba(0,0,0,.1); }
  .main-img .price-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    background: var(--dpy-magenta, #e91e8c);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 4px;
    line-height: 1.2;
    pointer-events: none;
  }
  .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    transition: background 0.15s, color 0.15s, box-shadow 0.15s, border-color 0.15s;
  }
  .gallery-nav:hover {
    background: var(--dpy-magenta, #e91e8c);
    border-color: var(--dpy-magenta, #e91e8c);
    color: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
  }
  .gallery-nav:focus-visible {
    outline: 2px solid var(--dpy-magenta, #e91e8c);
    outline-offset: 2px;
  }
  .gallery-nav .material-icons { font-size: 28px; line-height: 1; }
  .gallery-nav--prev { left: 10px; }
  .gallery-nav--next { right: 10px; }
  @media (prefers-reduced-motion: reduce) {
    .gallery-thumbs-track { transition: none; }
    .main-img__stage img { transition: none; }
  }

  /* PRODUCT INFO — full remaining column (title → about → cart → shipping) */
  .product-info {
    flex: 1 1 42%;
    min-width: 280px;
    max-width: 520px;
  }
  .product-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 22px; color: #1a1a1a; line-height: 1.3; margin-bottom: 8px; }
  .product-meta { font-size: 12px; color: #777; margin-bottom: 16px !important; }
  .product-meta strong { color: #333; }
  .product-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 2px; }
  .price-sale { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 28px; color: #1a1a1a; }
  .price-normal { font-size: 12px; color: #777; margin-bottom: 8px; }
  .price-normal span { text-decoration: line-through; }
  .var-label { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 11px; color: #333; text-transform: uppercase; letter-spacing: .8px; margin: 8px 0 10px; }
  .about-label { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 11px; color: #333; text-transform: uppercase; letter-spacing: .8px; margin: 4px 0 2px !important; }
  .about-text { font-size: 15px; color: #444; line-height: 1.5; max-width: none; width: 100%; margin: 0 0 12px !important; }
  .about-text p { margin: 0 0 0.75em !important; }
  .about-text p:last-child { margin-bottom: 0 !important; }
  .stock-qty-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #555;
    margin: 0 0 6px;
  }
  .stock-qty-label[hidden] { display: none; }

  /* Cart under description; shipping below cart */
  .dpy-wc-add-to-cart { margin: 4px 0 16px; width: 100%; }
  .shipping-box { margin-top: 4px; }
  .ship-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 11px; color: #333; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px; }
  .ship-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
  .ship-row .material-icons { font-size: 16px; color: #555; margin-top: 1px; flex-shrink: 0; }
  .ship-text { font-size: 11px; color: #444; line-height: 1.45; }
  .ship-text strong { color: #1a1a1a; }
  .ship-text p { margin: 0; }
  .qty-label { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 11px; color: #333; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 10px; }
  .qty-stepper { display: flex; align-items: center; gap: 0; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; width: fit-content; margin-bottom: 14px; }
  .qty-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #555; background: #f5f5f5; cursor: pointer; transition: background .15s; }
  .qty-btn:hover { background: var(--dpy-magenta, #e91e8c); color: #fff; }
  .qty-val { width: 40px; height: 36px; text-align: center; border: none; border-left: 1px solid #ddd; border-right: 1px solid #ddd; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: 700; outline: none; }
  .qty-val:focus-visible { outline: 2px solid var(--dpy-magenta, #e91e8c); outline-offset: -2px; }
  .btn-add-cart { display: block; width: 100%; max-width: 360px; background: var(--dpy-green, #43a047); color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 13px; text-align: center; padding: 14px; border-radius: 6px; letter-spacing: .5px; border: none; cursor: pointer; transition: background .2s; }
  .btn-add-cart:hover { background: color-mix(in srgb, var(--dpy-green, #43a047) 82%, #000); }

  /* TABS */
  #product-tabs { border-top: 1px solid #eee; margin-top: 24px; }
  .tabs-header { display: flex; }
  .tab-btn { padding: 14px 24px; min-height: 44px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 13px; color: #777; border-bottom: 3px solid transparent; cursor: pointer; transition: all .15s; }
  .tab-btn.active { color: var(--dpy-magenta, #e91e8c); border-bottom-color: var(--dpy-magenta, #e91e8c); background: #fff; }
  .tab-panel { display: none; padding: 20px 0; }
  .tab-panel.active { display: block; }
  .spec-table { width: 100%; border-collapse: collapse; }
  .spec-table td { padding: 10px 16px; font-size: 13px; color: #444; border-bottom: 1px solid #f0f0f0; }
  .spec-table td:first-child { font-weight: 600; color: #1a1a1a; width: 180px; }

  /* RELATED PRODUCTS */
  #related-products { padding: 32px 0 48px; border-top: 1px solid #eee; margin-top: 8px; }
  .related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .rel-card { background: #fff; border-radius: 12px; overflow: hidden; position: relative; }
  .rel-img {
    background: #f5f5f5;
    aspect-ratio: 1 / 1;
    height: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
  .rel-img .material-icons { font-size: 72px; color: rgba(0,0,0,.12); }
  .rel-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: var(--dpy-magenta, #e91e8c);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .rel-body { padding: 12px; }
  .rel-name { font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 6px; line-height: 1.4; }
  .rel-prices { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
  .rel-old { font-size: 11px; color: #aaa; text-decoration: line-through; }
  .rel-new { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 15px; color: var(--dpy-magenta, #e91e8c); }
  .btn-rel { display: block; text-align: center; border: 2px solid var(--dpy-green, #43a047); color: var(--dpy-green, #43a047); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 12px; padding: 9px; border-radius: 8px; transition: all .15s; }
  .btn-rel:hover { background: var(--dpy-green, #43a047); color: #fff; }
  .btn-rel.add { background: var(--dpy-green, #43a047); color: #fff; }

  /* FOOTER */
body.dpy-product-pure .main-img img,
body.dpy-product-pure .main-img__stage img,
body.dpy-product-pure .thumb img,
body.dpy-product-pure .rel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.dpy-product-pure .main-img img,
body.dpy-product-pure .main-img__stage img {
  object-fit: contain;
  background: #f5f5f5;
}

@media (max-width: 1100px) {
  body.dpy-product-pure .main-img {
    height: 420px;
  }
  body.dpy-product-pure .product-info {
    max-width: none;
  }
}

@media (max-width: 768px) {
  body.dpy-product-pure .product-layout {
    flex-direction: column;
  }
  body.dpy-product-pure .product-gallery {
    width: 100%;
    flex: 1 1 100%;
  }
  body.dpy-product-pure .main-img {
    height: 360px;
  }
  body.dpy-product-pure .product-info {
    flex: 1 1 100%;
    max-width: none;
    width: 100%;
  }
}

body.dpy-product-pure .thumb {
  padding: 0;
}
body.dpy-product-pure .dpy-wc-add-to-cart form.cart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
}
body.dpy-product-pure .dpy-wc-add-to-cart .var-label {
  margin-bottom: 8px;
}
body.dpy-product-pure .dpy-wc-add-to-cart table.variations {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 12px;
}
/* Stack label above value (Figma) — avoids mid-aligned COLOR next to tall swatch cell */
body.dpy-product-pure .dpy-wc-add-to-cart table.variations tbody,
body.dpy-product-pure .dpy-wc-add-to-cart table.variations tr {
  display: block;
  width: 100%;
}
body.dpy-product-pure .dpy-wc-add-to-cart table.variations th,
body.dpy-product-pure .dpy-wc-add-to-cart table.variations td {
  display: block;
  width: 100%;
  padding: 0;
  vertical-align: top;
  text-align: left;
  border: none;
  background: transparent;
}
body.dpy-product-pure .dpy-wc-add-to-cart table.variations th.label {
  margin: 0 0 8px;
}
body.dpy-product-pure .dpy-wc-add-to-cart table.variations label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: #333;
  text-transform: uppercase;
  letter-spacing: .8px;
}
body.dpy-product-pure .dpy-wc-add-to-cart table.variations select {
  width: 100%;
  max-width: 360px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  background: #fff;
}
body.dpy-product-pure .dpy-wc-add-to-cart .reset_variations {
  display: inline-block;
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--dpy-magenta, #e91e8c);
}
/* With color swatches, hide WC reset — selection is clear on the circles */
body.dpy-product-pure .dpy-wc-add-to-cart td.value:has(.dpy-color-swatches) .reset_variations,
body.dpy-product-pure .dpy-wc-add-to-cart .dpy-color-swatches ~ .reset_variations {
  display: none !important;
}
body.dpy-product-pure .dpy-wc-add-to-cart .dpy-color-swatches {
  margin: 0 0 4px;
}
body.dpy-product-pure .dpy-wc-add-to-cart > .stock,
body.dpy-product-pure .dpy-wc-add-to-cart form.cart .stock,
body.dpy-product-pure .dpy-wc-add-to-cart form.cart .woocommerce-variation-availability,
body.dpy-product-pure .dpy-wc-add-to-cart .woocommerce-variation-price,
body.dpy-product-pure .dpy-wc-add-to-cart .woocommerce-variation-description {
  display: none !important;
}
body.dpy-product-pure .dpy-wc-add-to-cart .dpy-variation-price {
  margin: 0 0 8px;
  width: 100%;
}
body.dpy-product-pure .dpy-wc-add-to-cart .dpy-variation-price[hidden] {
  display: none !important;
}
body.dpy-product-pure .dpy-wc-add-to-cart .dpy-variation-price .product-price-row {
  margin-bottom: 2px;
}
body.dpy-product-pure .dpy-wc-add-to-cart .dpy-variation-price .price-normal {
  margin-bottom: 4px;
}
body.dpy-product-pure .dpy-wc-add-to-cart .qty-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 14px;
}
body.dpy-product-pure .dpy-wc-add-to-cart .qty-block .qty-label {
  margin: 0 0 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
body.dpy-product-pure .dpy-wc-add-to-cart .single_add_to_cart_button {
  max-width: 360px;
}
/* Color swatches spacing handled above with variations stack */
body.dpy-product-pure .dpy-wc-add-to-cart .quantity,
body.dpy-product-pure .dpy-wc-add-to-cart .qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  width: fit-content;
  margin: 0;
}
body.dpy-product-pure .dpy-wc-add-to-cart .quantity label,
body.dpy-product-pure .dpy-wc-add-to-cart .screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
body.dpy-product-pure .dpy-wc-add-to-cart .qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: #555;
  background: #f5f5f5;
  border: none;
  cursor: pointer;
  transition: background .15s, color .15s;
  padding: 0;
}
body.dpy-product-pure .dpy-wc-add-to-cart .qty-btn:hover {
  background: var(--dpy-magenta, #e91e8c);
  color: #fff;
}
body.dpy-product-pure .dpy-wc-add-to-cart .quantity input.qty,
body.dpy-product-pure .dpy-wc-add-to-cart .qty-val {
  width: 40px;
  height: 36px;
  text-align: center;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  outline: none;
  background: #fff;
  padding: 0;
  -moz-appearance: textfield;
}
body.dpy-product-pure .dpy-wc-add-to-cart .quantity input.qty:focus-visible,
body.dpy-product-pure .dpy-wc-add-to-cart .qty-val:focus-visible {
  outline: 2px solid var(--dpy-magenta, #e91e8c);
  outline-offset: -2px;
}
body.dpy-product-pure .dpy-wc-add-to-cart .quantity input.qty::-webkit-outer-spin-button,
body.dpy-product-pure .dpy-wc-add-to-cart .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
body.dpy-product-pure .dpy-wc-add-to-cart .single_add_to_cart_button,
body.dpy-product-pure .dpy-wc-add-to-cart button.button {
  display: block;
  width: 100%;
  max-width: 360px;
  background: var(--dpy-green, #43a047);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  padding: 14px;
  border-radius: 6px;
  letter-spacing: .5px;
  border: none;
  cursor: pointer;
}
body.dpy-product-pure .dpy-wc-add-to-cart .single_add_to_cart_button:hover,
body.dpy-product-pure .dpy-wc-add-to-cart button.button:hover {
  background: color-mix(in srgb, var(--dpy-green, #43a047) 82%, #000);
  color: #fff;
}
body.dpy-product-pure .tabs-header .tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
}
