/*
Theme Name: Fantoba Storefront Child
Theme URI: https://fantoba.com/
Description: Tema hijo limpio para Fantoba basado en Storefront. Reconstruido a partir de las personalizaciones del antiguo Helas Child, sin dependencias de Helas, LA-Studio ni WPBakery.
Author: Fantoba
Template: storefront
Version: 1.3.4
Text Domain: fantoba-storefront-child
*/

:root {
    --fantoba-navy: #4a2f24; /* legado: ahora cacao Fantoba */
    --fantoba-cocoa: #4a2f24;
    --fantoba-cream: #f3eadc;
    --fantoba-gold: #c9a66b;
    --fantoba-coral: #f4524d;
    --fantoba-text: #36393e;
    --fantoba-light: #f7f7f7;
    --fantoba-border: #e4e4e4;
}

body {
    font-family: "Montserrat", Arial, sans-serif;
    color: var(--fantoba-text);
}

p,
.entry-content,
.woocommerce-product-details__short-description {
    color: var(--fantoba-text);
}

h1,
h2,
.site-title,
.page-title,
.woocommerce-products-header__title {
    font-family: "Pinyon Script", cursive;
    font-weight: 400;
    text-transform: none;
}

h1,
.page-title,
.woocommerce-products-header__title {
    font-size: clamp(3.2rem, 7vw, 5rem);
    letter-spacing: .04em;
}

h2 {
    letter-spacing: .03em;
}

/* Barra superior recuperada conceptualmente del header Helas. */
.fantoba-topbar {
    background: #fff;
    border-bottom: 1px solid var(--fantoba-border);
    font-size: .82rem;
}

.fantoba-topbar__inner {
    max-width: 66.4989378333em;
    margin: 0 auto;
    padding: .7rem 2.617924em;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    align-items: center;
}

.fantoba-topbar a {
    color: var(--fantoba-text);
    text-decoration: none;
}

.fantoba-topbar a:hover {
    color: var(--fantoba-coral);
}

/* Header limpio y sobrio. */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid var(--fantoba-border);
}

.site-header .site-branding .site-title a,
.main-navigation ul li a,
.site-header-cart .cart-contents {
    color: var(--fantoba-text);
}

.main-navigation ul li a:hover,
.site-header-cart .cart-contents:hover {
    color: var(--fantoba-coral);
}

/* Botones: conserva el lenguaje visual del antiguo child. */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.added_to_cart,
.widget a.button,
.site-header-cart .widget_shopping_cart a.button {
    background: transparent;
    border: 2px solid var(--fantoba-text);
    color: var(--fantoba-text);
    border-radius: 0;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .04em;
    box-shadow: none;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.button:hover,
.added_to_cart:hover,
.widget a.button:hover {
    background: var(--fantoba-navy);
    border-color: var(--fantoba-navy);
    color: #fff;
}

.single-product div.product form.cart .button,
.checkout-button,
#place_order {
    background: var(--fantoba-coral);
    border-color: var(--fantoba-coral);
    color: #fff;
}

.single-product div.product form.cart .button:hover,
.checkout-button:hover,
#place_order:hover {
    background: var(--fantoba-navy);
    border-color: var(--fantoba-navy);
}

/* Productos */
ul.products li.product {
    text-align: center;
}

ul.products li.product .woocommerce-loop-product__title {
    color: var(--fantoba-text);
    font-weight: 600;
}

ul.products li.product .price,
.single-product div.product p.price,
.single-product div.product span.price,
.price ins {
    color: var(--fantoba-coral);
}

ul.products li.product img {
    transition: transform .25s ease;
}

ul.products li.product:hover img {
    transform: scale(1.015);
}

.onsale {
    border-color: var(--fantoba-coral);
    color: var(--fantoba-coral);
}

/* Mensajes WooCommerce, adaptados de las personalizaciones antiguas. */
.woocommerce-error {
    background-color: #ff8686;
    color: #222;
}

.woocommerce-info,
.woocommerce-message {
    background-color: #86ffc3;
    color: #222;
}

/* Formularios */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
textarea,
select {
    border-radius: 0;
}

/* Aviso de tienda: conserva el formato compacto del antiguo child. */
.woocommerce-store-notice.demo_store {
    position: fixed;
    bottom: 0;
    top: auto;
    right: 0;
    left: auto;
    width: auto;
    max-width: 19rem;
    background: #ececec;
    color: #222;
    padding: 1rem;
    box-shadow: 0 1px 8px rgba(0,0,0,.25);
    font-size: .78rem;
    z-index: 99999;
}

/* Footer Fantoba: cálido, histórico y legible. */
.site-footer {
    background: var(--fantoba-cream);
    color: #44372f;
    border-top: 1px solid var(--fantoba-gold);
    padding-top: 0;
}

.site-footer .col-full {
    max-width: 66.4989378333em;
}

.site-footer a {
    color: #44372f;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--fantoba-coral);
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4 {
    color: #4a2f24;
}

.fantoba-footer-main {
    padding: 3.2rem 0 2.2rem;
}

.fantoba-footer-main__grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Storefront aplica clearfix a .col-full mediante pseudo-elementos.
   Dentro de un grid esos pseudo-elementos cuentan como items y desplazan
   las tres columnas reales. En el footer Fantoba no son necesarios. */
.fantoba-footer-main__grid::before,
.fantoba-footer-main__grid::after {
    content: none !important;
    display: none !important;
}

.fantoba-footer-main__grid > section {
    margin: 0 !important;
    padding: 0 !important;
    align-self: start;
}

.fantoba-footer-main__grid > section > :first-child {
    margin-top: 0 !important;
}

.fantoba-footer-main__brand {
    max-width: 29rem;
}

.fantoba-footer-main__eyebrow {
    display: block;
    margin-bottom: .35rem;
    color: #8b6b4b;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.fantoba-footer-main__title {
    margin: 0 0 .65rem;
    font-family: "Pinyon Script", cursive;
    font-size: clamp(2.8rem, 4vw, 4rem);
    line-height: .95;
    font-weight: 400;
}

.fantoba-footer-main__text {
    margin: 0;
    color: #65564d;
    font-size: .9rem;
    line-height: 1.75;
}

.fantoba-footer-main__heading {
    margin: 0 0 1rem;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.fantoba-footer-main__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fantoba-footer-main__list li {
    margin: 0 0 .55rem;
    color: #65564d;
    font-size: .86rem;
    line-height: 1.55;
}

.fantoba-footer-main__list strong {
    color: #44372f;
    font-weight: 600;
}

/* Página 404 */
.error404 .site-content {
    text-align: center;
}

.error404 .page-title {
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .fantoba-topbar__inner {
        padding-left: 1.41575em;
        padding-right: 1.41575em;
        justify-content: center;
        text-align: center;
    }

    h1,
    .page-title,
    .woocommerce-products-header__title {
        font-size: 3.2rem;
    }
}

/* ==========================================================
   Home Fantoba 1.1
   ========================================================== */

.fantoba-home {
    margin: 0;
}

.fantoba-home .col-full {
    max-width: none;
    margin: 0;
    padding: 0;
}

body.home .site-content > .col-full {
    max-width: none;
    padding: 0;
    margin: 0;
}

.fantoba-shell {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.fantoba-section {
    padding: clamp(72px, 8vw, 118px) 0;
}

.fantoba-section--soft {
    background: #f7f4ef;
}

.fantoba-kicker,
.fantoba-eyebrow {
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .72rem;
    font-weight: 700;
}

.fantoba-section-heading {
    max-width: 760px;
    margin: 0 auto 52px;
    text-align: center;
}

.fantoba-section-heading--compact {
    margin-bottom: 34px;
}

.fantoba-section-heading h2,
.fantoba-story h2,
.fantoba-feature h2,
.fantoba-local h2 {
    margin: 0 0 18px;
    color: var(--fantoba-text);
    font-family: "Pinyon Script", cursive;
    font-size: clamp(3.4rem, 6vw, 5.7rem);
    line-height: .95;
}

.fantoba-hero {
    position: relative;
    min-height: min(78vh, 820px);
    display: grid;
    place-items: center;
    background-position: center;
    background-size: cover;
    background-color: var(--fantoba-navy);
    color: #fff;
    overflow: hidden;
}

.fantoba-hero__veil,
.fantoba-feature__veil,
.fantoba-local__veil,
.fantoba-split__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(58,34,24,.82), rgba(58,34,24,.42) 55%, rgba(58,34,24,.16));
}

.fantoba-hero__content {
    position: relative;
    z-index: 1;
    padding-block: 90px;
}

.fantoba-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(4.6rem, 10vw, 8.8rem);
    line-height: .82;
    text-shadow: 0 4px 32px rgba(0,0,0,.2);
}

.fantoba-hero__lead {
    max-width: 650px;
    margin: 30px 0 0;
    color: rgba(255,255,255,.92);
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    line-height: 1.65;
}

.fantoba-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-top: 34px;
}

.fantoba-button {
    padding: 14px 22px;
}

.fantoba-button--light {
    border-color: #fff !important;
    color: #fff !important;
}

.fantoba-button--light:hover {
    background: #fff !important;
    border-color: #fff !important;
    color: var(--fantoba-navy) !important;
}

.fantoba-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fantoba-navy);
    font-size: .77rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none !important;
}

.fantoba-text-link::after {
    content: "→";
    transition: transform .2s ease;
}

.fantoba-text-link:hover::after {
    transform: translateX(5px);
}

.fantoba-text-link--light {
    color: #fff;
}

.fantoba-story__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .8fr);
    gap: clamp(44px, 7vw, 100px);
    align-items: center;
}

.fantoba-story__copy {
    max-width: 700px;
}

.fantoba-story__copy p:not(.fantoba-kicker):not(.fantoba-signature) {
    font-size: 1rem;
    line-height: 1.9;
}

.fantoba-signature {
    margin-top: 26px;
    color: var(--fantoba-coral);
    font-family: "Pinyon Script", cursive;
    font-size: 2.8rem;
}

.fantoba-story__media img {
    display: block;
    width: 100%;
    height: auto;
}

.fantoba-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.fantoba-category-card {
    position: relative;
    min-height: 370px;
    overflow: hidden;
    background: #ddd;
    color: #fff;
}

.fantoba-category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.fantoba-category-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(47,28,20,.76), rgba(47,28,20,.04) 60%);
}

.fantoba-category-card__label {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
}

.fantoba-category-card__label small {
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .68rem;
}

.fantoba-category-card__label strong {
    display: block;
    color: #fff;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 600;
}

.fantoba-category-card:hover img {
    transform: scale(1.045);
}

.fantoba-feature,
.fantoba-local {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 520px;
    padding: 80px 0;
    text-align: center;
    background-position: center;
    background-size: cover;
    background-color: var(--fantoba-navy);
}

.fantoba-feature__veil,
.fantoba-local__veil {
    background: rgba(58,34,24,.66);
}

.fantoba-feature__content,
.fantoba-local__content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    color: #fff;
}

.fantoba-feature h2,
.fantoba-local h2,
.fantoba-feature p,
.fantoba-local p {
    color: #fff;
}

.fantoba-specialty-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 54px;
}

.fantoba-specialty {
    display: grid;
    grid-template-columns: 155px 1fr;
    gap: 25px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid var(--fantoba-border);
}

.fantoba-specialty__image {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
    background: #f3f3f3;
}

.fantoba-specialty__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.fantoba-specialty:hover .fantoba-specialty__image img {
    transform: scale(1.04);
}

.fantoba-specialty h3 {
    margin: 0 0 10px;
    color: var(--fantoba-text);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.fantoba-specialty p {
    margin: 0 0 13px;
    font-size: .9rem;
    line-height: 1.65;
}

.fantoba-products-strip ul.products {
    margin-bottom: 0;
}

.fantoba-turron-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.fantoba-turron-card {
    position: relative;
    overflow: hidden;
    min-height: 380px;
    background: #f2f2f2;
}

.fantoba-turron-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.fantoba-turron-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(58,34,24,.72), rgba(58,34,24,.02) 60%);
}

.fantoba-turron-card span {
    position: absolute;
    z-index: 2;
    left: 25px;
    right: 25px;
    bottom: 24px;
    color: #fff;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fantoba-turron-card:hover img {
    transform: scale(1.04);
}

.fantoba-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.fantoba-split__panel {
    position: relative;
    min-height: 470px;
    display: grid;
    place-items: center;
    padding: 60px 32px;
    text-align: center;
    background-position: center;
    background-size: cover;
    background-color: var(--fantoba-navy);
}

.fantoba-split__veil {
    background: rgba(47,28,20,.52);
}

.fantoba-split__content {
    position: relative;
    z-index: 1;
    color: #fff;
}

.fantoba-split__content p,
.fantoba-split__content a {
    color: #fff;
}

.fantoba-script {
    margin: 0 0 22px;
    font-family: "Pinyon Script", cursive;
    font-size: clamp(3.4rem, 6vw, 5.5rem);
    line-height: .9;
}

.fantoba-services {
    padding: 36px 0;
    background: var(--fantoba-navy);
    color: #fff;
}

.fantoba-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.fantoba-services__grid > div {
    display: grid;
    gap: 7px;
}

.fantoba-services strong {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
}

.fantoba-services span,
.fantoba-services a {
    color: rgba(255,255,255,.78);
    font-size: .82rem;
}

@media (max-width: 900px) {
    .fantoba-story__inner,
    .fantoba-specialty-grid {
        grid-template-columns: 1fr;
    }

    .fantoba-category-grid,
    .fantoba-turron-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fantoba-services__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .fantoba-shell {
        width: min(100% - 30px, 1180px);
    }

    .fantoba-hero {
        min-height: 650px;
    }

    .fantoba-hero__content {
        padding-block: 74px;
    }

    .fantoba-category-grid,
    .fantoba-turron-grid,
    .fantoba-split {
        grid-template-columns: 1fr;
    }

    .fantoba-category-card {
        min-height: 310px;
    }

    .fantoba-specialty {
        grid-template-columns: 105px 1fr;
        gap: 18px;
    }

    .fantoba-split__panel {
        min-height: 390px;
    }
}

/* ==========================================================
   Navegación Fantoba 1.2
   ========================================================== */
@media (min-width: 768px) {
    .storefront-primary-navigation .col-full {
        display: flex;
        align-items: center;
    }

    .main-navigation {
        flex: 1 1 auto;
        width: auto;
        margin-right: 1.5rem;
    }

    .main-navigation ul.menu,
    .main-navigation ul.nav-menu {
        display: flex;
        align-items: center;
        gap: .15rem;
    }

    .main-navigation ul.menu > li > a,
    .main-navigation ul.nav-menu > li > a {
        padding: 1.15rem .82rem;
        font-size: .79rem;
        font-weight: 600;
        letter-spacing: .055em;
        text-transform: uppercase;
        white-space: nowrap;
        position: relative;
    }

    .main-navigation ul.menu > li > a::after,
    .main-navigation ul.nav-menu > li > a::after {
        content: "";
        position: absolute;
        left: .82rem;
        right: .82rem;
        bottom: .78rem;
        height: 2px;
        background: var(--fantoba-coral);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform .18s ease;
    }

    .main-navigation ul.menu > li:hover > a::after,
    .main-navigation ul.nav-menu > li:hover > a::after,
    .main-navigation ul.menu > li.current-menu-item > a::after,
    .main-navigation ul.nav-menu > li.current-menu-item > a::after {
        transform: scaleX(1);
    }

    .site-header-cart {
        margin-left: auto;
    }
}

@media (max-width: 767px) {
    .main-navigation .menu-toggle {
        border: 1px solid var(--fantoba-border);
        padding: .75rem 1rem;
        font-size: .8rem;
        letter-spacing: .06em;
    }

    .main-navigation.toggled .primary-navigation {
        margin-top: .7rem;
    }

    .main-navigation ul.menu > li > a,
    .main-navigation ul.nav-menu > li > a {
        padding: .85rem 0;
        border-bottom: 1px solid var(--fantoba-border);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .04em;
    }
}

.fantoba-footer-nav {
    padding: 0 0 1.6rem;
}

.fantoba-footer-nav__menu .menu {
    list-style: none;
    margin: 0;
    padding: 1.3rem 0 0;
    border-top: 1px solid rgba(74,47,36,.18);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem 1.5rem;
}

.fantoba-footer-nav__menu .menu-item {
    margin: 0;
}

.fantoba-footer-nav__menu a {
    color: #65564d;
    font-size: .73rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.fantoba-footer-nav__menu a:hover,
.fantoba-footer-nav__menu a:focus {
    color: var(--fantoba-coral);
}

.fantoba-footer-bottom {
    border-top: 1px solid rgba(74,47,36,.12);
    padding: 1rem 0 1.35rem;
    text-align: center;
    color: #806f63;
    font-size: .73rem;
    letter-spacing: .035em;
}

@media (max-width: 767px) {
    .fantoba-footer-main {
        padding: 2.4rem 0 1.5rem;
    }

    .fantoba-footer-main__grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .fantoba-footer-main__brand {
        max-width: none;
    }

    .fantoba-footer-main__title {
        font-size: 3rem;
    }

    .fantoba-footer-nav__menu .menu {
        justify-content: flex-start;
        gap: .75rem 1.2rem;
    }
}

/* ==========================================================
   Fantoba 1.2.6 - navegación móvil y carrito
   ========================================================== */
@media (min-width: 768px) {
    .main-navigation .primary-navigation {
        display: block !important;
    }

    /* El precio en cabecera introduce fricción visual. Solo mostramos cantidad. */
    .site-header-cart .cart-contents .amount {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .site-header,
    .storefront-primary-navigation,
    .storefront-primary-navigation .col-full {
        overflow: visible !important;
    }

    .storefront-primary-navigation .col-full {
        position: relative;
    }

    .main-navigation {
        position: static;
        overflow: visible !important;
        width: auto;
    }

    /* Toggle solo icono. Conservamos el span para dibujar la barra central. */
    .main-navigation .menu-toggle {
        position: relative;
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 0;
        border: 1px solid var(--fantoba-border);
        background: #fff;
        color: var(--fantoba-text);
        font-size: 0;
        line-height: 1;
    }

    .main-navigation .menu-toggle::before,
    .main-navigation .menu-toggle::after,
    .main-navigation .menu-toggle > span {
        content: "";
        position: absolute;
        left: 11px;
        width: 20px;
        height: 2px;
        background: currentColor;
        border-radius: 2px;
        transform-origin: center;
        transition: transform .22s ease, opacity .18s ease, top .22s ease;
    }

    .main-navigation .menu-toggle::before {
        top: 14px;
    }

    .main-navigation .menu-toggle > span {
        top: 20px;
    }

    .main-navigation .menu-toggle::after {
        top: 26px;
    }

    .main-navigation.toggled .menu-toggle::before {
        top: 20px;
        transform: rotate(45deg);
    }

    .main-navigation.toggled .menu-toggle > span {
        opacity: 0;
        transform: scaleX(.2);
    }

    .main-navigation.toggled .menu-toggle::after {
        top: 20px;
        transform: rotate(-45deg);
    }

    /* No usamos display:none: así apertura y cierre pueden animarse. */
    .main-navigation .primary-navigation {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 50%;
        width: 100vw;
        max-width: none;
        z-index: 99999;
        margin: 0;
        padding: .45rem max(1rem, calc((100vw - 66.4989378333em) / 2)) 1rem;
        background: #fff;
        border-top: 1px solid var(--fantoba-border);
        border-bottom: 1px solid var(--fantoba-border);
        box-shadow: 0 14px 30px rgba(0, 0, 0, .14);
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate(-50%, -10px);
        transition:
            opacity .20s ease,
            transform .24s ease,
            visibility 0s linear .24s;
    }

    .main-navigation.toggled .primary-navigation {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, 0);
        transition:
            opacity .20s ease,
            transform .24s ease,
            visibility 0s linear 0s;
    }

    .primary-navigation ul.menu,
    .primary-navigation ul.nav-menu {
        display: block !important;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
        background: transparent;
    }

    .primary-navigation ul.menu > li,
    .primary-navigation ul.nav-menu > li {
        display: block;
        width: 100%;
        margin: 0;
    }

    .primary-navigation ul.menu > li > a,
    .primary-navigation ul.nav-menu > li > a {
        display: block;
        width: 100%;
        padding: .95rem .15rem;
        border-bottom: 1px solid var(--fantoba-border);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .04em;
        text-decoration: none;
    }

    .primary-navigation ul.menu > li:last-child > a,
    .primary-navigation ul.nav-menu > li:last-child > a {
        border-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-navigation .primary-navigation,
    .main-navigation .menu-toggle::before,
    .main-navigation .menu-toggle::after,
    .main-navigation .menu-toggle > span {
        transition: none !important;
    }
}

/* ==========================================================
   Fantoba 1.2.7 - acciones de cabecera (perfil + carrito)
   ========================================================== */
.fantoba-header-actions {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-left: auto;
}

.fantoba-header-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--fantoba-text);
    text-decoration: none;
    border-radius: 50%;
    transition: background-color .18s ease, color .18s ease;
}

.fantoba-header-action:hover,
.fantoba-header-action:focus {
    color: var(--fantoba-coral);
    background: rgba(0,0,0,.035);
    outline: none;
}

.fantoba-header-action svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.fantoba-cart-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--fantoba-coral);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}

@media (min-width: 768px) {
    .storefront-primary-navigation .col-full {
        gap: .35rem;
    }

    .fantoba-header-actions {
        flex: 0 0 auto;
    }
}

@media (max-width: 767px) {
    .storefront-primary-navigation .col-full {
        display: flex;
        align-items: center;
    }

    .main-navigation {
        order: 1;
    }

    .fantoba-header-actions {
        order: 2;
        margin-left: auto;
    }

    .fantoba-header-action {
        width: 40px;
        height: 40px;
    }
}

/* Páginas legales Fantoba: lectura limpia, cálida y sin estética de constructor. */
.fantoba-legal-page {
    background: #fffdf9;
}

.fantoba-legal {
    width: min(100% - 2.5rem, 860px);
    margin: 0 auto;
    padding: clamp(1rem, 1vw, 2rem) 0;
}

.fantoba-legal__header {
    margin-bottom: 3rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(201, 166, 107, .55);
}

.fantoba-legal__eyebrow {
    margin: 0 0 .45rem;
    color: #8a6b4c;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.fantoba-legal__header h1 {
    margin: 0;
    color: var(--fantoba-cocoa);
    font-size: clamp(3rem, 7vw, 4.8rem);
    line-height: .95;
}

.fantoba-legal__content {
    color: var(--fantoba-text);
    font-size: .98rem;
    line-height: 1.85;
}

.fantoba-legal__content h2 {
    margin: 3rem 0 1rem;
    color: var(--fantoba-cocoa);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.fantoba-legal__content h2:first-child {
    margin-top: 0;
}

.fantoba-legal__content h3 {
    margin: 2rem 0 .75rem;
    color: var(--fantoba-cocoa);
    font-size: 1rem;
    font-weight: 700;
}

.fantoba-legal__content p,
.fantoba-legal__content ul,
.fantoba-legal__content ol {
    margin: 0 0 1.35rem;
}

.fantoba-legal__content a {
    color: var(--fantoba-cocoa);
    text-decoration-color: var(--fantoba-gold);
    text-underline-offset: .18em;
}

.fantoba-legal__content a:hover {
    color: var(--fantoba-coral);
}

.fantoba-legal__content strong {
    color: #34251e;
}

@media (max-width: 767px) {
    .fantoba-legal {
        width: min(100% - 2rem, 860px);
    }

    .fantoba-legal__header {
        margin-bottom: 2.25rem;
    }

    .fantoba-legal__content {
        font-size: .94rem;
        line-height: 1.75;
    }

    .fantoba-legal__content h2 {
        margin-top: 2.4rem;
    }
}


/* ==========================================================
   Fantoba 1.3.2 - página de contacto
   ========================================================== */
.fantoba-contact-page {
    background: #fffdf9;
}

.fantoba-contact {
    width: min(100% - 2.5rem, 1120px);
    margin: 0 auto;
    padding: clamp(1.5rem, 2.5vw, 3rem) 0 clamp(3rem, 5vw, 5rem);
}

.fantoba-contact__header {
    max-width: 760px;
    margin: 0 auto clamp(2rem, 4vw, 3.5rem);
    text-align: center;
}

.fantoba-contact__eyebrow {
    margin: 0 0 .45rem;
    color: #8a6b4c;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.fantoba-contact__header h1 {
    margin: 0 0 .75rem;
    color: var(--fantoba-cocoa);
    font-size: clamp(3.2rem, 7vw, 5rem);
    line-height: .95;
}

.fantoba-contact__lead {
    margin: 0;
    color: var(--fantoba-text);
    font-size: 1rem;
    line-height: 1.7;
}

.fantoba-contact__map {
    overflow: hidden;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
    border: 1px solid rgba(201, 166, 107, .45);
    border-radius: 3px;
    background: var(--fantoba-cream);
    box-shadow: 0 14px 38px rgba(74, 47, 36, .08);
}

.fantoba-contact__map iframe {
    display: block;
    width: 100%;
    height: clamp(320px, 45vw, 470px);
    border: 0;
}

.fantoba-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.fantoba-contact__panel {
    padding: clamp(1.5rem, 3vw, 2.35rem);
    border-top: 2px solid var(--fantoba-gold);
    background: #fff;
    box-shadow: 0 12px 34px rgba(74, 47, 36, .07);
}

.fantoba-contact__panel h2 {
    margin: 0 0 1.15rem;
    color: var(--fantoba-cocoa);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fantoba-contact__details {
    display: grid;
    gap: 1.15rem;
    margin: 0;
}

.fantoba-contact__item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: .8rem;
    align-items: start;
}

.fantoba-contact__icon {
    color: var(--fantoba-gold);
    line-height: 1.4;
}

.fantoba-contact__item strong {
    display: block;
    margin-bottom: .18rem;
    color: var(--fantoba-cocoa);
}

.fantoba-contact__item p {
    margin: 0;
    line-height: 1.65;
}

.fantoba-contact__item a {
    color: var(--fantoba-text);
    text-decoration-color: var(--fantoba-gold);
    text-underline-offset: .18em;
}

.fantoba-contact__item a:hover,
.fantoba-contact__item a:focus {
    color: var(--fantoba-coral);
}

.fantoba-contact__brand {
    text-align: center;
}

.fantoba-contact__brand-title {
    margin: 0 0 .15rem;
    color: var(--fantoba-cocoa);
    font-size: clamp(2.8rem, 5vw, 4rem);
    line-height: 1;
}

.fantoba-contact__brand-subtitle {
    margin: 0 0 1.4rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.fantoba-contact__brand img {
    display: block;
    width: auto;
    max-width: min(100%, 360px);
    max-height: 280px;
    margin: 0 auto;
    object-fit: contain;
}

.fantoba-contact__social {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin-top: 1.5rem;
}

.fantoba-contact__social .fantoba-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--fantoba-gold);
    border-radius: 50%;
    color: var(--fantoba-cocoa);
    text-decoration: none;
    transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}

.fantoba-contact__social .fantoba-social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.fantoba-contact__social .fantoba-social-link:hover,
.fantoba-contact__social .fantoba-social-link:focus-visible {
    border-color: var(--fantoba-cocoa);
    background: var(--fantoba-cocoa);
    color: #fff;
    transform: translateY(-2px);
}

.fantoba-contact__content:not(:empty) {
    max-width: 780px;
    margin: clamp(2rem, 4vw, 3.5rem) auto 0;
    line-height: 1.8;
}

@media (max-width: 767px) {
    .fantoba-contact {
        width: min(100% - 2rem, 1120px);
    }

    .fantoba-contact__grid {
        grid-template-columns: 1fr;
    }

    .fantoba-contact__map iframe {
        height: 340px;
    }
}

/* --------------------------------------------------------------------------
   Pastelería Fantoba
   -------------------------------------------------------------------------- */
.fantoba-pasteleria-page .site-main,
.fantoba-pasteleria {
    margin: 0;
}

.fantoba-pasteleria__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    padding-top: clamp(2rem, 4vw, 4rem);
    padding-bottom: clamp(2.5rem, 5vw, 5rem);
}

.fantoba-pasteleria__intro-media img,
.fantoba-pasteleria__tradition-media img {
    display: block;
    width: 100%;
    height: auto;
}

.fantoba-pasteleria__intro-copy h1,
.fantoba-pasteleria__tradition-copy h2,
.fantoba-pasteleria__craft-content h2 {
    margin: .15rem 0 1.2rem;
    color: var(--fantoba-cocoa);
}

.fantoba-pasteleria__intro-copy h1 {
    font-family: "Pinyon Script", cursive;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    line-height: .95;
}

.fantoba-pasteleria__lead {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.75;
}

.fantoba-pasteleria__intro-copy > p:not(.fantoba-kicker) {
    line-height: 1.8;
}

.fantoba-pasteleria__signature-image {
    margin-top: 1.5rem;
}

.fantoba-pasteleria__signature-image img {
    display: block;
    width: auto;
    max-width: min(100%, 360px);
    max-height: 180px;
    object-fit: contain;
}

.fantoba-pasteleria__tradition {
    background: #fff8f7;
}

.fantoba-pasteleria__tradition-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    padding-top: clamp(2.5rem, 5vw, 5rem);
    padding-bottom: clamp(2.5rem, 5vw, 5rem);
}

.fantoba-pasteleria__tradition-copy h2,
.fantoba-pasteleria__craft-content h2 {
    font-family: "Pinyon Script", cursive;
    font-size: clamp(2.7rem, 5vw, 4.4rem);
    font-weight: 400;
    line-height: 1;
}

.fantoba-pasteleria__tradition-copy > p {
    line-height: 1.8;
}

.fantoba-pasteleria__links {
    display: grid;
    gap: .75rem;
    margin-top: 1.75rem;
}

.fantoba-pasteleria__product-link {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: .65rem;
    border: 1px solid rgba(74, 47, 36, .12);
    background: rgba(255, 255, 255, .58);
    color: var(--fantoba-cocoa);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.fantoba-pasteleria__product-link img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
}

.fantoba-pasteleria__product-link:hover,
.fantoba-pasteleria__product-link:focus-visible {
    border-color: var(--fantoba-gold);
    background: #fff;
    color: var(--fantoba-coral);
    transform: translateX(3px);
}

.fantoba-pasteleria__craft {
    position: relative;
    min-height: clamp(340px, 46vw, 560px);
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
}

.fantoba-pasteleria__craft-veil {
    position: absolute;
    inset: 0;
    background: rgba(255, 248, 247, .82);
}

.fantoba-pasteleria__craft-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    padding-top: clamp(3rem, 7vw, 6rem);
    padding-bottom: clamp(3rem, 7vw, 6rem);
    text-align: center;
}

.fantoba-pasteleria__craft-content p:last-child {
    margin: 0 auto;
    max-width: 760px;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.85;
}

.fantoba-pasteleria__cakes {
    padding-top: clamp(2.5rem, 5vw, 4.5rem);
    padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.fantoba-pasteleria__content {
    padding-bottom: 3rem;
    line-height: 1.8;
}

@media (max-width: 767px) {
    .fantoba-pasteleria__intro,
    .fantoba-pasteleria__tradition-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .fantoba-pasteleria__intro-copy h1 {
        font-size: clamp(3rem, 14vw, 4.25rem);
    }

    .fantoba-pasteleria__tradition-media {
        order: -1;
    }

    .fantoba-pasteleria__craft {
        min-height: 320px;
    }
}
