/* ==========================================================================
   Moboplus Theme 2026 — product detail page
   ========================================================================== */

.mp-pdp {
    clear: both;
    padding-top: 18px;
}
.mp-pdp > section { margin-bottom: 26px; }

/* ---------- Top grid ---------- */
.mp-pdp__top {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr) 340px;
    gap: 22px;
    align-items: start;
    padding: 22px;
    border-radius: var(--mp-radius-xl);
    background: var(--mp-surface);
    box-shadow: var(--mp-shadow-sm);
}

/* ---------- Gallery ---------- */
.mp-gallery { position: relative; }
.mp-gallery__stage {
    position: relative;
    border-radius: var(--mp-radius-lg);
    background: var(--mp-surface-2);
    overflow: hidden;
}
.mp-gallery__main { width: 100%; }
.mp-gallery__frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 24px;
    border: 0;
    background: transparent;
    overflow: hidden;
    cursor: zoom-in;
}
.mp-gallery__frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    user-select: none;
    transition: transform .25s var(--mp-ease);
    will-change: transform;
}
.mp-gallery.has-hover-zoom .mp-gallery__stage.is-zooming .mp-gallery__frame img { transition: transform .08s linear; }
.mp-gallery__stage .mp-badge { top: 16px; right: 16px; z-index: 3; font-size: 12px; padding: 4px 12px; pointer-events: none; }
.mp-gallery__expand {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 13px;
    background: rgba(255, 255, 255, .85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--mp-text);
    font-size: 14px;
    cursor: pointer;
    box-shadow: var(--mp-shadow-sm);
    transition: background .2s, color .2s, transform .2s var(--mp-ease);
}
.mp-gallery__expand:hover { background: var(--mp-primary); color: #fff; transform: scale(1.06); }
.mp-gallery__counter {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 3;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(15, 16, 32, .65);
    color: #fff;
    font-size: 12px;
    direction: ltr;
    pointer-events: none;
}
.mp-gallery__hint {
    position: absolute;
    bottom: 12px;
    right: 50%;
    transform: translateX(50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--mp-text-2);
    font-size: 11.5px;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity .2s;
}
.mp-gallery__hint-desk { display: none; }
.mp-gallery.has-hover-zoom .mp-gallery__hint-desk { display: inline; }
.mp-gallery.has-hover-zoom .mp-gallery__hint-touch { display: none; }
.mp-gallery__stage.is-zooming .mp-gallery__hint,
.mp-gallery__stage.is-zooming .mp-gallery__counter,
.mp-gallery__stage.is-zooming .mp-badge { opacity: 0; }

.mp-gallery__thumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding: 4px 2px;
    scrollbar-width: none;
}
.mp-gallery__thumbs::-webkit-scrollbar { display: none; }
.mp-gallery__thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    padding: 6px;
    border: 2px solid var(--mp-border);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .2s var(--mp-ease);
}
.mp-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.mp-gallery__thumb:hover { transform: translateY(-2px); border-color: var(--mp-primary-100); }
.mp-gallery__thumb.is-active { border-color: var(--mp-primary); box-shadow: 0 0 0 4px var(--mp-primary-50); }

/* ---------- Full-screen viewer ---------- */
.mp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100020;
    display: flex;
    flex-direction: column;
    background: rgba(12, 12, 24, .96);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}
.mp-lightbox.is-open { opacity: 1; visibility: visible; }
.mp-lightbox__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.mp-lightbox__title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, .85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mp-lightbox__count { font-size: 13px; color: rgba(255, 255, 255, .7); direction: ltr; }
.mp-lightbox__btn,
.mp-lightbox__nav {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background .2s;
}
.mp-lightbox__btn:hover, .mp-lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.mp-lightbox__swiper { flex: 1; width: 100%; min-height: 0; }
.mp-lightbox__swiper .swiper-slide { display: flex; align-items: center; justify-content: center; }
.mp-lightbox__swiper .swiper-zoom-container { width: 100%; height: 100%; }
.mp-lightbox__swiper img {
    max-width: min(92vw, 1100px);
    max-height: calc(100vh - 200px);
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    padding: 16px;
}
.mp-lightbox__nav { position: absolute; top: 50%; z-index: 5; width: 50px; height: 50px; margin-top: -25px; border-radius: 50%; }
.mp-lightbox__prev { right: 20px; }
.mp-lightbox__next { left: 20px; }
.mp-lightbox__nav.is-disabled { opacity: .25; pointer-events: none; }
.mp-lightbox__thumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px 6px;
    overflow-x: auto;
    scrollbar-width: none;
}
.mp-lightbox__thumbs::-webkit-scrollbar { display: none; }
.mp-lightbox__thumbs .mp-gallery__thumb { flex-basis: 60px; width: 60px; height: 60px; border-color: transparent; opacity: .55; }
.mp-lightbox__thumbs .mp-gallery__thumb.is-active { opacity: 1; border-color: #fff; box-shadow: none; }
.mp-lightbox__help { margin: 0; padding: 4px 16px 14px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .55); }

/* ---------- Info ---------- */
.mp-pdp__info { min-width: 0; padding-top: 4px; }
.mp-pdp__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.mp-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--mp-surface-2);
    color: var(--mp-text-2) !important;
    font-size: 12px;
    text-decoration: none !important;
    transition: background .2s, color .2s;
}
a.mp-pill:hover { background: var(--mp-primary-50); color: var(--mp-primary) !important; }
.mp-pill--brand { background: var(--mp-primary-50); color: var(--mp-primary) !important; font-weight: 600; }
.mp-pdp__title {
    margin: 0;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.7;
    color: var(--mp-text);
}
.mp-pdp__model {
    margin-top: 4px;
    font-size: 13px;
    color: var(--mp-text-3);
    direction: ltr;
    text-align: right;
}
.mp-pdp__rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 18px;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--mp-border);
}
.mp-pdp__rating #rateYo { padding: 0; }
.mp-pdp__rating-count { font-size: 12.5px; color: var(--mp-text-3); }
.mp-pdp__subtitle {
    display: block;
    margin: 0 0 10px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--mp-text);
}
.mp-pdp__detail { font-size: 13.5px; line-height: 2.1; }
.mp-pdp__detail ul { padding-right: 18px; margin: 0; }
.mp-pdp__detail li::marker { color: var(--mp-primary); }
.mp-pdp__detail table { width: 100%; }
.mp-pdp__detail table td { padding: 8px 6px; border-bottom: 1px solid var(--mp-border); }
.mp-pdp__detail table tr:last-child td { border-bottom: 0; }
.mp-pdp__detail table td:first-child { color: var(--mp-text-3); width: 35%; }

.mp-pdp__share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.mp-pdp__share-label { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; font-size: 13px; color: var(--mp-text-2); }
.mp-pdp__share a {
    width: 36px;
    height: 36px;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: var(--mp-surface-2) !important;
    color: var(--mp-text-2) !important;
    font-size: 15px;
    transition: transform .2s var(--mp-ease), background .2s, color .2s;
}
.mp-pdp__share a:hover { transform: translateY(-2px); color: #fff !important; }
.mp-pdp__share a.telegram:hover { background: #2aa3df !important; }
.mp-pdp__share a.whatsapp:hover { background: #25d366 !important; }
.mp-pdp__share a.twitter:hover { background: #111 !important; }
.mp-pdp__share a.facebook:hover { background: #1877f2 !important; }
.mp-pdp__share a.linkedin:hover { background: #0a66c2 !important; }
.mp-pdp__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.mp-tag.tag_item {
    margin: 0;
    padding: 4px 12px;
    border: 1px solid var(--mp-border);
    border-radius: 999px;
    background: #fff;
    color: var(--mp-text-2);
    font-size: 12px;
}
.mp-tag.tag_item:hover { border-color: var(--mp-primary); color: var(--mp-primary); background: #fff; }

/* ---------- Buy box ---------- */
.mp-pdp__buy {
    position: sticky;
    top: calc(var(--mp-sticky-top) + 100px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mp-buy {
    position: relative;
    padding: 18px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-lg);
    background: linear-gradient(180deg, #fff, var(--mp-surface-2));
}
.mp-buy__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--mp-border);
    font-size: 12.5px;
}
.mp-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.mp-status--ok { background: #e7f8f1; color: #0b8a5f; }
.mp-status--off { background: #ffeef2; color: #d81b4f; }
.mp-buy__seller { display: inline-flex; align-items: center; gap: 6px; color: var(--mp-text-2); }
.mp-buy__seller i { color: var(--mp-primary); }

/* price (markup comes from Helper::priceDetail) */
.mp-buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.mp-buy__price .custom_label { width: 100%; font-size: 12.5px; color: var(--mp-text-3); }
.mp-buy__price .price_detail {
    font-size: 24px;
    font-weight: 600;
    color: var(--mp-text);
    letter-spacing: -.3px;
}
.mp-buy__price .price_detail.offered,
.mp-buy__price .offered {
    font-size: 15px;
    font-weight: 400;
    color: var(--mp-text-3);
    text-decoration: line-through;
}
.mp-buy__price .off {
    margin: 0;
    font-size: 24px !important;
    font-weight: 600;
    color: var(--mp-hot) !important;
}
/* variable prices (radio list) */
.mp-buy__price .radio-list { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.mp-buy__price .radio-product-detail {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 12px 14px 12px 12px;
    border: 1.5px solid var(--mp-border);
    border-radius: 14px;
    background: #fff;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--mp-text);
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}
.mp-buy__price .radio-product-detail:hover { border-color: var(--mp-primary-100); }
.mp-buy__price .radio-product-detail:has(input:checked) { border-color: var(--mp-primary); box-shadow: 0 0 0 4px var(--mp-primary-50); }
.mp-buy__price .radio-product-detail .off { font-size: 14px !important; }
.mp-buy__price .radio-product-detail .offered { font-size: 12.5px; }

.mp-buy__updated { margin-top: 6px; font-size: 12px; color: var(--mp-text-3); }

/* discount countdown */
.mp-buy__countdown.detail-discount-countdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 14px 0 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff0f4, #fff5ec);
    direction: rtl;
}
.mp-buy__countdown .detail-countdown-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--mp-hot);
    font-size: 12.5px;
    font-weight: 600;
}
.mp-buy__countdown .detail-countdown-timer { display: flex; gap: 4px; direction: ltr; }
.mp-buy__countdown .detail-countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 38px;
    padding: 4px 4px 3px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff5c8a, #f0346a);
    color: #fff;
    line-height: 1.2;
    box-shadow: 0 6px 12px -6px rgba(240, 52, 106, .7);
}
.mp-buy__countdown .detail-cd-num { font-size: 16px; font-weight: 600; }
.mp-buy__countdown .detail-cd-unit { font-size: 9px; opacity: .85; }

/* alerts */
.mp-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 12.5px;
    line-height: 1.9;
}
.mp-alert i { margin-top: 5px; }
.mp-alert--info { background: var(--mp-primary-50); color: var(--mp-primary-700); }
.mp-alert--warn { background: #fff5e6; color: #a35a00; }

/* actions */
.mp-buy__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.mp-buy__stock.quantity {
    margin: 0;
    padding: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--mp-hot) !important;
}
.mp-buy__stock.quantity:before { content: "\f06d"; font-family: "Font Awesome 5 Free"; font-weight: 900; margin-left: 6px; }
.mp-buy__stock.outofstock:before { content: "\f05e"; }
.mp-buy__row { display: flex; gap: 10px; }
.mp-buy__warranty {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--mp-primary-50);
    color: var(--mp-primary-700);
    font-size: 13px;
    line-height: 1.8;
}
.mp-buy__warranty i { margin-top: 5px; color: var(--mp-primary); }
.mp-stepper.select_number {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 52px;
    padding: 4px;
    margin: 0;
    border: 1.5px solid var(--mp-border);
    border-radius: 16px;
    background: #fff;
}
.mp-stepper.select_number button {
    width: 34px;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    border-radius: 12px !important;
    background: var(--mp-surface-2) !important;
    color: var(--mp-primary) !important;
    font-size: 11px;
    box-shadow: none !important;
    transition: background .2s;
}
.mp-stepper.select_number button:hover { background: var(--mp-primary-50) !important; }
.mp-stepper.select_number input {
    width: 38px !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--mp-text);
}
.mp-stepper.select_number input:focus { outline: 0; }
.mp-btn--block { width: 100%; }
.mp-buy__add.mp-btn { flex: 1; height: 52px; font-size: 14px; border-radius: 16px; }
.mp-buy__add.mp-btn[disabled] { opacity: .55; filter: grayscale(.4); cursor: not-allowed; transform: none; }
.mp-btn--disabled.mp-btn { height: 52px; background: var(--mp-surface-2); color: var(--mp-text-3) !important; box-shadow: none; cursor: not-allowed; }
.mp-btn--ghost {
    height: 46px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1.5px solid var(--mp-border) !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: var(--mp-text) !important;
    font-weight: 600;
}
.mp-buy__toggle { position: relative; display: block; }
.mp-buy__toggle .mp-btn { height: 48px; }
.mp-popover.toggle_box {
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 30;
    padding: 14px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    box-shadow: 0 24px 50px -20px rgba(15, 16, 32, .35);
}
.mp-popover__title { display: block; margin-bottom: 10px; font-weight: 600; font-size: 13.5px; }
.mp-popover__item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--mp-border);
    font-size: 13px;
}
.mp-popover__item:last-child { border-bottom: 0; }
.mp-popover__phone { direction: ltr; color: var(--mp-primary) !important; font-weight: 600; }
.mp-popover .form-control { height: 42px; border-radius: 12px; border-color: var(--mp-border); box-shadow: none; }

.mp-buy__perks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--mp-border);
    list-style: none;
    font-size: 12.5px;
    color: var(--mp-text-2);
}
.mp-buy__perks i { width: 22px; color: var(--mp-mint); }

/* support box (price-on-call categories) */
.mp-buy--support { padding: 16px 18px; }
.mp-support { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; }
.mp-support + .mp-support { border-top: 1px solid var(--mp-border); }
.mp-support__avatar {
    flex: 0 0 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mp-primary-50);
    color: var(--mp-primary);
}
.mp-support a { direction: ltr; display: inline-block; color: var(--mp-primary); font-weight: 600; }

/* ---------- Guarantees ---------- */
.mp-pdp__guarantees {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.mp-guarantee {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--mp-radius);
    background: var(--mp-surface);
    box-shadow: var(--mp-shadow-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--mp-text-2);
}
.mp-guarantee img { width: 38px; height: 38px; flex: 0 0 38px; }

/* ---------- Section nav (sticky) ---------- */
.mp-tabs {
    position: sticky;
    top: calc(var(--mp-sticky-top) + 84px);
    z-index: 40;
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: var(--mp-shadow-sm);
    overflow-x: auto;
    scrollbar-width: none;
}
.mp-tabs::-webkit-scrollbar { display: none; }
.mp-tabs__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    height: 44px;
    padding: 0 18px;
    border-radius: 13px;
    color: var(--mp-text-2) !important;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .2s, color .2s;
}
.mp-tabs__link:hover { background: var(--mp-surface-2); }
.mp-tabs__link.is-active { background: var(--mp-primary-50); color: var(--mp-primary) !important; }
.mp-tabs__count {
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--mp-surface-2);
    color: var(--mp-text-3);
    font-size: 11px;
    line-height: 20px;
    text-align: center;
}
.mp-tabs__link.is-active .mp-tabs__count { background: var(--mp-primary); color: #fff; }

/* ---------- Content blocks ---------- */
.mp-pdp__content { display: flex; flex-direction: column; gap: 18px; }
.mp-block {
    padding: 26px 28px;
    border-radius: var(--mp-radius-xl);
    background: var(--mp-surface);
    box-shadow: var(--mp-shadow-sm);
}
.mp-block__empty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 18px;
    border-radius: var(--mp-radius);
    background: var(--mp-surface-2);
    color: var(--mp-text-3);
    font-size: 13.5px;
}
.mp-block__empty i { font-size: 20px; color: var(--mp-primary-100); }
.mp-block .product_description { padding: 0; }

/* specs */
.mp-specs { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.mp-specs__row {
    display: grid;
    grid-template-columns: minmax(140px, 30%) 1fr;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--mp-surface-2);
    font-size: 13.5px;
}
.mp-specs__row:nth-child(even) { background: #fff; }
.mp-specs dt { font-weight: 400; color: var(--mp-text-3); }
.mp-specs dd { margin: 0; font-weight: 600; color: var(--mp-text); }

/* buyer reviews (extends satisfaction.css) */
.mp-reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mp-review.review {
    margin: 0;
    padding: 16px 18px;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-lg);
    background: #fff;
    box-shadow: none;
}
.mp-review .review-header { display: flex; align-items: center; gap: 10px; }
.mp-review__avatar {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mp-grad);
    color: #fff;
    font-weight: 600;
}
.mp-review .user-info { display: flex; flex-direction: column; flex: 1; }
.mp-review__name { font-weight: 600; font-size: 13.5px; }
.mp-review__date { font-size: 11.5px; color: var(--mp-text-3); }
.mp-review .review-header .badge { background: #e7f8f1; color: #0b8a5f; border-radius: 999px; font-weight: 600; }

/* questions (part.comment / part.add_comment) */
.mp-qa .chat_item {
    float: none;
    width: 100%;
    margin-bottom: 12px;
    padding: 0;
}
.mp-qa .chat_item .user_name { font-weight: 600; color: var(--mp-text); }
.mp-qa .chat_item .chat_date { margin-right: 8px; font-size: 12px; color: var(--mp-text-3); }
.mp-qa .chat_item .content_box {
    float: none;
    width: 100%;
    margin-top: 8px;
    padding: 14px 16px;
    border: 0;
    border-radius: 18px 4px 18px 18px;
    background: var(--mp-surface-2);
    color: var(--mp-text-2);
    box-shadow: none;
}
.mp-qa .chat_item .content_box:after,
.mp-qa .chat_item .content_box:before { display: none; }
.mp-qa .chat_item .content_box p { margin: 0; line-height: 2; }
.mp-qa .chat_item .custom_hr { display: none; }
.mp-qa .chat_item .content_box > div { float: none; width: auto; margin-top: 10px; text-align: left; }
.mp-qa .chat_item .reply_btn {
    float: none !important;
    padding: 6px 12px;
    border-radius: 10px;
    background: #fff !important;
    color: var(--mp-primary) !important;
    font-size: 12px;
    box-shadow: none;
}
.mp-qa .chat_item.reply { padding-right: 36px; }
.mp-qa .chat_item.reply .content_box { background: var(--mp-primary-50); border-radius: 4px 18px 18px 18px; }
.mp-qa .new_comment {
    float: none;
    width: 100%;
    margin-top: 18px;
    padding: 20px;
    border: 1.5px dashed var(--mp-border);
    border-radius: var(--mp-radius-lg);
    background: #fff;
}
.mp-qa .new_comment:after { content: ""; display: table; clear: both; }
.mp-qa .new_comment .span_instead_h4 { padding: 0 15px; margin-bottom: 12px; font-size: 15px; font-weight: 600; }
.mp-qa .new_comment label { font-size: 12.5px; font-weight: 400; color: var(--mp-text-2); }
.mp-qa .new_comment .form-control {
    height: 46px;
    border: 1.5px solid var(--mp-border);
    border-radius: 14px;
    background: var(--mp-surface-2);
    box-shadow: none;
    transition: border-color .2s, background .2s;
}
.mp-qa .new_comment textarea.form-control { height: auto; min-height: 120px; padding-top: 12px; resize: vertical; }
.mp-qa .new_comment .form-control:focus { border-color: var(--mp-primary); background: #fff; }
.mp-qa .new_comment #send_comment {
    height: 46px;
    padding: 0 26px;
    border-radius: 14px;
    background: var(--mp-grad);
}

/* review prose (Toc output) */
.mp-block .mp-prose .toc,
.mp-block .mp-prose #toc {
    padding: 14px 18px;
    border-radius: var(--mp-radius);
    background: var(--mp-surface-2);
    border: 0;
}

/* ---------- Mobile buy bar ---------- */
.mp-buybar { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
    .mp-pdp__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .mp-pdp__buy { grid-column: 1 / -1; position: static; }
    .mp-pdp__guarantees { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
    .mp-reviews { grid-template-columns: minmax(0, 1fr); }
    .mp-tabs { top: calc(var(--mp-sticky-top) + 74px); }
}
@media (max-width: 767px) {
    .mp-pdp { padding-top: 12px; }
    .mp-pdp > section { margin-bottom: 16px; }
    .mp-pdp__top {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 12px;
        border-radius: 24px;
    }
    .mp-gallery__stage { border-radius: 18px; }
    .mp-gallery__frame { padding: 14px; }
    .mp-gallery__thumbs { justify-content: flex-start; }
    .mp-gallery__thumb { flex-basis: 60px; width: 60px; height: 60px; border-radius: 14px; }
    .mp-lightbox__nav { display: none; }
    .mp-lightbox__swiper img { max-width: 100vw; max-height: calc(100vh - 190px); border-radius: 0; padding: 8px; }
    .mp-pdp__info { padding: 0 4px; }
    .mp-pdp__title { font-size: 18px; }
    .mp-buy { padding: 14px; border-radius: 20px; }
    .mp-buy__price .price_detail, .mp-buy__price .off { font-size: 21px !important; }
    .mp-pdp__guarantees {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        margin-left: calc(var(--mp-gutter) * -1);
        margin-right: calc(var(--mp-gutter) * -1);
        padding: 0 var(--mp-gutter) 4px;
        scrollbar-width: none;
    }
    .mp-pdp__guarantees::-webkit-scrollbar { display: none; }
    .mp-guarantee { flex: 0 0 auto; padding: 10px 14px; font-size: 12px; }
    .mp-guarantee img { width: 28px; height: 28px; flex-basis: 28px; }
    .mp-tabs { top: calc(var(--mp-sticky-top) + 118px); border-radius: 16px; }
    .mp-tabs__link { height: 40px; padding: 0 14px; font-size: 12.5px; }
    .mp-block { padding: 18px 14px; border-radius: 22px; }
    .mp-specs__row { grid-template-columns: 1fr; gap: 2px; padding: 10px 12px; }
    .mp-qa .chat_item.reply { padding-right: 18px; }
    .mp-qa .new_comment { padding: 14px 4px; }

    /* sticky buy bar above the tab bar */
    .mp-buybar {
        position: fixed;
        right: 10px;
        left: 10px;
        bottom: calc(82px + env(safe-area-inset-bottom));
        z-index: 99999;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 8px 8px 8px 8px;
        padding-right: 16px;
        border-radius: 20px;
        background: rgba(255, 255, 255, .9);
        -webkit-backdrop-filter: blur(16px) saturate(160%);
        backdrop-filter: blur(16px) saturate(160%);
        box-shadow: 0 18px 40px -14px rgba(15, 16, 32, .35);
        border: 1px solid rgba(255, 255, 255, .9);
        transform: translateY(140%);
        opacity: 0;
        transition: transform .35s var(--mp-ease), opacity .3s;
    }
    .mp-buybar.is-visible { transform: none; opacity: 1; }
    .mp-buybar__price .price { font-size: 15px; font-weight: 600; white-space: nowrap; }
    .mp-buybar__btn.mp-btn { height: 46px; padding: 0 18px; font-size: 13.5px; border-radius: 14px; }
    .mp-pdp-page .my_whatsapp { bottom: 160px; }
}

/* Pasted content often carries an inline `font-family: IRANSans … !important` that no stylesheet
   can override; map that family name to the site font so it renders consistently. */
@font-face { font-family: IRANSans; src: url(fonts/iranyekanwebregularfanum.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: IRANSans; src: url(fonts/iranyekanwebmediumfanum.ttf); font-weight: 600 700; font-display: swap; }

/* ---------- Normalize admin-pasted product HTML (inline styles/classes copied from other sites) ---------- */
.mp-pdp__info { overflow-wrap: anywhere; }
.mp-pdp__detail { max-width: 100%; overflow: hidden; }
.mp-pdp__detail *:not(i):not(img) {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    float: none !important;
    position: static !important;
    font-weight: inherit !important;
    text-align: start !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}
.mp-pdp__detail img { max-width: 100% !important; height: auto !important; }
.mp-pdp__detail div,
.mp-pdp__detail section {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.mp-pdp__detail p { margin: 0 0 6px !important; padding: 0 !important; }
.mp-pdp__detail div:empty,
.mp-pdp__detail p:empty { display: none !important; }
/* stray "&nbsp;" spacer divs inside value cells */
.mp-pdp__detail div:has(> p:first-child + div:last-child > p) > div > div:not(:has(*)) { display: none !important; }

/* group heading followed by its rows, e.g. "مشخصات کلی" */
.mp-pdp__detail div:has(> p:first-child + div:last-child > div):not(:has(> p:first-child + div:last-child > p)) > p:first-child {
    margin: 14px 0 6px !important;
    font-weight: 600 !important;
    color: var(--mp-text) !important;
}

/* "label + value(s)" rows become spec rows */
.mp-pdp__detail div:has(> p:first-child + div:last-child > p) {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 12px !important;
    margin-top: 6px !important;
    border-radius: 12px !important;
    background: var(--mp-surface-2) !important;
}
.mp-pdp__detail div:has(> p:first-child + div:last-child > p) > p {
    flex: 0 0 auto;
    max-width: 45% !important;
    margin: 0 !important;
    color: var(--mp-text-3) !important;
}
.mp-pdp__detail div:has(> p:first-child + div:last-child > p) > div {
    flex: 1 1 auto;
}
.mp-pdp__detail div:has(> p:first-child + div:last-child > p) > div p {
    display: block !important;
    margin: 0 !important;
    font-weight: 600 !important;
    color: var(--mp-text) !important;
}
.mp-pdp__detail div:has(> p:first-child + div:last-child > p) > div p + p { margin-top: 2px !important; }

/* legacy .share background from style.css */
.mp-pdp__share.share { padding: 0; background: transparent; }
.mp-pdp__share.share span { display: inline-flex; }

/* ---------- Variant radios: compact the legacy 55px checkmark ---------- */
.mp-buy__price .radio-list { align-items: stretch; gap: 8px; }
.mp-buy__price .radio-product-detail { width: 100%; justify-content: flex-start; }
.mp-buy__price .radio-checkmark-box {
    min-width: 22px !important;
    max-width: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    margin-left: 4px;
}
.mp-buy__price .radio-checkmark {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    border: 2px solid #cfd0dd !important;
    border-radius: 50% !important;
    background: #fff !important;
    position: relative;
}
.mp-buy__price .radio-checkmark:after {
    content: "" !important;
    position: absolute;
    inset: 5px;
    width: auto !important;
    height: auto !important;
    border-radius: 50%;
    background: #fff !important;
    display: none;
}
.mp-buy__price .radio-input:checked ~ .radio-checkmark-box .radio-checkmark {
    border-color: transparent !important;
    background: var(--mp-grad) !important;
}
.mp-buy__price .radio-input:checked ~ .radio-checkmark-box .radio-checkmark:after { display: block; }
.mp-buy__price .radio-input:disabled ~ .radio-checkmark-box .radio-checkmark { border-color: #e4e4ec !important; background: var(--mp-surface-2) !important; }
.mp-buy__price .radio-product-detail .off { margin-right: auto; }

/* ---------- Reviews: tone down satisfaction.css ---------- */
.mp-review .recommendation { margin: 12px 0 6px; font-size: 13px; }
.mp-review .recommendation.yes { color: var(--mp-mint); }
.mp-review .recommendation.no { color: var(--mp-hot); }
.mp-review .review-body p { margin: 0 0 12px; color: var(--mp-text-2); line-height: 2; font-size: 13.5px; }
.mp-review .rating-item { gap: 10px; margin: 0; }
.mp-review .rating-text { order: 2; margin: 0; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--mp-text-2); }
.mp-review .rating-bar { flex: 1; width: auto; height: 8px; margin: 0; border-radius: 8px; background: var(--mp-surface-2); }
.mp-review .rating-bar span { border-radius: 8px; }
.mp-review .rating-bar .positive { background: linear-gradient(90deg, #20c997, #12b886); }
.mp-review .rating-bar .neutral { background: linear-gradient(90deg, #ffb547, #ff7a1a); }
.mp-review .rating-bar .negative { background: linear-gradient(90deg, #ff5c8a, #f0346a); }

/* stock count text is not shown to customers; the element stays because cart.js updates it */
#quantity_text.mp-buy__stock { display: none !important; }

.mp-buy__price .radio-product-detail:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.mp-buy__price .variant-soldout { margin-right: auto; color: var(--mp-hot); font-weight: 600; }
