/* Product detail section 1. */

    .ml-product-wrapper {
        padding-top: 22px !important;
    }

    .ml-buy-box {
        padding-top: 18px !important;
    }

    .ml-color-extra {
        font-size: 12px;
        color: #0a7a2f;
        font-weight: 600;
        margin-left: 2px;
    }

    .ml-color-extra.has-extra {
        color: #b00020;
    }

    .ml-product-wrapper {
        padding: 35px 0 20px;
        background: #f5f5f5;
    }

    .ml-product-card {
        background: #fff;
        border-radius: 8px;
        padding: 22px;
        box-shadow: 0 1px 4px rgba(0,0,0,.08);
    }

    .ml-gallery {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        align-items: start;
    }

    .ml-thumbs {
        display: flex;
        order: 2;
        flex-direction: row;
        gap: 10px;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        padding: 6px 2px 10px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .ml-thumb {
        flex: 0 0 82px;
        width: 82px;
        height: 82px;
        border: 1px solid #ddd;
        border-radius: 6px;
        background: #fff;
        padding: 3px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: border .2s, box-shadow .2s;
        scroll-snap-align: start;
    }

    .ml-thumb.active,
    .ml-thumb:hover {
        border-color: #3483fa;
        box-shadow: 0 0 0 1px #3483fa;
    }

    .ml-thumb img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .ml-main-image {
        height: 520px;
        border: 1px solid #eee;
        border-radius: 8px;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .ml-main-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .ml-main-image picture {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ml-buy-box {
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        padding: 22px;
        background: #fff;
        height: 100%;
    }

    .ml-title {
        font-size: 24px;
        color: #333;
        line-height: 1.25;
        margin-bottom: 12px;
        font-weight: 500;
    }

    .ml-product-meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px 12px;
        color: #647067;
        font-size: 13px;
    }

    .ml-product-meta a {
        color: #27683a;
        text-decoration: none;
        font-weight: 600;
    }

    .ml-product-meta .ml-meta-stars {
        color: #f5a623;
        letter-spacing: 1px;
    }

    .ml-availability {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #187331;
        font-weight: 700;
    }

    .ml-availability::before {
        content: '';
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #1f9d45;
    }

    .ml-product-summary {
        margin: 12px 0 0;
        color: #505a52;
        font-size: 14px;
        line-height: 1.55;
    }

    .ml-price {
        font-size: 34px;
        color: #333;
        margin: 15px 0;
        font-weight: 400;
    }

    .ml-old-price {
        display: block;
        color: #777;
        text-decoration: line-through;
        font-size: 16px;
        margin-bottom: 4px;
    }

    .ml-wholesale-note {
        margin: -6px 0 10px;
        color: #218838;
        font-size: 14px;
        font-weight: 700;
    }

    .ml-section-label {
        font-weight: 600;
        color: #333;
        margin: 18px 0 8px;
        display: block;
    }

    .ml-colors {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: start;
    }

    .ml-color-option {
        border: 1px solid #ddd;
        background: #fff;
        border-radius: 6px;
        padding: 7px 10px;
        cursor: pointer;
        display: inline-grid;
        grid-template-columns: 18px auto;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 7px;
        row-gap: 1px;
        min-height: 37px;
        transition: border .2s, box-shadow .2s;
    }

    .ml-color-radio {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .ml-color-radio:checked + .ml-color-option,
    .ml-color-option.active {
        border-color: #218838;
        box-shadow: 0 0 0 1px #218838;
        background: #f1fbf3;
    }

    .ml-color-radio:disabled + .ml-color-option {
        opacity: .48;
        cursor: not-allowed;
        text-decoration: line-through;
        background: #f5f5f5;
    }

    .ml-out-of-stock {
        margin: 16px 0;
        padding: 14px 16px;
        border: 1px solid #fecaca;
        border-radius: 8px;
        background: #fff1f2;
        color: #991b1b;
        font-weight: 700;
        line-height: 1.45;
    }

    .ml-color-dot {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        border: 1px solid #aaa;
        display: inline-block;
        background: #eee;
        grid-row: 1 / 3;
    }

    .ml-color-dot svg {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: inherit;
    }

    .ml-color-option > span:not(.ml-color-dot) { grid-column:2; grid-row:1; line-height:1.1; }
    .ml-color-option .ml-color-extra { grid-column:2; grid-row:2; margin-left:0; line-height:1.1; }

    .ml-note textarea {
        width: 100%;
        min-height: 74px;
        resize: vertical;
        border: 1px solid #ddd;
        border-radius: 6px;
        padding: 10px;
    }

    .ml-personalization { margin:18px 0; padding:15px; border:1px solid #dbe3ef; border-radius:8px; background:#f8fafc; }
    .ml-personalization-choice { display:flex; align-items:center; gap:9px; margin:0; cursor:pointer; font-weight:600; }
    .ml-personalization-fields { margin-top:14px; }
    .ml-personalization-fields input { width:100%; border:1px solid #ddd; border-radius:6px; padding:11px 12px; }

    .ml-qty {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 8px;
    }

    .ml-qty button {
        width: 36px;
        height: 36px;
        border: 1px solid #ddd;
        background: #fff;
        border-radius: 4px;
        cursor: pointer;
    }

    .ml-qty input {
        width: 58px;
        text-align: center;
        height: 36px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    .ml-shipping-calc {
        margin-top: 18px;
        padding: 15px;
        border: 1px solid #dfe7df;
        border-radius: 8px;
        background: #f8fbf8;
    }

    .ml-shipping-calc-title {
        margin: 0 0 8px;
        color: #174d29;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.25;
    }

    .ml-shipping-calc-row {
        display: flex;
        gap: 8px;
    }

    .ml-shipping-calc input {
        min-width: 0;
        flex: 1;
        height: 42px;
        border: 1px solid #d6ddd6;
        border-radius: 6px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .ml-shipping-calc button {
        height: 42px;
        border: 0;
        border-radius: 6px;
        padding: 0 14px;
        background: #218838;
        color: #fff;
        font-weight: 700;
        cursor: pointer;
        white-space: nowrap;
    }

    .ml-shipping-feedback {
        margin: 9px 0 0;
        color: #58635b;
        font-size: 13px;
        line-height: 1.35;
    }

    .ml-shipping-options {
        display: grid;
        gap: 7px;
        margin-top: 10px;
    }

    .ml-shipping-option {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        padding: 9px 10px;
        border: 1px solid #dfe7df;
        border-radius: 6px;
        background: #fff;
        color: #26302a;
        font-size: 13px;
        line-height: 1.3;
    }

    .ml-shipping-option strong {
        display: block;
        color: #174d29;
        font-size: 13px;
    }

    .ml-shipping-option span:last-child {
        color: #111;
        font-weight: 700;
        white-space: nowrap;
    }

    .ml-actions {
        display: grid;
        gap: 10px;
        margin-top: 20px;
    }

    .ml-actions .btn_3,
    .ml-actions .btn_buy_now {
        width: 100%;
        border-radius: 6px;
        padding: 14px 16px;
        border: none;
        cursor: pointer;
        text-align: center;
        font-weight: 600;
    }

    .ml-actions .btn_buy_now {
        background: #3483fa;
        color: #fff;
    }

    .ml-actions .btn_3 {
        background: rgba(65,137,230,.15);
        color: #3483fa;
    }

    .ml-purchase-assurances {
        display: grid;
        gap: 9px;
        margin-top: 16px;
        padding-top: 15px;
        border-top: 1px solid #edf0ed;
    }

    .ml-purchase-assurance {
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 9px;
        align-items: start;
        color: #505a52;
        font-size: 13px;
        line-height: 1.35;
    }

    .ml-purchase-assurance i {
        margin-top: 2px;
        color: #218838;
        text-align: center;
    }

    .ml-purchase-assurance strong {
        display: block;
        color: #273029;
    }

    .ml-description {
        margin-top: 22px;
        background: #fff;
        border-radius: 8px;
        padding: 22px;
        color: #444;
        line-height: 1.65;
    }

    .ml-description h3,
    .ml-product-details h3 {
        margin: 0 0 16px;
        color: #263128;
        font-size: 22px;
    }

    .ml-description-content > :first-child { margin-top: 0; }
    .ml-description-content > :last-child { margin-bottom: 0; }
    .ml-description-content h2,
    .ml-description-content h3,
    .ml-description-content h4 {
        margin: 24px 0 9px;
        color: #263128;
        font-size: 18px;
        line-height: 1.35;
    }
    .ml-description-content ul,
    .ml-description-content ol { margin: 10px 0 16px; padding-left: 22px; }
    .ml-description-content a { color: #176d30; text-decoration: underline; }

    .ml-product-details {
        margin-top: 22px;
        background: #fff;
        border-radius: 8px;
        padding: 22px;
    }

    .ml-product-details dl {
        display: grid;
        grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
        margin: 0;
    }

    .ml-product-details dt,
    .ml-product-details dd {
        margin: 0;
        padding: 11px 0;
        border-top: 1px solid #edf0ed;
    }

    .ml-product-details dt { color: #667068; font-weight: 500; }
    .ml-product-details dd { color: #263128; font-weight: 600; }

    .cart-decision-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 999999;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .cart-decision-box {
        background: #fff;
        border-radius: 10px;
        max-width: 430px;
        width: 100%;
        padding: 26px;
        text-align: center;
        box-shadow: 0 15px 45px rgba(0,0,0,.22);
    }

    .cart-decision-actions {
        display: flex;
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 18px;
    }

    .cart-decision-actions button,
    .cart-decision-actions a {
        border: 0;
        border-radius: 5px;
        padding: 12px 18px;
        cursor: pointer;
        font-weight: 600;
        text-decoration: none;
        display: inline-block;
    }

    .cart-decision-continue {
        background: #f1f1f1;
        color: #222;
    }

    .cart-decision-checkout {
        background: #000;
        color: #fff;
    }


    .ml-share-panel {
        margin-top: 14px;
        border-top: 1px solid #edf0ed;
        padding-top: 12px;
    }

    .ml-share-panel summary {
        color: #4d5850;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        list-style-position: inside;
    }

    .ml-share-panel summary i { margin-right: 5px; color: #218838; }

    .ml-share-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 12px;
    }

    .ml-share-panel[open] summary {
        color: #174d29;
    }

    .ml-share-actions a,
    .ml-share-actions button {
        width: 100%;
        border: 0;
        border-radius: 6px;
        padding: 12px 16px;
        text-align: center;
        font-weight: 600;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        cursor: pointer;
    }

    .ml-share-actions [hidden] { display: none !important; }

    .ml-share-whatsapp {
        background: #25D366;
        color: #fff;
    }

    .ml-share-facebook {
        background: #1877F2;
        color: #fff;
    }

    .ml-share-copy,
    .ml-share-native {
        background: #f1f5f2;
        color: #26352b;
    }

    .ml-share-actions .is-working {
        opacity: .72;
        pointer-events: none;
    }

    .ml-share-actions .is-copied {
        background: #e7f7ec;
        color: #146c2e;
    }

    .ml-share-feedback {
        min-height: 18px;
        margin: 8px 0 0;
        color: #4d5850;
        font-size: 12px;
        line-height: 1.35;
    }

    .ml-product-video,
    .ml-product-reviews {
        margin-top: 22px;
        background: #fff;
        border-radius: 8px;
        padding: 22px;
        color: #333;
    }

    .ml-product-video-frame {
        width: 100%;
        aspect-ratio: 16 / 9;
        border: 1px solid #eee;
        border-radius: 8px;
        overflow: hidden;
        background: #000;
    }

    .ml-product-video-frame iframe,
    .ml-product-video-frame video {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
    }

    .ml-review-summary {
        display: flex;
        gap: 16px;
        align-items: center;
        flex-wrap: wrap;
        margin-bottom: 16px;
    }

    .ml-review-score {
        font-size: 34px;
        font-weight: 700;
        color: #174d29;
        line-height: 1;
    }

    .ml-stars {
        color: #f5a623;
        letter-spacing: 1px;
        font-size: 18px;
        white-space: nowrap;
    }

    .ml-review-card {
        border-top: 1px solid #eee;
        padding: 16px 0;
    }

    .ml-review-card strong {
        color: #222;
    }

    .ml-review-form {
        margin-top: 20px;
        padding-top: 18px;
        border-top: 1px solid #eee;
    }

    .ml-review-form-grid {
        display: grid;
        grid-template-columns: 160px 1fr;
        gap: 12px;
    }

    .ml-review-form-full {
        grid-column: 1 / -1;
    }

    .ml-review-form input,
    .ml-review-form select,
    .ml-review-form textarea {
        width: 100%;
        border: 1px solid #ddd;
        border-radius: 6px;
        padding: 10px 12px;
    }

    .ml-review-form textarea {
        min-height: 110px;
        resize: vertical;
    }

    .ml-review-alert {
        padding: 11px 13px;
        border-radius: 6px;
        margin-bottom: 14px;
        font-weight: 600;
    }

    .ml-review-alert.success {
        color: #146c2e;
        background: #e8f7ee;
        border: 1px solid #bfe8cc;
    }

    .ml-review-alert.error {
        color: #9b1c1c;
        background: #fdeaea;
        border: 1px solid #f5bcbc;
    }

    @media (max-width: 991px) {
        .ml-product-wrapper {
            padding: 10px 0 16px;
        }

        .ml-product-wrapper > .container {
            max-width: none;
            padding-left: 6px;
            padding-right: 6px;
        }

        .ml-product-card {
            padding: 8px;
            border-radius: 4px;
        }

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

        .ml-thumbs {
            order: 2;
            flex-direction: row;
            overflow-x: auto;
            overflow-y: hidden;
            max-height: none;
            width: 100%;
            padding: 6px 2px 10px;
            scroll-snap-type: x proximity;
            -webkit-overflow-scrolling: touch;
        }

        .ml-thumb {
            flex: 0 0 78px;
            width: 78px;
            height: 78px;
            scroll-snap-align: start;
        }

        .ml-thumb picture,
        .ml-thumb img {
            width: 100%;
            height: 100%;
            display: block;
        }

        .ml-thumb img {
            object-fit: contain;
        }

        .ml-main-image {
            width: 100%;
            height: min(96vw, 520px);
            border-left: 0;
            border-right: 0;
        }

        .ml-main-image img {
            width: 100%;
            height: 100%;
            max-width: none;
            object-fit: contain;
        }

        .ml-buy-box {
            margin-top: 18px;
        }

        .ml-product-details dl { grid-template-columns: 1fr; }
        .ml-product-details dt { padding-bottom: 2px; }
        .ml-product-details dd { padding-top: 2px; border-top: 0; }

        .ml-shipping-calc-row {
            flex-direction: column;
        }

        .ml-review-form-grid {
            grid-template-columns: 1fr;
        }
    }

/* Product detail section 2. */
  .ml-bundles { padding:38px 0; background:#f6f8f6; }
  .ml-bundles h2,
  .ml-recommendations h2 { margin:0 0 8px; font-size:24px; color:#174d29; }
  .ml-bundles-intro { margin:0 0 20px; color:#5d675f; }
  .ml-bundles-list { display:grid; gap:14px; }
  .ml-bundle-offer { display:grid; grid-template-columns:minmax(0,1fr) 220px; gap:24px; align-items:center; padding:18px; border:1px solid #dfe7df; border-radius:8px; background:#fff; }
  .ml-bundle-products { display:grid; grid-template-columns:minmax(0,1fr) 30px minmax(0,1.25fr); gap:12px; align-items:center; min-width:0; }
  .ml-bundle-product { display:grid; grid-template-columns:92px minmax(0,1fr); gap:12px; align-items:center; min-width:0; }
  .ml-bundle-product img { width:92px; height:92px; object-fit:contain; border:1px solid #edf0ed; border-radius:6px; background:#fff; }
  .ml-bundle-product small { display:block; color:#6d766f; font-size:12px; }
  .ml-bundle-product strong { display:block; color:#263128; line-height:1.3; overflow-wrap:anywhere; }
  .ml-bundle-product a { color:inherit; text-decoration:none; }
  .ml-bundle-plus { color:#218838; text-align:center; }
  .ml-bundle-related-price { display:flex; align-items:baseline; flex-wrap:wrap; gap:6px 8px; margin-top:6px; }
  .ml-bundle-related-price del { color:#7c837d; font-size:12px; }
  .ml-bundle-related-price span { color:#176d30; font-weight:800; }
  .ml-bundle-related-price b { padding:2px 5px; border-radius:4px; background:#e5f6e9; color:#176d30; font-size:11px; }
  .ml-bundle-product label { display:block; margin:9px 0 4px; color:#4c554e; font-size:12px; font-weight:600; }
  .ml-bundle-color { width:100%; height:36px; border:1px solid #ccd5ce; border-radius:5px; background:#fff; padding:0 8px; }
  .ml-bundle-unavailable { margin-top:8px; color:#991b1b !important; font-weight:700; }
  .ml-bundle-summary { padding-left:22px; border-left:1px solid #e5eae6; }
  .ml-bundle-summary > span { display:block; color:#687169; font-size:12px; }
  .ml-bundle-total { display:block; margin-top:2px; color:#263128; font-size:25px; line-height:1.2; }
  .ml-bundle-saving { display:block; margin-top:5px; color:#176d30; font-weight:700; }
  .ml-bundle-add { width:100%; min-height:44px; margin-top:14px; border:0; border-radius:6px; background:#218838; color:#fff; font-weight:700; cursor:pointer; }
  .ml-bundle-add:disabled { background:#9ca59e; cursor:not-allowed; }
  .ml-recommendations { padding:34px 0 54px; background:#fff; }
  .ml-recommendations h2 { margin-bottom:18px; }
  .ml-recommendations-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
  .ml-recommendation-card { display:block; border:1px solid #e5ece7; border-radius:8px; padding:12px; text-decoration:none; color:#263128; background:#fff; }
  .ml-recommendation-card img { width:100%; aspect-ratio:1/1; object-fit:contain; border-radius:6px; margin-bottom:10px; }
  .ml-recommendation-card strong { display:block; min-height:42px; color:#263128; line-height:1.35; }
  .ml-recommendation-card span { display:block; margin-top:8px; color:#218838; font-weight:700; }
  @media (max-width: 991px) {
    .ml-bundle-offer { grid-template-columns:1fr; }
    .ml-bundle-summary { padding:16px 0 0; border-left:0; border-top:1px solid #e5eae6; }
  }
  @media (max-width: 767px) {
    .ml-bundles { padding:28px 0; }
    .ml-bundle-offer { padding:14px; gap:16px; }
    .ml-bundle-products { grid-template-columns:1fr; }
    .ml-bundle-plus { transform:rotate(90deg); }
    .ml-bundle-product { grid-template-columns:78px minmax(0,1fr); }
    .ml-bundle-product img { width:78px; height:78px; }
    .ml-recommendations-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  }
