/*!
Theme Name: tastyc child
Theme URI: https://bslthemes.com/
Author: bslthemes
Author URI: https://themeforest.net/user/bslthemes
Description: Tastyc - Restaurant WordPress Theme
Version: 2.0.4
License: General Public License
License URI: http://www.gnu.org/licenses/gpl.html
Template: tastyc
Text Domain: tastyc-child
Tags: full-width-template, editor-style, featured-images, sticky-post, threaded-comments, translation-ready, theme-options
*/

.woocommerce-form-coupon-toggle {
    max-width: 500px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.woocommerce-info {
    padding-right: 26px;
}

/*---------Fixing checkout-page---------*/
.checkout-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 1300px;
    margin: 0;
    box-sizing: border-box;
}

.checkout-summary-column #order_review {
    background: #f9f9f9;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .checkout-layout-grid {
        grid-template-columns: 1fr;
    }
}

.elementor-widget-tastyc-footer-copyright .tst-text a {
    color: #f39c12;
}

.tst-banner-sm .tst-wh-frame {
    border-radius: 5px;
    margin-right: 15px;
    width: calc(100% - 15px);
}

/* HEADER */
.tst-menu {
    background: transparent !important;
    box-shadow: none !important;
}

.menu-item {
    color: white !important;
}

.tst-cart svg path {
    stroke: #ffffff !important;
    stroke-width: 8px;
}

/* Modo ACTIVO */
.tst-menu-frame.tst-active .tst-dynamic-menu {
    background-color: #ffffff !important;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding-bottom: 10px !important;
}

.tst-menu-frame.tst-active .menu-item {
    color: black !important;
}

.tst-menu-frame.tst-active .tst-cart svg path {
    stroke: black !important;
    stroke-width: 1px;
}

.tst-menu:after {
    display: none !important;
}

.tst-wh-frame {
    display: none !important;
}

.tst-cart-number {
    background-color: #019791 !important;
}

/* Carousel en el home */
.page-id-3267 #n2-ss-3-align {
    max-width: 71rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 1199px) { .page-id-3267 #n2-ss-3-align { max-width: 60rem; } }
@media (max-width: 991px) { .page-id-3267 #n2-ss-3-align { max-width: 45rem; } }
@media (max-width: 767px) { .page-id-3267 #n2-ss-3-align { max-width: 34rem; } }

.elementor-element-938c779 .tst-spacer {
    display: none;
}

/* Page Acerca de Nosotros */
.page-id-3285 .elementor-element-3c883e2, 
.page-id-3285 .elementor-element-371b6a4 {
    max-width: 71rem !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 1199px) { .page-id-3285 .elementor-element-3c883e2, .page-id-3285 .elementor-element-371b6a4 { max-width: 60rem !important; } }
@media (max-width: 991px) { .page-id-3285 .elementor-element-3c883e2, .page-id-3285 .elementor-element-371b6a4 { max-width: 45rem !important; } }
@media (max-width: 767px) { .page-id-3285 .elementor-element-3c883e2, .page-id-3285 .elementor-element-371b6a4 { max-width: 34rem !important; } }

.tst-pagination {
    justify-content: center;
}

/* Widgets Tienda */
#block-11, #block-15 {
    margin-bottom: 0 !important;
}

/* Header Activo Permanente - Corregido para despegar el logo del borde inferior y añadido 404 */
.page-id-3 .tst-dynamic-menu,
.page-id-12 .tst-dynamic-menu,
.page-id-13 .tst-dynamic-menu,
.page-id-14 .tst-dynamic-menu,
.error404 .tst-dynamic-menu {
    background-color: #ffffff !important;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding-bottom: 20px !important; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
}

.page-id-3 .tst-menu,
.page-id-12 .tst-menu,
.page-id-13 .tst-menu,
.page-id-14 .tst-menu,
.error404 .tst-menu {
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important; 
    padding-top: 15px !important;    
    padding-bottom: 15px !important; 
}

.page-id-3 .menu-item, 
.page-id-12 .menu-item, 
.page-id-13 .menu-item, 
.page-id-14 .menu-item,
.error404 .menu-item {
    color: black !important;
}

.page-id-3 .tst-cart svg path, 
.page-id-12 .tst-cart svg path, 
.page-id-13 .tst-cart svg path, 
.page-id-14 .tst-cart svg path,
.error404 .tst-cart svg path {
    stroke: black !important;
    stroke-width: 1px !important;
}

/* Otros Estilos */
.tst-text a[href*="politica-privacidad"] {
    color: #009288 !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.tst-text a[href*="politica-privacidad"]:hover {
    text-decoration: underline;
}

/* Categorías Sidebar */
.wc-block-product-categories-list--depth-1 {
    display: none;
    padding-top: 10px;
    padding-left: 15px !important;
    border-left: 2px solid #009288;
    margin-bottom: 10px;
}

.wc-block-product-categories-list-item:hover > .wc-block-product-categories-list--depth-1,
.wc-block-product-categories-list-item.current-menu-item > .wc-block-product-categories-list--depth-1,
.wc-block-product-categories-list-item.wc-block-product-categories-list-item--active > .wc-block-product-categories-list--depth-1 {
    display: block !important;
}

.wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item > a {
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 5px;
}

.wc-block-product-categories-list-item--active > a .wc-block-product-categories-list-item__name,
.wc-block-product-categories-list-item a:hover .wc-block-product-categories-list-item__name {
    color: #009288 !important;
}

.wc-block-product-categories-list-item-count {
    background-color: #00978e !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    margin-left: 8px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 18px;
    transition: all 0.3s ease;
}

.wc-block-product-categories-list-item:hover > a + .wc-block-product-categories-list-item-count {
    background-color: #005470 !important;
    transform: scale(1.1);
}

.wc-block-product-categories-list-item--active > a .wc-block-product-categories-list-item__name {
    color: #005470 !important;
    font-weight: bold;
}

.woocommerce ul.products li.product a.added_to_cart{
	right: 92px !important;
}

/* Solo afecta al título de novedades dentro de la página de carrito vacío */
.wc-block-cart__empty-cart__title + hr + h2 {
    font-size: 0 !important;
}

.wc-block-cart__empty-cart__title + hr + h2::before {
    content: "Novedades en la tienda";
    font-size: 2rem; /* O el tamaño original de tus h2 */
    visibility: visible;
    display: block;
    text-align: center;
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--downloads {
	display: none !important
}

/* Centrado vertical sin mover a la derecha */
.awcdp_balance_pay p {
    display: flex !important;
    align-items: center !important; /* Alinea verticalmente al centro */
    justify-content: flex-start !important; /* Mantiene todo a la izquierda */
    margin: 0 !important;
    gap: 10px; /* Espacio horizontal entre texto y botón */
    line-height: 1;
}

.awcdp_balance_pay a.button.pay {
    margin: 20px 0 !important;
    vertical-align: middle !important;
    float: none !important; /* Evita que el botón salte a la derecha */
    display: inline-flex !important;
    align-items: center;
}

.woocommerce .woocommerce-customer-details .woocommerce-column__title{
	margin-top: 20px;
}

.woocommerce-button.button.pay.order-actions-button {
    margin-bottom: 0 !important;
}