/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Template: astra
Author: Brainstorm Force
Author URI: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
Description: The Astra WordPress theme is lightning-fast and highly customizable. It has over 1 million downloads and the only theme in the world with 5,700+ five-star reviews! It’s ideal for professional web designers, solopreneurs, small businesses, eCommerce, membership sites and any type of website. It offers special features and templates so it works perfectly with all page builders like Spectra, Elementor, Beaver Builder, etc. Fast performance, clean code, mobile-first design and schema markup are all built-in, making the theme exceptionally SEO-friendly. It’s fully compatible with WooCommerce, SureCart and other eCommerce plugins and comes with lots of store-friendly features and templates. Astra also provides expert support for free users. A dedicated team of fully trained WordPress experts are on hand to help with every aspect of the theme. Try the live demo of Astra: https://zipwp.org/themes/astra/
Tags: custom-menu,custom-logo,entertainment,one-column,two-columns,left-sidebar,e-commerce,right-sidebar,custom-colors,editor-style,featured-images,full-width-template,microformats,post-formats,rtl-language-support,theme-options,threaded-comments,translation-ready,blog
Version: 4.11.12.1760770820
Updated: 2025-10-18 07:00:20

*/
/* =========================
   PÉTALO — Ficha de producto
   Forzado y sin depender del tema
   ========================= */

body.single-product div.product {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
  column-gap: 50px !important;
  align-items: start !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 40px 20px !important;
}

/* Galería (columna izquierda) */
body.single-product .woocommerce-product-gallery {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Resumen (columna derecha) */
body.single-product .summary {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Imágenes del slider: que no desborden */
body.single-product .woocommerce-product-gallery img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 10px;
}

/* Flexslider/galería: evita alturas raras y huecos enormes */
body.single-product .woocommerce-product-gallery .flex-viewport {
  max-height: none !important;
  height: auto !important;
}
body.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
  height: auto !important;
}

/* Títulos y precios “normales” */
body.single-product .summary h1.product_title {
  font-family: "Freude", sans-serif !important;
  color: #000 !important;
  margin-bottom: 10px !important;
}
body.single-product .summary .price {
  color: #000 !important;
  font-weight: 600 !important;
  margin-bottom: 16px !important;
}

/* Móvil: 1 columna */
@media (max-width: 768px) {
  body.single-product div.product {
    grid-template-columns: 1fr !important;
    row-gap: 24px !important;
  }
}
/* ===============================
   PÉTALO — Ajuste de galería slider
   =============================== */

/* Evita huecos grandes debajo de la imagen principal */
.woocommerce-product-gallery {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

/* Evita que el contenedor del slider reserve demasiado espacio */
.woocommerce-product-gallery .flex-viewport {
  height: auto !important;
  max-height: none !important;
}

/* Evita saltos de altura entre las imágenes del carrusel */
.woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Quita márgenes extra que Astra añade a veces */
.single-product .woocommerce-product-gallery,
.single-product .summary {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

/* Alineación general más compacta */
.single-product div.product {
  align-items: flex-start !important;
  row-gap: 30px !important;
}
