/* =========================================================
   MF — Single Product Premium
   Página de producto individual — La Floristería

   Scope principal:
   body.lf-single-product

   Nota técnica:
   La clase .lf-single-product se agrega desde:
   /inc/mf-single-wpp.php

   Objetivo:
   - Mantener diseño premium del producto individual.
   - Evitar depender únicamente de body.single-product.
   - Dar protagonismo a imagen, panel de decisión y CTA WhatsApp.
   ========================================================= */


/* =========================================================
   1. Layout general
   ========================================================= */

/* Fondo general de la página */
body.lf-single-product {
  background-color: #FAFAF8;
}

/* Fondo del área principal */
body.lf-single-product .site-content {
  background-color: #FAFAF8;
}

/* Mantener header oscuro */
body.lf-single-product .site-header,
body.lf-single-product .main-header-bar,
body.lf-single-product .ast-primary-header-bar {
  background-color: #111111 !important;
}

/* Evitar que el contenedor interno del header herede fondo claro */
body.lf-single-product .site-header .ast-container,
body.lf-single-product .main-header-bar .ast-container,
body.lf-single-product .ast-primary-header-bar .ast-container {
  background-color: transparent !important;
}

/* Contenedor principal del producto */
body.lf-single-product div.product {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 20px 110px;
  box-sizing: border-box;
}

/* Desktop: galería izquierda + panel derecho */
@media (min-width: 922px) {
  body.lf-single-product div.product {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 64px;
    align-items: flex-start;
  }
}


/* =========================================================
   2. Galería / imagen protagonista
   ========================================================= */

body.lf-single-product .woocommerce-product-gallery {
  width: 100% !important;
  max-width: 100%;
  margin: 0 !important;
}

/* Contenedor visual de imagen */
body.lf-single-product .woocommerce-product-gallery__wrapper {
  margin: 0 !important;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background-color: #F0F0ED;
}

/* Imagen principal */
body.lf-single-product .woocommerce-product-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08) !important;
}


/* =========================================================
   3. Panel derecho / resumen del producto
   ========================================================= */

body.lf-single-product .summary,
body.lf-single-product .summary.entry-summary {
  width: 100% !important;
  max-width: 420px;
  margin: 0 !important;
  padding: 34px !important;
  background-color: #FAFAF8;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(198, 161, 91, 0.12) !important;
  box-sizing: border-box;
}

/* Sticky solo en desktop */
@media (min-width: 922px) {
  body.lf-single-product .summary,
  body.lf-single-product .summary.entry-summary {
    position: sticky;
    top: 110px;
    justify-self: end;
  }
}


/* =========================================================
   4. Título del producto
   ========================================================= */

body.lf-single-product .product_title,
body.lf-single-product h1.product_title {
  margin: 0 0 18px !important;
  font-family: "Playfair Display", serif !important;
  font-size: 42px !important;
  font-weight: 600 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.01em !important;
  color: #1E1E1E !important;
}

@media (max-width: 921px) {
  body.lf-single-product .product_title,
  body.lf-single-product h1.product_title {
    font-size: 32px !important;
  }
}


/* =========================================================
   5. Descripción corta
   ========================================================= */

body.lf-single-product .woocommerce-product-details__short-description {
  margin: 0 0 24px !important;
  font-family: "Inter", sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
  color: rgba(30, 30, 30, 0.86) !important;
}

body.lf-single-product .woocommerce-product-details__short-description p {
  margin-bottom: 18px;
}

body.lf-single-product .woocommerce-product-details__short-description p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   6. Precio principal
   ========================================================= */

body.lf-single-product .summary .price,
body.lf-single-product .summary .price span,
body.lf-single-product .summary .price bdi {
  font-family: "Inter", sans-serif !important;
  font-size: 28px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: #1A1A1A !important;
}

body.lf-single-product .summary .price {
  display: block;
  margin: 18px 0 22px !important;
  padding-top: 18px;
  border-top: 1px solid rgba(198, 161, 91, 0.22);
}


/* =========================================================
   7. Variaciones
   ========================================================= */

body.lf-single-product form.variations_form {
  margin-top: 8px !important;
}

body.lf-single-product form.variations_form table.variations {
  width: 100%;
  margin: 0 0 18px !important;
  border-collapse: separate;
  border-spacing: 0 12px;
  font-family: "Inter", sans-serif !important;
}

/* Forzar tabla de variaciones como bloques limpios */
body.lf-single-product form.variations_form table.variations th,
body.lf-single-product form.variations_form table.variations td {
  display: block;
  width: 100%;
  padding: 0 !important;
  border: 0 !important;
}

/* Label de variación */
body.lf-single-product form.variations_form table.variations th label {
  display: block;
  margin-bottom: 8px !important;
  font-family: "Inter", sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: rgba(30, 30, 30, 0.72) !important;
}

/* Select de variaciones */
body.lf-single-product .variations select,
body.lf-single-product form.variations_form .variations .value select {
  width: 100% !important;
  min-height: 50px;
  padding: 14px 44px 14px 14px !important;
  border: 1px solid rgba(17, 17, 17, 0.12) !important;
  border-radius: 12px !important;
  background-color: #FFFFFF !important;
  font-family: "Inter", sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #1A1A1A !important;
  outline: none !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04) !important;
}

/* Estado focus del select */
body.lf-single-product .variations select:focus,
body.lf-single-product form.variations_form .variations .value select:focus {
  border-color: rgba(198, 161, 91, 0.65) !important;
  box-shadow:
    0 0 0 4px rgba(198, 161, 91, 0.14),
    0 10px 22px rgba(0, 0, 0, 0.05) !important;
}

/* Link limpiar variaciones */
body.lf-single-product .reset_variations {
  display: inline-block !important;
  margin-top: 10px !important;
  font-family: "Inter", sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #7A7A7A !important;
  text-decoration: none !important;
}

body.lf-single-product .reset_variations:hover {
  color: #1E1E1E !important;
}


/* =========================================================
   8. Precio de variación
   ========================================================= */

body.lf-single-product .woocommerce-variation-price {
  margin-top: 24px !important;
}

body.lf-single-product .woocommerce-variation-price .price {
  margin-top: 0 !important;
}


/* =========================================================
   9. Ocultar compra nativa WooCommerce
   ========================================================= */

/* Ocultar botón añadir al carrito */
body.lf-single-product .single_add_to_cart_button,
body.lf-single-product button.single_add_to_cart_button {
  display: none !important;
}

/* Ocultar cantidad */
body.lf-single-product .quantity {
  display: none !important;
}


/* =========================================================
   10. Botón WhatsApp personalizado
   ========================================================= */

body.lf-single-product .mf-wpp-wrap {
  width: 100%;
  margin-top: 14px;
}

body.lf-single-product .mf-wpp-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background-color: #C6A15B !important;
  color: #FFFFFF !important;
  font-family: "Inter", sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-align: center;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: 0 10px 22px rgba(198, 161, 91, 0.22);
  transition: background-color 0.2s ease, transform 0.2s ease !important;
}

body.lf-single-product .mf-wpp-btn:hover,
body.lf-single-product .mf-wpp-btn:focus {
  background-color: #B08E4F !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* Estado deshabilitado cuando falta elegir variación */
body.lf-single-product .mf-wpp-btn.is-disabled,
body.lf-single-product .mf-wpp-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}


/* =========================================================
   11. Limpieza WooCommerce
   ========================================================= */

/* Ocultar breadcrumb, categoría y meta */
body.lf-single-product .woocommerce-breadcrumb,
body.lf-single-product .single-product-category,
body.lf-single-product .product_meta {
  display: none !important;
}

/* Mensajes WooCommerce */
body.lf-single-product .woocommerce-message,
body.lf-single-product .woocommerce-info {
  border-radius: 12px;
}


/* =========================================================
   12. Productos relacionados
   ========================================================= */

/* Ocultos para evitar distracción del CTA principal */
body.lf-single-product .related.products {
  display: none !important;
}


/* =========================================================
   13. Mobile refinado
   ========================================================= */

@media (max-width: 921px) {
  body.lf-single-product div.product {
    padding: 50px 20px 90px;
  }

  body.lf-single-product .summary,
  body.lf-single-product .summary.entry-summary {
    max-width: 100%;
    padding: 26px !important;
    margin-top: 28px !important;
  }

  body.lf-single-product .woocommerce-product-gallery img {
    margin: 0 !important;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background-color: #F0F0ED;
  }
}