/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* Jamones Marmolejo — Tienda Online */

/* ============================================================
   VARIABLES
   ============================================================ */

:root {
  --mar-burdeos:      #6B1E1A;
  --mar-burdeos-dark: #4A120E;
  --mar-gold:         #B8892A;
  --mar-gold-light:   #D4AB56;
  --mar-dark:         #2C1A12;
  --mar-cream:        #F7F0E2;
  --mar-cream-alt:    #EDE0C8;
  --mar-texto:        #3A1F12;
  --mar-texto-mid:    #5B3D2E;
  --mar-borde:        #D4BA88;
  --mar-white:        #FFFFFF;
}

/* ============================================================
   TIPOGRAFÍA
   ============================================================ */

body {
  font-family: 'Nunito', sans-serif;
  color: var(--mar-texto);
  background: var(--mar-cream);
}

.elementor-heading-title,
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

p, li, label, input, textarea, select, button, .elementor-widget-text-editor {
  font-family: 'Nunito', sans-serif;
}

/* ============================================================
   NAVEGACIÓN
   ============================================================ */

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(44, 26, 18, 0.12);
  transition: box-shadow 0.3s ease;
}

/* ============================================================
   BOTONES ELEMENTOR
   ============================================================ */

.elementor-button {
  border-radius: 50px !important;
  letter-spacing: 0.07em;
  font-weight: 700 !important;
  font-family: 'Nunito', sans-serif !important;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}
.elementor-button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107, 30, 26, 0.25) !important;
}

/* Variante "enlace" — subrayado dorado sin fondo */
.mar-link-underline .elementor-button {
  background: transparent !important;
  color: var(--mar-burdeos) !important;
  border: none !important;
  border-bottom: 2px solid var(--mar-gold) !important;
  border-radius: 0 !important;
  padding: 4px 0 !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.mar-link-underline .elementor-button:hover {
  color: var(--mar-gold) !important;
  filter: none;
  transform: none;
  box-shadow: none !important;
}

/* ============================================================
   TARJETAS DE CATEGORÍA (.mar-cat-card)
   ============================================================ */

.mar-cat-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.mar-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(107, 30, 26, 0.18) !important;
}

/* Altura uniforme — refuerzo CSS externo sobre el custom_css del widget */
.mar-cat-card img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* ============================================================
   WOOCOMMERCE — BOTONES
   ============================================================ */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .single_add_to_cart_button {
  background-color: var(--mar-burdeos) !important;
  color: var(--mar-white) !important;
  border-radius: 50px !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  font-size: 13px !important;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .single_add_to_cart_button:hover {
  background-color: var(--mar-burdeos-dark) !important;
  color: var(--mar-white) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(107, 30, 26, 0.3) !important;
}

/* ============================================================
   WOOCOMMERCE — PRECIOS Y BADGES
   ============================================================ */

.woocommerce .price,
.woocommerce .woocommerce-Price-amount {
  color: var(--mar-burdeos) !important;
  font-family: 'Playfair Display', serif !important;
  font-weight: 700 !important;
}

.woocommerce span.onsale {
  background-color: var(--mar-gold) !important;
  color: var(--mar-dark) !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  border-radius: 50px !important;
  letter-spacing: 0.06em;
}

/* Valoraciones con estrellas */
.woocommerce .star-rating::before,
.woocommerce .star-rating span::before {
  color: var(--mar-gold) !important;
}
.woocommerce p.stars a { color: var(--mar-gold) !important; }

/* ============================================================
   WOOCOMMERCE — TARJETAS DE PRODUCTO
   ============================================================ */

.woocommerce ul.products li.product {
  background: var(--mar-white);
  border: 1px solid var(--mar-borde);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(107, 30, 26, 0.14);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Playfair Display', serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--mar-texto) !important;
}

/* ============================================================
   WOOCOMMERCE — BREADCRUMBS Y AVISOS
   ============================================================ */

.woocommerce .woocommerce-breadcrumb,
.woocommerce .woocommerce-breadcrumb a {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  color: var(--mar-texto-mid);
}
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--mar-burdeos); }

.woocommerce-message  { border-top-color: var(--mar-gold) !important; }
.woocommerce-info     { border-top-color: var(--mar-burdeos) !important; }
.woocommerce-error    { border-top-color: #C0392B !important; }

/* ============================================================
   WOOCOMMERCE — CHECKOUT & CAMPOS
   ============================================================ */

.woocommerce-checkout .woocommerce-input-wrapper input,
.woocommerce-checkout .woocommerce-input-wrapper select,
.woocommerce-checkout .woocommerce-input-wrapper textarea,
.woocommerce form .input-text {
  border: 1px solid var(--mar-borde) !important;
  border-radius: 8px !important;
  font-family: 'Nunito', sans-serif !important;
  background: var(--mar-white) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.woocommerce-checkout .woocommerce-input-wrapper input:focus,
.woocommerce-checkout .woocommerce-input-wrapper select:focus,
.woocommerce form .input-text:focus {
  border-color: var(--mar-burdeos) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(107, 30, 26, 0.1) !important;
}

/* Cantidad */
.woocommerce input.qty {
  border: 1px solid var(--mar-borde) !important;
  border-radius: 8px !important;
  font-family: 'Nunito', sans-serif !important;
  text-align: center;
}

/* ============================================================
   WOOCOMMERCE — SELECT2 (País/Región y estado/provincia)
   ============================================================ */

/* Anula el padding 1.45em de Astra (ast-animate-input) en selects del checkout */
.woocommerce-checkout .woocommerce form .form-row.ast-animate-input select,
.woocommerce-checkout .woocommerce form .form-row select {
  padding: 0 12px !important;
}

/* Caja visible (reemplaza al <select> nativo) */
.woocommerce-checkout .select2-container--default .select2-selection--single {
  height: 45px !important;
  padding: 0 !important;
  border: 1px solid var(--mar-borde) !important;
  border-radius: 8px !important;
  background-color: var(--mar-white) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--mar-burdeos) !important;
  box-shadow: 0 0 0 3px rgba(107, 30, 26, 0.1) !important;
}

/* Texto seleccionado centrado verticalmente */
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 45px !important;
  padding: 0 32px 0 14px !important;
  color: var(--mar-texto) !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 15px !important;
}

/* Flecha del desplegable */
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 43px !important;
  top: 1px !important;
  right: 10px !important;
}

/* Dropdown desplegado */
.select2-dropdown {
  border: 1px solid var(--mar-borde) !important;
  border-radius: 8px !important;
  font-family: 'Nunito', sans-serif !important;
  box-shadow: 0 8px 24px rgba(44, 26, 18, 0.12) !important;
}
.select2-search--dropdown .select2-search__field {
  border: 1px solid var(--mar-borde) !important;
  border-radius: 6px !important;
  font-family: 'Nunito', sans-serif !important;
  padding: 6px 10px !important;
}
.select2-results__option {
  font-family: 'Nunito', sans-serif !important;
  color: var(--mar-texto) !important;
  padding: 8px 14px !important;
}
.select2-results__option--highlighted[aria-selected] {
  background-color: var(--mar-burdeos) !important;
  color: var(--mar-white) !important;
}

/* ============================================================
   FORMULARIO ELEMENTOR
   ============================================================ */

.elementor-form .elementor-field-group input,
.elementor-form .elementor-field-group textarea,
.elementor-form .elementor-field-group select {
  border: 1px solid var(--mar-borde) !important;
  border-radius: 8px !important;
  font-family: 'Nunito', sans-serif !important;
  background: var(--mar-white) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.elementor-form .elementor-field-group input:focus,
.elementor-form .elementor-field-group textarea:focus {
  border-color: var(--mar-burdeos) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(107, 30, 26, 0.1) !important;
}

/* ============================================================
   ACORDEÓN FAQ
   ============================================================ */

.elementor-accordion .elementor-tab-title {
  font-family: 'Nunito', sans-serif !important;
  font-weight: 700 !important;
  color: var(--mar-texto) !important;
  border-bottom: 1px solid var(--mar-borde) !important;
}
.elementor-accordion .elementor-tab-title.elementor-active {
  color: var(--mar-burdeos) !important;
  border-bottom-color: var(--mar-burdeos) !important;
}
.elementor-accordion .elementor-tab-content {
  font-family: 'Nunito', sans-serif;
  color: var(--mar-texto-mid);
  line-height: 1.8;
  border-bottom: 1px solid var(--mar-borde) !important;
}

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

@media (max-width: 768px) {
  .mar-cat-card { width: 100% !important; }
  .mar-cat-card img { height: 200px !important; }
}
