/*
Theme Name: Mallorcària Child (Astra)
Theme URI: https://mallorcaria.srv1566770.hstgr.cloud
Description: Tema hijo de Astra para Mallorcària · The Warehouse Winebar. Incluye la plantilla del split landing.
Author: Grupo Fantome
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* =========================================================
   Marca global (Mallorcària · The Warehouse)
   ========================================================= */
:root{
  --burdeos:#5B1E2D;
  --burdeos-dark:#3d121d;
  --crema:#F4F0E8;
  --crema-2:#fbf7ef;
  --piedra:#D8CBB8;
  --oliva:#4B5A46;
  --carbon:#1F1F1F;
}

body,
.ast-container,
p, li, .woocommerce, button, input, select, textarea{
  font-family:'Inter',-apple-system,system-ui,sans-serif;
}

h1,h2,h3,h4,.entry-title,.woocommerce-loop-product__title,
.product_title,.page-title,.widget-title,.site-title{
  font-family:'Cormorant Garamond',Georgia,serif !important;
  font-weight:600 !important;
  letter-spacing:.01em;
}

body{ background:var(--crema-2); color:var(--carbon); }

/* Cabecera */
.site-header, .ast-primary-header-bar{ background:var(--crema-2) !important; }
.main-header-menu a, .ast-builder-menu a{ text-transform:uppercase; letter-spacing:.14em; font-size:.72rem; font-weight:500; }
.site-title a{ color:var(--burdeos) !important; }

/* Botones globales / WooCommerce en burdeos */
.wp-block-button__link,
.woocommerce a.button, .woocommerce button.button, .woocommerce .button,
.woocommerce #respond input#submit, .woocommerce input.button,
.woocommerce input.button.alt, .woocommerce a.button.alt,
.ast-button, button, .button{
  background-color:var(--burdeos) !important;
  border-color:var(--burdeos) !important;
  color:var(--crema) !important;
  border-radius:2px !important;
  letter-spacing:.12em; text-transform:uppercase; font-size:.74rem; font-weight:500;
  transition:background-color .3s ease;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce .button:hover,
.woocommerce input.button:hover, .button:hover{
  background-color:var(--burdeos-dark) !important;
}

/* Tienda: tarjetas de producto */
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size:1.35rem; padding-top:.4em;
}
.woocommerce ul.products li.product .price{ color:var(--burdeos); font-weight:600; }
.woocommerce span.onsale{ background:var(--oliva); }
.woocommerce ul.products li.product img{ background:var(--crema); border-radius:3px; }
.woocommerce .woocommerce-result-count,
.woocommerce-products-header__title.page-title{ color:var(--carbon); }

/* enlaces */
a{ color:var(--burdeos); }
a:hover{ color:var(--burdeos-dark); }

/* títulos de página */
.ast-page-title-area, .entry-header{ background:var(--crema); }

/* Cabecera: logo a tamaño razonable y ocultar título de texto (ya hay logo) */
.custom-logo, .ast-logo-title-inline .custom-logo,
.site-logo-img .custom-logo{ max-height:62px !important; width:auto !important; }
.ast-site-title-wrap, .site-title, .site-description{ display:none !important; }

/* Cabecera oscura en la página The Warehouse */
.tpl-warehouse .site-header,
.tpl-warehouse .ast-primary-header-bar,
.tpl-warehouse .main-header-bar{ background:#2a0c14 !important; border-bottom:1px solid rgba(244,240,232,.14) !important; }
.tpl-warehouse .main-header-menu a, .tpl-warehouse .ast-builder-menu a{ color:#F4F0E8 !important; }
.tpl-warehouse .main-header-bar{ --ast-normal-color:#F4F0E8; }


/* Tienda online en "Próximamente" (tpl-tienda-proximamente.php) */
.mllc-pronto{ max-width:1080px; margin:0 auto; padding:clamp(48px,8vw,96px) 22px clamp(40px,6vw,72px); }
.mllc-pronto__hero{ text-align:center; max-width:640px; margin:0 auto; }
.mllc-pronto__logo{ width:min(300px,70%); height:auto; margin:0 auto 34px; display:block; }
.mllc-pronto__eyebrow{ display:block; font-family:"Inter",sans-serif; font-size:11px; font-weight:600; letter-spacing:.22em; text-transform:uppercase; color:#8f6a55; margin:0 0 10px; }
.mllc-pronto__title{ font-family:"Cormorant Garamond",Georgia,serif; font-weight:500; font-style:italic; font-size:clamp(46px,8vw,78px); line-height:1; color:var(--burdeos); margin:0 0 22px; }
.mllc-pronto__text{ font-size:17px; line-height:1.7; color:#3d3833; margin:0 0 30px; }
.mllc-pronto__links{ display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin:0; }
.mllc-pronto__btn{ display:inline-block; font-family:"Inter",sans-serif; font-size:12px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; padding:14px 26px; border:1px solid var(--burdeos); border-radius:2px; background:var(--burdeos); color:var(--crema) !important; text-decoration:none; transition:background-color .3s ease,color .3s ease; }
.mllc-pronto__btn:hover{ background:var(--burdeos-dark); }
.mllc-pronto__btn--ghost{ background:transparent; color:var(--burdeos) !important; }
.mllc-pronto__btn--ghost:hover{ background:var(--burdeos); color:var(--crema) !important; }
.mllc-pronto__tienda .mllc-tienda{ text-align:left; }

/* Enlaces legales en el pie */
.mllc-legal{ display:flex; flex-wrap:wrap; justify-content:center; gap:4px 10px; margin-top:6px; font-size:.82em; }
.mllc-legal a{ color:inherit; opacity:.75; text-decoration:none; }
.mllc-legal a:hover{ opacity:1; text-decoration:underline; }
.mllc-legal span{ opacity:.45; }

/* Páginas legales */
.mllc-legal-page{ max-width:760px; margin:0 auto; }
.mllc-legal-page h2{ font-size:1.6rem; margin:1.6em 0 .5em; color:var(--burdeos); }
.mllc-legal-page p, .mllc-legal-page li{ font-size:16px; line-height:1.7; }
.mllc-legal-page table{ width:100%; border-collapse:collapse; font-size:14px; margin:1em 0 1.5em; }
.mllc-legal-page th, .mllc-legal-page td{ text-align:left; padding:9px 10px; border-bottom:1px solid #E3DAC8; vertical-align:top; }
.mllc-legal-page th{ font-family:"Inter",sans-serif; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:#8f6a55; }
.mllc-legal-page .mllc-legal-fecha{ color:#8a8079; font-size:14px; }

/* Selector de idioma ES / CAT / EN (inc/idiomas.php) */
.mllc-idiomas{ display:inline-flex; align-items:center; gap:6px; font-family:"Inter",sans-serif; font-size:12px; letter-spacing:.12em; text-transform:uppercase; white-space:nowrap; }
.mllc-idiomas a{ color:inherit; text-decoration:none; opacity:.6; padding:4px 0; transition:opacity .2s ease; }
.mllc-idiomas a:hover, .mllc-idiomas a.gt-current-lang{ opacity:1; }
.mllc-idiomas a.gt-current-lang{ font-weight:600; }
.mllc-idiomas__sep{ opacity:.35; }
.main-header-menu .mllc-idiomas-item{ display:flex; align-items:center; padding:0 1em; }
.ast-mobile-header-content .mllc-idiomas-item, #ast-hf-mobile-menu .mllc-idiomas-item{ padding:14px 20px; }

/* Menú: elemento activo en burdeos (no el azul por defecto de Astra) */
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current_page_item > .menu-link,
.ast-builder-menu-mobile .current-menu-item > .menu-link{ color:var(--burdeos) !important; }
.tpl-warehouse .main-header-menu .current-menu-item > .menu-link{ color:#F4F0E8 !important; }
