/* CholloPrinting · Ficha de producto pública
 * Fuente única de layout para single-product.
 * No afecta personalizador, catálogos privados ni lógica WooCommerce.
 */

body.single-product .cp-woocommerce{
  width:min(1180px,calc(100% - 32px));
  margin:0 auto;
  padding:22px 0 54px;
}

body.single-product .woocommerce div.product{
  display:grid!important;
  grid-template-columns:minmax(0,1.12fr) minmax(320px,.88fr)!important;
  grid-template-areas:
    "media summary"
    "tabs tabs"
    "related related"!important;
  gap:28px 30px!important;
  align-items:start!important;
  max-width:1180px;
  margin:0 auto!important;
}

body.single-product .woocommerce div.product::before,
body.single-product .woocommerce div.product::after{
  display:none!important;
  content:none!important;
}

body.single-product .woocommerce div.product > .woocommerce-product-gallery.images{
  grid-area:media!important;
  float:none!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:12px!important;
  align-self:start!important;
  position:relative!important;
  z-index:0!important;
  isolation:isolate;
  border:1px solid #e4e8ee!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 10px 28px rgba(20,25,45,.045)!important;
  overflow:hidden!important;
}

body.single-product .woocommerce div.product > .summary{
  grid-area:summary!important;
  float:none!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:22px!important;
  align-self:start!important;
  border:1px solid #e4e8ee!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 10px 28px rgba(20,25,45,.045)!important;
  position:static!important;
  top:auto!important;
  order:0!important;
}

body.single-product .woocommerce div.product > .woocommerce-tabs{
  grid-area:tabs!important;
  float:none!important;
  width:100%!important;
  margin:0!important;
  order:0!important;
}

body.single-product .woocommerce div.product > .related,
body.single-product .woocommerce div.product > .upsells{
  grid-area:related!important;
  float:none!important;
  width:100%!important;
  margin:0!important;
  order:0!important;
}

/* Galería */
body.single-product .cp-product-media{
  display:grid!important;
  grid-template-columns:56px minmax(0,1fr)!important;
  grid-template-areas:
    "thumbs main"
    "note note"!important;
  gap:12px!important;
  width:100%!important;
  margin:0!important;
  position:relative!important;
}

body.single-product .cp-product-media-thumbs{
  grid-area:thumbs!important;
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  min-width:0!important;
  max-height:410px!important;
  margin:0!important;
  padding:1px 2px 1px 1px!important;
  position:static!important;
  top:auto!important;
  left:auto!important;
  align-self:start!important;
  transform:none!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  scrollbar-width:thin;
}

body.single-product .cp-product-media-thumb{
  position:relative;
  display:grid!important;
  place-items:center!important;
  width:56px!important;
  min-width:56px!important;
  aspect-ratio:1/1;
  padding:5px!important;
  border:1px solid #dfe4eb!important;
  border-radius:11px!important;
  background:#fff!important;
  overflow:hidden!important;
  cursor:pointer;
}

body.single-product .cp-product-media-thumb.is-active{
  border-color:#ff2185!important;
  box-shadow:0 0 0 2px rgba(255,33,133,.10)!important;
}

body.single-product .cp-product-media-thumb img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
}

body.single-product .cp-product-media-thumb i{
  position:absolute;
  right:5px;
  bottom:5px;
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  border-radius:999px;
  background:#071a3d;
  color:#fff;
  font-size:9px;
  font-style:normal;
}

body.single-product .cp-product-media-main{
  grid-area:main!important;
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  height:410px!important;
  min-height:0!important;
  max-height:410px!important;
  border:0!important;
  border-radius:15px!important;
  background:#f6f7f9!important;
  overflow:hidden!important;
}

body.single-product .cp-product-media-image-link{
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  padding:16px!important;
}

body.single-product .cp-product-media-image{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  object-fit:contain!important;
  object-position:center center!important;
}

body.single-product .cp-product-media-video{
  display:block;
  width:auto!important;
  max-width:min(100%,390px)!important;
  height:auto!important;
  max-height:390px!important;
  margin:auto!important;
  object-fit:contain!important;
  border-radius:12px!important;
  background:#111!important;
}
body.single-product .cp-product-media-video[hidden]{display:none!important}

body.single-product .cp-product-media-counter{
  position:absolute;
  left:12px;
  bottom:12px;
  z-index:3;
  padding:5px 8px;
  border-radius:999px;
  background:rgba(7,26,61,.9);
  color:#fff;
  font-size:10px;
  font-weight:850;
}

body.single-product .cp-product-media-note{
  grid-area:note!important;
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  width:100%!important;
  margin:0!important;
  padding:7px 10px!important;
  border-radius:10px!important;
  background:#f7f8fb!important;
  color:#667085!important;
}
body.single-product .cp-product-media-note>span{
  color:#12a56b!important;
  font-size:11px!important;
  font-weight:950!important;
}
body.single-product .cp-product-media-note small{
  font-size:10px!important;
  line-height:1.35!important;
}

/* Resumen */
body.single-product .cp-product-eyebrow{
  margin:0 0 7px!important;
  color:#697386!important;
  font-size:11px!important;
  font-weight:850!important;
  letter-spacing:.02em!important;
  text-transform:none!important;
}

body.single-product .product_title{
  margin:0 0 10px!important;
  color:#071a3d!important;
  font-size:clamp(30px,3vw,40px)!important;
  line-height:1.02!important;
  letter-spacing:-1.2px!important;
}

body.single-product .woocommerce-product-details__short-description{
  margin:0 0 16px!important;
  color:#4f5b6d!important;
  font-size:14px!important;
  line-height:1.55!important;
}

body.single-product .woocommerce div.product p.price{
  margin:0 0 16px!important;
  font-size:24px!important;
  line-height:1.1!important;
}

body.single-product .summary > p.price:empty{
  display:none!important;
}

body.single-product .cp-product-option-label{
  display:block;
  margin-bottom:8px;
  color:#202633;
  font-size:13px;
  font-weight:900;
}

body.single-product .cp-product-family-switcher{
  margin:16px 0!important;
}

body.single-product .cp-product-family-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

body.single-product .cp-product-family-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 14px;
  border:1px solid #dce2ea;
  border-radius:12px;
  background:#fff;
  color:#14223d;
  font-size:13px;
  font-weight:850;
  text-decoration:none;
}

body.single-product .cp-product-family-chip.is-active{
  border-color:#0b2148;
  background:#0b2148;
  color:#fff;
}

body.single-product .cp-catalog-sample-notice{
  display:grid;
  gap:3px;
  margin:16px 0 0!important;
  padding:12px 14px;
  border:1px solid #e7eaf0;
  border-radius:13px;
  background:#f8f9fb;
  color:#566173;
  font-size:12px;
  line-height:1.4;
}
body.single-product .cp-catalog-sample-notice strong{
  color:#14223d;
  font-size:13px;
}
body.single-product .product_meta{
  display:none!important;
}

/* Descripción */
body.single-product .woocommerce-tabs ul.tabs:has(li:only-child){
  display:none!important;
}
body.single-product .woocommerce-Tabs-panel--description > h2:first-child{
  display:none!important;
}
body.single-product .woocommerce-tabs .panel{
  margin:0!important;
  padding:24px!important;
  border:1px solid #e4e8ee!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:none!important;
}
body.single-product .woocommerce-tabs .panel h2{
  margin:0 0 12px!important;
  font-size:24px!important;
  line-height:1.12!important;
}
body.single-product .woocommerce-tabs .panel h3{
  margin:22px 0 9px!important;
  font-size:18px!important;
}
body.single-product .woocommerce-tabs .panel p,
body.single-product .woocommerce-tabs .panel li{
  font-size:14px!important;
  line-height:1.55!important;
}

/* Relacionados */
body.single-product .related.products{
  padding-top:2px;
}
body.single-product .related.products > h2{
  margin:0 0 14px!important;
  font-size:24px!important;
}

/* Ventana de ordenador estrecha: mantener las dos columnas mientras el header siga en modo escritorio. */
@media(min-width:721px) and (max-width:900px){
  body.single-product .cp-woocommerce{
    width:min(100% - 20px,900px)!important;
    padding-top:14px!important;
  }
  body.single-product .woocommerce div.product{
    grid-template-columns:minmax(0,1.05fr) minmax(270px,.95fr)!important;
    gap:20px!important;
  }
  body.single-product .woocommerce div.product > .woocommerce-product-gallery.images{
    padding:9px!important;
    border-radius:16px!important;
  }
  body.single-product .woocommerce div.product > .summary{
    padding:17px!important;
    border-radius:16px!important;
  }
  body.single-product .cp-product-media{
    grid-template-columns:50px minmax(0,1fr)!important;
    gap:8px!important;
  }
  body.single-product .cp-product-media-thumbs{
    max-height:350px!important;
  }
  body.single-product .cp-product-media-thumb{
    width:50px!important;
    min-width:50px!important;
  }
  body.single-product .cp-product-media-main{
    height:350px!important;
    max-height:350px!important;
  }
  body.single-product .product_title{
    font-size:clamp(26px,4vw,32px)!important;
  }
  body.single-product .woocommerce-product-details__short-description{
    font-size:12px!important;
    line-height:1.45!important;
  }
  body.single-product .cp-product-family-chip{
    min-height:36px;
    padding:0 11px;
    font-size:12px;
  }
  body.single-product .cp-catalog-sample-notice{
    padding:10px 11px;
    font-size:11px;
  }
  body.single-product .cp-catalog-sample-notice strong{
    font-size:12px;
  }
}

/* Móvil: mismo breakpoint que la navegación principal. */
@media(max-width:720px){
  body.single-product .cp-woocommerce{
    width:min(100% - 16px,620px)!important;
    padding:10px 0 36px!important;
  }

  body.single-product .woocommerce div.product{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:
      "media"
      "summary"
      "tabs"
      "related"!important;
    gap:14px!important;
  }

  body.single-product .woocommerce div.product > .woocommerce-product-gallery.images{
    padding:8px!important;
    border-radius:16px!important;
    box-shadow:none!important;
  }

  body.single-product .cp-product-media{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:
      "main"
      "thumbs"
      "note"!important;
    gap:9px!important;
  }

  body.single-product .cp-product-media-main{
    height:clamp(280px,86vw,360px)!important;
    max-height:360px!important;
    aspect-ratio:auto!important;
  }

  body.single-product .cp-product-media-image-link{
    padding:10px!important;
  }

  body.single-product .cp-product-media-thumbs{
    flex-direction:row!important;
    gap:8px!important;
    width:100%!important;
    max-height:none!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:1px 1px 3px!important;
    scrollbar-width:none!important;
    scroll-snap-type:x proximity;
  }
  body.single-product .cp-product-media-thumbs::-webkit-scrollbar{
    display:none!important;
  }
  body.single-product .cp-product-media-thumb{
    flex:0 0 54px!important;
    width:54px!important;
    min-width:54px!important;
    scroll-snap-align:start;
  }

  body.single-product .woocommerce div.product > .summary{
    padding:6px 3px 2px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  body.single-product .product_title{
    font-size:clamp(25px,7.5vw,30px)!important;
    letter-spacing:-1px!important;
  }

  body.single-product .woocommerce-product-details__short-description{
    font-size:13px!important;
    line-height:1.5!important;
  }

  body.single-product .cp-product-family-chip{
    min-height:38px;
    padding:0 12px;
    font-size:12px;
  }

  body.single-product .woocommerce-tabs .panel{
    padding:16px!important;
    border-radius:16px!important;
  }

  body.single-product .woocommerce-tabs .panel h2{
    font-size:20px!important;
  }
  body.single-product .woocommerce-tabs .panel h3{
    font-size:16px!important;
  }
  body.single-product .woocommerce-tabs .panel p,
  body.single-product .woocommerce-tabs .panel li{
    font-size:13px!important;
    line-height:1.48!important;
  }

  body.single-product .related.products{
    overflow:hidden;
  }
  body.single-product .related.products > h2{
    font-size:20px!important;
  }
  body.single-product .related.products ul.products{
    display:flex!important;
    grid-template-columns:none!important;
    gap:10px!important;
    width:100%!important;
    overflow-x:auto!important;
    padding:0 2px 8px!important;
    margin:0!important;
    scrollbar-width:none!important;
    scroll-snap-type:x mandatory;
  }
  body.single-product .related.products ul.products::-webkit-scrollbar{
    display:none!important;
  }
  body.single-product .related.products ul.products li.product{
    flex:0 0 min(72vw,245px)!important;
    width:min(72vw,245px)!important;
    max-width:245px!important;
    margin:0!important;
    scroll-snap-align:start;
  }
  body.single-product .related.products ul.products li.product > a.woocommerce-LoopProduct-link > img{
    height:190px!important;
    max-height:190px!important;
    object-fit:contain!important;
  }
  body.single-product .related.products .woocommerce-loop-product__title{
    min-height:0!important;
    font-size:13px!important;
    line-height:1.24!important;
  }
  body.single-product .related.products .button{
    width:100%!important;
    min-height:42px!important;
    font-size:12px!important;
  }
}

/* Guía de tallas pública · integrada en Theme */
.cp-prod-size-guide{margin:14px 0 0;padding-top:10px;border-top:1px solid #e5e7eb}
.cp-prod-size-guide summary{cursor:pointer;min-height:44px;display:flex;align-items:center;width:max-content;max-width:100%;font-size:13px;font-weight:900;color:#d9136f;list-style:none}
.cp-prod-size-guide summary::-webkit-details-marker{display:none}
.cp-prod-size-guide summary:after{content:"+";margin-left:8px;font-size:18px}
.cp-prod-size-guide[open] summary:after{content:"−"}
.cp-prod-size-guide__body{padding:4px 0 8px;color:#667085;font-size:13px;line-height:1.55}
.cp-prod-size-guide__body p{margin:7px 0}
.cp-prod-size-guide__body a{color:#d9136f;font-weight:850}
.cp-prod-size-guide__table-wrap{overflow:auto;margin-top:8px}
.cp-prod-size-guide table{width:100%;border-collapse:collapse;background:#fff}
.cp-prod-size-guide th,.cp-prod-size-guide td{padding:8px 10px;border:1px solid #e5e7eb;text-align:left;white-space:nowrap}
.cp-prod-size-guide th{font-weight:800;background:#f8fafc}
