/* ==========================================================
   JEFA CORP — ESTILOS WOOCOMMERCE
   Se carga solo en páginas de WooCommerce.
   Variables (--jc-*) definidas en style.css
   ========================================================== */

/* ==========================================================
   AVISOS (añadido al carrito, errores, info)
   ========================================================== */
html body .woocommerce-notices-wrapper:empty { display: none; }

html body .woocommerce-message,
html body .woocommerce-info,
html body .woocommerce-error {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
  padding: 16px 20px 16px 52px;
  background: var(--jc-cream);
  color: var(--jc-ink);
  border: 1px solid var(--jc-line);
  border-left: 3px solid var(--jc-gold);
  border-radius: 8px;
  font-size: 15px;
  list-style: none;
}
html body .woocommerce-message::before,
html body .woocommerce-info::before {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--jc-gold);
}
html body .woocommerce-error { border-left-color: #c0392b; }
html body .woocommerce-error::before {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #c0392b;
}

html body .woocommerce-message .button,
html body .woocommerce-info .button {
  order: 2;
  float: none;
  margin-left: auto;
  padding: 10px 18px;
  border: 0;
  border-radius: 6px;
  background: var(--jc-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
html body .woocommerce-message .button:hover,
html body .woocommerce-info .button:hover {
  background: var(--jc-gold);
  color: var(--jc-ink);
}

/* ==========================================================
   DETALLE DE PRODUCTO
   ========================================================== */

/* Migas de pan */
html body.single-product .woocommerce-breadcrumb {
  margin: 0 0 28px;
  color: rgba(26, 26, 26, .5);
  font-size: 13px;
  letter-spacing: .02em;
}
html body.single-product .woocommerce-breadcrumb a {
  color: rgba(26, 26, 26, .5);
  text-decoration: none;
  transition: color .2s ease;
}
html body.single-product .woocommerce-breadcrumb a:hover { color: var(--jc-ink); }

/* Contenedor */
html body.single-product div.product { margin-bottom: 80px; }

/* Galería */
html body.single-product div.product div.images { margin-bottom: 0; }
html body.single-product div.product .woocommerce-product-gallery {
  border-radius: 12px;
  overflow: hidden;
}
html body.single-product div.product .woocommerce-product-gallery__trigger {
  background: rgba(250, 247, 242, .92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  transition: transform .2s ease;
}
html body.single-product div.product .woocommerce-product-gallery__trigger:hover { transform: scale(1.06); }

html body.single-product div.product .flex-control-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px !important;
}
html body.single-product div.product .flex-control-thumbs li {
  flex: 1;
  width: auto !important;
  max-width: 90px;
  margin: 0 !important;
}
html body.single-product div.product .flex-control-thumbs img {
  border-radius: 8px;
  opacity: .5;
  transition: opacity .2s ease;
}
html body.single-product div.product .flex-control-thumbs img:hover,
html body.single-product div.product .flex-control-thumbs img.flex-active { opacity: 1; }

/* Etiqueta de oferta */
html body.single-product div.product span.onsale {
  top: 16px;
  left: 16px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--jc-gold);
  color: var(--jc-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Título */
html body.single-product div.product .product_title {
  margin: 0 0 12px;
  color: var(--jc-ink);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
}

/* Precio */
html body.single-product div.product p.price {
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--jc-line);
  color: var(--jc-gold-dark);
  font-size: 26px;
  font-weight: 600;
}
html body.single-product div.product span.price { color: var(--jc-gold-dark); }
html body.single-product div.product .price del {
  margin-right: 8px;
  color: rgba(26, 26, 26, .4);
  font-size: .7em;
  font-weight: 400;
}
html body.single-product div.product .price ins { text-decoration: none; }

/* Descripción corta */
html body.single-product .woocommerce-product-details__short-description {
  color: rgba(26, 26, 26, .78);
  font-size: 16px;
  line-height: 1.65;
}
html body.single-product .woocommerce-product-details__short-description p { margin: 0 0 14px; }

/* Cantidad + botón */
html body.single-product div.product form.cart:not(.variations_form),
html body.single-product div.product .woocommerce-variation-add-to-cart {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 32px 0 0;
}
html body.single-product div.product form.cart::before,
html body.single-product div.product form.cart::after,
html body.single-product div.product .woocommerce-variation-add-to-cart::before,
html body.single-product div.product .woocommerce-variation-add-to-cart::after { content: none; }

html body.single-product div.product form.cart div.quantity {
  float: none;
  margin: 0;
}
html body.single-product div.product form.cart .qty {
  width: 76px;
  height: 56px;
  padding: 0 8px;
  border: 1px solid rgba(26, 26, 26, .2);
  border-radius: 8px;
  background: #fff;
  color: var(--jc-ink);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}
html body.single-product div.product form.cart .qty:focus {
  border-color: var(--jc-gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(189, 157, 116, .2);
}

html body.single-product div.product form.cart button.single_add_to_cart_button {
  flex: 1;
  float: none;
  height: 56px;
  margin: 0;
  padding: 0 32px;
  border: 0;
  border-radius: 8px;
  background: var(--jc-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}
html body.single-product div.product form.cart button.single_add_to_cart_button:hover,
html body.single-product div.product form.cart button.single_add_to_cart_button:focus-visible {
  background: var(--jc-gold);
  color: var(--jc-ink);
  outline: none;
}
html body.single-product div.product form.cart button.single_add_to_cart_button:focus { outline: none; }
html body.single-product div.product form.cart button.single_add_to_cart_button.disabled,
html body.single-product div.product form.cart button.single_add_to_cart_button:disabled {
  background: var(--jc-ink);
  color: #fff;
  opacity: .4;
  cursor: not-allowed;
}

/* Meta (SKU, categoría, etiquetas) */
html body.single-product div.product .product_meta {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--jc-line);
  color: rgba(26, 26, 26, .55);
  font-size: 13px;
  letter-spacing: .02em;
}
html body.single-product div.product .product_meta > span {
  display: block;
  margin-bottom: 6px;
}
html body.single-product div.product .product_meta a {
  color: var(--jc-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
html body.single-product div.product .product_meta a:hover { border-bottom-color: var(--jc-gold); }

/* Pestañas (Descripción / Valoraciones) */
html body.single-product div.product .woocommerce-tabs { margin-top: 64px; }

html body.single-product div.product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 32px;
  margin: 0 0 28px !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--jc-line);
  overflow: visible;
}
html body.single-product div.product .woocommerce-tabs ul.tabs::before,
html body.single-product div.product .woocommerce-tabs ul.tabs::after,
html body.single-product div.product .woocommerce-tabs ul.tabs li::before,
html body.single-product div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }

html body.single-product div.product .woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}
html body.single-product div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 0 0 14px !important;
  color: rgba(26, 26, 26, .5) !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}
html body.single-product div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--jc-ink) !important;
  box-shadow: inset 0 -2px 0 var(--jc-gold);
}
html body.single-product div.product .woocommerce-Tabs-panel {
  color: rgba(26, 26, 26, .78);
  font-size: 16px;
  line-height: 1.7;
}
html body.single-product div.product .woocommerce-Tabs-panel > h2 {
  margin: 0 0 16px;
  color: var(--jc-ink);
  font-size: 22px;
}

/* Móvil */
@media (max-width: 768px) {
  html body.single-product div.product .summary { margin-top: 28px; }
  html body.single-product div.product .woocommerce-tabs ul.tabs {
    gap: 20px;
    overflow-x: auto;
  }
}