/*
 * Estilos adicionales del tema Zaral
 * Autor: pulsoweb.com
 * Versión: 1.0
 */

/* Variables CSS */
:root {
    --yellow: #fff7ea;
    --dark-green: #004447;
    --cyan: #89E6D1;
    --brown: #704D2A;
    
    /* Fuentes */
    --font-primary: "DM Sans", sans-serif;
    --font-display: "Anton", sans-serif;
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--brown);
    background-color: var(--yellow);
    max-width: 100vw;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
}

.z_container {
    width: 100%;
    margin: 0 auto;
    max-width: 1380px;
    padding: 0 80px;
}

@media(max-width: 1024px){
    .z_container {
        padding: 0 40px;
    }
}

@media(max-width: 768px){
    .z_container {
        padding: 0 20px;
    }
}

/* Breadcrumbs */
.zaral-breadcrumbs {
    font-size: 16.2px;
    margin: 40px 0;
    color: var(--brown);
    font-family: var(--font-primary);
}
.zaral-breadcrumbs a {
    color: var(--brown);
    text-decoration: none;
    transition: color 0.3s;
}
.zaral-breadcrumbs a:hover {
    color: var(--dark-green);
    text-decoration: underline;
}
.zaral-breadcrumbs span {
    color: var(--brown);
    font-weight: 600;
    text-decoration: underline;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .zaral-breadcrumbs {
        font-size: 10.8px;
        margin: 10px 0;
    }
}

/* Limpiar estilos elementor */
.elementor-nav-menu::after {
    display: none !important;
}
    

/* Estilos para el page title */
.entry-title {
    font-family: var(--font-display);
    font-size: 25.2px;
    margin-bottom: 10px;
}


/* Header */
#z_header {
    background-color: var(--yellow);
    color: var(--brown);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    height: 100px;
}

#z_header a {
    text-decoration: none;
    display: inline-block;
}

#z_header .header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#z_header .header-right {
    display: flex;
    align-items: center;
    gap: 60px;
}


#z_header ul.menu {
    list-style: none;
    display: flex;
    gap: 40px;
}

#z_header ul.menu .menu-item-account {
    display: none;
}

#z_header ul.menu > li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#z_header ul.menu > li > a,
#z_header ul.menu > li > .submenu-toggle {
    flex: 0 0 auto;
}

#z_header ul.menu > li > .sub-menu {
    flex: 0 0 100%;
    order: 1;
}

#z_header ul.menu > li > a {
    color: var(--brown);
    text-transform: uppercase;
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 14.4px;
    font-weight: 600;
    transition: color 0.3s ease;
}

#z_header ul.menu > li > a:hover {
    color: var(--dark-green);
}

/* Sub menu */
#z_header ul.menu li.menu-item-has-children {
    position: relative;
}

/* Estilos para el primer nivel de submenú */
#z_header ul.menu > li > .sub-menu {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 240px;
    background-color: var(--yellow);
    padding: 10px 0;
    z-index: 9999;
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Estilos para submenús de segundo nivel */
#z_header ul.menu > li > .sub-menu > li > .sub-menu {
    position: static;
    display: none;
    flex-direction: column;
    margin: 0;
    padding: 0;
    padding-left: 40px;
    padding-right: 20px;
    background: transparent;
    gap: 0;
}

/* Mostrar submenús de segundo nivel en desktop */
@media (min-width: 1025px) {
    #z_header ul.menu > li > .sub-menu > li > .sub-menu {
        display: flex !important;
    }
}

/* Estilos para los enlaces del menú */
#z_header ul.menu > li > .sub-menu > li > a {
    color: var(--brown);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 14.4px;
    font-weight: 600;
    padding: 8px 20px;
    display: block;
    white-space: nowrap;
    transition: all 0.2s ease;
}

#z_header ul.menu > li > .sub-menu > li > a:hover {
    background-color: rgba(0, 68, 71, 0.05);
    padding-left: 25px;
}

/* Estilos para los enlaces del segundo nivel */
#z_header ul.menu > li > .sub-menu > li > .sub-menu > li > a {
    padding: 6px 0;
    font-size: 13.5px;
    color: var(--brown);
}

#z_header ul.menu > li > .sub-menu > li > .sub-menu > li > a:hover {
    background-color: transparent;
    padding-left: 0;
    color: var(--dark-green);
}

/* Quitar bullets del submenú 2 */
#z_header ul.menu > li > .sub-menu > li > .sub-menu {
    list-style: none;
}

#z_header ul.menu > li > .sub-menu > li > .sub-menu > li {
    list-style: none;
}

/* Botón de despliegue - solo para nivel 1 */
#z_header ul.menu > li.menu-item-has-children > a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding-right: 8px;
    order: 0;
}

#z_header ul.menu .submenu-toggle {
    background: none;
    border: none;
    padding: 4px 8px;
    margin: 0;
    margin-left: auto;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

#z_header ul.menu .submenu-toggle .submenu-arrow {
    width: 12px;
    height: 8px;
    transition: transform 0.3s ease;
}

/* Comportamiento en desktop */
@media (min-width: 1025px) {
    /* Mostrar primer nivel de submenú con hover */
    #z_header ul.menu > li.menu-item-has-children:hover > .sub-menu {
        display: flex;
    }
    
    /* Rotar flecha al mostrar submenú */
    #z_header ul.menu > li.menu-item-has-children:hover > a > .submenu-toggle .submenu-arrow {
        transform: rotate(180deg);
    }
    
    /* Mostrar submenús de segundo nivel en desktop */
    #z_header ul.menu > li > .sub-menu > li > .sub-menu {
        display: flex !important;
    }
}

/* Estado abierto para móviles */
#z_header ul.menu li.open-sub-menu > .sub-menu {
    display: flex !important;
}

#z_header ul.menu li.open-sub-menu > a > .submenu-toggle .submenu-arrow {
    transform: rotate(180deg);
}

/* Estilos para móviles y tablets */
@media (max-width: 1024px) {
    #z_header ul.menu > li > .sub-menu {
        position: static;
        margin-top: 5px;
        padding-left: 0;
        display: none;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
    }
    
    #z_header ul.menu > li > .sub-menu > li > .sub-menu {
        padding: 8px 0 8px 40px;
        display: flex !important;
    }
    
    #z_header ul.menu .open-sub-menu > .sub-menu {
        display: flex !important;
    }
}

/* cart */

#z_header .cart-icon {
    position: relative;
}

#z_header .header-icons .account-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: -3px;
}

#z_header .header-icons .account-icon img {
    display: block;
    width: 38px;
    height: auto;
}

#z_header .cart-count {
    height: 20px !important;
    width: 20px !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important; 
    border-radius: 50%;
    border: 1px solid var(--dark-green);
    background-color: var(--dark-green);
    color: white;
    font-weight: 600;
    font-size: 10.8px;
    line-height: 1;
    position: absolute;
    top: -10px;
    right: -10px;
}


/* logo */

#z_header .site-branding img {
    height: 65px;
    width: auto;
    display: block;
}

/* Header icons */

#z_header .header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

#z_header .header-icons button {
    background-color: unset;
    border: 0;
    padding: 0;
}

#z_header .header-icons svg {
    height: 35px;
    width: auto;
}

#z_header .header-icons button svg {
   height: 34px;
   margin-bottom: 5px;
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    background-color: var(--yellow);
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    position: relative;
}

.search-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 36px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    line-height: 1;
    padding: 0 !important;
    width: 30px;
    height: 30px;
}

.search-close:hover {
    opacity: 0.7;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-field {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--dark-green);
    border-radius: 25px;
    font-size: 16.2px;
    font-family: var(--font-primary);
    color: var(--dark-green);
    outline: none;
}

.search-field:focus {
    border-color: var(--brown);
}

.search-submit {
    background-color: var(--dark-green);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 0 !important;
}

.search-submit:hover {
    background-color: var(--brown);
}

.search-submit svg {
    width: 24px;
    height: 24px;
}

.search-submit svg path {
    fill: white;
}

/* Menu hamburguesa */
.menu-toggle {
    display: none;
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--dark-green);
    margin: 6px 0;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

/* Estilos ipad */

@media (max-width: 1300px) {
    #z_header .z_container{
        padding: 0 40px;
    }
}

@media (max-width: 1200px) {

    #z_header {
        height: auto;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    #z_header .header-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    #z_header .site-branding {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    #z_header .header-right {
        width: 100%;
        flex-direction: row;
        gap: 20px;
        position: relative;
        justify-content: center;
        align-items: center;
    }
    
    .menu-toggle {
        display: block;
        order: 1;
    }
    
    #z_header .header-icons {
        display: flex;
        order: 2;
        gap: 20px;
    }

    #z_header .header-icons .account-icon {
        order: 3;
    }
    
    /* Ocultar el botón de búsqueda en móvil/tablet */
    #z_header .header-icons .search-icon {
        display: none;
    }
    
    /* Ocultar el selector de idioma en móvil/tablet */
    #z_header .header-icons .language-switcher {
        display: none;
    }
    
    #z_header nav#site-navigation {
        display: none;
        width: 100%;
        background-color: var(--yellow);
        padding: 26px 20px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        order: 3;
        border-radius: 22px;
        box-shadow: 0px 22px 52px rgba(0, 0, 0, 0.16);
        transform-origin: top center;
    }
    
    #z_header nav#site-navigation.active {
        display: block;
        animation: zaralMobileMenuFade 0.28s ease-out both;
    }
    
    #z_header ul.menu {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    #z_header ul.menu .menu-item-account {
        display: block;
    }

    #z_header ul.menu > li {
        width: 100%;
    }

    #z_header ul.menu > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        border-radius: 16px;
        background-color: rgba(255, 255, 255, 0.4);
        color: var(--brown);
        font-size: 15px;
        letter-spacing: 0.08em;
        transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

    #z_header ul.menu > li > a:hover,
    #z_header ul.menu > li > a:focus-visible {
        background-color: rgba(255, 255, 255, 0.78);
        color: var(--dark-green);
        transform: translateY(-1px);
    }

    #z_header ul.menu .menu-item-account > a {
        background-color: var(--dark-green);
        color: #fff;
        font-weight: 700;
        justify-content: center;
        box-shadow: 0px 10px 28px rgba(0, 68, 71, 0.28);
    }

    #z_header ul.menu .menu-item-account > a:hover,
    #z_header ul.menu .menu-item-account > a:focus-visible {
        background-color: #036063;
        color: #fff;
    }

    #z_header ul.menu .sub-menu {
        position: static;
        margin-top: 14px;
        padding: 14px 14px 14px 20px;
        background-color: rgba(255, 255, 255, 0.64);
        border-radius: 16px;
        gap: 12px;
    }

    #z_header ul.menu .sub-menu a {
        padding: 8px 0;
        font-size: 14px;
        opacity: 0.9;
    }
}

@keyframes zaralMobileMenuFade {
    from {
        opacity: 0;
        transform: scaleY(0.95) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scaleY(1) translateY(0);
    }
}

@media (max-width: 1024px) {
    /* Mantener el carrito visible en iPad */
    #z_header .header-icons {
        display: flex;
    }
    
    #z_header .header-icons .search-icon {
        display: none;
    }
    
    #z_header .header-icons .language-switcher {
        display: none;
    }
}

/* main */

#z_main {
    min-height: 500px;
}

/* footer */

#z_footer {
    background-color: #F7EEDF;
    display: flex;
    min-height: 200px;
    justify-content: center;
    align-items: center;
    padding-top: 30px;
    padding-bottom: 50px;
}

#z_footer .footer-content {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

#z_footer .footer-column-center {
    display: flex;
    justify-content: center;
    align-items: center;
}


#z_footer .footer-branding {
    display: flex;
    justify-content: center;
    align-items: center;

}

#z_footer .footer-branding a {
    display: inline-block;
}

#z_footer .footer-branding img {
    max-width: 350px;
    height: auto;
}

#z_footer ul.footer-menu {
    list-style: none;
    display: inline-flex;
    flex-direction: column;
}

#z_footer ul.footer-menu a {
    color: var(--brown);
    font-size: 16.2px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}

#z_footer ul.footer-menu a:hover {
    color: var(--dark-green);
}

#z_footer ul.footer-menu li {
    line-height: 24px;
}

#z_footer .footer-menu-legal {
    display: flex;
    justify-content: flex-end;
}

#z_footer .footer-menu-legal li {
    text-align: right;
}

#z_footer .footer-menu-legal a {
    text-transform: none !important;

}

#z_footer .rrss-container {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

#z_footer .rrss-container a {
    display: inline-block;
}

#z_footer .rrss-container img {
    width: 60px;
    height: auto;
}

#z_footer .footer-column-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#z_footer .footer-column-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 404 page */

.site-main.site-main--404 {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0 120px;
    background-color: #F7EEDF;
}

.z_404__content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.z_404__eyebrow {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dark-green);
}

.z_404__title {
    font-size: 48px;
    line-height: 1.1;
    color: var(--brown);
}

.z_404__text {
    font-size: 18px;
    color: var(--dark-green);
}

.z_404__actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.z_404__search {
    margin-top: 20px;
    padding: 28px;
    background-color: rgba(255, 255, 255, 0.78);
    border-radius: 24px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}

.z_404__search-title {
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 700;
    color: var(--brown);
}

.z_404__search-form .search-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.z_404__search-form .search-field {
    min-width: 240px;
    padding: 12px 18px;
    border-radius: 18px;
    border: 1px solid rgba(0, 68, 71, 0.28);
    font-size: 16px;
}

.z_404__search-form .search-submit {
    background-color: var(--dark-green);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.z_404__search-form .search-submit:hover,
.z_404__search-form .search-submit:focus-visible {
    background-color: #036063;
}

@media (max-width: 768px) {
    .site-main.site-main--404 {
        padding: 60px 0 80px;
    }

    .z_404__title {
        font-size: 36px;
    }

    .z_404__actions {
        flex-direction: column;
        gap: 16px;
    }

    .z_404__search {
        padding: 22px;
    }
}


@media( max-width: 1024px){
    #z_footer .footer-content {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 40px;
    }
    
    #z_footer .footer-column-center {
        order: -1;
        width: 100%;
    }
    
    #z_footer .footer-column-left {
        width: 40%;
    }
    
    #z_footer .footer-column-right {
        width: 40%;
    }
}

@media( max-width: 768px){
    #z_footer .footer-branding img {
        max-width: 60%;
        width: 100%;
        margin: 0 auto;
    }

    #z_footer .footer-branding a {
        display: flex;
        justify-content: center;
    }

     #z_footer .footer-branding {
        margin-bottom: 30px;
     }
    #z_footer .footer-content {
        gap: 10px;
    }
        #z_footer .footer-column-left {
        width: calc(50% - 10px);
    }
    
    #z_footer .footer-column-right {
        width: calc(50% - 10px);
    }

    #z_footer ul.footer-menu a {
        font-size: 12.6px;
    }
}

/* ========================================
   Estilos personalizados WooCommerce
   ======================================== */

/* Contenedor de productos - Desktop */

/* Contenedor de productos - iPad/Tablet */
@media (max-width: 1024px) {
    .woocommerce ul.products {
        padding: 40px;
    }
}

/* Contenedor de productos - Móvil */
@media (max-width: 768px) {
    .woocommerce ul.products {
        padding: 20px;
    }
}


/* Producto Item loop */

ul.products li.product .product-image-wrapper {
    position: relative;
    background-color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-end;
}

ul.products li.product .product-image-wrapper .add-to-cart-button {
    position: absolute;
    bottom: 15px;
    right: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--cyan);
    height: 60px;
    width: 60px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
}

ul.products li.product .product-image-wrapper .add-to-cart-button svg {
    height: 30px;
    width: 30px;
}

ul.products li.product .product-image-wrapper .add-to-cart-button svg path {
    stroke: white;
}

ul.products li.product a img {
    margin: 0 !important;
    height: auto;
    width: 100%;
    aspect-ratio: 342 / 420;
    object-fit: cover;
}

ul.products li.product a {
    display: block;
    width: 100%;
}

ul.products li.product .woocommerce-loop-product__title {
    padding: 0 !important;
}

ul.products li.product .woocommerce-loop-product__title a {
    text-transform: uppercase;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.3;
    background-color: var(--cyan);
    padding: 5px 8px;
    display: block;
}

ul.products li.product .woocommerce-loop-product__title a {
    color: var(--dark-green);
}

ul.products li.product .price .amount,
ul.products li.product span.price {
    color: var(--dark-green) !important;
    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 400;
    margin-top: 0px;
    padding: 0px 5px;
    display: flex !important;
    margin-bottom: 0 !important;
}

ul.products li.product .price span {
    font-size: 27px;
}

ul.products li.product .product-variations-loop {
    font-family: var(--font-primary);
    font-size: 16.2px;
    color: var(--dark-green);
    padding: 5px 12px;
    font-weight: 500;
    line-height: 1.4;
    padding-top: 0 !important;
}


@media(max-width: 1200px){
    ul.products li.product .woocommerce-loop-product__title a {
        font-size: 18px;
    }

    ul.products li.product .price .amount, ul.products li.product span.price {
        font-size: 18px;
    }
}

@media(max-width: 768px){
    ul.products li.product .product-image-wrapper .add-to-cart-button {
        bottom: 10px;
        right: 10px;
        height: 40px;
        width: 40px;
    }

    ul.products li.product .product-image-wrapper .add-to-cart-button svg {
        height: 25px;
        width: 25px;
    }
}

.woocommerce-product-gallery__image {
    aspect-ratio: 1 / 1;
}

.woocommerce-product-gallery__image a {
    height: 100%;
}

.woocommerce-product-gallery__image a img {
    height: 100% !important;
    object-fit: cover;
}

/* Page Header - Título general de páginas */
.zaral-page-header {
    padding: 60px 0;
    min-height: 340px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.zaral-page-header:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #00000030 0%, #00000090 100%);
}

.zaral-page-header .page-title {
    font-family: var(--font-display);
    font-size: 67.5px;
    color: white;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}


/* Woocommerce Pagination */

.woocommerce nav.woocommerce-pagination {
    padding-bottom: 80px;
}

.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 0;
}
.woocommerce nav.woocommerce-pagination ul li {
    border-radius: 50%;
    border: 1px solid var(--dark-green);
    background-color: var(--dark-green);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.woocommerce nav.woocommerce-pagination ul li a {
    height: 40px;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white !important;
}

.woocommerce nav.woocommerce-pagination ul li span {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.woocommerce nav.woocommerce-pagination ul li span.current  {
    background-color: var(--brown);
    color: white;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background-color: var(--dark-green);
}


/* Menu categorias */


.zaral-menu-categorias ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
}
.zaral-menu-categorias li {
    display: inline-block !important;
    flex-grow: 0 !important;
}

.zaral-menu-categorias a {
    background-color: var(--cyan);
    line-height: 1;
}

.zaral-menu-categorias li.current-menu-item a {
    text-decoration: underline;
}


@media(max-width: 1200px){
    .zaral-menu-categorias ul {
        flex-direction: column;
        gap: 10px;
    }
}
/* Blog Archive */

body.blog .elementor-post__text {
    padding: 60px;
    display: flex;
    justify-content: center;
}

body.blog .elementor-post__thumbnail {
    padding-bottom: 0 !important;
}

body.blog .elementor-post__thumbnail img {
    height: 400px;
    object-fit: cover;
    width: 100%;
}

body.blog .elementor-post__read-more {
    padding: 5px 20px;
    border-radius: 999px;
    background-color: var(--cyan);
    color: var(--dark-green) !important;
    font-weight: 600;
    margin-left: auto;
}


@media(max-width: 768px){
    body.blog article.post {
        display: flex;
        flex-direction: column;
    }

    body.blog .elementor-post__text {
        padding: 20px;
    }
}


/* Contact form */

.elementor-widget-form .elementor-field-type-submit {
    display: block !important;
}

.elementor-widget-form .elementor-field-type-submit .elementor-button {
    padding: 15px 20px !important;
}


.elementor-widget-form .elementor-field-type-submit * {
    text-align: center !important;
}

.elementor-form .elementor-button>span {
    gap: 0 !important;
}

.elementor-widget-form .elementor-field-group .elementor-field:not(.elementor-field) {
    min-height: 45px !important;
}

.elementor-widget-form .elementor-field-group textarea {
    padding-top: 15px !important;
    font-family: var(--font-primary) !important;
}

.elementor-form .elementor-button .elementor-button-text {
    margin-bottom: -2px !important
}



/* SINGLE PRODUCT PAGE */

body.single-product main#z_main .z_container{
max-width: 1200px;
}

body.single-product .category-header {
    min-height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    position: relative;
    background-blend-mode: multiply;
}

body.single-product .category-header h2 {
    color: white;
    font-size: 45px;
    font-weight: 300;
    font-family: var(--font-display);
    text-transform: uppercase;
    padding: 40px 0;
    z-index: 9;
    position: relative;
}

body.single-product .breadcrums-wrapper,
body.single-product .category-header .z_container {
    max-width: 1400px !important;
}

body.single-product .category-header:after {
    content: "";
    position: absolute;

    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    width: 100%;
    height: 50%;
}

body.single-product h1.product_title {
    background-color: var(--cyan);
    color: white;
    text-transform: uppercase;
    font-weight: 300;
    font-size: 36px;
    line-height: 1.3;
    padding: 20px !important;
    display: block;
}

body.single-product p.price,
body.single-product span.price {
    font-size: 36px !important;
    font-family: var(--font-display) !important;
    color: var(--dark-green) !important;
    font-weight: 300 !important;
    line-height: 1.3 !important;
}

body.single-product .reset_variations {
    display: none !important;
}

body.single-product .single-product-summary-container {
    padding: 10px 30px;
    padding-right: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
}

/* Estilos para el selector de cantidad en single product */
body.single-product .quantity {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--dark-green);
    border-radius: 25px;
    height: 50px;
    width: 150px;
    margin: 0;
}

body.single-product .quantity input.qty {
    width: 60px;
    height: 50px;
    text-align: center;
    border: 0;
    font-size: 22.5px;
    font-weight: 300;
    color: var(--dark-green);
    appearance: textfield;
    -moz-appearance: textfield;
    margin: 0;
    padding: 0;
    background-color: transparent;
    font-family: var(--font-display);
}

body.single-product .quantity input.qty::-webkit-outer-spin-button,
body.single-product .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body.single-product .quantity .qty-btn {
    width: 50px;
    height: 50px;
    color: var(--dark-green);
    font-size: 36px;
    font-family: var(--font-display);
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: end;
    justify-content: center;
    transition: all 0.3s ease;
    border: 0;
    background-color: transparent;
    padding: 0 !important;
}


body.single-product .single_add_to_cart_button {
    background-color: var(--dark-green) !important;
    color: var(--yellow);
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: 18px;
    padding: 0 25px;
    text-transform: uppercase;
    border-radius: 25px;
    height: 50px;
    margin-left: 30px;
    width: calc( (100% - 150px) - 35px) !important;;
}

body.single-product .product-subtitle {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 300;
    font-family: var(--font-primary);
    color: var(--dark-green);
}

body.single-product form.cart {
    margin-top: 30px;
}

body.single-product .woocommerce-product-details__short-description {
    font-size: 16.2px;
    line-height: 1.3;
    font-weight: 300;
    font-family: var(--font-primary);
    color: var(--dark-green);
    margin-top: 20px;
}

/* Fix para el contenedor principal del producto */
body.single-product div.product {
    display: flow-root;
    min-height: 1px;
}

body.single-product .product-full-description {
    margin-top: 40px;
    padding: 20px 0;
}

body.single-product .product-full-description-content {
    font-size: 18px;
    line-height: 1.6;
    font-family: var(--font-primary);
    color: var(--dark-green);
}

body.single-product .variations .label {
    display: none;
}

body.single-product .variations .value select {
    border: 2px solid var(--dark-green);
    border-radius: 25px;
    padding: 0 40px !important;
    font-size: 22.5px;
    font-weight: 300;
    font-family: var(--font-display);
    color: var(--dark-green);
    text-align: center;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23004225' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 16px !important;
    cursor: pointer;
    height: 50px !important;
    width: 100% !important;
    margin-right: 0 !important;
}

body.single-product .woocommerce-variation-price {
    display: none;
}

/* Galería de producto - miniaturas autoajustables */
.flex-control-nav.flex-control-thumbs {
    display: flex !important;
    gap: 10px;
    width: 100%;
}

.flex-control-nav.flex-control-thumbs li {
    flex: 1 1 0;
    margin: 0 !important;
    width: auto !important;
}

.flex-control-nav.flex-control-thumbs li img {
    width: 100%;
    height: auto;
    display: block;
}

/* Productos relacionados */
.related-products-section {
    margin-top: 80px;
    margin-bottom: 80px;
}

.related-products-title {
    font-size: 40px;
    text-transform: uppercase;
    color: var(--dark-green);
    font-family: var(--font-display);
    font-weight: 300;
    margin-bottom: 30px;
}

.related-products-section ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.related-products-section ul.products::before,
.related-products-section ul.products::after {
    display: none !important;
    content: none !important;
}

.related-products-section ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
}


@media(max-width: 768px){
    body.single-product h1.product_title {
        font-size: 28.8px;
    }
    body.single-product .single-product-summary-container {
        padding: 20px;
    }
    .related-products-title {
        font-size: 27px;
    }
    .related-products-section ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Finalizar compra - checkout */
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
    color: var(--dark-green);
    text-decoration: none;
    font-weight: 600;
}

.wc-block-components-button:not(.is-link) {
    background-color: var(--dark-green);
    color: white;
    font-family: var(--font-primary);
    font-weight: 500;
    padding: 0 25px;
    text-transform: uppercase;
    border-radius: 25px;
    text-decoration: none;
    border: 0 !important;
}

.wc-block-components-title.wc-block-components-title {
    color: var(--dark-green);
    font-weight: 300;
    border: 0;
}

.wc-block-cart__submit-container a {
    width: 100% !important;
}

.wc-block-cart table.wc-block-cart-items th span,
.wc-block-cart .wc-block-cart__totals-title {
    color: var(--dark-green) !important;
    font-weight: 600 !important;
}


/* ========================================
   Legal Page Template
   ======================================== */

.legal-page {
    padding: 60px 0;
}

.legal-page h2,
.legal-page h3,
.legal-page h4 {
    font-family: var(--font-primary) !important;
}

.legal-page h2 {
    font-size: 27px;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    padding: 60px;
    border-radius: 10px;
}

.legal-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--yellow);
}

.legal-title {
    font-family: var(--font-primary);
    font-size: 43.2px;
    color: var(--dark-green);
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1.2;
    font-weight: 300;
}

.legal-date {
    font-family: var(--font-primary);
    font-size: 12.6px;
    color: var(--brown);
    font-style: italic;
    margin: 0;
}

.legal-text {
    font-family: var(--font-primary);
    font-size: 14.4px;
    line-height: 1.8;
    color: #333;
}

.legal-text h2 {
    font-family: var(--font-display);
    font-size: 28.8px;
    color: var(--dark-green);
    margin-top: 40px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 300;
}

.legal-text h3 {
    font-family: var(--font-primary);
    font-size: 21.6px;
    color: var(--dark-green);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 300;
}

.legal-text h4 {
    font-family: var(--font-primary);
    font-size: 18px;
    color: var(--brown);
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 300;
}

.legal-text p {
    margin-bottom: 20px;
}

.legal-text ul,
.legal-text ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.legal-text li {
    margin-bottom: 10px;
}

.legal-text a {
    color: var(--dark-green);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-text a:hover {
    color: var(--brown);
}

.legal-text strong {
    font-weight: 600;
    color: var(--dark-green);
}

.legal-text em {
    font-style: italic;
}

.legal-contact {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--yellow);
}

.legal-contact h2 {
    font-family: var(--font-display);
    font-size: 25.2px;
    color: var(--dark-green);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.legal-contact p {
    font-family: var(--font-primary);
    font-size: 14.4px;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Responsive - Legal Page */
@media (max-width: 1024px) {
    .legal-content {
        padding: 40px;
    }
    
    .legal-title {
        font-size: 32.4px;
    }
    
    .legal-text h2 {
        font-size: 25.2px;
    }
}

@media (max-width: 768px) {
    .legal-page {
        padding: 30px 0;
    }
    
    .legal-content {
        padding: 30px 20px;
        border-radius: 0;
    }
    
    .legal-title {
        font-size: 25.2px;
    }
    
    .legal-text {
        font-size: 13.5px;
    }
    
    .legal-text h2 {
        font-size: 21.6px;
        margin-top: 30px;
    }
    
    .legal-text h3 {
        font-size: 18px;
    }
    
    .legal-text h4 {
        font-size: 16.2px;
    }
}

/* SINGLE POST */

body.single-post .elementor-location-single {
    padding-bottom: 100px;
}

body.single-post .elementor-location-single p {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 300;
    font-family: var(--font-primary);
    color: var(--dark-green);
    margin-bottom: 20px;
}

body.single-post .elementor-location-single h2,
body.single-post .elementor-location-single h3,
body.single-post .elementor-location-single h4 {
    font-family: var(--font-primary);
    font-weight: 600;
    margin: 20px 0;
}

/* Mi cuenta page */

body.woocommerce-account main.site-main {
    padding: 60px 80px;
    max-width: 1200px;
}

body.woocommerce-account main.site-main .woocommerce a{
    color: var(--dark-green) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.woocommerce-Address-title h2,
.woocommerce-MyAccount-content h2 {
    font-family: var(--font-primary);
    font-weight: 600;
    margin: 20px 0;
    color: var(--dark-green);
}

button[name="save_address"],
button[name="save_account_details"] {
    background-color: var(--dark-green) !important;
    color: white !important;
    font-weight: 500 !important;
    border-radius: 25px !important;
    padding: 15px 25px !important;
}

@media(max-width: 768px){
    body.woocommerce-account main.site-main {
        padding: 60px 20px;
        padding-left: 40px;
    }
}


/* Language Switcher */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0;
    padding-left: 20px;
}

.language-switcher a {
    text-decoration: none;
    color: inherit;
    text-transform: uppercase;
    font-weight: 600;
}

.language-switcher a::marker {
    display: none;
}

.language-switcher li:not(:last-child):after {
    content: "/";
    margin-left: 3px;
    margin-right: 3px;
}

.language-switcher li {
    list-style: none;
}
    