@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* =========================================================
   MASTERBOOK SINGLE PRODUCT — COMPACT REDESIGN v1.3
========================================================= */

.masterbook-single-product-page {
    --mbsp-primary: #a85a0a;
    --mbsp-primary-dark: #713600;
    --mbsp-gold: #c98b46;
    --mbsp-dark: #29231f;
    --mbsp-text: #655e58;
    --mbsp-muted: #978e86;
    --mbsp-border: #eadfd5;
    --mbsp-soft: #fbf7f2;
    --mbsp-white: #ffffff;
}

.masterbook-single-product-page,
.masterbook-single-product-page *,
.masterbook-single-product-page *::before,
.masterbook-single-product-page *::after {
    box-sizing: border-box;
    font-family: "Poppins", Arial, sans-serif !important;
}

.mbsp-product-page {
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--mbsp-dark);
    font-size: 12px;
}

.mbsp-page-background {
    width: 100%;
    padding: 20px 20px 64px;
    background:
        radial-gradient(circle at 94% 3%, rgba(201, 139, 70, 0.10), transparent 22%),
        linear-gradient(180deg, #fffdfa 0%, #ffffff 42%, #fffaf5 100%);
}

.mbsp-container {
    width: min(1240px, 100%);
    margin-inline: auto;
}

/* =========================================================
   HIDE DUPLICATE THEME SECTIONS
========================================================= */

body.masterbook-single-product-page .related.products,
body.masterbook-single-product-page .upsells.products,
body.masterbook-single-product-page .up-sells.products,
body.masterbook-single-product-page .widget_recently_viewed_products,
body.masterbook-single-product-page .woocommerce.widget_recently_viewed_products,
body.masterbook-single-product-page .recently-viewed-products,
body.masterbook-single-product-page .recently-viewed,
body.masterbook-single-product-page .product-recently-viewed,
body.masterbook-single-product-page .woocommerce-recently-viewed-products,
body.masterbook-single-product-page .klb-recently-viewed,
body.masterbook-single-product-page [class*="recently-viewed"] {
    display: none !important;
}

/* =========================================================
   BREADCRUMB
========================================================= */

.mbsp-breadcrumb-container {
    margin-bottom: 15px;
}

.mbsp-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 !important;
    color: var(--mbsp-muted) !important;
    font-size: 9px !important;
    line-height: 1.5;
}

.mbsp-breadcrumb a {
    color: var(--mbsp-text) !important;
    text-decoration: none !important;
}

.mbsp-breadcrumb a:hover {
    color: var(--mbsp-primary) !important;
}

.mbsp-breadcrumb-separator {
    color: #c7b8aa;
}

/* =========================================================
   MAIN PRODUCT
========================================================= */

.mbsp-product-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 4vw, 52px);
    align-items: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--mbsp-border);
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(69, 42, 18, 0.06);
}

/* Gallery */

.mbsp-gallery {
    min-width: 0;
}

.mbsp-main-image-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 465px;
    padding: 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 38%, #ffffff 0%, #faf5ef 68%, #f5ece2 100%);
    border: 1px solid #e9ddd1;
    border-radius: 15px;
}

.mbsp-main-image-stage::before,
.mbsp-main-image-stage::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(168, 90, 10, 0.07);
    border-radius: 50%;
}

.mbsp-main-image-stage::before {
    right: -90px;
    bottom: -110px;
    width: 260px;
    height: 260px;
}

.mbsp-main-image-stage::after {
    top: -70px;
    left: -70px;
    width: 180px;
    height: 180px;
}

.mbsp-main-image-link {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.mbsp-main-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 20px 20px rgba(54, 34, 17, 0.16));
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.mbsp-main-image-link:hover .mbsp-main-image {
    transform: translateY(-4px) scale(1.012);
}

.mbsp-product-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mbsp-product-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 5px 9px;
    border-radius: 50px;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.mbsp-sale-badge {
    color: #ffffff;
    background: var(--mbsp-primary);
}

.mbsp-featured-badge {
    color: #6a3b0e;
    background: #fff0d8;
    border: 1px solid #e5c18f;
}

.mbsp-image-hint {
    position: absolute;
    right: 12px;
    bottom: 11px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    color: var(--mbsp-text);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--mbsp-border);
    border-radius: 7px;
    font-size: 6.5px;
    backdrop-filter: blur(7px);
}

.mbsp-image-hint svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: var(--mbsp-primary);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mbsp-thumbnails {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
    padding-bottom: 3px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.mbsp-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    min-width: 66px;
    height: 78px;
    padding: 6px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--mbsp-border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mbsp-thumbnail:hover,
.mbsp-thumbnail.is-active {
    border-color: var(--mbsp-primary);
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(77, 47, 22, 0.09);
}

.mbsp-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Summary */

.mbsp-summary {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mbsp-category-label {
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 6px 9px;
    color: var(--mbsp-primary);
    background: #fff4e6;
    border: 1px solid #ead0ad;
    border-radius: 50px;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mbsp-product-title {
    margin: 0 !important;
    color: var(--mbsp-dark) !important;
    font-size: clamp(27px, 3vw, 39px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.8px;
}

.mbsp-rating-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 21px;
    margin-top: 11px;
}

.mbsp-rating-stars .star-rating {
    float: none !important;
    margin: 0 !important;
    color: #d9932f;
    font-size: 12px;
}

.mbsp-rating-score {
    color: var(--mbsp-dark);
    font-size: 9px;
    font-weight: 700;
}

.mbsp-review-count,
.mbsp-no-review {
    color: var(--mbsp-muted);
    font-size: 8px;
}

.mbsp-price {
    margin-top: 14px;
    color: var(--mbsp-primary);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.mbsp-price p.price {
    margin: 0 !important;
}

.mbsp-price del {
    margin-right: 6px;
    color: #aaa098;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
}

.mbsp-price ins {
    color: var(--mbsp-primary);
    text-decoration: none;
}

.mbsp-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 12px;
    padding: 7px 10px;
    background: #f7fbf5;
    border: 1px solid #dcebd8;
    border-radius: 8px;
}

.mbsp-stock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #4b7c3d;
    background: #e9f4e5;
    border-radius: 7px;
}

.mbsp-stock-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mbsp-stock > div {
    display: flex;
    flex-direction: column;
}

.mbsp-stock small {
    color: #7a8d74;
    font-size: 6px;
}

.mbsp-stock .stock {
    margin: 1px 0 0 !important;
    color: #3f7632 !important;
    font-size: 8px !important;
    font-weight: 600;
}

.mbsp-stock .stock.out-of-stock {
    color: #a23d31 !important;
}

.mbsp-short-description {
    margin-top: 15px;
    color: var(--mbsp-text);
    font-size: 10.5px;
    line-height: 1.75;
}

.mbsp-short-description p {
    margin: 0 0 8px;
}

.mbsp-short-description p:last-child {
    margin-bottom: 0;
}

.mbsp-quick-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 15px;
}

.mbsp-quick-info-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 8px 10px;
    background: #fbf8f4;
    border: 1px solid var(--mbsp-border);
    border-radius: 8px;
}

.mbsp-quick-info-item small {
    color: var(--mbsp-muted);
    font-size: 6px;
}

.mbsp-quick-info-item strong {
    margin-top: 3px;
    color: var(--mbsp-dark);
    font-size: 8px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* =========================================================
   PURCHASE
========================================================= */

.mbsp-purchase-box {
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid var(--mbsp-border);
}

.mbsp-purchase-box form.cart {
    margin: 0 !important;
}

.mbsp-purchase-box form.cart:not(.variations_form):not(.grouped_form) {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
}

.mbsp-purchase-box .quantity {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    height: 43px;
    margin: 0 !important;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dfd3c7;
    border-radius: 9px;
}

.mbsp-purchase-box .quantity .qty {
    width: 45px !important;
    height: 41px !important;
    min-height: 41px !important;
    padding: 0 4px !important;
    color: var(--mbsp-dark) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    font-size: 9px;
    font-weight: 600;
    text-align: center;
    appearance: textfield;
}

.mbsp-purchase-box .quantity .qty::-webkit-inner-spin-button,
.mbsp-purchase-box .quantity .qty::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.mbsp-quantity-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 41px;
    padding: 0;
    color: var(--mbsp-primary);
    background: #fff8ef;
    border: 0;
    outline: 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.mbsp-quantity-button:hover {
    color: #ffffff;
    background: var(--mbsp-primary);
}

/* Sembunyikan add-to-cart asli, tetapi tetap dipakai validasi JS. */
.mbsp-purchase-box .single_add_to_cart_button {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.mbsp-buy-now {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1 1 210px;
    min-width: 185px;
    min-height: 43px !important;
    margin: 0 !important;
    padding: 9px 18px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #c57b2d, var(--mbsp-primary)) !important;
    border: 1px solid var(--mbsp-primary) !important;
    border-radius: 9px !important;
    box-shadow: 0 9px 20px rgba(168, 90, 10, 0.17);
    font-size: 9px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.mbsp-buy-now:hover {
    background: var(--mbsp-primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(113, 54, 0, 0.21);
}

.mbsp-buy-now svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Variable product */

.mbsp-purchase-box table.variations {
    width: 100% !important;
    margin: 0 0 12px !important;
    border: 0 !important;
}

.mbsp-purchase-box table.variations tr,
.mbsp-purchase-box table.variations th,
.mbsp-purchase-box table.variations td {
    display: block;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
}

.mbsp-purchase-box table.variations tr {
    margin-bottom: 10px;
}

.mbsp-purchase-box table.variations label {
    display: block;
    margin-bottom: 6px;
    color: var(--mbsp-dark);
    font-size: 8px;
    font-weight: 600;
}

.mbsp-purchase-box table.variations select {
    width: 100% !important;
    height: 42px;
    padding: 0 11px;
    color: var(--mbsp-dark);
    background: #ffffff;
    border: 1px solid #dfd3c7;
    border-radius: 8px;
    outline: none;
    font-size: 9px;
}

.mbsp-purchase-box .reset_variations {
    display: inline-block !important;
    margin-top: 5px;
    color: var(--mbsp-primary) !important;
    font-size: 7px !important;
    text-decoration: none !important;
}

.mbsp-purchase-box .single_variation_wrap {
    width: 100%;
}

.mbsp-purchase-box .woocommerce-variation {
    margin-bottom: 10px;
}

.mbsp-purchase-box .woocommerce-variation-price {
    color: var(--mbsp-primary);
    font-size: 16px;
    font-weight: 700;
}

.mbsp-purchase-box .woocommerce-variation-add-to-cart {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
}

/* Benefits */

.mbsp-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 14px;
}

.mbsp-benefit {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 8px;
    background: #fcfaf7;
    border: 1px solid var(--mbsp-border);
    border-radius: 8px;
}

.mbsp-benefit > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    color: var(--mbsp-primary);
    background: #fff1df;
    border-radius: 7px;
}

.mbsp-benefit svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mbsp-benefit > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mbsp-benefit strong {
    color: var(--mbsp-dark);
    font-size: 7px;
    font-weight: 600;
}

.mbsp-benefit small {
    margin-top: 2px;
    color: var(--mbsp-muted);
    font-size: 5.5px;
    line-height: 1.4;
}

/* =========================================================
   PRODUCT DETAILS
========================================================= */

.mbsp-detail-section {
    margin-top: 24px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--mbsp-border);
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(66, 40, 17, 0.04);
}

.mbsp-tabs {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 9px;
    overflow-x: auto;
    background: #faf6f1;
    border-bottom: 1px solid var(--mbsp-border);
}

.mbsp-tab-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 105px;
    min-height: 38px;
    padding: 8px 14px;
    color: var(--mbsp-text);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    outline: none;
    font-size: 8px;
    font-weight: 600;
    cursor: pointer;
}

.mbsp-tab-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    color: var(--mbsp-primary);
    background: #fff0df;
    border-radius: 50px;
    font-size: 6px;
}

.mbsp-tab-button:hover,
.mbsp-tab-button.is-active {
    color: var(--mbsp-primary);
    background: #ffffff;
    border-color: var(--mbsp-border);
    box-shadow: 0 4px 11px rgba(62, 38, 17, 0.05);
}

.mbsp-tab-content {
    padding: clamp(22px, 3vw, 34px);
}

.mbsp-tab-panel {
    display: none;
}

.mbsp-tab-panel.is-active {
    display: block;
}

.mbsp-panel-heading {
    margin-bottom: 17px;
}

.mbsp-panel-heading > span,
.mbsp-related-heading span {
    display: block;
    margin-bottom: 4px;
    color: var(--mbsp-primary);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.mbsp-panel-heading h2,
.mbsp-related-heading h2 {
    margin: 0;
    color: var(--mbsp-dark);
    font-size: clamp(21px, 2.3vw, 29px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.mbsp-description-content {
    max-width: 950px;
    color: var(--mbsp-text);
    font-size: 10.5px;
    line-height: 1.8;
}

.mbsp-description-content p {
    margin: 0 0 12px;
}

.mbsp-description-content h2,
.mbsp-description-content h3,
.mbsp-description-content h4 {
    margin: 21px 0 8px;
    color: var(--mbsp-dark);
    font-weight: 700;
}

.mbsp-description-content h2 { font-size: 20px; }
.mbsp-description-content h3 { font-size: 17px; }
.mbsp-description-content h4 { font-size: 14px; }

.mbsp-description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Attributes */

.mbsp-attributes table.shop_attributes {
    width: 100%;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate;
    border-spacing: 0 7px;
}

.mbsp-attributes table.shop_attributes tr {
    background: #fbf8f4;
}

.mbsp-attributes table.shop_attributes th,
.mbsp-attributes table.shop_attributes td {
    padding: 11px 14px !important;
    border: 0 !important;
    font-size: 9px;
    line-height: 1.6;
}

.mbsp-attributes table.shop_attributes th {
    width: 28%;
    color: var(--mbsp-dark);
    font-weight: 600;
    text-align: left;
    border-radius: 8px 0 0 8px !important;
}

.mbsp-attributes table.shop_attributes td {
    color: var(--mbsp-text);
    font-style: normal !important;
    border-radius: 0 8px 8px 0 !important;
}

.mbsp-attributes table.shop_attributes p {
    margin: 0 !important;
    padding: 0 !important;
}

/* Reviews */

.mbsp-reviews-content #reviews,
.mbsp-reviews-content #comments {
    width: 100%;
    margin: 0;
}

.mbsp-reviews-content .woocommerce-Reviews-title {
    display: none;
}

.mbsp-reviews-content ol.commentlist {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.mbsp-reviews-content ol.commentlist li {
    margin-bottom: 11px !important;
}

.mbsp-reviews-content ol.commentlist li .comment_container {
    display: flex;
    gap: 11px;
    padding: 13px;
    background: #fbf8f4;
    border: 1px solid var(--mbsp-border);
    border-radius: 9px;
}

.mbsp-reviews-content ol.commentlist li img.avatar {
    position: static !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50%;
}

.mbsp-reviews-content .comment-text {
    flex: 1;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 9px;
}

.mbsp-reviews-content #review_form_wrapper {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--mbsp-border);
}

.mbsp-reviews-content input[type="text"],
.mbsp-reviews-content input[type="email"],
.mbsp-reviews-content textarea {
    width: 100%;
    padding: 10px 11px;
    color: var(--mbsp-dark);
    background: #ffffff;
    border: 1px solid #ded2c6;
    border-radius: 8px;
    outline: none;
    font-size: 9px;
}

.mbsp-reviews-content textarea {
    min-height: 115px;
    resize: vertical;
}

.mbsp-reviews-content input[type="submit"] {
    min-height: 39px;
    padding: 8px 17px;
    color: #ffffff;
    background: var(--mbsp-primary);
    border: 0;
    border-radius: 8px;
    font-size: 8px;
    font-weight: 600;
    cursor: pointer;
}

.mbsp-empty-state {
    padding: 21px;
    color: var(--mbsp-text);
    background: #fbf8f4;
    border: 1px dashed #dac8b7;
    border-radius: 10px;
    text-align: center;
}

.mbsp-empty-state p {
    margin: 0;
    color: var(--mbsp-dark);
    font-size: 9px;
    font-weight: 600;
}

.mbsp-empty-state small {
    display: block;
    margin-top: 4px;
    color: var(--mbsp-muted);
    font-size: 7px;
}

/* =========================================================
   CUSTOM RELATED BOOKS
========================================================= */

.mbsp-related-section {
    margin-top: 39px;
    padding-top: 5px;
}

.mbsp-related-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 26px;
    margin-bottom: 18px;
}

.mbsp-related-heading > div {
    max-width: 700px;
}

.mbsp-related-heading p {
    max-width: 390px;
    margin: 0;
    color: var(--mbsp-text);
    font-size: 8.5px;
    line-height: 1.7;
}

.mbsp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.mbsp-related-card {
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--mbsp-border);
    border-radius: 13px;
    box-shadow: 0 8px 22px rgba(60, 37, 17, 0.045);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.mbsp-related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 90, 10, 0.30);
    box-shadow: 0 15px 30px rgba(60, 37, 17, 0.085);
}

.mbsp-related-image-link,
.mbsp-related-title a {
    text-decoration: none !important;
}

.mbsp-related-image-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 230px;
    padding: 15px;
    overflow: hidden;
    background: linear-gradient(145deg, #fbf7f2, #f6ede4);
}

.mbsp-related-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: contain;
    filter: drop-shadow(0 13px 13px rgba(54, 34, 17, 0.14));
    transition: transform 0.3s ease;
}

.mbsp-related-card:hover .mbsp-related-image {
    transform: translateY(-3px) scale(1.018);
}

.mbsp-related-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 5px 8px;
    color: #ffffff;
    background: var(--mbsp-primary);
    border-radius: 50px;
    font-size: 6px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.mbsp-related-card-content {
    padding: 13px;
}

.mbsp-related-category {
    display: block;
    margin-bottom: 6px;
    color: var(--mbsp-primary);
    font-size: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mbsp-related-title {
    min-height: 38px;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.mbsp-related-title a {
    color: var(--mbsp-dark) !important;
}

.mbsp-related-title a:hover {
    color: var(--mbsp-primary) !important;
}

.mbsp-related-card-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid #eee4da;
}

.mbsp-related-price {
    color: var(--mbsp-primary);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

.mbsp-related-price del {
    display: block;
    color: var(--mbsp-muted);
    font-size: 8px;
    font-weight: 500;
}

.mbsp-related-price ins {
    text-decoration: none;
}

.mbsp-related-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    color: var(--mbsp-primary) !important;
    font-size: 7px;
    font-weight: 600;
    text-decoration: none !important;
}

.mbsp-related-action svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.mbsp-related-action:hover svg {
    transform: translateX(2px);
}

/* =========================================================
   WHATSAPP ORDER MODAL
========================================================= */

body.mbsp-order-modal-open {
    overflow: hidden !important;
}

.mbsp-order-modal[hidden] {
    display: none !important;
}

.mbsp-order-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.mbsp-order-overlay {
    position: absolute;
    inset: 0;
    background: rgba(28, 22, 18, 0.68);
    opacity: 0;
    backdrop-filter: blur(5px);
    transition: opacity 0.22s ease;
}

.mbsp-order-dialog {
    position: relative;
    z-index: 2;
    width: min(540px, 100%);
    max-height: calc(100vh - 36px);
    overflow-x: hidden;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e7dace;
    border-radius: 17px;
    box-shadow: 0 25px 70px rgba(20, 14, 9, 0.25);
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.mbsp-order-modal.is-open .mbsp-order-overlay {
    opacity: 1;
}

.mbsp-order-modal.is-open .mbsp-order-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.mbsp-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 19px;
    background:
        radial-gradient(circle at 90% 10%, rgba(200, 146, 82, 0.13), transparent 32%),
        #fffaf4;
    border-bottom: 1px solid #eadfd4;
}

.mbsp-order-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mbsp-order-heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    color: #ffffff;
    background: linear-gradient(135deg, #bd7228, #a85a0a);
    border-radius: 10px;
    box-shadow: 0 8px 17px rgba(168, 90, 10, 0.18);
}

.mbsp-order-heading-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mbsp-order-heading > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mbsp-order-heading small {
    color: var(--mbsp-primary);
    font-size: 6px;
    font-weight: 700;
    letter-spacing: 0.65px;
    text-transform: uppercase;
}

.mbsp-order-heading h2 {
    margin: 2px 0 0 !important;
    color: var(--mbsp-dark) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.mbsp-order-summary {
    margin: 16px 19px 0;
    padding: 13px;
    background: #fbf7f2;
    border: 1px solid #eadfd4;
    border-radius: 11px;
}

.mbsp-order-summary-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mbsp-order-summary-top > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mbsp-order-summary-top small {
    color: var(--mbsp-muted);
    font-size: 6px;
}

.mbsp-order-summary-top strong {
    margin-top: 3px;
    color: var(--mbsp-dark);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.mbsp-modal-variation {
    margin-top: 3px;
    color: var(--mbsp-primary);
    font-size: 7px;
    line-height: 1.5;
}

.mbsp-order-summary-badge {
    flex: 0 0 auto;
    padding: 5px 8px;
    color: #7c430d;
    background: #fff0da;
    border: 1px solid #e6c597;
    border-radius: 50px;
    font-size: 5.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.mbsp-order-calculation {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 11px;
}

.mbsp-order-calculation-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 8px 9px;
    background: #ffffff;
    border: 1px solid #e9dfd6;
    border-radius: 8px;
}

.mbsp-order-calculation-item small {
    color: var(--mbsp-muted);
    font-size: 5.5px;
}

.mbsp-order-calculation-item strong {
    margin-top: 3px;
    color: var(--mbsp-dark);
    font-size: 8px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.mbsp-order-total {
    background: #fff4e7;
    border-color: #e6c79d;
}

.mbsp-order-total strong {
    color: var(--mbsp-primary);
    font-size: 9px;
}

.mbsp-order-shipping-note {
    margin: 9px 0 0;
    color: #877c73;
    font-size: 6px;
    line-height: 1.55;
}

.mbsp-order-form {
    padding: 16px 19px 19px;
}

.mbsp-order-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.mbsp-order-field {
    min-width: 0;
}

.mbsp-order-field-full {
    grid-column: 1 / -1;
}

.mbsp-order-field label {
    display: block;
    margin-bottom: 6px;
    color: #39322d;
    font-size: 8px;
    font-weight: 600;
}

.mbsp-order-field label span {
    color: #b94a3c;
}

.mbsp-order-input,
.mbsp-order-textarea {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #ded3c8;
    border-radius: 9px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mbsp-order-input:focus-within,
.mbsp-order-textarea:focus-within {
    border-color: #bc7a36;
    box-shadow: 0 0 0 3px rgba(168, 90, 10, 0.08);
}

.mbsp-order-input > span,
.mbsp-order-textarea > span {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mbsp-primary);
    background: #fff8ef;
    border-right: 1px solid #e8ddd2;
}

.mbsp-order-textarea > span {
    align-items: flex-start;
    padding-top: 11px;
}

.mbsp-order-input svg,
.mbsp-order-textarea svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mbsp-order-input input,
.mbsp-order-textarea textarea {
    width: 100%;
    margin: 0;
    padding: 10px 11px;
    color: var(--mbsp-dark);
    background: transparent;
    border: 0;
    border-radius: 0;
    outline: 0;
    box-shadow: none;
    font-size: 8px;
    line-height: 1.55;
}

.mbsp-order-input input {
    min-height: 40px;
}

.mbsp-order-textarea textarea {
    min-height: 72px;
    resize: vertical;
}

.mbsp-order-input input::placeholder,
.mbsp-order-textarea textarea::placeholder {
    color: #aaa198;
}

.mbsp-order-error {
    margin-top: 11px;
    padding: 9px 10px;
    color: #983c32;
    background: #fff2f0;
    border: 1px solid #efc8c3;
    border-radius: 8px;
    font-size: 7px;
    line-height: 1.5;
}

.mbsp-order-actions {
    display: grid;
    grid-template-columns: 0.42fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

.mbsp-order-cancel,
.mbsp-order-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 41px;
    padding: 9px 13px;
    border-radius: 9px;
    outline: none;
    font-size: 8px;
    font-weight: 600;
    cursor: pointer;
}

.mbsp-order-cancel {
    color: #746b64;
    background: #ffffff;
    border: 1px solid #ded4cb;
}

.mbsp-order-cancel:hover {
    color: var(--mbsp-primary);
    background: #fff8ef;
    border-color: #ddb98d;
}

.mbsp-order-submit {
    color: #ffffff;
    background: #25d366;
    border: 1px solid #25d366;
    box-shadow: 0 9px 19px rgba(37, 211, 102, 0.17);
}

.mbsp-order-submit:hover {
    background: #1daf54;
    border-color: #1daf54;
    transform: translateY(-2px);
}

.mbsp-order-submit svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mbsp-order-privacy {
    margin: 8px 0 0;
    color: var(--mbsp-muted);
    font-size: 5.5px;
    line-height: 1.5;
    text-align: center;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media screen and (max-width: 1100px) {
    .mbsp-container {
        width: min(1080px, 100%);
    }

    .mbsp-product-hero {
        gap: 30px;
        padding: 21px;
    }

    .mbsp-main-image-stage {
        min-height: 420px;
    }

    .mbsp-main-image {
        max-height: 355px;
    }

    .mbsp-product-title {
        font-size: 31px !important;
    }

    .mbsp-related-image-stage {
        height: 205px;
    }
}

@media screen and (max-width: 900px) {
    .mbsp-page-background {
        padding-inline: 15px;
    }

    .mbsp-product-hero {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .mbsp-main-image-stage {
        min-height: 460px;
    }

    .mbsp-main-image {
        max-height: 395px;
    }

    .mbsp-benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mbsp-related-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .mbsp-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mbsp-related-image-stage {
        height: 250px;
    }
}

@media screen and (max-width: 600px) {
    .mbsp-page-background {
        padding: 13px 11px 46px;
    }

    .mbsp-breadcrumb-container {
        margin-bottom: 11px;
    }

    .mbsp-breadcrumb {
        font-size: 7px !important;
    }

    .mbsp-product-hero {
        gap: 20px;
        padding: 11px;
        border-radius: 14px;
    }

    .mbsp-main-image-stage {
        min-height: 355px;
        padding: 22px 16px;
        border-radius: 11px;
    }

    .mbsp-main-image {
        max-height: 305px;
    }

    .mbsp-image-hint {
        display: none;
    }

    .mbsp-product-badges {
        top: 10px;
        left: 10px;
    }

    .mbsp-thumbnail {
        width: 58px;
        min-width: 58px;
        height: 68px;
    }

    .mbsp-product-title {
        font-size: 25px !important;
        line-height: 1.22 !important;
    }

    .mbsp-price {
        font-size: 21px;
    }

    .mbsp-short-description {
        font-size: 9.5px;
    }

    .mbsp-quick-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mbsp-purchase-box form.cart:not(.variations_form):not(.grouped_form),
    .mbsp-purchase-box .woocommerce-variation-add-to-cart {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 8px;
    }

    .mbsp-purchase-box .mbsp-buy-now {
        width: 100%;
        min-width: 0;
    }

    .mbsp-benefits {
        grid-template-columns: 1fr;
    }

    .mbsp-detail-section {
        margin-top: 18px;
        border-radius: 12px;
    }

    .mbsp-tabs {
        padding: 7px;
    }

    .mbsp-tab-button {
        min-width: 93px;
        min-height: 36px;
        padding: 7px 10px;
        font-size: 7px;
    }

    .mbsp-tab-content {
        padding: 18px 13px;
    }

    .mbsp-panel-heading {
        margin-bottom: 13px;
    }

    .mbsp-panel-heading h2,
    .mbsp-related-heading h2 {
        font-size: 21px;
    }

    .mbsp-description-content {
        font-size: 9.5px;
        line-height: 1.75;
    }

    .mbsp-attributes table.shop_attributes th,
    .mbsp-attributes table.shop_attributes td {
        display: block;
        width: 100%;
        padding: 9px 10px !important;
        border-radius: 0 !important;
        font-size: 8px;
    }

    .mbsp-attributes table.shop_attributes th {
        padding-bottom: 2px !important;
    }

    .mbsp-attributes table.shop_attributes td {
        padding-top: 2px !important;
        padding-bottom: 9px !important;
    }

    .mbsp-related-section {
        margin-top: 31px;
    }

    .mbsp-related-heading p {
        font-size: 7.5px;
    }

    .mbsp-related-grid {
        gap: 9px;
    }

    .mbsp-related-image-stage {
        height: 175px;
        padding: 10px;
    }

    .mbsp-related-card-content {
        padding: 10px;
    }

    .mbsp-related-title {
        min-height: 34px;
        font-size: 10px;
    }

    .mbsp-related-card-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        margin-top: 9px;
        padding-top: 8px;
    }

    .mbsp-related-price {
        font-size: 9px;
    }

    .mbsp-order-modal {
        align-items: flex-end;
        padding: 0;
    }

    .mbsp-order-dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 17px 17px 0 0;
        transform: translateY(30px);
    }

    .mbsp-order-header {
        padding: 14px;
    }

    .mbsp-order-heading-icon {
        width: 35px;
        height: 35px;
        min-width: 35px;
    }

    .mbsp-order-heading h2 {
        font-size: 16px !important;
    }

    .mbsp-order-summary {
        margin: 13px 12px 0;
        padding: 11px;
    }

    .mbsp-order-summary-top strong {
        font-size: 11px;
    }

    .mbsp-order-calculation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mbsp-order-total {
        grid-column: 1 / -1;
    }

    .mbsp-order-form {
        padding: 13px 12px 17px;
    }

    .mbsp-order-form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mbsp-order-field-full {
        grid-column: auto;
    }

    .mbsp-order-actions {
        grid-template-columns: 1fr;
    }

    .mbsp-order-submit {
        grid-row: 1;
    }

    .mbsp-order-cancel {
        grid-row: 2;
    }
}

@media screen and (max-width: 390px) {
    .mbsp-main-image-stage {
        min-height: 325px;
    }

    .mbsp-main-image {
        max-height: 280px;
    }

    .mbsp-product-title {
        font-size: 23px !important;
    }

    .mbsp-related-image-stage {
        height: 150px;
    }

    .mbsp-related-title {
        font-size: 9px;
    }
}
