/* ============================================================
   VARIANTES SELECCIONADAS
============================================================ */
.producto-detalle .variant-link.variant-selected,
.relacionados-grid .variant-link.variant-selected {
    background-color: #009E73 !important;
    color: #fff !important;
    font-weight: 600 !important;
    border: 1px solid #2e7d32 !important;
}

/* ============================
   PRODUCTO — Ajustes visuales finales
============================ */

/* 1️⃣ Título — más separación entre líneas */
.producto-detalle .producto-nombre {
    line-height: 1.4 !important;
    letter-spacing: 0.02em !important;
    margin-bottom: 1.2rem !important;
}

/* 2️⃣ Precio y stock — centrados */
.producto-detalle .producto-precio-stock {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    margin-bottom: 1.6rem !important;
}

.producto-detalle .producto-precio {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    color: #d32f2f !important;
    text-align: center !important;
}

.producto-detalle .producto-stock {
    font-size: 1.9rem !important;
    font-weight: 600 !important;
    color: #009E73 !important;
    text-align: center !important;
}

/* 3️⃣ Descripción — texto justificado (base) */
.producto-detalle .producto-descripcion {
    font-size: 1rem !important;
    line-height: 1.55 !important;
    color: var(--color-on-surface-variant);
    text-align: justify !important;
    text-align-last: left !important;
    hyphens: auto !important;
    margin-bottom: 2rem !important;
}

/* 4️⃣ Cantidad y botón — más aire */
.producto-detalle .qty-wrapper {
    gap: 1.6rem !important;
    margin-bottom: 2.4rem !important;
}

/* 🔹 Ajuste: botón Agregar sin desplazamiento extra */
.producto-detalle .btn-add {
    margin-top: 0 !important;
}

/* 5️⃣ Imagen — sin doble tarjeta */
.producto-imagen {
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* ============================================================
   COLORES Y BASE
============================================================ */
.producto-precio {
    color: #d32f2f !important;
    font-weight: 800 !important;
    font-size: 2rem !important;
}

.rel-precio {
    color: #d32f2f !important;
    font-weight: 800 !important;
}

/* ============================================================
   ZOOM — IMAGEN PRINCIPAL
============================================================ */
.producto-imagen {
    overflow: hidden !important;
}

.producto-imagen img {
    transition: transform 0.25s ease-out !important;
    user-select: none !important;
    touch-action: none !important;
}

/* ============================================================
   GRID RESPONSIVE — IMAGEN IZQUIERDA / DETALLE DERECHA
============================================================ */
.producto-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    align-items: start !important;
    gap: 4rem !important;
}

/* ============================================================
   MOBILE ≤1024px — ESTILO v0.app
============================================================ */
@media (max-width: 1024px) {

  /* GRID PRINCIPAL PRODUCTO */
  .producto-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3rem !important;
    padding: 1.6rem !important;
  }

  /* IMAGEN PRINCIPAL */
  .producto-imagen {
    width: 100% !important;
    margin: 0 auto !important;
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .producto-img {
    width: 100% !important;
    max-width: 420px !important;
    border-radius: 1.4rem !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0 auto 2rem auto !important;
  }

  /* DETALLE DEL PRODUCTO */
  /*.producto-detalle {
    text-align: center !important;
    align-items: center !important;
    gap: 2rem !important;
    padding: 0 1.6rem !important;
  }*/
	.producto-detalle {
    width: 100% !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

  .producto-detalle .producto-nombre {
    font-size: 2.8rem !important;
    font-weight: 700 !important;
    color: var(--color-primary);
    line-height: 1.4 !important;
    letter-spacing: 0.02em !important;
    margin-bottom: 1.2rem !important;
  }

  .producto-detalle .producto-precio-stock {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    margin-bottom: 1.6rem !important;
  }

  .producto-detalle .producto-precio {
    font-size: 3.2rem !important;
    font-weight: 800 !important;
    color: #d32f2f !important;
    text-align: center !important;
  }

  .producto-detalle .producto-stock {
    font-size: 1.9rem !important;
    font-weight: 600 !important;
    color: #009E73 !important;
    text-align: center !important;
  }

  .producto-detalle .producto-descripcion {
    font-size: 2.5rem !important;
    line-height: 1.55 !important;
    color: var(--color-on-surface-variant);
    text-align: justify !important;
    text-align-last: left !important;
    hyphens: auto !important;
    margin-bottom: 2rem !important;
  }

  /* VARIANTES */
  .producto-variantes {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1.2rem !important;
    margin-bottom: 1.6rem !important;
  }

  .variant-link {
    font-size: 2.2rem !important;
    padding: 1.2rem 1.6rem !important;
    min-width: 120px !important;
    text-align: center !important;
    border-radius: 1.2rem !important;
    font-weight: 700 !important;
  }

  .variant-link.variant-selected {
    background-color: #009E73 !important;
    color: #fff !important;
    border: 1px solid #009E73 !important;
  }

  /* CANTIDAD — táctil */
  .qty-wrapper {
    width: 100% !important;
    max-width: 340px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    margin: 0 auto 2.4rem auto !important;
  }

  .qty-minus {
    width: 90px !important;
    height: 90px !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
    background-color: #f3f3f3 !important;
    border: 1px solid #ddd !important;
    border-top-left-radius: 1rem !important;
    border-bottom-left-radius: 1rem !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .qty-input {
    width: 110px !important;
    height: 90px !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    background-color: #fff !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  }

  .qty-plus {
    width: 90px !important;
    height: 90px !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
    background-color: #f3f3f3 !important;
    border: 1px solid #ddd !important;
    border-top-right-radius: 1rem !important;
    border-bottom-right-radius: 1rem !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* BOTÓN AGREGAR — táctil */
  .form-agregar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.4rem !important;
    margin-top: 0 !important;
  }

  .btn-add {
    width: 100% !important;
    max-width: 340px !important;
    min-height: 90px !important;
    font-size: 2.6rem !important;
    font-weight: 700 !important;
    padding: 1.8rem 2.6rem !important;
    border-radius: 2.4rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.2rem !important;
    margin: 0 auto 2.4rem auto !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
  }

  .btn-add .material-symbols-outlined,
  .btn-add .material-symbols-rounded {
    font-size: 3.2rem !important;
  }

  /* RELACIONADOS — 2 columnas */
  .relacionados-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 2rem !important;
    margin-top: 2.4rem !important;
  }

  h2.titulo-rel {
    font-size: 2.5rem !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    text-align: center !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    min-height: calc(1.6rem * 1.4 * 3) !important;
    margin-bottom: 1rem !important;
  }

  .producto-breadcrumb {
    font-size: 2rem !important;
    line-height: 1.4 !important;
    font-weight: 300 !important;
    text-align: left !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    min-height: calc(1.6rem * 1.4 * 3) !important;
    margin-bottom: 1rem !important;
  }

  .relacionados-grid .producto-card {
    padding: 1.6rem !important;
    border-radius: 1.4rem !important;
    box-shadow: var(--shadow-2);
    text-align: center !important;
  }

  .relacionados-grid .nombre-producto {
    font-size: 1.9rem !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    text-align: center !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    min-height: calc(1.6rem * 1.4 * 3) !important;
    margin-bottom: 1rem !important;
  }

  .relacionados-grid .home-product-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 4 !important;
    object-fit: contain !important;
    background: #fff !important;
    display: block !important;
  }

  .relacionados-grid .rel-precio {
    font-size: 2.4rem !important;
    font-weight: 800 !important;
    color: #d32f2f !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
  }

  .relacionados-grid .btn-add {
    width: 100% !important;
    max-width: 320px !important;
    font-size: 2.6rem !important;
    font-weight: 700 !important;
    padding: 1.8rem 2.6rem !important;
    border-radius: 2.4rem !important;
    min-height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.2rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .relacionados-grid .btn-add:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.25);
  }

  .relacionados-grid .btn-add .material-symbols-rounded {
    font-size: 3.2rem !important;
  }
.btn-opciones {
    width: 100% !important;
    max-width: 340px !important;
    min-height: 90px !important;
    font-size: 2.6rem !important;
    font-weight: 700 !important;
    padding: 1.8rem 2.6rem !important;
    border-radius: 2.4rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.2rem !important;
    margin: 0 auto 2.4rem auto !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
  }

  .btn-opciones .material-symbols-outlined,
  .btn-opciones .material-symbols-rounded {
    font-size: 3.2rem !important;
  }	
.relacionados-grid .btn-opciones {
    width: 100% !important;
    max-width: 340px !important;
    min-height: 44px !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    border-radius: 1.2rem !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;

    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.relacionados-grid .btn-opciones:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}	
	
}

/* ============================================================
   DESKTOP ≥1025px — ESTILO v0.app REFINADO
============================================================ */
@media (min-width: 1025px) {

  /* PRECIO RELACIONADOS */
  .rel-precio {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #d32f2f !important;
    text-align: center !important;
    margin-top: 0.4rem !important;
    margin-bottom: 0.4rem !important;
    display: block !important;
  }

  /* FORM AGREGAR — alineación horizontal */
  .form-agregar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.4rem !important;
    margin-top: 0 !important;
  }

  /* WRAPPER DE CANTIDAD */
  .qty-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.4rem !important;
    margin: 0 !important;
    height: 44px !important;
  }

  .qty-minus {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.6rem !important;
    background-color: #f3f3f3 !important;
    border: 1px solid #ddd !important;
    border-top-left-radius: 0.6rem !important;
    border-bottom-left-radius: 0.6rem !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    cursor: pointer !important;
  }

  .qty-input {
    width: 70px !important;
    height: 44px !important;
    font-size: 1.4rem !important;
    text-align: center !important;
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
    background-color: #fff !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    line-height: 44px !important;
    -moz-appearance: textfield !important;
  }

  .qty-input::-webkit-inner-spin-button,
  .qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
  }

  .qty-plus {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.6rem !important;
    background-color: #f3f3f3 !important;
    border: 1px solid #ddd !important;
    border-top-right-radius: 0.6rem !important;
    border-bottom-right-radius: 0.6rem !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    cursor: pointer !important;
  }

  /* BOTÓN AGREGAR / EN CARRITO — igual a HOME */
  .btn-add {
    width: 100% !important;
    max-width: 340px !important;
    min-height: 44px !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    padding: 0 1.4rem !important;
    border-radius: 2.4rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.2rem !important;
    margin: 0 auto 2.4rem auto !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
  }

  .btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }

  .btn-add .material-symbols-outlined,
  .btn-add .material-symbols-rounded {
    font-size: 1.6rem !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* RELACIONADOS — alineación y espaciado */
  .relacionados-grid .producto-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: center !important;
  }

  .relacionados-grid .form-agregar,
  .relacionados-grid .qty-wrapper,
  .relacionados-grid .producto-variantes {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .relacionados-grid .producto-variantes {
    margin-bottom: 0.8rem !important;
    gap: 0.8rem !important;
  }

  .relacionados-grid .qty-wrapper {
    gap: 0.4rem !important;
    margin-bottom: 0.8rem !important;
  }

  .relacionados-grid .btn-add {
    height: 44px !important;
    line-height: 44px !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    border-radius: 1.2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .relacionados-grid .btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
	  .btn-opciones {
    width: 100% !important;
    max-width: 340px !important;
    min-height: 44px !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    padding: 0 1.4rem !important;
    border-radius: 2.4rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.2rem !important;
    margin: 0 auto 2.4rem auto !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
  }

  .btn-opciones:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }

  .btn-opciones .material-symbols-outlined,
  .btn-opciones .material-symbols-rounded {
    font-size: 1.6rem !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
	  .relacionados-grid .btn-opciones {
    height: 44px !important;
    line-height: 44px !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    border-radius: 1.2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .relacionados-grid .btn-opciones:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
}
