/*
Theme Name: Astra Child
Template: astra
*/

/* Header */
#masthead,
.site-header {
    background-color: #FFFFFF !important;
    border-bottom: 2px solid #C5E814;
}

/* Menú - color de texto */
.main-header-menu .menu-item a {
    color: #1A1A1A !important;
}

/* Menú - hover */
.main-header-menu .menu-item a:hover {
    color: #C5E814 !important;
}

/* Carrito - ícono */
.ast-cart-menu-wrap {
    background-color: transparent !important;
    border: 2px solid #C5E814 !important;
    border-radius: 4px;
    padding: 4px 8px;
}

/* Ocultar título en página de inicio */
.home .entry-title,
.page-id-13 .entry-title {
    display: none !important;
}

/* Quitar padding del contenido de páginas */
.page-id-13 .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}

.page-id-13 .ast-article-single {
    padding: 0 !important;
}

.page-id-13 .site-primary {
    padding: 0 !important;
}

/* Ocultar título página de inicio */
.page-id-13 .entry-title {
    display: none !important;
}

/* Eliminar espacio blanco sobre el contenido */
.page-id-13 .ast-hero-container,
.page-id-13 .entry-header {
    display: none !important;
}

/* Eliminar espacio entre header y contenido */
.page-id-13 #content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.page-id-13 #primary {
    padding-top: 0 !important;
}

/* Eliminar espacio entre header y contenido */
.page-id-13 #content,
.page-id-13 #primary {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Barra de beneficios: oculta solo en mobile, visible en desktop */
@media (max-width: 768px) {
    .ttf-beneficios-bar {
        display: none !important;
    }
}

/* Ocultar footer nativo de Astra */
#colophon,
#colophon .site-info,
footer.site-footer,
.footer-widget-area,
.ast-small-footer {
    display: none !important;
}

/* Filtros barra lateral - tipografía más grande */
.widget-area .wp-block-woocommerce-product-filter-attribute label,
.widget-area .wp-block-woocommerce-product-filter-price label,
.widget-area .wc-block-components-filter-submit-button,
.widget-area .wp-block-woocommerce-product-filter-attribute .wc-block-components-checkbox__label,
.widget-area .woocommerce ul.product-categories li a,
.widget-area .wc-block-product-categories li a,
.widget-area .wp-block-woocommerce-product-filter-attribute .wc-block-components-check-list-item,
.widget-area .wp-block-woocommerce-filter-wrapper .wc-filter-element-label-list-item {
    font-size: 1.1rem !important;
}

.widget-area .wp-block-woocommerce-product-filter-attribute .wp-block-heading,
.widget-area .wp-block-woocommerce-product-filter-price .wp-block-heading,
.widget-area h3.wp-block-heading {
    font-size: 1.4rem !important;
}

/* ===== Rediseño del panel de filtros ===== */

/* Titulo "Filtros" */
.widget-area .wp-block-woocommerce-product-filters > h2.wp-block-heading {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    margin-bottom: 16px !important;
}

/* Cada grupo de filtro (Categoria, Precio, Disponibilidad) como tarjeta */
.widget-area .wp-block-woocommerce-product-filter-taxonomy,
.widget-area .wp-block-woocommerce-product-filter-price,
.widget-area .wp-block-woocommerce-product-filter-status {
    background: #FFFFFF;
    border: 1px solid #E8EDD8;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Titulo de cada grupo con acento lima a la izquierda */
.widget-area .wp-block-woocommerce-product-filter-taxonomy h3.wp-block-heading,
.widget-area .wp-block-woocommerce-product-filter-price h3.wp-block-heading,
.widget-area .wp-block-woocommerce-product-filter-status h3.wp-block-heading {
    border-left: 3px solid #C5E814;
    padding-left: 10px;
    font-weight: 700 !important;
}

/* Espaciado entre opciones de la lista de categorias */
.widget-area .wc-block-product-filter-checkbox-list__item {
    margin-bottom: 8px;
}

/* Contador de productos por categoria */
.widget-area .wc-block-product-filter-checkbox-list__count {
    color: #6A7A5A;
    font-size: 0.85em;
}

/* Arreglo: el input de precio maximo quedaba cortado ("$ 30.0" en vez de "$ 30.000") */
.widget-area .wc-block-product-filter-price-slider__left input,
.widget-area .wc-block-product-filter-price-slider__right input {
    min-width: 80px !important;
    width: 80px !important;
    font-size: 0.95rem !important;
    padding: 4px 2px !important;
    border: 1px solid #E8EDD8;
    border-radius: 6px;
}

/* Boton "Borrar filtros" */
.ttf-clear-filters-wrap {
    margin-bottom: 12px;
}
.ttf-clear-filters {
    display: inline-block;
    color: #0D1E05;
    background: transparent;
    text-decoration: underline;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}
.ttf-clear-filters:hover {
    color: #6A7A5A;
}

/* Boton "Filtrar productos" (trigger mobile) */
.wc-block-product-filters__open-overlay {
    background: #C5E814 !important;
    color: #0D1E05 !important;
    border-radius: 999px !important;
    padding: 10px 20px !important;
    font-weight: 700 !important;
    border: none !important;
}

/* Boton "Aplicar" del overlay mobile */
.wc-block-product-filters__apply {
    background: #C5E814 !important;
    color: #0D1E05 !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    border: none !important;
}

/* Alinear botones al fondo de cada tarjeta */
.woocommerce ul.products li.product,
ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
}

.woocommerce ul.products li.product .astra-shop-summary-wrap,
ul.products li.product .astra-shop-summary-wrap {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

.woocommerce ul.products li.product .astra-shop-summary-wrap .button,
ul.products li.product .astra-shop-summary-wrap .button {
    margin-top: auto !important;
}

/* ===== Barra "te faltan $X para envio gratis" ===== */
.ttf-shipping-bar {
    padding: 14px 16px;
    margin-bottom: 14px;
    background: #FAFDF5;
    border: 1px solid #E8EDD8;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
}
.ttf-shipping-bar__text {
    font-size: 0.85rem;
    color: #1A1A1A;
    margin-bottom: 8px;
    text-align: center;
}
.ttf-shipping-bar__text--done {
    color: #0D1E05;
    font-weight: 700;
}
.ttf-shipping-bar__track {
    width: 100%;
    height: 8px;
    background: #E8EDD8;
    border-radius: 999px;
    overflow: hidden;
}
.ttf-shipping-bar__fill {
    height: 100%;
    background: #C5E814;
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* Ubicacion en el mini-carrito desplegable de Astra */
.widget_shopping_cart_content .ttf-shipping-bar,
.astra-cart-drawer .ttf-shipping-bar {
    margin: 0 16px 14px;
    width: calc(100% - 32px);
}

/* ===== "Completa tu combo" (producto complementario en la ficha) ===== */
.ttf-combo-offer {
    margin: 20px 0;
    padding: 16px;
    background: #FAFDF5;
    border: 1px solid #E8EDD8;
    border-left: 3px solid #C5E814;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
}
.ttf-combo-offer__title {
    font-weight: 700;
    font-size: 1rem;
    color: #0D1E05;
    margin-bottom: 12px;
}
.ttf-combo-offer__item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ttf-combo-offer__img img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.ttf-combo-offer__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ttf-combo-offer__name {
    color: #1A1A1A !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ttf-combo-offer__price {
    color: #6A7A5A;
    font-size: 0.85rem;
}
.ttf-combo-offer__btn .ttf-combo-offer__add {
    display: inline-block;
    background: #C5E814 !important;
    color: #0D1E05 !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}
.ttf-combo-offer__btn .ttf-combo-offer__add:hover {
    background: #9EC010 !important;
}
.ttf-combo-offer__btn .ttf-combo-offer__add.loading {
    opacity: 0.6;
}
.ttf-combo-offer__btn .added_to_cart {
    display: block;
    text-align: center;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #0D1E05;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .ttf-combo-offer__item {
        flex-wrap: wrap;
    }
    .ttf-combo-offer__btn {
        width: 100%;
    }
    .ttf-combo-offer__btn .ttf-combo-offer__add {
        display: block;
        text-align: center;
    }
}

/* Cartel "Agregamos tu combo al carrito" (llega desde un link de Instagram/WhatsApp) */
.ttf-combo-banner {
    padding: 14px 18px;
    margin-bottom: 16px;
    background: #C5E814;
    color: #0D1E05;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

/* Mensaje de agradecimiento en la pagina "Pedido recibido" */
.ttf-thankyou-banner {
    background: linear-gradient(135deg, #C5E814 0%, #9EC010 100%);
    border-radius: 16px;
    padding: 32px 24px;
    margin: 8px 0 28px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 6px 20px rgba(197, 232, 20, 0.25);
}
.ttf-thankyou-emoji {
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 10px;
}
.ttf-thankyou-title {
    color: #0D1E05;
    font-weight: 800;
    font-size: 1.7rem;
    margin: 0 0 10px;
}
.ttf-thankyou-sub {
    color: #0D1E05;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.85;
    max-width: 480px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .ttf-thankyou-title { font-size: 1.4rem; }
    .ttf-thankyou-sub { font-size: 0.9rem; }
}

/* Seccion "Productos destacados" de la home: cuadricula mas chica y centrada (no ancho completo) */
.ttf-destacados-grid {
    max-width: 660px;
    margin: 0 auto;
}
.ttf-destacados-grid ul.products {
    justify-content: center;
}

@media (max-width: 600px) {
    .ttf-destacados-grid {
        max-width: 320px;
    }
}