/* Sa Pell Salada — solo en la web (no en el editor): cabecera de Blocksy, pie y tienda (FluentCart). */

/* ================= Cabecera (Blocksy) ================= */
#header [data-row="middle"] { --height: 200px; background: var(--sps-turquesa); }
#header [data-device="desktop"] [data-row="middle"] > div { max-width: none; padding-left: 54px; padding-right: 25px; } /* + los 56 px del contenedor de Blocksy = logo a 110 px */
#header .site-logo-container img, #header .site-logo-container { max-width: 175px; height: auto; --logo-max-height: 150px; }
#header [data-device="mobile"] .site-logo-container img { max-width: 126px; }
#header .header-menu-1 > ul > li > a, #header [class*="header-menu"] > ul > li > .ct-menu-link {
  font-family: var(--sps-f-titol); font-weight: 700; font-size: 25px; line-height: 20px;
  color: var(--sps-arena); padding-inline: 25px; --menu-item-height: 100%; /* 35 px no caben los 5 elementos a 1280 px y Blocksy mete el último en «MORE» */
}
#header [class*="header-menu"] > ul > li > a:hover, #header [class*="header-menu"] > ul > li.current-menu-item > a { color: var(--sps-blanc); }
#header [class*="header-menu"] .sub-menu {
  --dropdown-items-spacing: 12px; background: var(--sps-turquesa); border-radius: 15px; padding: 10px 0; min-width: 240px; box-shadow: 0 10px 25px rgba(0,0,0,.08);
}
#header [class*="header-menu"] .sub-menu a {
  font-family: var(--sps-f-titol); font-weight: 700; font-size: 18px; text-transform: uppercase; color: var(--sps-coral);
  background: var(--sps-arena); padding: 12px 30px;
}
#header [class*="header-menu"] .sub-menu a:hover { color: var(--sps-taronja); }
#header .ct-header-trigger { --icon-color: var(--sps-arena); --icon-hover-color: var(--sps-blanc); --icon-size: 30px; }
#offcanvas .ct-panel-inner, #offcanvas { --background-color: var(--sps-turquesa); background: var(--sps-turquesa); }
#offcanvas .ct-menu-link, #offcanvas a { font-family: var(--sps-f-titol); font-weight: 700; color: var(--sps-arena); text-transform: uppercase; }
#offcanvas .sub-menu a { color: var(--sps-blanc); font-size: 18px; }
/* Cabecera fija de Blocksy: no se usa (en producción tampoco). */
#header [data-sticky] { position: static; }

/* ================= Pie ================= */
#footer { background: var(--sps-turquesa); }
.sps-peu { background: var(--sps-turquesa); color: var(--sps-arena); }
.sps-peu__cols { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 20px; min-height: 223px; padding: 50px 0 25px 30px; max-width: 1280px; margin: 0 auto; }
.sps-peu__col { text-align: center; padding: 10px; }
.sps-peu__titol { font-family: var(--sps-f-titol); font-weight: 700; font-size: 30px; line-height: 36px; color: var(--sps-arena); margin: 0 0 20px; }
.sps-peu__menu, .sps-peu__xarxes { list-style: none; margin: 0; padding: 0; }
.sps-peu__menu a { font-family: var(--sps-f-yanone); font-size: 20px; line-height: 20px; color: var(--sps-arena); padding: 5px 0; display: inline-block; text-decoration: none; }
.sps-peu__menu a:hover { color: var(--sps-blanc); }
.sps-peu__xarxes { display: flex; justify-content: center; gap: 5px; }
.sps-peu__xarxes a, .sps-peu__xarxes span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 10%; color: var(--sps-blanc); background: var(--sps-turquesa); transition: background-color .3s; }
.sps-peu__xarxes a:hover { background: var(--sps-taronja); }
.sps-peu__xarxes svg { width: 25px; height: 25px; fill: currentColor; }
.sps-peu__carinyo { font-family: var(--sps-f-text); font-size: 16px; line-height: 28.8px; color: var(--sps-arena); text-align: center; margin: 0; padding: 7px 10px 28px; }

/* ================= Tienda: reglas que venían del CSS adicional del tema Hello (post 1782) =================
   Solo las que se aplicaban de verdad en producción. Las reglas de SureCart se quitaron (el plugin ya no existe) y todo lo
   que iba después de la llave sin cerrar de «.fc-cart-drawer-open-btn» no se aplicaba (quedaba anidado), así que no se trae. */
.mi-carousel { overflow-x: hidden; }
.link-avis { color: white; font-weight: bold; text-decoration: underline; }
.link-avis:hover { color: white; text-decoration: none; }
.mobile-only { display: none; }
@media screen and (max-width: 768px) { .mobile-only { display: block; } }
@media (max-width: 767px) { .alignwide { margin-left: 0; margin-right: 0; padding-left: 20px; padding-right: 20px; } }

.fc-single-product-page-row { padding-top: 50px; }
.fc-product-list-container { padding-bottom: 50px; }
@media (min-width: 769px) {
  .fc-products-wrapper .fc-products-wrapper-inner .fc-products-container.grid-columns-4, .fct-products-wrapper .fc-products-wrapper-inner .fc-products-container.grid-columns-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* FluentCart 2.x renombra el envoltorio a fct- al guardar la página */
}
.fc-product-card button, .fc-product-card .fc-product-view-button { background: #ffa900; font-size: 18px; }
.fc-product-card button:hover { background: #26263d; }
.popup-drawer .drawer-inner { background: #26263d; }
.fct_checkout button { background: linear-gradient(180deg, #fff3, #fff0), var(--fct-checkout-btn-bg-color); font-size: 20px; }
#fc-customer-menu-toggle { background-color: #ffffff !important; width: 50px !important; border-color: rgb(214 218 225 / var(--tw-border-opacity, 1)); }
.icon-button.small { background-color: transparent !important; border-color: rgb(214 218 225 / var(--tw-border-opacity, 1)); padding: 0 !important; }
.fc-gallery-thumb-control-button { background-color: #ffffff !important; border-color: rgb(214 218 225 / var(--tw-border-opacity, 1)); padding: 10px !important; }
.fluent-cart-add-to-cart-button {
  position: relative; display: flex; max-height: 40px; cursor: pointer; align-items: center; justify-content: center; gap: 8px;
  border-width: 0; text-align: center; font-size: 16px !important; font-weight: 500; line-height: 1; box-shadow: inset 0 .5px .5px .5px #ffffff1a;
}
@media (max-width: 768px) { .fc-product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 480px) { .fc-product-list { grid-template-columns: 1fr; gap: 12px; } }
.fluent-cart-add-to-cart-button, .fluent-cart-direct-checkout-button {
  background: var(--e-global-color-accent) !important; font-family: "Ambery Garden", sans-serif !important; font-size: 18px; font-weight: 700;
  text-transform: uppercase; color: #fffdeb !important; box-shadow: 0 10px 0 0 rgba(0, 0, 0, .04); border-style: none;
  border-radius: 25px; padding: 20px 35px;
}
body.page:not(.elementor-page):not(.sps-ample) h1.entry-title { font-size: 3.4rem; text-align: center; padding-bottom: 1rem; }
.fct_checkout_form_items .fct-input, .fct_checkout_form_items .fct-input-text, .fct_checkout_form_items select {
  background-color: var(--fct-input-bg, #fff) !important; border: var(--fct-input-border, 1px solid #ddd) !important;
  border-radius: var(--fct-input-border-radius, 4px) !important; padding: var(--fct-input-padding, 10px 12px) !important;
  font-size: var(--fct-input-font-size, 14px) !important; color: var(--fct-input-color, #333) !important;
  box-shadow: var(--fct-input-box-shadow, none) !important; outline: none !important; transition: border-color .2s ease !important;
}
.fct_checkout_form_items .fct-input:focus, .fct_checkout_form_items .fct-input-text:focus, .fct_checkout_form_items select:focus {
  border-color: var(--fct-input-focus-border, #0073aa) !important; box-shadow: var(--fct-input-focus-box-shadow, 0 0 0 2px rgba(0, 115, 170, .2)) !important;
}
.fct_input_wrapper { margin-bottom: 10px !important; }
@media (max-width: 768px) { .fct_checkout_form_items .fct-input, .fct_checkout_form_items .fct-input-text { padding: 8px 10px !important; font-size: 13px !important; } }
.fct-checkout button { background: var(--e-global-color-accent) !important; }
.fct_order_note button { background: white !important; }
.fc-product-title h1, .fc-product-title h2, .fc-product-title h3, .fc-product-title h4, .fc-product-title h5 { color: #76CCCD; }
.fc-product-variant-item .fc-product-variant-title { font-size: 16px; }
.fc-max-price { font-size: 18px; }
.fc-product-item-price { font-size: 21px; }
.checkout-button { background-color: #F89927 !important; }
.fc-product-list-heading { color: #76CCCD !important; }
.fc-product-view-button { background-color: var(--e-global-color-accent) !important; }
.fc-product-modal-close {
  background-color: rgba(255, 255, 255, .9) !important; color: #333 !important; box-shadow: 0 2px 5px rgba(0, 0, 0, .1) !important;
  border: 1px solid #ddd !important; border-radius: 50% !important; padding: 8px !important; width: auto !important; height: auto !important;
}
.fc-cart-drawer-open-btn img { width: auto !important; min-width: 24px !important; height: auto !important; max-height: 28px !important; filter: invert(100%) saturate(1000%) !important; flex-shrink: 0 !important; }
/* La regla de la llave sin cerrar: su fondo blanco sí se aplica (el navegador cierra el bloque al final del archivo);
   lo que quedaba anidado dentro solo afectaría a elementos dentro del botón, es decir, a nada. */
.fc-cart-drawer-open-btn { background-color: white !important; }

/* Popup de tallas: la primera columna de la tabla */
.sps-talles tbody th { font-weight: 600; text-align: left; padding: 10px; border-bottom: 1px solid #eee; background: #fff; color: var(--sps-gris); }
.sps-talles tbody tr:nth-child(odd) th { background: #f7f7f7; }

@media (max-width: 999px) {
  .sps-peu__cols { grid-template-columns: 1fr; padding: 25px 0; gap: 0; }
  .sps-peu__col { padding: 10px 10px 20px; }
  .sps-peu__titol { font-size: 25px; line-height: 30px; }
}
/* Hamburguesa de la cabecera móvil, en color arena como el original */
#header [data-device="mobile"] .ct-header-trigger { color: var(--sps-arena); --theme-icon-color: var(--sps-arena); }

/* Cabecera: sin el nombre del sitio bajo el logo ni la lupa de búsqueda de Blocksy (no estaban en la cabecera original) */
#header .site-title-container, #header .site-description, #header [data-id="search"] { display: none !important; }

/* Fichas de producto (FluentCart) con Blocksy: el mismo ancho que daba Hello (1140 px) y sin la cabecera de entrada
   de Blocksy (autor, fecha y categoría), que en la web original no salía. */
body.single-fluent-products .hero-section { display: none; }
body.single-fluent-products article > .entry-content,
body.single-fluent-products .fct-single-product-page { max-width: 1140px; margin-inline: auto; }
/* En producción, Hello deja 10 px a cada lado del contenido de la ficha */
@media (max-width: 1140px) { body.single-fluent-products .fct-single-product-page { padding-inline: 10px; box-sizing: border-box; } }

/* ================= Estilos globales del kit de Elementor (post 6) =================
   En producción se aplican a todo (clase elementor-kit-6 en el body) y son los que dan su aspecto a las páginas de
   FluentCart (tienda, categorías, fichas, carro, checkout, cuenta). Sin Elementor dejan de cargarse: se copian aquí,
   solo dentro del contenido (#main) de las páginas que no usan las plantillas propias (sps-ample).
   Peso: un solo elemento (el ámbito va en :where(), que no pesa). Así ganan a las reglas de elemento de Blocksy (que se
   cargan antes) y pierden ante cualquier regla con clase de FluentCart, que es lo que pasaba en producción con el kit. */
:where(body:not(.sps-ample) #main) { font-family: var(--sps-f-base); font-size: 18px; }
:where(body:not(.sps-ample) #main) h1 { color: var(--sps-turquesa); font-family: var(--sps-f-titol); font-size: 60px; font-weight: 700; line-height: 1.2em; }
:where(body:not(.sps-ample) #main) h2 { color: var(--sps-turquesa); font-family: var(--sps-f-yanone); font-size: 1.7em; font-weight: 700; line-height: 1.2em; }
:where(body:not(.sps-ample) #main) h3 { color: var(--sps-turquesa); font-family: var(--sps-f-menu); font-size: 35px; font-weight: 400; line-height: 1.4em; }
:where(body:not(.sps-ample) #main) h4 { color: var(--sps-turquesa); font-family: var(--sps-f-menu); font-size: 30px; font-weight: 700; line-height: 1.4em; }
:where(body:not(.sps-ample) #main) h5 { color: var(--sps-turquesa); font-family: var(--sps-f-menu); font-size: 24px; font-weight: 700; line-height: 1.4em; }
:where(body:not(.sps-ample) #main) h6 { color: var(--sps-turquesa); font-family: var(--sps-f-menu); font-size: 20px; font-weight: 700; line-height: 1.4em; }
:where(body:not(.sps-ample) #main) a { color: var(--sps-coral); font-family: var(--sps-f-base); }
:where(body:not(.sps-ample) #main) a:hover { color: #000; }
:where(body:not(.sps-ample) #main) button, :where(body:not(.sps-ample) #main) input:where([type="button"], [type="submit"]) {
  background-color: var(--sps-taronja); font-family: var(--sps-f-titol); font-size: 18px; font-weight: 700; text-transform: uppercase;
  color: var(--sps-arena); box-shadow: 0 10px 0 0 rgba(0, 0, 0, .04); border-style: none; border-radius: 25px; padding: 20px 35px;
}
:where(body:not(.sps-ample) #main) button:is(:hover, :focus), :where(body:not(.sps-ample) #main) input:where([type="button"], [type="submit"]):is(:hover, :focus) { background-color: #F89927D1; color: var(--sps-arena); box-shadow: none; }
:where(body:not(.sps-ample) #main) input:where(:not([type="button"], [type="submit"], [type="checkbox"], [type="radio"])), :where(body:not(.sps-ample) #main) textarea {
  font-family: var(--sps-f-text); font-size: 18px; font-weight: 400; color: #000; background-color: #fff;
  box-shadow: 0 10px 10px 0 rgba(0, 0, 0, .05); border: 0; border-radius: 50px;
}
@media (max-width: 1024px) {
  :where(body:not(.sps-ample) #main) { font-size: 16px; }
  :where(body:not(.sps-ample) #main) h1 { font-size: 48px; } :where(body:not(.sps-ample) #main) h2 { font-size: 40px; } :where(body:not(.sps-ample) #main) h3 { font-size: 36px; }
  :where(body:not(.sps-ample) #main) h4 { font-size: 30px; } :where(body:not(.sps-ample) #main) h5 { font-size: 24px; } :where(body:not(.sps-ample) #main) h6 { font-size: 20px; }
  :where(body:not(.sps-ample) #main) button, :where(body:not(.sps-ample) #main) input:where([type="button"], [type="submit"]) { font-size: 16px; }
}
@media (max-width: 767px) {
  :where(body:not(.sps-ample) #main) h1 { font-size: 40px; } :where(body:not(.sps-ample) #main) h2 { font-size: 36px; } :where(body:not(.sps-ample) #main) h3 { font-size: 30px; }
  :where(body:not(.sps-ample) #main) h4 { font-size: 24px; } :where(body:not(.sps-ample) #main) h5 { font-size: 20px; } :where(body:not(.sps-ample) #main) h6 { font-size: 18px; }
  :where(body:not(.sps-ample) #main) button, :where(body:not(.sps-ample) #main) input:where([type="button"], [type="submit"]) { padding: 16px 30px 15px; }
}
/* Páginas de FluentCart con la plantilla normal de Blocksy (tienda, carro, checkout, cuenta…): mismo ancho que Hello (1140 px)
   y el título de la página centrado como en producción. */
body.page:not(.sps-ample) { --theme-normal-container-max-width: 1140px; }
body.page:not(.sps-ample) .hero-section .page-title { font-size: 54.4px; line-height: 1.2; text-align: center; }
body.page:not(.sps-ample) .hero-section .entry-header { text-align: center; }
/* Categorías de producto (plantilla genérica de FluentCart): como en producción con Hello, contenido a 1140 px centrado,
   20 px bajo la cabecera y el título a la izquierda. */
body.tax-product-categories .fct-genric-template-wrapper { margin-top: 20px; }
body.tax-product-categories .fct-genric-template-wrapper > .site-main { max-width: 1140px; margin-inline: auto; }
body.tax-product-categories h1.fct-archive-title { margin: 8px 0 16px; }
@media (max-width: 1140px) { body.tax-product-categories .fct-genric-template-wrapper > .site-main { padding-inline: 10px; box-sizing: border-box; } }
/* Botón «Filter» de la tienda (móvil): en producción el botón del kit ganaba a la clase de FluentCart (pesaba una clase + un elemento). */
:where(body:not(.sps-ample) #main) button.fct-shop-filter-toggle-button {
  background-color: var(--sps-taronja); font-family: var(--sps-f-titol); font-size: 16px; font-weight: 700; text-transform: uppercase;
  color: var(--sps-arena); box-shadow: 0 10px 0 0 rgba(0, 0, 0, .04); border: 0; border-radius: 25px; padding: 16px 30px 15px; line-height: 1;
}
:where(body:not(.sps-ample) #main) button.fct-shop-filter-toggle-button svg { color: var(--sps-arena); }
/* En móvil, Hello dejaba 10 px a cada lado (Blocksy deja un 5 %): mismo margen en las páginas de FluentCart. */
@media (max-width: 767px) { body:not(.sps-ample) #main, body:not(.sps-ample) #main :is(.ct-container, .ct-container-full, .entry-content, article, .hero-section) { --theme-container-edge-spacing: calc(100vw - 20px); --theme-block-width: min(100%, calc(100vw - 20px)); --theme-container-width: min(100%, calc(100vw - 20px)); } }
/* Párrafos como con Hello y el kit: interlineado 1,6 y 14,4 px debajo (Blocksy pone 1,65 y 1,3 em). */
:where(body:not(.sps-ample) #main) p { line-height: 1.6; margin-block: 0 14.4px; }
/* Ficha de producto en móvil: la parte de arriba (galería, título, precio, botones) con 30 px más de margen, como en producción. */
@media (max-width: 767px) { body.single-fluent-products .fct-single-product-page { padding-inline: 40px; } }
body:not(.sps-ample) #main .entry-content > p { margin-block: 0 14.4px; }
/* Tienda (bloque de FluentCart): desde la versión 2.x su envoltorio (fct-products-wrapper) trae 20 px de relleno lateral
   que con el envoltorio antiguo no había; en móvil, los 10 px de margen de Hello. */
body:not(.sps-ample) #main .fct-products-wrapper { padding-inline: 0; }
@media (max-width: 767px) { body:not(.sps-ample) #main .fct-products-wrapper { padding-inline: 10px; } }
/* Opiniones de la ficha: en producción el kit (una clase + un elemento) ganaba a FluentCart en el título «0 Reviews» (h3 del kit:
   Amaranth 35 px turquesa) y en el enlace «Log in to Review» (enlace del kit: coral subrayado, 18 px). Visto en las capturas del 14/11. */
:where(body:not(.sps-ample) #main) h3.fct-reviews-section-title { font-family: Amaranth, sans-serif; font-size: 35px; line-height: 49px; color: var(--sps-turquesa); }
:where(body:not(.sps-ample) #main) a.fct-review-cta-btn { font-size: 18px; line-height: 28.8px; color: var(--sps-coral); text-decoration: underline; }
/* Acceso (página «Accedir», shortcode [fluent_auth] de FluentAuth; 15/11): formulario centrado de 460 px, campos blancos
   redondeados y botón naranja de la marca. El paso del código por email (#fls_2fa_form) lleva estilos en línea: de ahí los !important. */
.fls_auth_wrapper { max-width: 460px !important; margin: 0 auto 60px !important; font-family: var(--sps-f-text); }
.fls_auth_wrapper label { display: block; font-size: 15px; color: var(--sps-gris, #54595f); margin-bottom: 6px; }
.fls_auth_wrapper p { margin: 0 0 16px; }
.fls_auth_wrapper input[type="text"], .fls_auth_wrapper input[type="email"], .fls_auth_wrapper input[type="password"], .fls_auth_wrapper input[type="number"] {
  width: 100%; box-sizing: border-box; background: #fff !important; border: 1px solid #e4dfc6 !important; border-radius: 12px !important;
  padding: 12px 16px !important; font-size: 16px !important; box-shadow: none !important; height: auto; }
.fls_auth_wrapper input:focus { border-color: var(--sps-turquesa) !important; outline: 2px solid color-mix(in srgb, var(--sps-turquesa) 35%, transparent); }
.fls_auth_wrapper .login-remember label { display: inline-flex; align-items: center; gap: 8px; }
.fls_auth_wrapper input[type="checkbox"] { accent-color: var(--sps-turquesa); }
.fls_auth_wrapper button, .fls_auth_wrapper input[type="submit"], .fls_auth_wrapper .button-primary, #fls_2fa_confirm {
  display: block; width: 100%; background: var(--sps-taronja) !important; color: #fff !important; border: 0 !important;
  border-radius: 30px !important; padding: 16px 30px !important; font-family: var(--sps-f-titol) !important; font-weight: 700;
  font-size: 18px !important; line-height: 1 !important; text-transform: uppercase; cursor: pointer; box-shadow: 0 6px 0 #0000000d; min-height: 0 !important; }
.fls_auth_wrapper button:hover, .fls_auth_wrapper input[type="submit"]:hover, #fls_2fa_confirm:hover { background: #F8992785 !important; }
#fls_2fa_form { background: #fff !important; border: 0 !important; border-radius: 20px !important; box-shadow: 0 4px 24px #0000000f !important; padding: 28px 28px 32px !important; margin-top: 0 !important; }
#fls_2fa_form p { font-size: 16px; }
#fls_2fa_confirm { margin-top: 18px; }
.fls_auth_wrapper a { color: var(--sps-coral); }
