/* =========================================================
   LDR · Single Product (minimalista, sin tocar galería)
   - Colores de marca
   - Variaciones "Tono" sin fondo gris
   - Botón Añadir en azul de marca (resto default)
   - Qty [-][n][+] (si JS lo envuelve)
   - Tabs nativas en desktop; ACORDEÓN SOLO EN MÓVIL
   - Oculta relacionados/upsells
   ========================================================= */


/* Paleta local */
:root{
  --ldr-brand:#00AEC7;
  --ldr-brand-700:#007E90;
  --ldr-brand-800:#006A78;
  --ldr-text:#111;
  --ldr-border:rgba(0,0,0,.12);
}

/* Acentos en color de marca */
.ldr-single.single-product .entry-summary .price,
.ldr-single.single-product .entry-summary a,
.ldr-single.single-product .variations .label,
.ldr-single.single-product .woo-selected-variation-item-name,
.ldr-single.single-product .woocommerce-variation-price .price{
  color:var(--ldr-brand-800) !important;
}

/* Variaciones "Tono": sin fondos */
.ldr-single.single-product table.variations,
.ldr-single.single-product table.variations tr,
.ldr-single.single-product table.variations td,
.ldr-single.single-product table.variations th{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding-left:0;
}
/* Swatches */
.ldr-single.single-product .variable-items-wrapper .variable-item,
.ldr-single.single-product .woo-variation-swatches .variable-item{
  border:1px solid rgba(0,0,0,.15) !important;
  border-radius:999px !important;
  box-shadow:none !important;
}
.ldr-single.single-product .variable-items-wrapper .variable-item.selected,
.ldr-single.single-product .woo-variation-swatches .variable-item.selected{
  outline:2px solid var(--ldr-brand) !important;
  outline-offset:2px !important;
}

/* Dejar layout default del formulario, solo color del botón */
.ldr-single.single-product form.cart{ display:flex; flex-wrap:wrap; gap:.6em; align-items:center; }
.ldr-single.single-product .single_add_to_cart_button,
.ldr-single.single-product .single_add_to_cart_button.button,
.ldr-single.single-product .single_add_to_cart_button.alt{
  background:var(--ldr-brand) !important;
  border-color:var(--ldr-brand-700) !important;
  color:#fff !important;
}
.ldr-single.single-product .single_add_to_cart_button:hover{
  background:var(--ldr-brand-700) !important;
}

/* Qty [-][n][+] (se aplica si el JS crea .ldr-qty) */
.ldr-single .ldr-qty{
  display:inline-flex; align-items:center; height:42px;
  border:1px solid rgba(0,0,0,.2); border-radius:8px; overflow:hidden; background:#fff;
}
.ldr-single .ldr-qty__btn{
  width:44px; border:0; background:#fff; cursor:pointer;
  font-size:20px; line-height:1; color:#111;
  transition:background .12s,color .12s;
}
.ldr-single .ldr-qty__btn:hover{
  background:rgba(0,174,199,.08); color:var(--ldr-brand-800);
}
.ldr-single .ldr-qty input.qty{
  width:68px; height:42px; margin:0; padding:0; text-align:center; border:0 !important; box-shadow:none !important; background:transparent; font-weight:700;
}
.ldr-single .ldr-qty input.qty::-webkit-outer-spin-button,
.ldr-single .ldr-qty input.qty::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.ldr-single .ldr-qty input.qty[type=number]{ -moz-appearance:textfield; }
.ldr-single .ldr-qty__btn:focus-visible,
.ldr-single .ldr-qty input.qty:focus-visible{ outline:2px solid var(--ldr-brand); outline-offset:2px; }

/* --------- Tabs desktop + ACORDEÓN SOLO MÓVIL --------- */

/* Contenedor tabs (ancho agradable) */
.ldr-single.single-product .woocommerce-tabs{
  max-width:1280px; margin:24px auto 0; padding:0 clamp(16px,3vw,28px);
}

/* Por defecto: mostrar tabs nativo y ocultar acordeón */
.ldr-single.single-product .ldr-acc-wrap{ display:none; }

/* Móvil <= 768px: ocultar tabs y mostrar acordeón */
@media (max-width:768px){
  .ldr-single.single-product .woocommerce-tabs ul.tabs{ display:none !important; }
  .ldr-single.single-product .ldr-acc-wrap{ display:block; }

  .ldr-single.single-product .ldr-acc{ border-top:1px solid rgba(0,0,0,.14); }
  .ldr-single.single-product .ldr-acc:last-child{ border-bottom:1px solid rgba(0,0,0,.14); }

  .ldr-single.single-product .ldr-acc__head{
    width:100%; display:flex; align-items:center; justify-content:space-between;
    gap:12px; padding:14px 0; background:none; border:0; cursor:pointer; text-align:left;
    font-weight:800; text-transform:uppercase; letter-spacing:.3px; color:var(--ldr-text,#111);
  }
  .ldr-single.single-product .ldr-acc__icon{
    font-size:20px; line-height:1; color:var(--ldr-brand-800,#006A78); transition:transform .2s ease;
  }
  .ldr-single.single-product .ldr-acc.is-open .ldr-acc__icon{ transform:rotate(45deg); }

  .ldr-single.single-product .ldr-acc__panel{ display:none; padding:0 0 14px; line-height:1.62; color:var(--ldr-text,#111); }
  .ldr-single.single-product .ldr-acc.is-open .ldr-acc__panel{ display:block; }

  /* Ocultar H2 que Woo pone dentro del panel */
  .ldr-single.single-product .ldr-acc__panel > h2:first-child{ display:none; }
}

/* --------- Ocultar relacionados/upsells --------- */
.ldr-single.single-product .related,
.ldr-single.single-product .upsells{ display:none !important; }