/* TongueBite PDP Layout v1.5
   Neutral mode: no forced theme/header/body colors. Colors should come from Astra/WordPress settings. */

body.single-product .ast-container,
body.single-product .site-content .ast-container {
    max-width: 1240px;
}

body.single-product div.product {
    overflow: visible !important;
}

body.single-product .tb-pdp-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
    gap: 46px;
    align-items: start;
    margin-top: 0;
    overflow: visible !important;
}

body.single-product .tb-pdp-top-grid > .woocommerce-product-gallery,
body.single-product .tb-pdp-top-grid > .images {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    min-height: 220px;
    background: transparent !important;
}

body.single-product .tb-pdp-top-grid > .summary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 4px;
}

body.single-product .tb-pdp-top-grid > .onsale {
    position: absolute;
    z-index: 12;
}

body.single-product .woocommerce-product-gallery__wrapper {
    margin: 0 !important;
}


body.single-product .woocommerce-product-gallery__image {
    text-align: center;
}

body.single-product .woocommerce-product-gallery__image img {
    display: block;
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
    opacity: 1 !important;
    visibility: visible !important;
}


body.single-product .flex-control-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 12px !important;
    padding: 0 !important;
    list-style: none !important;
}

body.single-product .flex-control-thumbs li {
    width: 68px !important;
    height: 68px;
    margin: 0 !important;
    border: 1px solid rgba(0,0,0,.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.single-product .flex-control-thumbs img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    opacity: 1 !important;
}

body.single-product .tb-brand-label {
    font-size: 13px;
    line-height: 1.2;
    font-style: italic;
    margin-bottom: 8px;
    color: inherit;
    opacity: .85;
}

body.single-product .product_title.entry-title {
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.12;
    font-weight: 700;
    margin: 0 0 10px;
}

body.single-product .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px !important;
}

body.single-product .woocommerce-review-link {
    font-size: 13px;
    opacity: .75;
}

body.single-product p.price,
body.single-product span.price {
    font-size: 24px !important;
    line-height: 1.2;
    font-weight: 500;
    margin: 0 0 18px !important;
}

body.single-product .stock {
    font-size: 14px !important;
    margin: 0 0 22px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.single-product .stock:before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
    opacity: .8;
}

body.single-product .tb-delivery-note {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    margin: 0 0 24px;
    color: inherit;
    opacity: .82;
}

body.single-product .tb-delivery-note strong {
    color: inherit;
    opacity: 1;
}

body.single-product .tb-truck-icon {
    font-size: 17px;
    line-height: 1;
}

body.single-product form.cart,
body.single-product .woocommerce-variation-add-to-cart {
    margin: 0 0 28px !important;
}

body.single-product table.variations {
    margin-bottom: 20px !important;
}

body.single-product table.variations th,
body.single-product table.variations td {
    display: block;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    text-align: left;
}

body.single-product table.variations label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 9px;
    display: block;
}

body.single-product table.variations select.tb-hidden-select {
    display: none !important;
}

body.single-product .tb-size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 7px 0 8px;
}

body.single-product .tb-size-btn {
    border: 1px solid rgba(0,0,0,.18);
    background: transparent;
    color: inherit;
    min-width: 66px;
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    border-radius: 0;
}

body.single-product .tb-size-btn.is-selected {
    background: var(--ast-global-color-0, currentColor);
    color: var(--ast-global-color-5, #fff);
    border-color: var(--ast-global-color-0, currentColor);
}

body.single-product .reset_variations {
    font-size: 12px;
    margin-left: 0 !important;
}

body.single-product .quantity {
    margin-right: 8px !important;
    border: 1px solid rgba(0,0,0,.15);
    min-height: 42px;
    display: inline-flex;
    align-items: center;
}

body.single-product .quantity input.qty {
    width: 70px !important;
    border: 0 !important;
    background: transparent !important;
    min-height: 40px;
    text-align: center;
    padding: 0;
}

body.single-product .single_add_to_cart_button.button {
    min-width: 235px;
    min-height: 42px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    padding: 0 28px !important;
}

body.single-product .tb-pdp-accordion {
    border-top: 1px solid rgba(0,0,0,.16);
    border-bottom: 1px solid rgba(0,0,0,.16);
    margin: 6px 0 22px;
}

body.single-product .tb-pdp-accordion-title {
    width: 100%;
    background: transparent;
    color: inherit;
    border: 0;
    padding: 15px 0;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

body.single-product .tb-pdp-accordion-content {
    display: none;
    font-size: 13px;
    line-height: 1.7;
    padding: 0 8px 16px;
    color: inherit;
    opacity: .82;
}

body.single-product .tb-pdp-accordion-content img {
    max-width: 100%;
    height: auto;
    opacity: 1 !important;
    visibility: visible !important;
}

body.single-product .tb-pdp-attributes table.shop_attributes {
    width: 100%;
    margin: 0;
    border: 0;
}

body.single-product .tb-pdp-attributes table.shop_attributes th,
body.single-product .tb-pdp-attributes table.shop_attributes td {
    border: 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
    background: transparent !important;
    padding: 8px 0;
    font-size: 13px;
    color: inherit;
}

body.single-product .tb-pdp-attributes table.shop_attributes th {
    width: 42%;
    font-weight: 700;
    padding-right: 14px;
}

body.single-product .tb-pdp-attributes table.shop_attributes p {
    margin: 0;
}

body.single-product .tb-pdp-accordion.is-open .tb-pdp-accordion-content {
    display: block;
}

body.single-product .tb-pay-box {
    border: 1px solid rgba(0,0,0,.16);
    padding: 18px 18px 16px;
    margin: 0 0 22px;
    background: transparent;
}

body.single-product .tb-pay-box strong {
    display: block;
    font-size: 16px;
    margin-bottom: 12px;
}

body.single-product .tb-pay-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

body.single-product .tb-pay-icons span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 2px 7px;
    border: 1px solid rgba(0,0,0,.14);
    color: inherit;
    font-size: 11px;
    font-weight: 700;
    border-radius: 2px;
}

body.single-product .tb-pay-box p {
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
    color: inherit;
    opacity: .8;
}

body.single-product .tb-trust-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 26px;
    margin: 14px 0 24px;
}

body.single-product .tb-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

body.single-product .tb-trust-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 50%;
    line-height: 1;
}

body.single-product .tb-lock-mark {
    font-size: 24px;
    line-height: 1;
}

/* Default WooCommerce tabs are removed by PHP settings. If you disable that setting, tabs can show normally. */

@media (max-width: 921px) {
    body.single-product .tb-pdp-top-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    body.single-product .single_add_to_cart_button.button {
        min-width: 180px;
    }
}

@media (max-width: 544px) {
    body.single-product .ast-container,
    body.single-product .site-content .ast-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    body.single-product .flex-control-thumbs {
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 3px !important;
    }

    body.single-product .flex-control-thumbs li {
        min-width: 56px;
        width: 56px !important;
        height: 56px;
    }

    body.single-product .single_add_to_cart_button.button {
        min-width: 100%;
        margin-top: 10px;
    }
}


body.single-product .tb-bought-together {
    clear: both;
    margin: 22px 0 34px;
    padding: 22px;
    border: 1px solid rgba(0,0,0,.12);
    background: transparent;
}

body.single-product .tb-bought-together h2 {
    font-size: 20px;
    line-height: 1.25;
    margin: 0 0 16px;
}

body.single-product .tb-bundle-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

body.single-product .tb-bundle-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    border: 1px solid rgba(0,0,0,.10);
    padding: 10px;
    background: transparent;
}

body.single-product .tb-bundle-image img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    display: block;
}

body.single-product .tb-bundle-title {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    margin-bottom: 6px;
}

body.single-product .tb-bundle-price {
    font-size: 13px;
    margin-bottom: 8px;
}

body.single-product .tb-bundle-check,
body.single-product .tb-bundle-choose {
    font-size: 12px;
}

body.single-product .tb-bundle-button {
    min-height: 40px;
    padding: 0 22px !important;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 544px) {
    body.single-product .tb-bought-together {
        padding: 14px;
    }

    body.single-product .tb-bundle-products {
        grid-template-columns: 1fr;
    }
}


body.single-product .tb-you-may-like {
    clear: both;
    margin: 24px 0 0;
    padding: 0 0 26px;
    border-bottom: 1px solid rgba(0,0,0,.10);
    background: transparent;
}

body.single-product .tb-you-may-like h2,
body.single-product .tb-reviews-below-aplus h2 {
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 18px;
}

body.single-product .tb-yml-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

body.single-product .tb-yml-card {
    border: 1px solid rgba(0,0,0,.10);
    padding: 12px;
    background: transparent;
}

body.single-product .tb-yml-image {
    display: block;
    margin-bottom: 10px;
    text-align: center;
}

body.single-product .tb-yml-image img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    display: block;
}

body.single-product .tb-yml-title {
    display: block;
    min-height: 38px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    margin-bottom: 8px;
}

body.single-product .tb-yml-price {
    font-size: 14px;
    font-weight: 700;
}

body.single-product .tb-reviews-below-aplus {
    clear: both;
    margin: 34px 0 0;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,.10);
}

body.single-product .tb-reviews-below-aplus #reviews,
body.single-product .tb-reviews-below-aplus .woocommerce-Reviews {
    margin-top: 0;
}

@media (max-width: 921px) {
    body.single-product .tb-yml-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 544px) {
    body.single-product .tb-yml-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    body.single-product .tb-yml-card {
        padding: 9px;
    }

    body.single-product .tb-yml-image img {
        max-height: 135px;
    }
}
