/* ============================================================
   TIENDA MODERNA - THE HEALING PATH BY ALE
   Sistema de Diseño de Bienestar (Verde Bosque, Crema & Dorado)
   ============================================================ */

/* Ocultar el loop antiguo genérico de WooCommerce y encabezados duplicados */
.woocommerce ul.products,
.woocommerce-page ul.products,
.woocommerce-ordering,
.woocommerce-result-count,
.woocommerce-pagination,
.inspiro-post-header.shop-header,
.woocommerce-products-header,
.post-type-archive-product .page-title,
.woocommerce-shop .page-title,
.woocommerce-products-header__title.page-title,
.woocommerce-shop .site-main > h1.entry-title,
.post-type-archive-product .site-main > h1.entry-title,
.woocommerce-shop h1.entry-title {
    display: none !important;
}

.thp-shop-container {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #2c3e35;
    box-sizing: border-box;
    padding: 0 20px;
}

/* Encabezado de Tienda */
.thp-shop-header {
    text-align: center;
    margin-bottom: 32px;
    padding-top: 15px;
}
.thp-shop-title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(32px, 5vw, 44px) !important;
    font-weight: 700 !important;
    color: var(--hp-verde, #1F4A3A) !important;
    letter-spacing: -0.01em !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.2 !important;
}
.thp-shop-subtitle {
    font-family: 'Jost', sans-serif !important;
    font-size: 16px !important;
    color: #4a5d52 !important;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Banner de aviso estilo Bienestar */
.thp-notice-banner {
    background: linear-gradient(135deg, #f8faf8 0%, #f1f6f3 100%) !important;
    border: 1px solid rgba(63, 107, 82, 0.2) !important;
    border-left: 4px solid var(--hp-verde-medio, #3F6B52) !important;
    border-radius: 14px !important;
    padding: 16px 22px !important;
    margin-bottom: 35px !important;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 18px rgba(31, 74, 58, 0.08) !important;
}
.thp-notice-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: var(--hp-verde-medio, #3F6B52) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(63, 107, 82, 0.35) !important;
}
.thp-notice-icon svg {
    stroke: #ffffff;
}
.thp-notice-text {
    flex-grow: 1;
    font-size: 14px;
    color: #2d4036;
    line-height: 1.55;
}
.thp-notice-text a {
    color: var(--hp-verde-medio, #3F6B52) !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    transition: color 0.2s ease;
}
.thp-notice-text a:hover {
    color: var(--hp-verde, #1F4A3A) !important;
}
.thp-notice-tag {
    background: rgba(63, 107, 82, 0.12) !important;
    color: var(--hp-verde, #1F4A3A) !important;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-left: 8px;
    letter-spacing: 0.03em;
}

/* Selector de Categorías (Tabs horizontales modernos) */
.thp-category-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.thp-tab-btn {
    background: #ffffff;
    border: 1.5px solid rgba(63, 107, 82, 0.2);
    color: #3b5448;
    padding: 10px 22px;
    border-radius: 6px !important;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(31, 74, 58, 0.04);
}
.thp-tab-btn:hover {
    border-color: var(--hp-verde-medio, #3F6B52);
    color: var(--hp-verde, #1F4A3A);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 74, 58, 0.12);
}
.thp-tab-btn.is-active {
    background: var(--hp-verde-medio, #3F6B52) !important;
    border-color: var(--hp-verde-medio, #3F6B52) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(31, 74, 58, 0.25) !important;
    transform: translateY(-1px);
}

/* Grilla de Productos */
.thp-products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 28px !important;
    margin-bottom: 55px !important;
    align-items: stretch !important;
}

.thp-products-grid > p {
    display: none !important;
}

/* Tarjeta de Producto (Animación Uniforme & Clickable Completa) */
.thp-product-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(63, 107, 82, 0.12);
    box-shadow: 0 4px 22px rgba(31, 74, 58, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease !important;
    position: relative;
    cursor: pointer;
}
.thp-product-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 36px rgba(31, 74, 58, 0.16) !important;
    border-color: rgba(63, 107, 82, 0.35) !important;
}

/* Stretched link sobre toda la tarjeta para hacerla completamente cliqueable */
.thp-product-card .thp-card-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    cursor: pointer;
}

/* Contenedor de Imagen con animación sincronizada */
.thp-card-media {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f4f7f4;
}
.thp-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.thp-product-card:hover .thp-card-media img {
    transform: scale(1.05) !important;
}

.thp-product-card .thp-card-title {
    transition: color 0.3s ease !important;
}
.thp-product-card:hover .thp-card-title {
    color: var(--hp-verde-medio, #3F6B52) !important;
}

/* Badges sobre la imagen */
.thp-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(31, 74, 58, 0.88);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    font-family: 'Jost', sans-serif;
}
.thp-card-badge.badge-vip {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(184, 134, 11, 0.35);
}

/* Cuerpo de la Tarjeta */
.thp-card-body {
    padding: 22px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.thp-card-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hp-verde-medio, #3F6B52);
    margin-bottom: 8px;
    font-family: 'Jost', sans-serif;
}
.thp-card-title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--hp-verde, #1F4A3A) !important;
    line-height: 1.35 !important;
    margin: 0 0 10px 0 !important;
}
.thp-card-desc {
    font-size: 13.5px;
    color: #556b60;
    line-height: 1.55;
    margin: 0 0 20px 0;
    flex-grow: 1;
    font-family: 'Jost', sans-serif;
}

/* Pie de Tarjeta: Precio y Botón */
.thp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(63, 107, 82, 0.1);
}
.thp-card-price-box {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.thp-card-price-label {
    font-size: 11px;
    color: #7b9186;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-family: 'Jost', sans-serif;
}
.thp-card-price {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: var(--hp-verde, #1F4A3A) !important;
    white-space: nowrap !important;
}

/* Botón de Compra Directo a Checkout Stripe (Aumenta de tamaño en hover) */
.thp-card-btn {
    background: var(--hp-verde-medio, #3F6B52) !important;
    color: #ffffff !important;
    font-family: 'Jost', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    padding: 12px 18px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 14px rgba(31, 74, 58, 0.16) !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease, box-shadow 0.3s ease !important;
    position: relative;
    z-index: 6;
}
.thp-product-card:hover .thp-card-btn {
    background: var(--hp-verde, #1F4A3A) !important;
    transform: scale(1.08) !important;
    box-shadow: 0 6px 18px rgba(31, 74, 58, 0.3) !important;
    color: #ffffff !important;
}
.thp-card-btn:hover {
    transform: scale(1.12) !important;
}

/* Bloque Explicativo Inferior (Cómo Funciona) */
.thp-steps-section {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 32px;
    border: 1px solid rgba(63, 107, 82, 0.15);
    box-shadow: 0 4px 22px rgba(31, 74, 58, 0.06);
    margin-top: 45px;
    text-align: center;
}
.thp-steps-title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(24px, 4vw, 32px) !important;
    font-weight: 700 !important;
    color: var(--hp-verde, #1F4A3A) !important;
    margin: 0 0 10px 0 !important;
}
.thp-steps-subtitle {
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    color: #556b60;
    margin: 0 0 35px 0;
}
.thp-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 26px;
    text-align: left;
}
.thp-step-item {
    background: #f8faf8;
    border-radius: 16px;
    padding: 24px 22px;
    border: 1px solid rgba(63, 107, 82, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.thp-step-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(31, 74, 58, 0.08);
}
.thp-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--hp-verde-medio, #3F6B52);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(63, 107, 82, 0.25);
}
.thp-step-heading {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--hp-verde, #1F4A3A) !important;
    margin: 0 0 8px 0 !important;
}
.thp-step-desc {
    font-size: 13.5px;
    color: #556b60;
    line-height: 1.5;
    margin: 0;
    font-family: 'Jost', sans-serif;
}

/* Botón destacado de WhatsApp */
.thp-whatsapp-cta {
    margin-top: 35px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #ffffff !important;
    padding: 13px 28px;
    border-radius: 35px;
    font-family: 'Jost', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.thp-whatsapp-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .thp-products-grid {
        grid-template-columns: 1fr;
    }
    .thp-shop-title {
        font-size: 28px !important;
    }
}
