/* Theme5: hide cart + prices, app-redirect modal */

body.body_theme5 #floatingCartBtn,
body.body_theme5 .t5-storefront-header__cart,
body.body_theme5 .t5-storefront-header__aside,
body.body_theme5 .mobile-navbar .cart-box,
body.body_theme5 .product-card__actions,
body.body_theme5 .product-card__price-row,
body.body_theme5 .product-card__price,
body.body_theme5 .product-card__price-old,
body.body_theme5 .product-price,
body.body_theme5 .offer-badge:not(.product-card__badge--stock),
body.body_theme5 .product-badge2,
body.body_theme5 #add_to_cart,
body.body_theme5 #buy_now,
body.body_theme5 .add_to_single_cart,
body.body_theme5 .cart-amount,
body.body_theme5 .product-quantity,
body.body_theme5 .qtyValue,
body.body_theme5 .toolbar-item a[href*="/cart"],
body.body_theme5 .product-button-group .product-button:not(.wishlist_store):not([href*="wa.me"]),
body.body_theme5 .product-badge2 {
    display: none !important;
}

body.body_theme5 .p-action-button .js-open-app-redirect {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

body.body_theme5.t5-app-modal-open {
    overflow: hidden;
}

body.body_theme5 .t5-app-modal[hidden] {
    display: none !important;
}

body.body_theme5 .t5-app-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body.body_theme5 .t5-app-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

body.body_theme5 .t5-app-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    background: #fff;
    border-radius: 18px;
    padding: 28px 22px 22px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    animation: t5AppModalIn 0.22s ease;
}

@keyframes t5AppModalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

body.body_theme5 .t5-app-modal__close {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
}

body.body_theme5 .t5-app-modal__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background: rgba(20, 33, 171, 0.1);
    color: #1421AB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

body.body_theme5 .t5-app-modal__title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
    text-transform: none !important;
}

body.body_theme5 .t5-app-modal__text {
    margin: 0 0 18px;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    text-transform: none !important;
}

body.body_theme5 .t5-app-modal__primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    background: #1421AB;
    color: #fff !important;
    font-weight: 800;
    text-decoration: none !important;
    text-transform: none !important;
    margin-bottom: 14px;
}

body.body_theme5 .t5-app-modal__primary:hover {
    background: #0f1890;
    color: #fff !important;
}

body.body_theme5 .t5-app-modal__stores {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

body.body_theme5 .t5-app-modal__store {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 72px;
    padding: 10px 6px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f9fafb;
    color: #111827 !important;
    text-decoration: none !important;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: none !important;
}

body.body_theme5 .t5-app-modal__store i,
body.body_theme5 .t5-app-modal__store img {
    font-size: 1.1rem;
    width: 18px;
    height: 18px;
}

body.body_theme5 .t5-app-modal__store.is-active {
    border-color: rgba(20, 33, 171, 0.45);
    background: rgba(20, 33, 171, 0.06);
    color: #1421AB !important;
}

body.body_theme5 .product-card__link,
body.body_theme5 .product-title a,
body.body_theme5 a[href*="/product/"] {
    cursor: pointer;
}

body.body_theme5 .product-card,
body.body_theme5 .product-list {
    cursor: pointer;
}

/* Catalog / related listings: keep prices gone */
body.body_theme5 .product-card-body .product-price,
body.body_theme5 .product-card-body del {
    display: none !important;
}
