/* ==========================================================================
   Farmacia Guitart — estilos de precisión (réplica de farmaciapia.es)
   Medidas tomadas de la referencia a 1440 px. La maquetación vive en
   Elementor; aquí solo los componentes de los widgets "Farmacia Guitart"
   y los ajustes finos de WooCommerce.
   ========================================================================== */

:root {
	/* Identidad Farmàcia Guitart (kit de marca 2026) sobre la estructura de farmaciapia */
	--g-ink: #063f2d;        /* Verd Guitart */
	--g-ink-2: #255b49;      /* Verd suau (hover) */
	--g-text: #56615c;       /* texto secundario (gris verdoso, contraste AA sobre blanco) */
	--g-dark: #1e2723;       /* Tinta */
	--g-title: #1e2723;
	--g-lav: #e7efea;        /* Menta: fondo del pie */
	--g-sage: #a9bbaf;       /* Sàlvia: líneas */
	--g-band: #e7efea;       /* Menta: bloque consejo */
	--g-band-2: #faf8f3;     /* Marfil: bandas de título */
	--g-line: #e3e6e4;
	--g-red: #e9003a;
	--g-price: #063f2d;
	--g-gold: #a17738;
	--g-serif: "Cormorant Garamond", Georgia, serif;
	--g-sans: "Manrope", Arial, system-ui, sans-serif;
	--g-panel-top: 104px;
}

body { color: var(--g-text); font-family: var(--g-sans); font-size: 14px; line-height: 1.4; }
a { color: inherit; }
a:hover, a:focus { color: var(--g-ink); }
.g-icon { flex: none; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--g-ink); outline-offset: 2px; }

.g-btn, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 7px 17.5px;
	border: 1px solid var(--g-ink); border-radius: 0; background: var(--g-ink); color: #fff; font: 400 14px/1.5 var(--g-sans); cursor: pointer;
	transition: background .2s, border-color .2s;
}
.g-btn:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--g-ink-2); border-color: var(--g-ink-2); color: #fff; }
.g-icon-btn { display: inline-grid; place-items: center; width: 31px; height: 31px; padding: 0; border: 0; background: none; color: var(--g-text); cursor: pointer; position: relative; }
.g-icon-btn:hover { color: var(--g-ink); background: none; }

/* ---------- Barra superior ---------- */
.g-topbar a { color: #fff; }
.g-topbar a:hover { color: #fff; opacity: .8; }
.g-topbar .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item + .elementor-icon-list-item::after { border-color: rgba(255,255,255,.4); }

/* ---------- Cabecera ---------- */
.g-header { transition: box-shadow .2s; }
.elementor-sticky--effects.g-header { box-shadow: 0 2px 12px rgba(6,63,45,.08); }
.g-header .elementor-widget-theme-site-logo img { width: 220px; max-width: 100%; height: auto; }

/* Megamenú */
.g-header .elementor-widget-guitart-megamenu:not(.g-burger-slot) { min-width: 0; flex: 1 1 0 !important; }
.g-mega-wrap { display: flex; align-items: center; height: 100%; }
.g-mega-nav { display: flex; align-items: center; min-width: 0; flex: 1; height: 70px; }
.g-nav-viewport { overflow-x: auto; scrollbar-width: none; height: 100%; flex: 1; }
.g-nav-viewport::-webkit-scrollbar { display: none; }
.g-mega { display: flex; list-style: none; margin: 0; padding: 0; height: 100%; white-space: nowrap; }
.g-mega-tab { position: static; }
.g-mega-tab > a {
	display: flex; align-items: center; gap: 5px; height: 100%; padding: 0 14px; position: relative;
	font: 400 12.6px/1 var(--g-sans); letter-spacing: .7px; color: #444;
}
.g-mega-tab > a .g-icon { opacity: .7; }
.g-mega-tab > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 22px; height: 1px; background: var(--g-ink); transform: scaleX(0); transition: transform .2s; }
.g-mega-tab:hover > a::after, .g-mega-tab.is-current > a::after { transform: scaleX(1); }
.g-nav-scroll { display: none; width: 26px; height: 34px; border: 0; background: #fff; color: var(--g-ink); cursor: pointer; padding: 0; }
.g-mega-nav.can-l .g-nav-scroll.prev, .g-mega-nav.can-r .g-nav-scroll.next { display: grid; place-items: center; }
.g-mega-panel {
	position: fixed; left: 0; right: 0; top: var(--g-panel-top); z-index: 99; background: #fff; white-space: normal;
	border-top: 1px solid var(--g-line); box-shadow: 0 12px 24px rgba(0,0,0,.08);
	opacity: 0; visibility: hidden; transition: opacity .15s, visibility 0s .15s;
}
.g-mega-tab.has-panel:hover .g-mega-panel, .g-mega-tab.has-panel:focus-within .g-mega-panel { opacity: 1; visibility: visible; transition-delay: .06s, 0s; }
.g-mega-inner { display: flex; gap: 30px; padding: 25px 30px 30px; max-height: 70vh; overflow: auto; }
.g-mega-cols { flex: 1; columns: 5 180px; column-gap: 30px; }
.g-mega-col { break-inside: avoid; margin-bottom: 18px; }
.g-mega-col-title { display: block; margin-bottom: 6px; font: 600 15px/1.3 var(--g-serif); color: var(--g-ink); text-transform: uppercase; }
.g-mega-col ul { list-style: none; margin: 0; padding: 0; }
.g-mega-col li a { display: block; padding: 2px 0; font-size: 13px; color: var(--g-text); }
.g-mega-col li a:hover { color: var(--g-ink); }
.g-mega-feature { flex: 0 0 200px; text-align: center; }
.g-mega-feature img { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; }
.g-mega-feature span { display: block; margin-top: 10px; font: 600 14px var(--g-serif); text-transform: uppercase; color: var(--g-ink); }
.g-burger { display: none; width: 40px; height: 40px; border: 0; background: none; color: var(--g-ink); padding: 0; cursor: pointer; }

.g-mobile-menu { position: fixed; inset: 0 auto 0 0; width: min(88vw, 380px); background: #fff; z-index: 10001; overflow-y: auto; box-shadow: 8px 0 32px rgba(0,0,0,.15); }
.g-mobile-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--g-line); font: 600 16px var(--g-serif); text-transform: uppercase; color: var(--g-ink); }
.g-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.g-mobile-menu li { position: relative; border-bottom: 1px solid var(--g-line); }
.g-mobile-menu li a { display: block; padding: 12px 52px 12px 16px; color: var(--g-dark); }
.g-mobile-menu .g-m-level-1, .g-mobile-menu .g-m-level-2 { display: none; background: var(--g-band-2); }
.g-mobile-menu .g-m-level-1 a { padding-left: 28px; font-size: 13px; }
.g-mobile-menu .g-m-level-2 a { padding-left: 40px; color: var(--g-text); }
.g-mobile-menu li.is-open > ul { display: block; }
.g-m-toggle { position: absolute; right: 4px; top: 3px; width: 42px; height: 40px; border: 0; background: none; cursor: pointer; color: var(--g-ink); }
.g-mobile-menu li.is-open > .g-m-toggle .g-icon { transform: rotate(180deg); }
.g-overlay { position: fixed; inset: 0; background: rgba(30,34,45,.45); z-index: 10000; }

/* Iconos de cabecera y buscador */
.g-header-icons { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.g-cart-count { position: absolute; top: -3px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 30px; background: var(--g-ink); color: #fff; font: 700 10px/16px var(--g-sans); text-align: center; }
.g-search-panel { position: fixed; left: 0; right: 0; top: var(--g-panel-top); z-index: 99; background: #fff; border-top: 1px solid var(--g-line); box-shadow: 0 12px 24px rgba(0,0,0,.08); padding: 16px 15px; }
.g-search-form { display: flex; align-items: center; gap: 12px; max-width: 1100px; margin: 0 auto; color: var(--g-ink); }
.g-search-form input[type=search] { flex: 1; min-width: 0; height: 44px; border: 0; border-bottom: 1px solid var(--g-ink); border-radius: 0; font-size: 18px; outline: none; padding: 0 4px; background: none; }

@media (max-width: 1024px) {
	.g-burger { display: grid; place-items: center; }
	.g-mega-nav { display: none; }
	.g-header .elementor-widget-theme-site-logo img { width: 160px; }
	/* Logo centrado en la barra (menú a la izquierda e iconos a la derecha tienen anchos distintos). */
	.g-header { position: relative; }
	.g-header > .elementor-widget-theme-site-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: auto !important; margin: 0 !important; z-index: 1; }
	.g-header > .elementor-widget-theme-site-logo img { display: block; }
	.g-header > .g-burger-slot { margin-right: auto !important; }
}
@media (max-width: 420px) {
	.g-header .elementor-widget-theme-site-logo img { width: 128px; }
}

/* ---------- Títulos de sección ---------- */
.g-section-title { margin: 0; text-align: center; color: var(--g-ink); font-family: var(--g-serif); font-weight: 600; text-transform: uppercase; }
.g-st-eyebrow { display: block; font-size: 22px; line-height: 40px; }
.g-st-main { display: block; font-size: 36px; line-height: 40px; }
.g-section-title a { color: inherit; }
.g-dark .g-section-title { color: #fff; }
@media (max-width: 767px) { .g-st-eyebrow { font-size: 17px; line-height: 28px; } .g-st-main { font-size: 26px; line-height: 32px; } }

/* ---------- Slider de portada ---------- */
.g-hero { position: relative; overflow: hidden; background: var(--g-band); }
.g-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.g-hero-slide.is-active { opacity: 1; z-index: 1; }
.g-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.g-hero-caption { position: absolute; left: 50%; top: 76%; transform: translate(-50%, -50%); width: min(90%, 720px); display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; }
.g-hero .g-hero-title { margin: 0; padding: 4px 16px; background: rgba(6,63,45,.72); color: #fff; font: 600 34px/1.2 var(--g-serif); text-transform: uppercase; letter-spacing: .5px; }
.g-hero-text { margin: 0 0 18px; padding: 3px 12px; background: rgba(6,63,45,.72); color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.g-hero-btn { display: inline-block; padding: 6px 22px; border-radius: 30px; background: #fff; color: var(--g-ink); font-size: 13px; }
.g-hero-btn:hover { background: var(--g-ink); color: #fff; }
.g-hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(6,63,45,.85); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.g-hero-arrow.prev { left: 15px; } .g-hero-arrow.next { right: 15px; }
.g-hero-arrow:hover { background: var(--g-ink); }
.g-hero-dots { position: absolute; bottom: 14px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 7px; }
.g-hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.55); cursor: pointer; }
.g-hero-dots button.is-active { background: #fff; }
@media (max-width: 767px) { .g-hero .g-hero-title { font-size: 22px; } .g-hero-text { font-size: 10px; } .g-hero-arrow { display: none; } }

/* Banner lateral de la portada */
.g-side-banner { overflow: hidden; }
.g-side-banner .g-tag .elementor-heading-title { color: #fff !important; }
.g-side-banner .g-tag-mid .elementor-heading-title { color: var(--g-ink) !important; }
.g-side-banner .g-tag { background: rgba(6,63,45,.72); color: #fff; font: 600 17px/1.3 var(--g-serif); text-transform: uppercase; padding: 4px 12px; margin: 0; }
.g-side-banner .g-tag-mid { background: rgba(255,255,255,.88); color: var(--g-ink); font-size: 20px; padding: 8px 14px; }

/* ---------- Bloque consejo (fondo gris) ---------- */
.g-info .elementor-heading-title { font-family: var(--g-serif); }
.g-btn-outline .elementor-button { background: transparent !important; color: var(--g-text) !important; border: 1px solid var(--g-ink) !important; border-radius: 25px !important; }
.g-btn-outline .elementor-button:hover { background: var(--g-ink) !important; color: #fff !important; }

/* ---------- Categorías en círculo ---------- */
.g-circles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px 0; }
.g-circles a { display: flex; flex-direction: column; align-items: center; text-align: center; }
.g-circle { width: 142px; height: 142px; border-radius: 50%; overflow: hidden; background: var(--g-band); display: grid; place-items: center; }
.g-circle img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g-circles a:hover img { transform: scale(1.06); }
.g-circle-initial { font: 600 44px var(--g-serif); color: var(--g-ink); }
body .g-circle-label { margin: 15px 0 7px; font: 700 15.75px/1.2 var(--g-sans); color: var(--g-ink); }
@media (max-width: 767px) { .g-circles { grid-template-columns: repeat(3, 1fr); } .g-circle { width: 96px; height: 96px; } .g-circle-label { font-size: 13px; } }

/* ---------- Tarjeta de producto (Loop Item "Tarjeta de producto") ---------- */
.g-card { padding: 15px; height: 100%; }
.g-card .g-card-media { position: relative; aspect-ratio: 1; overflow: hidden; }
.g-card .g-card-media .elementor-widget-theme-post-featured-image, .g-card .g-card-media .elementor-widget-theme-post-featured-image a { height: 100%; display: block; }
.g-card .elementor-widget-theme-post-featured-image img, .g-card .elementor-widget-image img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; transition: opacity .3s; }
.g-card:hover .elementor-widget-theme-post-featured-image img { opacity: .85; }
.g-card .elementor-widget-theme-post-title .elementor-heading-title { margin: 11px 0 5.6px; font: 400 14px/16.8px var(--g-sans); color: var(--g-text); text-transform: uppercase; }
.g-card .elementor-widget-theme-post-title a:hover { color: var(--g-ink); }
.g-card-meta p { margin: 0 0 3px; font-size: 11.2px; line-height: 13.44px; color: var(--g-text); }
.g-card .elementor-widget-woocommerce-product-price .price { display: flex; flex-direction: column; margin: 5px 0 0; font: 600 15px/1.3 var(--g-serif) !important; color: var(--g-ink) !important; }
.g-card .price del { order: 2; font: 400 11.2px/1.3 var(--g-sans); color: var(--g-text); opacity: 1; }
.g-card .price ins { text-decoration: none; }
.g-card .woocommerce-price-suffix { display: none; }
.g-badges { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.g-badges-top { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; gap: 4px; }
.g-badge { display: inline-flex; align-items: center; gap: 3px; padding: 4.4px 6.1px; font: 400 11px/1.1 var(--g-sans); color: #fff; }
.g-badge-sale { background: var(--g-red); }
.g-badge-new { background: var(--g-ink); }
.g-badge-soldout { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); background: var(--g-gold); color: #fff7f7; font-weight: 700; font-size: 10.5px; white-space: nowrap; }
.g-card-actions { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.g-card:hover .g-card-actions, .g-card:focus-within .g-card-actions { opacity: 1; transform: none; }
.g-card-actions .button { width: 100%; min-height: 34px !important; padding: 4px 10px !important; font-size: 12px !important; }
.g-card-actions .added_to_cart { display: block; background: #fff; text-align: center; font-size: 12px; padding: 3px 0; }
@media (hover: none) { .g-card-actions { display: none; } }
.g-dark .g-card, .g-dark .g-card .elementor-heading-title, .g-dark .g-card-meta p, .g-dark .g-card .price, .g-dark .g-card .price del { color: #fff !important; }

/* Carruseles de Elementor (loop / logos): flechas rectangulares como la referencia */
.elementor-widget-loop-carousel .elementor-swiper-button { width: 32px; height: 64px; background: var(--g-ink); color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.elementor-widget-loop-carousel .elementor-swiper-button svg { fill: #fff; width: 16px; }
.g-dark .elementor-widget-loop-carousel .elementor-swiper-button { background: rgba(255,255,255,.18); }
.g-carousel { position: relative; }
.g-car-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 16px) / 6); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.g-car-track::-webkit-scrollbar { display: none; }
.g-car-track > * { scroll-snap-align: start; }
.g-car-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 32px; height: 64px; border: 0; background: var(--g-ink); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.g-car-btn.prev { left: 0; } .g-car-btn.next { right: 0; }
.g-car-btn:disabled { opacity: 0; pointer-events: none; }
.g-brand { display: grid; place-items: center; height: 110px; padding: 14px; background: #fff; border: 1px solid var(--g-line); }
.g-brand img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.g-brand:hover img { filter: none; opacity: 1; }
.g-brand span { font: 600 15px var(--g-serif); text-transform: uppercase; color: var(--g-ink); text-align: center; }
@media (max-width: 767px) { .g-car-track { grid-auto-columns: calc((100% - 16px) / 2.4); } }

/* ---------- Listado de productos ---------- */
.g-cat-band { background: var(--g-band-2); }
.g-cat-band .elementor-heading-title { font: 600 22px/26.4px var(--g-serif) !important; color: var(--g-ink); text-transform: uppercase; }
.g-cat-desc { font-size: 13px; color: var(--g-text); }
.g-cat-desc p { margin: 8px 0 0; }
.woocommerce-breadcrumb, .elementor-widget-woocommerce-breadcrumb .woocommerce-breadcrumb { margin: 0 !important; padding: 10px 0; font-size: 12px !important; color: #8f8f8f !important; }
.woocommerce-breadcrumb a { color: #8f8f8f !important; }

body .g-tree-title { margin: 0 0 11.2px; padding-bottom: 7px; border-bottom: 1px solid var(--g-line); font: 600 16px/1.2 var(--g-serif); color: var(--g-title); text-transform: uppercase; }
.g-tree { list-style: none; margin: 0; padding: 0; }
.g-tree li { position: relative; }
.g-tree a { display: flex; align-items: center; gap: 6px; padding: 0 30px 0 0; font-size: 13px; line-height: 30px; color: var(--g-text); }
.g-tree a .g-icon { opacity: .6; }
.g-tree a:hover, .g-tree .is-current > a { color: var(--g-ink); }
.g-tree .is-current > a { font-weight: 700; }
.g-tree .g-tree-1, .g-tree .g-tree-2 { display: none; padding-left: 7px; }
.g-tree .is-open > ul { display: block; }
.g-tree-toggle { position: absolute; right: 0; top: 2px; width: 26px; height: 26px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--g-text); display: grid; place-items: center; }
.g-tree .is-open > .g-tree-toggle .g-icon { transform: rotate(180deg); }

.g-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 11.2px 0; }
.g-view-switch { display: flex; gap: 2px; }
.g-view-switch button { width: 30px; height: 30px; padding: 0; border: 0; background: none; color: #bbb; cursor: pointer; display: grid; place-items: center; }
.g-view-switch button.is-active { color: var(--g-ink); }
.g-result-count { margin: 0 0 0 auto; font-size: 14px; color: var(--g-text); }
.g-toolbar-form { display: flex; gap: 8px; margin: 0; }
.g-toolbar-form select { height: 29px; padding: 0 26px 0 8px; border: 1px solid var(--g-line); border-radius: 0; background-color: #fff; font-size: 14px; color: var(--g-text); }
.g-btn-filters { display: none; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--g-line); background: #fff; color: var(--g-ink); cursor: pointer; }
.g-shop-main.is-list .elementor-loop-container { grid-template-columns: 1fr !important; }
.g-shop-main.is-list .g-card { display: grid; grid-template-columns: 200px 1fr; gap: 24px; border-bottom: 1px solid var(--g-line); }
.elementor-pagination { margin-top: 30px; text-align: center; font-size: 14px; }
.elementor-pagination .page-numbers { display: inline-block; min-width: 31px; padding: 5.6px 11.2px; color: var(--g-title); }
.elementor-pagination .page-numbers.current { background: var(--g-ink); color: #fff; }
@media (max-width: 1024px) {
	.g-btn-filters { display: inline-flex; }
	.g-view-switch { display: none; }
	.g-result-count { order: 3; width: 100%; margin: 0; }
	.g-shop-aside { position: fixed !important; inset: 0 auto 0 0; width: min(88vw, 340px) !important; max-width: none !important; background: #fff; z-index: 10001; padding: 20px 16px !important; overflow-y: auto; transform: translateX(-105%); transition: transform .3s; }
	.g-shop-aside.is-open { transform: none; box-shadow: 8px 0 32px rgba(0,0,0,.15); }
}

/* ---------- Ficha de producto ---------- */
.g-product-summary .elementor-widget-woocommerce-product-title .product_title { font: 600 22px/26.4px var(--g-serif) !important; color: var(--g-ink); text-transform: uppercase; margin: 0 0 11px; }
.g-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.g-summary-brand img { max-width: 80px; max-height: 50px; width: auto; object-fit: contain; }
.g-summary-brand { font: 600 14px var(--g-serif); color: var(--g-text); text-transform: uppercase; }
.g-advice { display: inline-flex; align-items: center; gap: 8px; padding: 4px 16px 4px 6px; border: 1px solid var(--g-ink); border-radius: 25px; color: var(--g-ink); font-size: 14px; }
.g-advice:hover { background: var(--g-ink); color: #fff; }
.g-summary-ref { margin: 0; font-size: 14px; color: var(--g-text); }
.g-product-summary .price { font: 600 20px/1.3 var(--g-serif) !important; color: var(--g-price) !important; display: flex; gap: 10px; align-items: baseline; }
.g-product-summary .price del { font-size: 14px; color: var(--g-text); order: 2; }
.g-product-summary .price ins { text-decoration: none; }
.g-product-summary .woocommerce-product-details__short-description { font-size: 14px; color: var(--g-text); }
.g-product-summary form.cart { display: flex !important; flex-wrap: wrap; gap: 8px; margin: 0 !important; }
.g-product-summary form.cart .quantity .qty { width: 80px; height: 51px; border: 1px solid var(--g-line); border-radius: 0; }
.g-product-summary form.cart .button { min-height: 51px; padding: 14px 21px; font-size: 14px; }
.g-product-summary form.cart .button::before { content: ""; width: 16px; height: 16px; margin-right: 2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M5 8h14l-1 13H6L5 8Z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M5 8h14l-1 13H6L5 8Z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat; }
.g-product-summary .stock { font-size: 13px; }
.g-product-summary .stock.out-of-stock { color: var(--g-gold); font-weight: 700; }
.g-product-sections { margin-top: 10px; }
.g-product-section + .g-product-section { margin-top: 30px; }
body .g-product-section-title { margin: 0 0 12.8px; padding-bottom: 8px; border-bottom: 1px solid var(--g-sage); font: 700 16px/19.2px var(--g-sans); color: var(--g-title); }
.g-product-section-body { font-size: 14px; color: var(--g-text); }
.g-product-section-body h2, .g-product-section-body h3 { font: 700 14px/1.4 var(--g-sans); color: var(--g-ink); margin: 1em 0 .5em; }
.g-product-section-body table.shop_attributes { border: 0; }
.g-product-section-body table.shop_attributes th, .g-product-section-body table.shop_attributes td { border: 0 !important; border-bottom: 1px solid var(--g-line) !important; background: none !important; padding: 6px 0 !important; font-style: normal; }
.woocommerce div.product div.images .woocommerce-product-gallery__image img { width: 100%; aspect-ratio: 1; height: auto; object-fit: contain; }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 70px !important; border: 1px solid var(--g-line); }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { background: var(--g-ink); border-radius: 0; right: 0; top: auto; bottom: 0; }
.g-section-label .elementor-heading-title { font: 400 16px/1.2 var(--g-sans); color: var(--g-title); }

/* ---------- Pie ---------- */
.g-footer .elementor-heading-title { font: 600 16px/1.2 var(--g-serif) !important; color: var(--g-title) !important; text-transform: none; }
.g-footer .elementor-icon-list-text, .g-footer a { color: var(--g-ink); }
.g-footer a:hover { text-decoration: underline; }
.g-newsletter { margin: 0; }
.g-nl-row { display: flex; background: #fff; }
.g-nl-row input { flex: 1; min-width: 0; height: 38px; border: 0; border-radius: 0; padding: 8.4px 14px; font-size: 14px; color: var(--g-text); outline: none; }
.g-nl-row button { width: 38px; border: 0; background: #d3d4dc; color: var(--g-ink); cursor: pointer; display: grid; place-items: center; padding: 0; border-radius: 0; }
.g-nl-row button:hover { background: var(--g-ink); color: #fff; }
.g-nl-note { margin: 8px 0; font-size: 11.2px; line-height: 1.3; color: var(--g-ink); }
.g-nl-consent { display: flex; align-items: flex-start; gap: 6px; font-size: 11.2px; color: var(--g-ink); }
.g-nl-consent a { text-decoration: underline; }
.g-nl-msg { font-size: 13px; font-weight: 700; color: var(--g-ink); margin: 0 0 8px; }
.g-payments { display: flex; gap: 6px; justify-content: flex-end; list-style: none; margin: 0; padding: 0; }
.g-payments li { background: #fff; color: var(--g-ink); font: 800 9.5px/1 var(--g-sans); padding: 5px 6px; border-radius: 2px; letter-spacing: .03em; }

/* ---------- Blog y páginas ---------- */
:is(.entry-content, .elementor-widget-theme-post-content) .ps-row { display: block !important; }
:is(.entry-content, .elementor-widget-theme-post-content) .ps-col + .ps-col { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--g-line); }
:is(.entry-content, .elementor-widget-theme-post-content) .ps-col + .ps-col::before { content: "Productos relacionados"; display: block; text-align: center; font: 600 22px/1.2 var(--g-serif); text-transform: uppercase; color: var(--g-ink); margin-bottom: 20px; }
:is(.entry-content, .elementor-widget-theme-post-content) ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 20px; }
:is(.entry-content, .elementor-widget-theme-post-content) ul.products::before, :is(.entry-content, .elementor-widget-theme-post-content) ul.products::after { display: none !important; }
:is(.entry-content, .elementor-widget-theme-post-content) ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
:is(.entry-content, .elementor-widget-theme-post-content) .ps-faq { border-bottom: 1px solid var(--g-line); }
:is(.entry-content, .elementor-widget-theme-post-content) .ps-faq summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--g-ink); }
@media (max-width: 767px) { :is(.entry-content, .elementor-widget-theme-post-content) ul.products { grid-template-columns: repeat(2, 1fr); } }

/* WooCommerce general (carrito, checkout, cuenta) */
.woocommerce-info, .woocommerce-message { border-top-color: var(--g-ink); }
.woocommerce-info::before, .woocommerce-message::before { color: var(--g-ink); }
.wc-block-components-button:not(.is-link) { background: var(--g-ink) !important; color: #fff !important; border-radius: 0 !important; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
.g-product-summary .stock.in-stock { display: none; }

.elementor-widget-theme-post-content h2 { font: 600 24px/1.25 var(--g-serif); color: var(--g-ink); margin: 1.4em 0 .6em; }
.elementor-widget-theme-post-content h3 { font: 700 17px/1.3 var(--g-sans); color: var(--g-ink); margin: 1.2em 0 .5em; }
.elementor-widget-theme-post-content a { color: var(--g-ink); text-decoration: underline; text-underline-offset: 3px; }
.elementor-widget-theme-post-content img { margin: 1em auto; height: auto; }
.elementor-widget-theme-post-content ul.products li.product .woocommerce-loop-product__title { font: 400 13px/1.25 var(--g-sans); color: var(--g-text); text-transform: uppercase; }
.elementor-widget-theme-post-content ul.products li.product .price { font: 600 14px var(--g-serif); color: var(--g-ink); }
.g-topbar p { margin: 0; }

/* ---------- Ficha de producto (medidas de la referencia) ---------- */
.g-product-summary .elementor-widget-woocommerce-product-title .product_title { margin: 0 0 11px !important; }
.g-summary-row { display: flex; align-items: center; gap: 95px; margin: 0 0 15px; min-height: 50px; }
.g-summary-brand { display: grid; place-items: center; width: 50px; height: 50px; overflow: hidden; }
.g-summary-brand img { max-width: 50px !important; max-height: 50px !important; width: auto; height: auto; object-fit: contain; }
.g-advice { position: relative; display: inline-flex; align-items: center; height: 34px; padding: 0 16px 0 26px; margin-left: 12px; border: 2px solid var(--g-ink); border-radius: 25px; color: var(--g-text); font-size: 14px; background: #fff; white-space: nowrap; }
.g-advice-ico { position: absolute; left: -14px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--g-ink); display: grid; place-items: center; }
.g-advice:hover { background: var(--g-ink); color: #fff; }
.g-summary-ref { margin: 0 0 7px; font-size: 14px; line-height: 19.6px; color: var(--g-text); }
.g-product-summary .elementor-widget-woocommerce-product-price .price { margin: 0 !important; font: 700 18px/18px var(--g-sans) !important; color: var(--g-price) !important; }
.g-product-summary .price del, .g-product-summary .price del .amount { font: 400 14px var(--g-sans) !important; color: var(--g-text) !important; }
.g-product-summary .woocommerce-price-suffix { font: 400 12px var(--g-sans); color: var(--g-text); }
.g-product-summary .woocommerce-product-details__short-description p { margin: 0 0 11.2px; line-height: 19.6px; }
.g-product-summary .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }
.g-product-summary form.cart { gap: 9px; padding-top: 14px; align-items: stretch; }
.g-product-summary form.cart .quantity { margin: 0 !important; }
.g-product-summary form.cart .quantity .qty { width: 80px; height: 51px; padding: 8.4px 14px; border: 1px solid var(--g-line); border-radius: 0; font-size: 14px; color: var(--g-text); background: #fff; }
.g-product-summary form.cart .button { margin: 0 !important; height: 51px; padding: 14px 21px !important; }
.g-avail p { margin: 0; line-height: 19.6px; }
.g-share { display: flex; align-items: center; gap: 0; }
.g-share a { display: grid; place-items: center; padding: 0 4.2px; height: 20px; color: var(--g-text); }
.g-share a:first-child { padding-left: 0; }
.g-share a:hover { color: var(--g-ink); }
.g-product-summary .woocommerce-tabs { margin: 0; }
.g-product-summary .g-product-section + .g-product-section { margin-top: 27px; }
.g-product-summary .woocommerce-Reviews-title, .g-product-summary #comments > h2 { display: none; }
.g-product-summary .woocommerce-noreviews { margin: 0; font-size: 14px; color: var(--g-text); }
.g-review-toggle { margin-top: 12px; padding: 8px 16px; border: 1px solid var(--g-ink); background: #fff; color: var(--g-ink); font-size: 13px; cursor: pointer; border-radius: 0; }
.g-review-toggle:hover { background: var(--g-ink); color: #fff; }
.g-details th { width: 40%; }
.g-related-heading .elementor-heading-title, .g-related-title { margin: 0 0 12.8px !important; padding: 0 0 8px; border-bottom: 1px solid var(--g-sage); font: 700 16px/19.6px var(--g-sans) !important; color: var(--g-title) !important; text-transform: none; }
.g-also-carousel { padding: 0 15px; }
.g-also-carousel .g-car-track { grid-auto-columns: calc((100% - 4 * 30px) / 5); gap: 30px; }
.g-also-carousel .g-car-btn { top: 35%; }
@media (max-width: 1024px) { .g-also-carousel .g-car-track { grid-auto-columns: calc((100% - 2 * 15px) / 3); gap: 15px; } }
@media (max-width: 767px) { .g-also-carousel .g-car-track { grid-auto-columns: calc((100% - 15px) / 2); } .g-summary-row { gap: 40px; } }
.g-summary-row { justify-content: flex-start !important; }
.g-product-summary .woocommerce-product-details__short-description > :first-child { margin-top: 0 !important; }
.g-also-carousel { padding-top: 15px; }
.woocommerce-product-details__short-description p:empty, .g-product-section-body p:empty, .elementor-widget-theme-post-content p:empty { display: none; }
.g-product-section-body table.g-details th, .g-product-section-body table.g-details td, .g-product-section-body table.shop_attributes th, .g-product-section-body table.shop_attributes td { text-align: left !important; font-size: 14px; }

/* ==========================================================================
   Estados hover — réplica de farmaciapia.es (medidos con el ratón real)
   ========================================================================== */
/* Menú: sin subrayado; la pestaña activa toma un fondo gris muy claro. */
.g-mega-tab > a::after { display: none !important; }
.g-mega-tab > a { transition: background-color .3s, color .3s; }
.g-mega-tab:hover > a, .g-mega-tab:focus-within > a { background: #f8f8f8; color: var(--g-dark); }
.g-mega-tab.is-current > a { color: var(--g-dark); }
/* Submenú: caja blanca bajo las pestañas, subcategorías en línea separadas por "|". */
.g-mega-panel {
	left: var(--g-panel-left, 265px) !important; right: auto !important; width: var(--g-panel-width, 933px);
	top: var(--g-panel-top) !important; background: #fff; border-top: 0 !important;
	box-shadow: 0 15px 25px rgba(74, 63, 63, .15) !important; padding: 10px 15px;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .3s ease-in-out, transform .3s ease-in-out, visibility 0s .3s !important;
}
.g-mega-tab.has-panel:hover .g-mega-panel, .g-mega-tab.has-panel:focus-within .g-mega-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s !important; }
.g-mega-list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; row-gap: 4px; white-space: normal; }
.g-mega-list li { display: flex; align-items: center; }
.g-mega-list li::after { content: "|"; color: #bbb; font-size: 12px; margin: 0 8px; }
.g-mega-list li:last-child::after { content: none; }
.g-mega-list a { font: 400 12px/22px var(--g-sans); color: var(--g-text); transition: color .2s; }
.g-mega-list a:hover { color: var(--g-dark); }

/* Iconos de cabecera y migas de pan: sin cambio en hover. */
.g-icon-btn:hover { color: var(--g-text) !important; }
.woocommerce-breadcrumb a:hover { color: #8f8f8f !important; }

/* Tarjeta de producto: solo una sombra suave alrededor. */
.g-card { transition: box-shadow .3s; }
.g-card:hover { box-shadow: 0 0 25px rgba(0, 0, 0, .15); }
.g-card:hover .elementor-widget-theme-post-featured-image img { opacity: 1 !important; }
.g-card .elementor-widget-theme-post-title a:hover { color: inherit !important; }
.g-card-actions { display: none !important; }

/* Botón principal y "Comprar": sin cambio en hover. */
.g-btn:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.g-product-summary form.cart .button:hover, .elementor-button:not(.g-btn-outline .elementor-button):hover { background: var(--g-ink) !important; border-color: var(--g-ink) !important; color: #fff !important; }
/* Botón secundario y "Pídenos consejo": se rellenan en 0,4 s y el icono crece un 10 %. */
.g-btn-outline .elementor-button, .g-advice { transition: background-color .4s, color .4s !important; }
.g-btn-outline .elementor-button-icon, .g-advice-ico { transition: transform .4s; }
.g-btn-outline .elementor-button:hover .elementor-button-icon { transform: scale(1.1); }
.g-advice:hover .g-advice-ico { transform: translateY(-50%) scale(1.1); }

/* Categorías en círculo: sin efecto. */
.g-circles a:hover img { transform: none !important; }

/* Flechas de carrusel: 70 % de opacidad siempre. */
.elementor-widget-loop-carousel .elementor-swiper-button, .g-car-btn, .elementor-widget-loop-carousel .elementor-swiper-button:hover, .g-car-btn:hover { opacity: .7 !important; }

/* Pie: los enlaces cambian de color, sin subrayado. */
.g-footer a:hover { text-decoration: none !important; color: var(--g-ink-2) !important; }
.g-footer .elementor-icon-list-item a:hover .elementor-icon-list-text { color: var(--g-ink-2) !important; }
/* Newsletter: botón en color de marca; el icono cambia en hover. */
.g-nl-row button { background: var(--g-ink) !important; color: var(--g-sage) !important; transition: color .3s; }
.g-nl-row button:hover { background: var(--g-ink) !important; color: #fff !important; }

/* Árbol lateral de categorías: gris → oscuro. */
.g-tree a:hover { color: var(--g-dark) !important; }

/* Cormorant usa cifras de estilo antiguo por defecto: en precios, cifras alineadas. */
.price, .price *, .g-card .price, .amount, .woocommerce-Price-amount { font-variant-numeric: lining-nums tabular-nums; }
.g-btn-outline .elementor-button svg, .g-btn-outline .elementor-button .elementor-button-icon { fill: currentColor; color: currentColor; }

/* Selector de idioma en la barra superior */
.g-lang { display: flex; align-items: center; gap: 6px; font: 600 12px/1 var(--g-sans); color: #fff; letter-spacing: .04em; white-space: nowrap; }
.g-lang a { color: rgba(255,255,255,.7); }
.g-lang a:hover { color: #fff; }
.g-lang-current { color: #fff; }
.g-lang-sep { opacity: .4; }

/* ---------- Buscador AJAX ---------- */
.g-search-panel { padding-bottom: 0; }
.g-search-panel .g-search-form { padding-bottom: 16px; }
.g-live-results { max-width: 1100px; margin: 0 auto; }
.g-live-results.is-open { border-top: 1px solid var(--g-line); padding: 18px 0 20px; }
.g-live-results.is-loading { opacity: .55; transition: opacity .2s; }
.g-live { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.g-live-h { margin: 0 0 8px; font: 600 16px/1.2 var(--g-serif); color: var(--g-ink); text-transform: uppercase; letter-spacing: .02em; }
.g-live ul { list-style: none; margin: 0; padding: 0; }
.g-live-products li a { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; padding: 7px 8px; border-radius: 4px; }
.g-live-products li a:hover, .g-live-products li a:focus { background: var(--g-band-2); outline: none; }
.g-live-products img { width: 56px; height: 56px; object-fit: contain; background: #fff; }
.g-live-info { display: flex; flex-direction: column; min-width: 0; }
.g-live-name { font-size: 13px; line-height: 1.3; color: var(--g-dark); text-transform: uppercase; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.g-live-brand { font-size: 11.2px; color: var(--g-text); margin-top: 2px; }
.g-live-price .price, .g-live-price { font: 700 14px/1 var(--g-serif); color: var(--g-ink); white-space: nowrap; font-variant-numeric: lining-nums; }
.g-live-price del { display: block; font: 400 11px var(--g-sans); color: var(--g-text); }
.g-live-price ins { text-decoration: none; }
.g-live-terms li a { display: block; padding: 5px 0; font-size: 13px; color: var(--g-text); }
.g-live-terms li a:hover, .g-live-terms li a:focus { color: var(--g-dark); outline: none; }
.g-live-terms .g-live-h + ul { margin-bottom: 16px; }
.g-live-all { grid-column: 1 / -1; justify-self: start; display: inline-flex; margin-top: 4px; padding: 8px 18px; border: 1px solid var(--g-ink); color: var(--g-ink); font-size: 13px; }
.g-live-all:hover { background: var(--g-ink); color: #fff; }
.g-live-empty { margin: 0; color: var(--g-text); }
@media (max-width: 767px) { .g-live { grid-template-columns: 1fr; gap: 16px; } .g-search-panel { max-height: calc(100vh - var(--g-panel-top)); overflow-y: auto; } }
h1, h2, h3, .product_title, .g-section-title, .elementor-heading-title { font-variant-numeric: lining-nums; }
.g-live-price .woocommerce-price-suffix { display: none; }
.g-live:not(:has(.g-live-terms)) { grid-template-columns: minmax(0, 760px); }
body, body * { font-variant-numeric: lining-nums !important; }

/* ---------- Banner de cookies (como farmaciapia: tarjeta abajo a la izquierda) ---------- */
.g-cookies { position: fixed; left: 0; bottom: 0; z-index: 10050; width: 360px; max-width: 100%; background: #fff; box-shadow: 0 0 25px rgba(0,0,0,.18); padding: 18px 20px 14px; font-size: 13px; line-height: 1.45; color: var(--g-dark); }
.g-ck-title { margin: 0 0 6px; font: 600 17px/1.2 var(--g-serif); color: var(--g-ink); }
.g-ck-text { margin: 0 0 12px; text-align: justify; color: var(--g-text); }
.g-ck-prefs { margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.g-ck-opt { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--g-text); }
.g-ck-opt input { margin-top: 3px; accent-color: var(--g-ink); }
.g-ck-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.g-ck-btn { min-height: 36px; padding: 6px 14px; border: 1px solid var(--g-ink); border-radius: 0; font: 600 13px/1 var(--g-sans); cursor: pointer; background: #fff; color: var(--g-ink); }
.g-ck-btn:hover { background: var(--g-mint, #e7efea); }
.g-ck-config { border-color: transparent; padding-left: 0; margin-right: auto; text-decoration: underline; text-underline-offset: 3px; }
.g-ck-accept, .g-ck-save { background: var(--g-ink); color: #fff; }
.g-ck-accept:hover, .g-ck-save:hover { background: var(--g-ink); color: #fff; }
.g-ck-link { margin: 10px 0 0; text-align: right; font-size: 12px; }
.g-ck-link a { color: var(--g-text); text-decoration: underline; }
@media (max-width: 480px) { .g-cookies { width: 100%; } .g-ck-btn { flex: 1 1 auto; } .g-ck-config { flex: 1 1 100%; text-align: left; } }

/* Móvil: la barra superior cede espacio al selector de idioma; el banner de cookies no desborda. */
.g-topbar .elementor-widget-text-editor { flex: 1 1 0 !important; min-width: 0; }
.g-topbar .elementor-widget-guitart-lang-switch { flex: 0 0 auto !important; }
.g-cookies, .g-cookies * { box-sizing: border-box; }
@media (max-width: 767px) {
	.g-topbar { padding-left: 12px !important; padding-right: 12px !important; }
	.g-topbar .elementor-widget-text-editor p { font-size: 11px; line-height: 1.3; }
	.g-cookies { padding: 14px 16px 12px; max-height: 70vh; overflow-y: auto; }
}
.g-circles { grid-template-columns: repeat(auto-fit, minmax(min(150px, 30%), 1fr)); }
.g-circles li { min-width: 0; }
.g-circle { max-width: 100%; height: auto !important; aspect-ratio: 1; }
@media (max-width: 767px) { .g-circles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; } .g-circle { width: 96px !important; } }

/* ---------- Cesta, pago y bloques de WooCommerce dentro de la plantilla de página ---------- */
/* Hello aplica margen negativo a .alignwide: se sale de la pantalla en móvil. */
.elementor-widget-theme-post-content .alignwide,
.elementor-widget-theme-post-content .alignfull { margin-left: 0 !important; margin-right: 0 !important; max-width: 100%; width: auto; }
/* Los bloques con container-type hacen que Elementor calcule mal la altura (hueco en blanco debajo). */
.elementor-widget-theme-post-content { width: 100%; }
.wc-block-cart .wc-block-components-button:not(.is-link),
.wc-block-checkout .wc-block-components-button:not(.is-link) { text-decoration: none !important; }
.wc-block-cart .wc-block-components-button:not(.is-link) .wc-block-components-button__text,
.wc-block-checkout .wc-block-components-button:not(.is-link) .wc-block-components-button__text { text-decoration: none !important; }
.wc-block-components-product-name { text-decoration: none; }
.wc-block-components-product-name:hover { text-decoration: underline; }
.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button { border: 1px solid var(--g-ink, #063F2D) !important; border-radius: 0; }
