/* =========================================================
   SINGLE PRODUCT - MOCKUP BLANCO/AZUL + NOTICIAS
   Archivo: single-product.css
========================================================= */

body.single-product {
  background: #f4faff;
}

/* Contenedor general de la plantilla */
body.single-product .elementor-location-single,
body.single-product .elementor-widget-theme-post-content,
body.single-product .woocommerce div.product {
  font-family: "Inter", "Montserrat", Arial, sans-serif;
  color: #071a38;
}

/* Área principal */
body.single-product .elementor-location-single {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 22px 60px;
}

/* =========================================================
   IMAGEN PRODUCTO
========================================================= */

body.single-product .woocommerce-product-gallery {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(0, 42, 80, 0.12);
}

body.single-product .woocommerce-product-gallery img {
  border-radius: 12px;
  object-fit: contain;
}

body.single-product .woocommerce-product-gallery__image {
  background: #ffffff;
  border-radius: 12px;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 16px !important;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
  width: 72px !important;
  height: 72px !important;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 16px rgba(0, 42, 80, 0.12);
  overflow: hidden;
  border: 1px solid #dceaf5;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================================================
   TÍTULO / PRECIO / DESCRIPCIÓN
========================================================= */

body.single-product h1.product_title,
body.single-product .product_title,
body.single-product .elementor-widget-woocommerce-product-title h1 {
  color: #073d5f !important;
  font-size: 38px !important;
  line-height: 0.95 !important;
  font-weight: 900 !important;
  margin: 0 0 12px !important;
  max-width: 430px;
}

body.single-product .price,
body.single-product .woocommerce-Price-amount,
body.single-product .elementor-widget-woocommerce-product-price .price {
  color: #008bd2 !important;
  font-size: 28px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
}

body.single-product .woocommerce-product-details__short-description,
body.single-product .elementor-widget-woocommerce-product-short-description {
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: #1d2733 !important;
  margin: 18px 0 !important;
}

body.single-product .stock {
  color: #86a000 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

/* Rating */
body.single-product .woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 10px;
}

body.single-product .star-rating {
  color: #7ccdf3 !important;
}

body.single-product .woocommerce-review-link {
  color: #071a38 !important;
  font-size: 13px !important;
}

/* =========================================================
   ADD TO CART
========================================================= */

body.single-product form.cart,
body.single-product .elementor-add-to-cart form.cart {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 16px !important;
  margin-bottom: 22px !important;
  flex-wrap: wrap;
}

body.single-product form.cart .quantity {
  margin: 0 !important;
}

body.single-product form.cart .quantity input.qty {
  width: 64px !important;
  height: 44px !important;
  border-radius: 8px !important;
  border: 1px solid #b8ddf2 !important;
  background: #eaf7ff !important;
  color: #071a38 !important;
  font-weight: 700 !important;
}

body.single-product form.cart button.single_add_to_cart_button,
body.single-product .single_add_to_cart_button {
  height: 44px !important;
  border-radius: 999px !important;
  background: #008bd2 !important;
  color: #ffffff !important;
  padding: 0 34px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-transform: none !important;
  border: none !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}

body.single-product form.cart button.single_add_to_cart_button:hover,
body.single-product .single_add_to_cart_button:hover {
  background: #006fa8 !important;
  transform: translateY(-1px);
}

/* =========================================================
   META PRODUCTO
========================================================= */

body.single-product .product_meta {
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: #071a38 !important;
}

body.single-product .product_meta a {
  color: #008bd2 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

/* =========================================================
   TABS
========================================================= */

body.single-product .woocommerce-tabs {
  background: transparent !important;
  margin-top: 28px !important;
}

body.single-product .woocommerce-tabs ul.tabs {
  padding: 0 !important;
  margin: 0 0 28px !important;
  border-bottom: 1px solid #dceaf5 !important;
}

body.single-product .woocommerce-tabs ul.tabs::before {
  display: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li {
  border: 1px solid #dceaf5 !important;
  background: #f2f5f9 !important;
  border-radius: 6px 6px 0 0 !important;
  margin: 0 4px 0 0 !important;
  padding: 0 !important;
}

body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li a {
  color: #071a38 !important;
  padding: 13px 20px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active {
  background: #ffffff !important;
  border-bottom-color: #ffffff !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active a {
  color: #008bd2 !important;
}

body.single-product .woocommerce-Tabs-panel {
  background: transparent !important;
  padding: 0 !important;
}

body.single-product .woocommerce-Tabs-panel h2 {
  font-size: 28px !important;
  color: #071a38 !important;
  font-weight: 700 !important;
  margin-bottom: 14px !important;
}

body.single-product .woocommerce-Tabs-panel p,
body.single-product .woocommerce-Tabs-panel li {
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: #1d2733 !important;
}

/* =========================================================
   ÚLTIMAS NOTICIAS
   Funciona con Loop Grid / Posts Widget / Elementor Posts
========================================================= */

body.single-product .elementor-widget-loop-grid,
body.single-product .elementor-widget-posts {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(0, 42, 80, 0.14);
}

/* Título Últimas Noticias */
body.single-product .elementor-widget-heading h2,
body.single-product .elementor-widget-heading .elementor-heading-title {
  color: #073d5f;
}

/* Items noticias */
body.single-product .elementor-widget-loop-grid article,
body.single-product .elementor-widget-posts article,
body.single-product .elementor-post {
  display: grid !important;
  grid-template-columns: 92px 1fr !important;
  gap: 12px !important;
  align-items: center !important;
  padding-bottom: 13px !important;
  margin-bottom: 13px !important;
  border-bottom: 1px solid #e4eef5 !important;
}

/* Imagen noticia */
body.single-product .elementor-widget-loop-grid article img,
body.single-product .elementor-widget-posts article img,
body.single-product .elementor-post__thumbnail img {
  width: 92px !important;
  height: 62px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
}

/* Título noticia */
body.single-product .elementor-post__title,
body.single-product .elementor-post__title a,
body.single-product .elementor-widget-loop-grid article h3,
body.single-product .elementor-widget-loop-grid article h3 a,
body.single-product .elementor-widget-posts article h3,
body.single-product .elementor-widget-posts article h3 a {
  color: #073d5f !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
  margin: 0 !important;
  text-decoration: none !important;
}

/* Fecha noticia */
body.single-product .elementor-post-date,
body.single-product .elementor-post__meta-data,
body.single-product .elementor-widget-loop-grid time,
body.single-product .elementor-widget-posts time {
  color: #9aa7b5 !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  margin-top: 6px !important;
}

/* =========================================================
   BANNER / IMÁGENES LATERALES
========================================================= */

body.single-product .elementor-widget-image img {
  border-radius: 20px;
}

body.single-product .elementor-widget-image {
  overflow: hidden;
}

/* =========================================================
   PRODUCTOS RELACIONADOS
========================================================= */

body.single-product .related.products {
  margin-top: 48px !important;
}

body.single-product .related.products > h2 {
  color: #073d5f !important;
  font-size: 30px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  margin-bottom: 22px !important;
}

body.single-product .related.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 18px !important;
}

body.single-product .related.products ul.products li.product {
  width: 100% !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 12px 12px 16px !important;
  box-shadow: 0 8px 22px rgba(0, 42, 80, 0.13) !important;
  overflow: hidden !important;
  text-align: left !important;
}

body.single-product .related.products ul.products li.product img {
  background: #eaf7ff !important;
  border-radius: 12px !important;
  padding: 8px !important;
  height: 155px !important;
  object-fit: contain !important;
}

body.single-product .related.products .woocommerce-loop-product__title {
  color: #071a38 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  padding: 10px 0 4px !important;
}

body.single-product .related.products .price {
  color: #071a38 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

body.single-product .related.products .button {
  width: 100% !important;
  background: transparent !important;
  color: #008bd2 !important;
  border: 1px solid #008bd2 !important;
  border-radius: 999px !important;
  padding: 10px 18px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-align: center !important;
}

body.single-product .related.products .button:hover {
  background: #008bd2 !important;
  color: #ffffff !important;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1024px) {
  body.single-product .elementor-location-single {
    padding: 28px 18px 50px;
  }

  body.single-product h1.product_title,
  body.single-product .product_title,
  body.single-product .elementor-widget-woocommerce-product-title h1 {
    font-size: 32px !important;
  }

  body.single-product .related.products ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 767px) {
  body.single-product .elementor-location-single {
    padding: 22px 14px 40px;
  }

  body.single-product h1.product_title,
  body.single-product .product_title,
  body.single-product .elementor-widget-woocommerce-product-title h1 {
    font-size: 28px !important;
    max-width: 100%;
  }

  body.single-product .price,
  body.single-product .woocommerce-Price-amount {
    font-size: 24px !important;
  }

  body.single-product form.cart,
  body.single-product .elementor-add-to-cart form.cart {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body.single-product form.cart .quantity input.qty,
  body.single-product form.cart button.single_add_to_cart_button {
    width: 100% !important;
  }

  body.single-product .woocommerce-tabs ul.tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  body.single-product .woocommerce-tabs ul.tabs li a {
    font-size: 13px !important;
    padding: 10px 14px !important;
  }

  body.single-product .related.products ul.products {
    grid-template-columns: 1fr !important;
  }

  body.single-product .elementor-widget-loop-grid article,
  body.single-product .elementor-widget-posts article,
  body.single-product .elementor-post {
    grid-template-columns: 82px 1fr !important;
  }

  body.single-product .elementor-widget-loop-grid article img,
  body.single-product .elementor-widget-posts article img,
  body.single-product .elementor-post__thumbnail img {
    width: 82px !important;
    height: 58px !important;
  }
}