/*
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 6,000+ 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.12.3.1772009798
Updated: 2026-02-25 08:56:38

*/
.product_meta{
display:none;
}

/* META LINE */

.wine-meta-line{
letter-spacing:1px;
font-weight:500;
}

.wine-meta-line a{
color:#7A0019;
text-decoration:none;
}

.wine-meta-line a:hover{
color:#5c0013;
text-decoration:underline;
}


/* PRODUCER */

.wine-producer-line a{
color:#7A0019;
text-decoration:none;
}

.wine-producer-line a:hover{
color:#5c0013;
text-decoration:underline;
}

.producer-label{
color:#7A0019;
font-weight:500;
}


/* REMOVE CATEGORY ABOVE TITLE */

.single-product .summary.entry-summary .single-product-category{
display:none !important;
}


/* PRODUCT DESCRIPTION */

.single-product .summary p{
line-height:1.7;
max-width:520px;
}


/* TECHNICAL SHEET LINKS */

.wine-technical-sheet a{
color:#7A0019;
text-decoration:none;
}

.wine-technical-sheet a:hover{
color:#5c0013;
text-decoration:underline;
}


/* TECHNICAL SHEET – DESKTOP LAYOUT */

.wine-technical-sheet ul{
margin:0;
padding:0;
list-style:none;
}

.wine-technical-sheet ul li{
margin-bottom:8px;
line-height:1.6;
}

.spec-label{
display:inline-block;
min-width:160px;
font-weight:600;
color:#111;
}

.spec-value{
display:inline;
}


/* MOBILE LAYOUT – FORCE LINEAR TEXT */

@media (max-width:768px){

.wine-technical-sheet ul{
display:block !important;
}

.wine-technical-sheet ul li{
display:block !important;
margin-bottom:14px;
}

.spec-label{
display:inline !important;
min-width:0 !important;
font-weight:600;
}

.spec-value{
display:inline !important;
}

}
/* TECHNICAL DETAILS – FORCE SINGLE COLUMN ON MOBILE */

@media (max-width:768px){

.wine-technical-sheet{
display:block !important;
}

.wine-technical-sheet h3{
display:block;
margin-bottom:10px;
}

.wine-technical-sheet ul{
display:block;
margin-bottom:24px;
}

}

/* ===================================
GRAPES GRID
=================================== */

.pw-grapes-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
gap:24px;
margin-top:40px;
}

/* CARD */

.pw-grape-card{
position:relative;
display:block;
border-radius:14px;
overflow:hidden;
text-decoration:none;
color:white;
box-shadow:0 6px 18px rgba(0,0,0,0.12);
transition:transform .25s ease, box-shadow .25s ease;
}

.pw-grape-card:hover{
transform:translateY(-4px);
box-shadow:0 12px 28px rgba(0,0,0,0.18);
}

/* IMAGE */

.pw-grape-image{
height:260px;
background-size:cover;
background-position:center;
}

/* OVERLAY */

.pw-grape-overlay{
position:absolute;
bottom:0;
left:0;
right:0;
padding:20px;
background:linear-gradient(
to top,
rgba(0,0,0,0.65),
rgba(0,0,0,0.05)
);
}

/* GRAPE NAME */

.pw-grape-overlay h3{
margin:0;
font-size:20px;
font-weight:600;
}

/* DESCRIPTION */

.grape-desc{
margin-top:6px;
font-size:14px;
opacity:0.9;
line-height:1.4;
}

/* WINE COUNT */

.grape-count{
display:block;
margin-top:6px;
font-size:13px;
opacity:0.85;
}
/* limitar descrição da grape */

.grape-desc{
display:-webkit-box;
-webkit-line-clamp:3;
-webkit-box-orient:vertical;
overflow:hidden;
max-width:90%;
}
/* GRAPE TITLE FIX */

.pw-grape-overlay h3{
color:#ffffff !important;
font-size:22px;
font-weight:700;
margin-bottom:6px;
}

.pw-grape-card:hover h3{
color:#ffffff !important;
}
/* FORÇAR TÍTULO DA GRAPE */

.pw-grape-overlay h3,
.pw-grape-overlay h3 a{
color:#ffffff !important;
font-size:22px !important;
font-weight:700 !important;
line-height:1.2;
margin-bottom:6px;
text-shadow:0 2px 6px rgba(0,0,0,0.6);
}
.pw-grape-overlay h3{
text-shadow:0 3px 8px rgba(0,0,0,0.6);
}
.pw-grape-card:hover .pw-grape-image{
transform:scale(1.05);
transition:transform .6s ease;
}
.grape-count{
font-size:13px;
opacity:.85;
margin-top:6px;
letter-spacing:.02em;
}
.grape-section-title{
margin-top:50px;
margin-bottom:20px;
font-size:26px;
font-weight:700;
}
.grape-filters button.active{
background:#222;
color:white;
}
/* GRAPES GRID FIX */

.pw-grapes-grid{
display:grid !important;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr)) !important;
gap:30px !important;
}

/* MOBILE */

@media(max-width:768px){

.pw-grapes-grid{
grid-template-columns:1fr !important;
}

}

.grape-search-wrapper{
margin:25px 0;
}

.grape-search-input{
width:100%;
max-width:420px;
padding:12px 16px;
border-radius:8px;
border:1px solid #ddd;
font-size:16px;
}
.single-product .flex-control-thumbs{
margin-top:15px !important;
}

add_action('wp_head', function() {
?>
<style>

/* HERO countries */

.country-hero{
margin-bottom:30px;
}

.country-hero img{
width:100%;
height:280px;
object-fit:cover;
border-radius:8px;
}

/* HERO regions */

.region-hero{
margin-bottom:30px;
}

.region-hero img{
width:100%;
height:280px;
object-fit:cover;
border-radius:8px;
}

</style>
<?php
});

/* === Product grid layout fix === */

.wc-block-grid__product {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* === Title - limit to 2 lines === */

.wp-block-post-title {
    line-height: 1.4;
    min-height: calc(1.4em * 2);

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Universal WooCommerce grid alignment ===== */

/* classic WooCommerce loop (Shop + Categories) */

.woocommerce ul.products li.product {
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product .button {
    margin-top: auto;
}

/* limit product titles */

.woocommerce-loop-product__title,
.wp-block-post-title {
    line-height: 1.4;
    min-height: calc(1.4em * 2);

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* WooCommerce Blocks */

.wc-block-grid__product {
    display: flex;
    flex-direction: column;
}

.wc-block-grid__product-add-to-cart {
    margin-top: auto;
}

/* ===== Mobile product alignment fix ===== */

@media (max-width: 768px) {

.wc-block-grid__product {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wc-block-grid__product-add-to-cart {
    margin-top: auto;
}

/* limitar título também no mobile */

.wp-block-post-title {
    line-height: 1.4;
    min-height: calc(1.4em * 2);

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

}
/* === Pagina produto gourmet ===*/

.gourmet-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.gourmet-details p strong::before {
    margin-right: 6px;
}
/*=== botao read more === */

/* Short description truncada */
.woocommerce-product-details__short-description {
  max-height: 90px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s ease;
}

/* Estado expandido */
.woocommerce-product-details__short-description.expanded {
  max-height: 500px;
}

/* Fade effect */
.woocommerce-product-details__short-description::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Remove fade quando expandido */
.woocommerce-product-details__short-description.expanded::after {
  opacity: 0;
}

/* Botão */
.read-more-btn {
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 15px;
  cursor: pointer;
  font-weight: 500;
  color: #8B0000;
  letter-spacing: 0.3px;
  position: relative;
}

/* underline subtil */
.read-more-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.read-more-btn:hover::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .woocommerce-product-details__short-description {
    max-height: 100px;
  }
}

/* Ajuste de coluna da imagem de produto */

.woocommerce div.product div.images {
  width: 45%;
}

.woocommerce div.product div.summary {
  width: 55%;
}

@media (max-width: 768px) {

  .wp-block-cover {
    min-height: 380px !important;
    padding: 40px 20px !important;
  }

  .wp-block-cover h1 {
    font-size: 28px !important;
    line-height: 1.2;
  }

  .wp-block-cover p {
    font-size: 14px !important;
  }

}

