/*
 * MBK Core
 *
 * Global foundation only.
 * Feature-specific styling will be migrated here gradually.
 */

.mbk-core {
    box-sizing: border-box;
}

.mbk-core *,
.mbk-core *::before,
.mbk-core *::after {
    box-sizing: inherit;
}


/* ============================================================
   MBK PRODUCT PAGE
   ============================================================ */

#mbk-product-page {
    background: #fff;
    color: #172033;
    width: 100%;
}

.mbk-product-container {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0 70px;
}

.mbk-product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
    color: #7b8494;
    font-size: 13px;
    overflow: hidden;
}

.mbk-product-breadcrumb a {
    color: #667085;
    text-decoration: none;
    white-space: nowrap;
}

.mbk-product-breadcrumb-current {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mbk-product-main {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr);
    gap: 70px;
    align-items: start;
}

@media (min-width: 901px) {
    .mbk-product-main > .mbk-product-gallery {
        display: grid;
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 18px;
    }
}

.mbk-product-thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mbk-product-thumb {
    width: 76px;
    height: 76px;
    padding: 5px;
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 10px;
    cursor: pointer;
}

.mbk-product-thumb.is-active {
    border: 2px solid #ff6900;
}

.mbk-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mbk-product-main-image {
    min-height: 560px;
    background: #fafafa;
    border-radius: 18px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mbk-product-main-image > img {
    width: 100%;
    height: 560px;
    object-fit: contain;
    padding: 35px;
}

.mbk-product-image-arrow,
.mbk-product-zoom {
    position: absolute;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    cursor: pointer;
    font-size: 20px;
}

.mbk-product-image-prev {
    left: 16px;
}

.mbk-product-image-next {
    right: 16px;
}

.mbk-product-zoom {
    right: 16px;
    bottom: 16px;
    font-size: 17px;
}

.mbk-product-info {
    padding-top: 8px;
}

.mbk-product-category {
    color: #ff6900;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.mbk-product-title {
    margin: 12px 0 14px;
    color: #172033;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.08;
    letter-spacing: -.03em;
}

.mbk-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667085;
    font-size: 14px;
}

.mbk-stars {
    color: #ffb000;
    letter-spacing: 2px;
}

.mbk-product-price {
    margin: 24px 0 20px;
    font-size: 30px;
    font-weight: 800;
    color: #172033;
}

.mbk-product-price del {
    color: #98a2b3;
    font-size: 17px;
    margin-right: 8px;
}

.mbk-product-price ins {
    text-decoration: none;
}

.mbk-product-short-description {
    color: #667085;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.mbk-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.mbk-stock span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
}

.mbk-stock-unavailable {
    color: #dc2626;
}

.mbk-stock-unavailable span {
    display: none;
}

.mbk-product-purchase {
    display: grid;
    grid-template-columns: 120px minmax(0,1fr) 54px;
    gap: 10px;
    margin-bottom: 28px;
}

.mbk-product-quantity {
    height: 54px;
    display: flex;
    align-items: center;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    overflow: hidden;
}

.mbk-product-quantity button {
    width: 36px;
    height: 100%;
    border: 0;
    background: #fff;
    cursor: pointer;
    font-size: 20px;
}

.mbk-product-quantity input {
    width: 48px;
    height: 100%;
    border: 0;
    text-align: center;
    outline: none;
    font-weight: 700;
}

.mbk-add-to-cart {
    height: 54px;
    border: 0;
    border-radius: 10px;
    background: #ff6900;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.mbk-add-to-cart:hover {
    background: #e95e00;
}

.mbk-wishlist {
    height: 54px;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 25px;
}

.mbk-product-services {
    border-top: 1px solid #eaecf0;
    border-bottom: 1px solid #eaecf0;
}

.mbk-product-services > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
    border-bottom: 1px solid #eaecf0;
}

.mbk-product-services > div:last-child {
    border-bottom: 0;
}

.mbk-product-services strong {
    font-size: 14px;
}

.mbk-product-services span {
    color: #667085;
    font-size: 13px;
}

.mbk-product-details {
    margin-top: 70px;
    border-top: 1px solid #eaecf0;
}

.mbk-product-tabs {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #eaecf0;
}

.mbk-product-tabs button {
    padding: 20px 2px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: #667085;
    font-weight: 700;
    cursor: pointer;
}

.mbk-product-tabs button.is-active {
    color: #172033;
    border-bottom-color: #ff6900;
}

.mbk-product-tab-content {
    display: none;
    padding: 30px 0;
    color: #475467;
    line-height: 1.8;
}

.mbk-product-tab-content.is-active {
    display: block;
}

.mbk-product-attributes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #eaecf0;
}

.mbk-product-attributes > div {
    background: #fff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mbk-product-attributes span {
    color: #667085;
}

.mbk-product-recommendations {
    margin-top: 60px;
}

.mbk-recommendations-heading span {
    color: #ff6900;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.mbk-recommendations-heading h2 {
    margin: 5px 0 22px;
    font-size: 28px;
}

@media (max-width: 900px) {

    .mbk-product-container {
        width: min(100% - 24px, 700px);
        padding-top: 16px;
    }

    .mbk-product-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mbk-product-gallery {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 10px;
    }

    .mbk-product-thumb {
        width: 58px;
        height: 58px;
    }

    .mbk-product-main-image {
        min-height: 380px;
    }

    .mbk-product-main-image > img {
        height: 380px;
        padding: 20px;
    }

    .mbk-product-title {
        font-size: 28px;
    }

    .mbk-product-price {
        font-size: 26px;
    }

    .mbk-product-purchase {
        grid-template-columns: 100px minmax(0,1fr) 50px;
    }

    .mbk-product-details {
        margin-top: 45px;
    }

    .mbk-product-tabs {
        gap: 20px;
        overflow-x: auto;
    }

    .mbk-product-tabs button {
        white-space: nowrap;
    }

    .mbk-product-attributes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {

    .mbk-product-gallery {
        grid-template-columns: 1fr;
    }

    .mbk-product-thumbs {
        order: 2;
        flex-direction: row;
        overflow-x: auto;
    }

    .mbk-product-main-image {
        order: 1;
        min-height: 340px;
    }

    .mbk-product-main-image > img {
        height: 340px;
    }

    .mbk-product-purchase {
        grid-template-columns: 100px 1fr;
    }

    .mbk-wishlist {
        grid-column: 1 / -1;
    }

    .mbk-product-breadcrumb {
        margin-bottom: 18px;
    }
}
