/* =========================================================
   MeMall Product Details — FINAL ISOLATED DESIGN
   =========================================================
   IMPORTANT:
   1. Every Product Details class starts with .mm-pd-
   2. This file does NOT redefine .hero, .cart, .info, .price,
      .features, .lightbox, .container, .btn, etc.
   3. It is designed to sit between header.php and footer.php.
   ========================================================= */

.mm-pd-page,
.mm-pd-page * {
    box-sizing: border-box;
}

.mm-pd-page {
    --mm-pd-green: #079b32;
    --mm-pd-green-dark: #087d2b;
    --mm-pd-green-soft: #f1faf3;
    --mm-pd-line: #e8ebe8;
    --mm-pd-text: #111827;
    --mm-pd-muted: #555f69;
    --mm-pd-white: #ffffff;
    color: var(--mm-pd-text);
    background: #fff;
    font-family: Inter, Arial, Helvetica, sans-serif;
    line-height: 1.5;
    width: 100%;
    overflow: hidden;
    zoom: 0.90;
}


.mm-pd-page img,
.mm-pd-page svg,
.mm-pd-page video {
    max-width: 100%;
}

.mm-pd-page button,
.mm-pd-page a {
    font-family: inherit;
}

.mm-pd-page button {
    cursor: pointer;
}

.mm-pd-page h1,
.mm-pd-page h2,
.mm-pd-page h3,
.mm-pd-page p,
.mm-pd-page ul {
    margin-top: 0;
}

.mm-pd-container {
    width: min(1332px, calc(100% - 64px));
    margin-inline: auto;
}

/* Breadcrumb */
.mm-pd-breadcrumb-wrap {
    border-bottom: 1px solid #edf0ed;
    background: #fff;
}

.mm-pd-breadcrumb {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.mm-pd-breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    color: #24282d;
    font-size: 16px;
}

.mm-pd-breadcrumb-nav a {
    color: #5d636b;
    text-decoration: none;
    white-space: nowrap;
}

.mm-pd-breadcrumb-nav a:first-child {
    display: inline-flex;
    color: #111827;
}

.mm-pd-breadcrumb-nav a:first-child svg {
    width: 20px;
    height: 20px;
}

.mm-pd-breadcrumb-nav svg,
.mm-pd-organic-pill svg,
.mm-pd-benefit-icon svg,
.mm-pd-add-cart svg,
.mm-pd-wishlist svg,
.mm-pd-services svg,
.mm-pd-features svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mm-pd-chevron {
    color: #161a1e;
    font-size: 29px;
    line-height: 1;
}

.mm-pd-current {
    color: #15191d;
    white-space: nowrap;
}

.mm-pd-organic-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
    color: var(--mm-pd-green);
    font-size: 14px;
    font-weight: 700;
}

.mm-pd-organic-pill svg {
    width: 20px;
    height: 20px;
}

/* Hero */
.mm-pd-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(290px, .88fr) minmax(360px, .96fr);
    gap: 28px;
    align-items: start;
    padding-top: 20px;
    padding-bottom: 28px;
}

.mm-pd-gallery-area {
    display: flex;
    gap: 16px;
    min-width: 0;
}

.mm-pd-main-gallery {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
    background: #f5f5f5;
    box-shadow: 0 2px 9px rgba(0, 0, 0, .05);
}

.mm-pd-main-gallery > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mm-pd-badge {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #00a72c;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.mm-pd-expand {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111827;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.mm-pd-expand svg {
    width: 20px;
    height: 20px;
}

.mm-pd-counter {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 5px 10px;
    border-radius: 15px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-size: 12px;
}

.mm-pd-thumbs {
    width: 86px;
    flex: 0 0 86px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mm-pd-thumb {
    position: relative;
    width: 86px;
    height: 86px;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.mm-pd-thumb.is-active {
    border-color: var(--mm-pd-green);
}

.mm-pd-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.mm-pd-play-mini {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 36px;
    height: 36px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-size: 15px;
}

/* Product information */
.mm-pd-info {
    min-width: 0;
    padding-top: 23px;
}

.mm-pd-title {
    margin: 0 0 8px;
    color: #101722;
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.8px;
}

.mm-pd-type {
    color: #008d2e;
    font-size: 21px;
    font-weight: 600;
}

.mm-pd-rating {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 11px;
    font-size: 14px;
}

.mm-pd-stars {
    color: #008d2e;
    font-size: 19px;
    letter-spacing: 1px;
    line-height: 1;
}

.mm-pd-rating-value {
    color: #222b33;
}

.mm-pd-rating-reviews {
    color: #59616a;
}

.mm-pd-price-block {
    margin-top: 29px;
}

.mm-pd-price-block del {
    display: block;
    color: #e80000;
    font-size: 16px;
    margin-bottom: 2px;
}

.mm-pd-current-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.mm-pd-current-price strong {
    color: #101722;
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.15;
}

.mm-pd-current-price span {
    color: #343a40;
    font-size: 15px;
}

.mm-pd-price-block p {
    margin: 7px 0 0;
    color: #454d55;
    font-size: 14px;
}

.mm-pd-benefits {
    margin: 27px 0 0;
    padding: 0;
    list-style: none;
}

.mm-pd-benefits li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 17px 0;
    color: #252c33;
    font-size: 16px;
}

.mm-pd-benefit-icon {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: grid;
    place-items: center;
    color: #009b31;
}

.mm-pd-benefit-icon svg {
    width: 24px;
    height: 24px;
}

/* Purchase card */
.mm-pd-purchase-card {
    margin-top: 48px;
    padding: 27px 21px 21px;
    border: 1px solid #e4e8e5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 18px rgba(0, 0, 0, .06);
}

.mm-pd-purchase-label {
    color: #252b31;
    font-size: 15px;
    font-weight: 600;
}

.mm-pd-purchase-price {
    margin: 7px 0 28px;
    color: #008d2e;
    font-size: 27px;
    font-weight: 750;
}

.mm-pd-purchase-price small {
    color: #343a40;
    font-size: 14px;
    font-weight: 400;
}

.mm-pd-pack-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 30px;
    color: #20262c;
    font-size: 14px;
}

.mm-pd-pack-row span {
    padding: 6px 12px;
    border-radius: 9px;
    background: #eff8f0;
    color: #008d2e;
    font-weight: 700;
}

.mm-pd-buy-row {
    display: flex;
    align-items: stretch;
    gap: 14px;
}

.mm-pd-quantity {
    height: 51px;
    display: flex;
    flex: 0 0 148px;
    border: 1px solid #d9dee2;
    border-radius: 8px;
    overflow: hidden;
}

.mm-pd-quantity button,
.mm-pd-quantity span {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 0;
    background: #fff;
    color: #111827;
}

.mm-pd-quantity button {
    font-size: 22px;
}

.mm-pd-quantity span {
    border-left: 1px solid #d9dee2;
    border-right: 1px solid #d9dee2;
    font-size: 15px;
    font-weight: 700;
}

.mm-pd-add-cart {
    min-width: 0;
    flex: 1;
    height: 51px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 7px;
    background: #009b2d;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    transition: background .2s ease, transform .15s ease;
}

.mm-pd-add-cart:hover {
    background: #007f25;
}

.mm-pd-add-cart.is-added {
    background: #087d2b;
}

.mm-pd-add-cart svg {
    width: 21px;
    height: 21px;
}

.mm-pd-wishlist {
    width: 100%;
    min-height: 42px;
    margin: 20px 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: #1f262d;
    font-size: 15px;
}

.mm-pd-wishlist svg {
    width: 22px;
    height: 22px;
}

.mm-pd-wishlist.is-active {
    color: #008d2e;
    font-weight: 700;
}

.mm-pd-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    padding: 16px 7px 13px;
    border-radius: 11px;
    background: #f1f9f2;
}

.mm-pd-services > div {
    min-width: 0;
    display: grid;
    grid-template-columns: 25px 1fr;
    column-gap: 7px;
    align-items: start;
}

.mm-pd-services svg {
    grid-row: 1 / span 2;
    width: 23px;
    height: 23px;
    color: #008d2e;
}

.mm-pd-services strong {
    color: #008d2e;
    font-size: 10px;
    line-height: 1.25;
}

.mm-pd-services small {
    margin-top: 3px;
    color: #242a30;
    font-size: 10px;
    line-height: 1.35;
}

/* Details */
.mm-pd-details {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(350px, .95fr);
    gap: 30px;
    padding-top: 22px;
    border-top: 1px solid #eceeed;
}

.mm-pd-details-main {
    min-width: 0;
}

.mm-pd-tabs {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    border-bottom: 1px solid #e2e5e3;
    scrollbar-width: none;
}

.mm-pd-tabs::-webkit-scrollbar {
    display: none;
}

.mm-pd-tabs button {
    position: relative;
    flex: 0 0 auto;
    padding: 12px 22px 17px;
    border: 0;
    background: transparent;
    color: #121820;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.mm-pd-tabs button.is-active {
    color: #008d2e;
}

.mm-pd-tabs button.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: #009b2d;
}

.mm-pd-tab-content {
    display: none;
    padding: 23px 16px 0;
    color: #20272e;
    font-size: 14px;
    line-height: 1.65;
}

.mm-pd-tab-content.is-active {
    display: block;
}

.mm-pd-tab-content > p {
    margin: 0 0 18px;
}

.mm-pd-reason-box,
.mm-pd-trust-box {
    border-radius: 12px;
    background: #f1f9f2;
}

.mm-pd-reason-box {
    padding: 15px 19px;
}

.mm-pd-reason-box h3 {
    margin: 0 0 4px;
    color: #008d2e;
    font-size: 16px;
}

.mm-pd-reason-box p {
    margin: 0;
}

/* Trust + story */
.mm-pd-story-side {
    min-width: 0;
    padding-left: 0;
    border-left: 1px solid #edf0ee;
}

.mm-pd-trust-box {
    margin: 58px 0 22px;
    padding: 17px 23px;
}

.mm-pd-trust-box h3 {
    margin: 0 0 10px;
    color: #008d2e;
    font-size: 17px;
}

.mm-pd-trust-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mm-pd-trust-box li {
    position: relative;
    margin: 8px 0;
    padding-left: 23px;
    color: #1f282f;
    font-size: 13px;
}

.mm-pd-trust-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #0a9c32;
    font-weight: 800;
}

.mm-pd-story {
    padding-left: 0;
}

.mm-pd-story h2 {
    margin: 0 0 10px;
    color: #111820;
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 750;
}

.mm-pd-video {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.mm-pd-video video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.mm-pd-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 70px;
    height: 70px;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 24px;
}

.mm-pd-video-play.is-hidden {
    display: none;
}
.mm-pd-main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    background: #000;
}
.mm-pd-story > p {
    margin: 7px 0 0;
    color: #2b3238;
    font-size: 12px;
}

/* Bottom features */
.mm-pd-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 22px;
    margin-bottom: 25px;
    padding: 17px 42px;
    border-radius: 12px;
    background: #fafafa;
}

.mm-pd-features > div {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.mm-pd-features svg {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    color: #009b31;
}

.mm-pd-features strong {
    display: block;
    color: #111820;
    font-size: 13px;
}

.mm-pd-features span {
    display: block;
    color: #535b62;
    font-size: 12px;
}

/* Lightbox */
.mm-pd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    place-items: center;
    padding: 30px;
    background: rgba(0, 0, 0, .88);
}

.mm-pd-lightbox.is-open {
    display: grid;
}

.mm-pd-lightbox img {
    max-width: min(92vw, 1200px);
    max-height: 88vh;
    object-fit: contain;
}

.mm-pd-lightbox-close {
    position: fixed;
    right: 25px;
    top: 15px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 42px;
    line-height: 1;
}

body.mm-pd-lightbox-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 1250px) {
    .mm-pd-hero {
        grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr);
    }

    .mm-pd-purchase-card {
        grid-column: 1 / -1;
        margin-top: 0;
    }

    .mm-pd-details {
        grid-template-columns: 1fr;
    }

    .mm-pd-story-side {
        border-left: 0;
        border-top: 1px solid #edf0ee;
        padding-top: 20px;
    }

    .mm-pd-trust-box {
        margin-top: 0;
    }
}

@media (max-width: 900px) {
    .mm-pd-container {
        width: min(100% - 32px, 720px);
    }

    .mm-pd-hero {
        display: block;
    }

    .mm-pd-info {
        padding-top: 25px;
    }

    .mm-pd-purchase-card {
        margin-top: 25px;
    }

    .mm-pd-details {
        display: block;
    }

    .mm-pd-story-side {
        margin-top: 25px;
    }

    .mm-pd-features {
        grid-template-columns: repeat(2, 1fr);
        padding: 18px 24px;
    }
}

@media (max-width: 650px) {
    .mm-pd-container {
        width: calc(100% - 24px);
    }

    .mm-pd-breadcrumb {
        min-height: 56px;
    }

    .mm-pd-breadcrumb-nav {
        gap: 9px;
        font-size: 13px;
        overflow-x: auto;
    }

    .mm-pd-organic-pill {
        display: none;
    }

    .mm-pd-gallery-area {
        display: block;
    }

    .mm-pd-thumbs {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        margin-top: 10px;
        padding-bottom: 3px;
    }

    .mm-pd-thumb {
        flex: 0 0 68px;
        width: 68px;
        height: 68px;
    }

    .mm-pd-title {
        font-size: 31px;
    }

    .mm-pd-type {
        font-size: 19px;
    }

    .mm-pd-current-price strong {
        font-size: 34px;
    }

    .mm-pd-buy-row {
        gap: 8px;
    }

    .mm-pd-quantity {
        flex-basis: 132px;
    }

    .mm-pd-services {
        gap: 3px;
    }

    .mm-pd-services > div {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mm-pd-services svg {
        margin-inline: auto;
        grid-row: auto;
    }

    .mm-pd-services strong,
    .mm-pd-services small {
        display: block;
    }

    .mm-pd-features {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 16px;
    }

    .mm-pd-features > div {
        gap: 9px;
    }
}

@media (max-width: 440px) {
    .mm-pd-features {
        grid-template-columns: 1fr;
    }

    .mm-pd-buy-row {
        flex-direction: column;
    }

    .mm-pd-quantity {
        width: 100%;
        flex-basis: auto;
    }

    .mm-pd-quantity button,
    .mm-pd-quantity span {
        flex: 1;
        width: auto;
    }

    .mm-pd-add-cart {
        width: 100%;
    }

    .mm-pd-current-price strong {
        font-size: 31px;
    }
}
/* Early Registration Offer */
.mm-pl-offer {
    margin: 20px auto 18px;
    padding: 14px 18px;
    max-width: 520px;
    background: #f6fff3;
    border: 1px solid #d9f0d0;
    border-radius: 10px;
    color: #4f604c;
    font-size: 14px;
    line-height: 1.6;
}

.mm-pl-offer strong {
    color: #2f8f1f;
}

/* Register Now Button */
.mm-pl-register-btn {
    display: inline-block;
    margin-top: 5px;
    padding: 11px 25px;
    background: #3DD303;
    color: #ffffff;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mm-pl-register-btn:hover {
    background: #32b500;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}
