.tcap-product-view {
    margin-top: 20px;
    background: linear-gradient(180deg, #fff8fb 0%, #fffdfd 100%);
    border: 1px solid #f3c7da;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 12px 28px rgba(208, 6, 104, 0.08);
}

.tcap-badge {
    display: inline-block;
    background: #d00668;
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    padding: 7px 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tcap-short-desc {
    margin: 0 0 18px;
    color: #b64c7f;
    font-size: 16px;
    line-height: 1.9;
}

.tcap-hero-wrap {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.tcap-hero-image {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f3c7da;
    background: #fff;
    box-shadow: 0 10px 24px rgba(208, 6, 104, 0.08);
}

.tcap-hero-image img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.25s ease;
}

.tcap-hero-image img.is-fading {
    opacity: 0.15;
}

.tcap-gallery-wrap h3,
.tcap-pricing-wrap h3 {
    margin: 0 0 10px;
    color: #d00668;
    font-size: 20px;
}

.tcap-gallery-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
    gap: 10px;
}

.tcap-gallery-thumb {
    border: 0;
    padding: 0;
    cursor: pointer;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f3c7da;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tcap-gallery-thumb:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(208, 6, 104, 0.1);
}

.tcap-gallery-thumb.is-active {
    border-color: #d00668;
    box-shadow: 0 0 0 2px rgba(208, 6, 104, 0.15);
}

.tcap-gallery-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.tcap-order-wrap {
    margin: 0 0 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tcap-configurator {
    margin-bottom: 14px;
    border: 1px solid #f3c7da;
    border-radius: 16px;
    background: #fff;
    padding: 12px;
}

.tcap-configurator > h3 {
    margin: 0 0 10px;
    color: #d00668;
    font-size: 18px;
}

.tcap-configurator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.tcap-config-block h4 {
    margin: 0 0 8px;
    color: #8c315f;
    font-size: 13px;
    font-weight: 800;
}

.tcap-choice-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tcap-choice-btn {
    border: 1px solid #f3c7da;
    background: #fff8fb;
    color: #8c315f;
    min-height: 38px;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.tcap-choice-btn.is-active {
    border-color: #d00668;
    background: #d00668;
    color: #fff;
}

.tcap-config-summary {
    margin-top: 10px;
    color: #8c315f;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

.tcap-config-price {
    margin-top: 6px;
    color: #d00668;
    font-size: 20px;
    font-weight: 900;
}

.tcap-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    gap: 6px;
    background: #25d366;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.26);
    transition: all 0.2s ease;
}

button.tcap-whatsapp-btn {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.tcap-whatsapp-btn:hover {
    background: #20bd5a;
    transform: translateY(-1px);
}

.tcap-whatsapp-btn-outline {
    background: #fff;
    color: #d00668 !important;
    border: 1px solid #f3c7da;
    box-shadow: none;
}

.tcap-whatsapp-btn-outline:hover {
    background: #fff3f8;
}

.tcap-pricing-wrap {
    margin-top: 8px;
}

.tcap-pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

.tcap-pricing-card {
    background: #fff;
    border: 1px solid #f3c7da;
    border-radius: 16px;
    padding: 12px;
}

.tcap-pricing-card.is-custom-card {
    background: #fff8fb;
}

.tcap-pricing-card-head {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #f3c7da;
}

.tcap-pricing-card-head h4 {
    margin: 0;
    color: #d00668;
    font-size: 17px;
    line-height: 1.5;
}

.tcap-pricing-card-head p {
    margin: 4px 0 0;
    color: #b64c7f;
    font-size: 13px;
    font-weight: 700;
}

.tcap-pricing-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.tcap-pricing-list li {
    background: #fff8fb;
    border: 1px solid #fce3ee;
    border-radius: 12px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tcap-filling-name {
    color: #8c315f;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.tcap-price-pill {
    display: inline-block;
    padding: 5px 10px;
    background: #fce3ee;
    border: 1px solid #f3c7da;
    border-radius: 999px;
    color: #d00668;
    font-weight: 800;
    white-space: nowrap;
}

/* Backward compatibility if old markup appears in cache. */
.tcap-pricing-table-wrap {
    overflow-x: auto;
}

.tcap-pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #f3c7da;
    border-radius: 12px;
    overflow: hidden;
}

.tcap-pricing-table th,
.tcap-pricing-table td {
    text-align: right;
    padding: 12px;
    border-bottom: 1px solid #fce3ee;
    white-space: nowrap;
    font-size: 14px;
}

@media (max-width: 780px) {
    .tcap-product-view {
        padding: 16px;
        border-radius: 16px;
    }

    .tcap-hero-image img {
        max-height: 440px;
    }

    .tcap-pricing-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body.single-tc_product {
        padding-bottom: 86px;
    }

    body.single-tc_product #mobile-menu-btn,
    body.single-tc_product #mobile-menu {
        display: none !important;
    }

    body.single-tc_product .entry-title,
    body.single-tc_product h1.entry-title {
        font-size: 1.35rem !important;
        line-height: 1.35 !important;
        margin-bottom: 8px !important;
    }

    .tcap-product-view {
        margin-top: 14px;
        padding: 14px;
    }

    .tcap-short-desc {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .tcap-hero-wrap {
        gap: 10px;
        margin-bottom: 14px;
    }

    .tcap-hero-image {
        border-radius: 14px;
    }

    .tcap-hero-image img {
        max-height: 320px;
    }

    .tcap-gallery-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .tcap-order-wrap {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 45;
        background: #fff;
        border: 1px solid #f3c7da;
        border-radius: 14px;
        padding: 8px;
        box-shadow: 0 10px 25px rgba(208, 6, 104, 0.18);
    }

    .tcap-whatsapp-btn {
        flex: 1 1 calc(50% - 6px);
        width: auto;
        min-height: 44px;
    }

    .tcap-pricing-wrap h3,
    .tcap-gallery-wrap h3 {
        font-size: 18px;
    }

    .tcap-pricing-card {
        padding: 10px;
    }

    .tcap-pricing-list li {
        padding: 8px;
        align-items: flex-start;
        flex-direction: column;
    }

    .tcap-price-pill {
        width: fit-content;
    }
}
