.mtg-product-container{
    width:min(1180px, calc(100% - 40px));
    margin:40px auto;
}
.mtg-product-grid,
.mtg-cart-layout,
.mtg-checkout-layout{
    display:grid;
    grid-template-columns:1.05fr .95fr;
    gap:32px;
    align-items:start;
}
.mtg-checkout-layout{
    grid-template-columns:minmax(0,1fr) 340px;
}
.mtg-product-image-card,
.mtg-product-description-card,
.mtg-card-product,
.mtg-cart-table-card,
.mtg-cart-summary-card,
.mtg-checkout-form-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:22px;
    box-shadow:0 12px 30px rgba(0,0,0,.04);
}
.mtg-product-image-card{
    padding:18px;
}
.mtg-product-image{
    width:100%;
    height:auto;
    display:block;
    border-radius:16px;
}
.mtg-product-image-placeholder{
    min-height:420px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:16px;
    background:#f3f4f6;
    color:#6b7280;
    font-size:16px;
}
.mtg-product-summary{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:22px;
    box-shadow:0 12px 30px rgba(0,0,0,.04);
    padding:28px;
}
.mtg-product-cats{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:14px;
}
.mtg-badge{
    display:inline-flex;
    align-items:center;
    padding:7px 12px;
    border-radius:999px;
    background:#f3f4f6;
    font-size:12px;
    font-weight:600;
}
.mtg-product-title{
    margin:0 0 16px;
    font-size:34px;
    line-height:1.1;
}
.mtg-product-pricing{
    margin-bottom:20px;
}
.mtg-price-main,
.mtg-price-sale{
    font-size:34px;
    line-height:1;
    font-weight:800;
}
.mtg-price-regular{
    margin-top:8px;
    color:#6b7280;
    text-decoration:line-through;
    font-size:16px;
}
.mtg-product-meta{
    display:grid;
    gap:10px;
    padding:18px 0;
    border-top:1px solid #e5e7eb;
    border-bottom:1px solid #e5e7eb;
}
.mtg-meta-row{
    display:flex;
    justify-content:space-between;
    gap:14px;
    font-size:14px;
}
.mtg-buy-form{
    margin:22px 0;
}
.mtg-buy-row{
    display:flex;
    gap:14px;
    align-items:end;
    flex-wrap:wrap;
}
.mtg-qty-wrap{
    min-width:120px;
}
.mtg-qty-wrap label{
    display:block;
    margin-bottom:8px;
    font-weight:700;
    font-size:14px;
}
.mtg-qty-wrap input,
.mtg-cart-qty,
.mtg-field input,
.mtg-field select,
.mtg-field textarea{
    width:100%;
    border:1px solid #d1d5db;
    border-radius:14px;
    padding:12px 14px;
    font-size:15px;
    box-sizing:border-box;
}
.mtg-btn-primary,
.mtg-btn-secondary,
.mtg-card-product-link{
    appearance:none;
    border:none;
    border-radius:14px;
    padding:14px 18px;
    font-weight:700;
    cursor:pointer;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}
.mtg-btn-primary{
    background:#16a34a;
    color:#fff;
}
.mtg-btn-secondary{
    background:#f3f4f6;
    color:#111827;
}
.mtg-btn-full{
    width:100%;
}
.mtg-link-btn{
    background:none;
    border:none;
    color:#15803d;
    cursor:pointer;
    padding:0;
    font-weight:700;
}
.mtg-product-excerpt{
    color:#4b5563;
    font-size:15px;
    line-height:1.7;
}
.mtg-product-description-card{
    margin-top:30px;
    padding:28px;
}
.mtg-product-description-card h2{
    margin:0 0 14px;
    font-size:24px;
}
.mtg-product-description{
    color:#374151;
    line-height:1.8;
}
.mtg-archive-head{
    margin-bottom:24px;
}
.mtg-archive-head h1{
    margin:0 0 10px;
    font-size:34px;
}
.mtg-archive-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px;
}
.mtg-card-product-image{
    display:block;
    aspect-ratio:1 / 1;
    background:#f3f4f6;
    border-bottom:1px solid #e5e7eb;
    border-radius:22px 22px 0 0;
    overflow:hidden;
}
.mtg-card-product-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.mtg-card-product-image span{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#6b7280;
}
.mtg-card-product-body{
    padding:18px;
}
.mtg-card-product-body h2{
    margin:0 0 10px;
    font-size:20px;
    line-height:1.3;
}
.mtg-card-product-body h2 a{
    color:inherit;
    text-decoration:none;
}
.mtg-card-product-price{
    display:flex;
    gap:10px;
    align-items:center;
    margin-bottom:16px;
}
.mtg-card-product-price strong{
    font-size:20px;
}
.mtg-card-product-price small{
    color:#6b7280;
    text-decoration:line-through;
}
.mtg-cart-table-card,
.mtg-checkout-form-card{
    padding:20px;
}
.mtg-cart-table{
    width:100%;
    border-collapse:collapse;
}
.mtg-cart-table th,
.mtg-cart-table td{
    padding:14px 10px;
    border-bottom:1px solid #e5e7eb;
    vertical-align:middle;
    text-align:left;
}
.mtg-cart-product{
    display:flex;
    align-items:center;
    gap:14px;
}
.mtg-cart-thumb{
    width:72px;
    height:72px;
    border-radius:14px;
    overflow:hidden;
    background:#f3f4f6;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 72px;
}
.mtg-cart-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.mtg-cart-product a{
    color:inherit;
    text-decoration:none;
    font-weight:700;
    display:block;
    margin-bottom:4px;
}
.mtg-cart-product small{
    color:#6b7280;
}
.mtg-cart-actions{
    margin-top:18px;
}
.mtg-cart-summary-card{
    padding:24px;
    height:max-content;
}
.mtg-cart-summary-card h2{
    margin:0 0 18px;
    font-size:24px;
}
.mtg-summary-row{
    display:flex;
    justify-content:space-between;
    gap:16px;
    margin-top:16px;
    padding-top:16px;
    border-top:1px solid #e5e7eb;
    font-size:18px;
}
.mtg-cart-subtotal-wrap{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
}
.mtg-checkout-form{
    display:grid;
    gap:22px;
}
.mtg-checkout-block{
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:18px;
}
.mtg-checkout-block h2{
    margin:0 0 6px;
    font-size:22px;
}
.mtg-field-help{
    margin:0 0 16px;
    color:#6b7280;
    font-size:14px;
}
.mtg-form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}
.mtg-field{
    display:grid;
    gap:8px;
}
.mtg-field label{
    font-weight:700;
}
.mtg-field small{
    color:#6b7280;
    font-size:12px;
}
.mtg-field-full{
    grid-column:1 / -1;
}
.mtg-option-card{
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:16px;
    margin-top:14px;
}
.mtg-switch-row{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:700;
}
.mtg-toggle-fields{
    margin-top:14px;
}
.mtg-checkout-actions{
    display:flex;
    justify-content:flex-start;
}
.mtg-checkout-items{
    display:grid;
    gap:12px;
}
.mtg-checkout-item{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding-bottom:12px;
    border-bottom:1px solid #e5e7eb;
}
.mtg-checkout-item strong{
    display:block;
    margin-bottom:4px;
}
.mtg-checkout-item small{
    color:#6b7280;
}
.mtg-alert-error{
    margin-bottom:18px;
    background:#fef2f2;
    color:#991b1b;
    border:1px solid #fecaca;
    border-radius:14px;
    padding:14px 16px;
}
.mtg-empty-state{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:22px;
    padding:40px;
    text-align:center;
}
.mtg-pagination{
    margin-top:28px;
}
@media (max-width: 980px){
    .mtg-product-grid,
    .mtg-cart-layout,
    .mtg-checkout-layout,
    .mtg-form-grid{
        grid-template-columns:1fr;
    }
    .mtg-archive-grid{
        grid-template-columns:1fr;
    }
    .mtg-product-title,
    .mtg-price-main,
    .mtg-price-sale,
    .mtg-archive-head h1{
        font-size:28px;
    }
}

.mtg-payment-methods{
    display:grid;
    gap:12px;
}
.mtg-payment-option{
    display:flex;
    align-items:center;
    gap:10px;
    padding:14px 16px;
    border:1px solid #e5e7eb;
    border-radius:14px;
    background:#fff;
    cursor:pointer;
    font-weight:700;
}
.mtg-payment-option input{
    margin:0;
}

.mtg-payment-panels{
    margin-top:16px;
}
.mtg-payment-panel{
    border:1px solid #e5e7eb;
    border-radius:16px;
    background:#f9fafb;
    padding:16px;
}
.mtg-payment-panel h3{
    margin:0 0 12px;
    font-size:18px;
}
.mtg-payment-panel p{
    margin:0 0 10px;
}

.mtg-payment-final-card{
    margin-top:24px;
    text-align:left;
    max-width:680px;
    margin-left:auto;
    margin-right:auto;
    border:1px solid #e5e7eb;
    border-radius:20px;
    padding:22px;
}
.mtg-payment-final-card--qr{
    background:#f0fdf4;
}
.mtg-payment-final-card--bank{
    background:#eff6ff;
}
.mtg-payment-final-card--whatsapp{
    background:#ecfdf5;
}
.mtg-proof-form{
    margin-top:18px;
    padding-top:18px;
    border-top:1px solid #d1d5db;
}
.mtg-proof-form textarea{
    width:100%;
    border:1px solid #d1d5db;
    border-radius:14px;
    padding:12px 14px;
    box-sizing:border-box;
}
.mtg-bank-final-row{
    border:1px solid #dbeafe;
    background:#fff;
    border-radius:14px;
    padding:14px;
    margin-bottom:12px;
}
.mtg-alert-success{
    background:#dcfce7;
    color:#166534;
    border:1px solid #86efac;
    border-radius:14px;
    padding:14px 16px;
}

.mtg-checkout-layout--wide{
    grid-template-columns:minmax(0,1fr) 340px;
}
.mtg-checkout-double{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
}
@media (max-width: 980px){
    .mtg-checkout-double{
        grid-template-columns:1fr;
    }
}

.mtg-review-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 360px;
    gap:24px;
    align-items:start;
}
.mtg-review-summary{
    position:sticky;
    top:24px;
}
.mtg-review-item{
    display:grid;
    grid-template-columns:72px minmax(0,1fr) auto;
    gap:14px;
    align-items:center;
    padding:14px 0;
    border-bottom:1px solid #e5e7eb;
}
.mtg-review-item-thumb{
    width:72px;
    height:72px;
    border-radius:14px;
    overflow:hidden;
    background:#f3f4f6;
    display:flex;
    align-items:center;
    justify-content:center;
}
.mtg-review-item-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.mtg-review-item-thumb span{
    font-size:12px;
    color:#6b7280;
    text-align:center;
    padding:6px;
}
.mtg-review-item-body{
    display:grid;
    gap:4px;
}
.mtg-review-item-body small{
    color:#6b7280;
}
.mtg-review-item-price{
    font-weight:700;
    white-space:nowrap;
}
@media (max-width: 980px){
    .mtg-review-layout{
        grid-template-columns:1fr;
    }
    .mtg-review-summary{
        position:static;
    }
}

.mtg-accordion{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    box-shadow:0 12px 30px rgba(0,0,0,.04);
    overflow:hidden;
}
.mtg-accordion + .mtg-accordion{
    margin-top:18px;
}
.mtg-accordion summary{
    list-style:none;
    cursor:pointer;
    padding:18px 20px;
    font-size:22px;
    font-weight:700;
}
.mtg-accordion summary::-webkit-details-marker{
    display:none;
}
.mtg-accordion-body{
    padding:0 20px 20px;
    border-top:1px solid #e5e7eb;
}

.mtg-inline-help{
    display:block;
    margin:-4px 0 10px 38px;
    color:#6b7280;
    font-size:12px;
    line-height:1.5;
}

.mtg-inline-help{
    display:block;
    margin:-4px 0 10px 38px;
    color:#6b7280;
    font-size:12px;
    line-height:1.5;
}

.mtg-step-hero{
    position:relative;
    overflow:hidden;
    margin:0 0 24px;
    padding:28px;
    border:1px solid #dbeafe;
    border-radius:28px;
    background:linear-gradient(135deg,#eff6ff 0%,#ecfeff 50%,#f0fdf4 100%);
    box-shadow:0 18px 40px rgba(0,0,0,.05);
}
.mtg-step-hero--review{
    border-color:#ddd6fe;
    background:linear-gradient(135deg,#f5f3ff 0%,#eff6ff 50%,#ecfeff 100%);
}
.mtg-step-hero h1{
    margin:8px 0 10px;
    font-size:34px;
    line-height:1.1;
}
.mtg-step-hero p{
    margin:0;
    color:#475569;
    font-size:15px;
}
.mtg-step-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 12px;
    border-radius:999px;
    background:#111827;
    color:#fff;
    font-size:12px;
    font-weight:800;
    letter-spacing:.08em;
}

.mtg-section-head{
    display:flex;
    align-items:flex-start;
    gap:12px;
    margin-bottom:18px;
}
.mtg-section-head h2{
    margin:0 0 4px;
}
.mtg-section-head p{
    margin:0;
    color:#64748b;
    font-size:13px;
}
.mtg-section-icon{
    width:40px;
    height:40px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:linear-gradient(135deg,#e0f2fe,#dcfce7);
    font-size:20px;
    flex:0 0 40px;
}

.mtg-choice-grid{
    display:grid;
    gap:14px;
}
.mtg-choice-card{
    position:relative;
    display:grid;
    gap:6px;
    padding:16px 16px 16px 52px;
    border:1px solid #e5e7eb;
    border-radius:18px;
    background:#fff;
    cursor:pointer;
    transition:.2s ease;
}
.mtg-choice-card:hover{
    transform:translateY(-1px);
    box-shadow:0 14px 30px rgba(0,0,0,.05);
    border-color:#cbd5e1;
}
.mtg-choice-card input{
    position:absolute;
    top:18px;
    left:16px;
}
.mtg-choice-icon{
    width:34px;
    height:34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:#f8fafc;
    font-size:18px;
}
.mtg-choice-title{
    font-weight:800;
    color:#0f172a;
}
.mtg-choice-help{
    color:#64748b;
    font-size:12px;
    line-height:1.5;
}

.mtg-checkout-form-card{
    background:linear-gradient(180deg,#ffffff 0%,#fcfcfd 100%);
}
.mtg-checkout-block{
    border:1px solid #e5e7eb;
    background:#fff;
}
.mtg-submit-card{
    background:linear-gradient(135deg,#f8fafc 0%,#eff6ff 100%);
}

.mtg-btn-lg{
    min-height:52px;
    padding:16px 22px;
    font-size:15px;
    border-radius:16px;
}

.mtg-cart-summary-card{
    border:1px solid #dbeafe;
    background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
}
.mtg-summary-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:16px;
}
.mtg-summary-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:7px 10px;
    border-radius:999px;
    background:#eef2ff;
    color:#4338ca;
    font-size:12px;
    font-weight:700;
}

.mtg-review-item{
    border-radius:16px;
}
.mtg-review-item-thumb{
    border:1px solid #e5e7eb;
    background:linear-gradient(180deg,#f8fafc 0%,#f1f5f9 100%);
}
.mtg-review-item-price{
    color:#0f172a;
}

.mtg-payment-final-card{
    border-width:1px;
    box-shadow:0 12px 30px rgba(0,0,0,.04);
}
.mtg-payment-final-card h3{
    margin-top:0;
    margin-bottom:12px;
    font-size:22px;
}
.mtg-payment-final-card--qr{
    background:linear-gradient(135deg,#f0fdf4 0%,#ecfeff 100%);
    border-color:#86efac;
}
.mtg-payment-final-card--bank{
    background:linear-gradient(135deg,#eff6ff 0%,#f8fafc 100%);
    border-color:#93c5fd;
}
.mtg-payment-final-card--whatsapp{
    background:linear-gradient(135deg,#ecfdf5 0%,#f0fdf4 100%);
    border-color:#6ee7b7;
}
.mtg-bank-final-row{
    border-color:#bfdbfe;
    box-shadow:0 8px 18px rgba(0,0,0,.03);
}

.mtg-proof-form h4{
    margin:0 0 12px;
    font-size:16px;
}
.mtg-inline-help{
    margin-left:0;
}

@media (max-width: 980px){
    .mtg-step-hero{
        padding:22px;
        border-radius:22px;
    }
    .mtg-step-hero h1{
        font-size:28px;
    }
}

.mtg-input-with-icon{
    position:relative;
}
.mtg-input-with-icon .mtg-input-icon{
    position:absolute;
    top:50%;
    left:14px;
    transform:translateY(-50%);
    z-index:2;
    font-size:18px;
    line-height:1;
    pointer-events:none;
}
.mtg-input-with-icon input,
.mtg-input-with-icon select{
    padding-left:44px !important;
}

.mtg-input-with-icon{
    position:relative;
}
.mtg-input-with-icon .mtg-input-icon{
    position:absolute;
    top:50%;
    left:14px;
    transform:translateY(-50%);
    z-index:2;
    font-size:18px;
    line-height:1;
    pointer-events:none;
}
.mtg-input-with-icon input,
.mtg-input-with-icon select{
    padding-left:44px !important;
}

.mtg-btn-secondary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:12px 18px;
    border-radius:14px;
    border:1px solid #cbd5e1;
    background:#fff;
    color:#0f172a;
    text-decoration:none;
    font-weight:700;
    transition:.2s ease;
}
.mtg-btn-secondary:hover{
    transform:translateY(-1px);
    box-shadow:0 10px 24px rgba(0,0,0,.05);
    border-color:#94a3b8;
}

.mtg-choice-card{
    transition:.2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.mtg-choice-card:has(input:checked){
    border-color:#2563eb;
    background:linear-gradient(135deg,#eff6ff 0%,#f8fbff 100%);
    box-shadow:0 16px 36px rgba(37,99,235,.12);
}
.mtg-choice-card:has(input:checked) .mtg-choice-icon{
    background:#dbeafe;
    transform:scale(1.03);
}
.mtg-choice-card:has(input:checked) .mtg-choice-title{
    color:#1d4ed8;
}

.mtg-choice-card{
    transition:.2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.mtg-choice-card:has(input:checked){
    border-color:#2563eb;
    background:linear-gradient(135deg,#eff6ff 0%,#f8fbff 100%);
    box-shadow:0 16px 36px rgba(37,99,235,.12);
}
.mtg-choice-card:has(input:checked) .mtg-choice-icon{
    background:#dbeafe;
    transform:scale(1.03);
}
.mtg-choice-card:has(input:checked) .mtg-choice-title{
    color:#1d4ed8;
}

/* ===== MTG NETWORK ICONS ===== */
.mtg-ui-icon{
  display:inline-block;
  width:28px;
  height:28px;
  object-fit:contain;
  vertical-align:middle;
}

.mtg-ui-icon--sm{
  width:18px;
  height:18px;
}

.mtg-ui-icon--md{
  width:24px;
  height:24px;
}

.mtg-ui-icon--fallback{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-style:normal;
  line-height:1;
}

.mtg-section-icon .mtg-ui-icon{
  width:30px;
  height:30px;
}

.mtg-choice-icon .mtg-ui-icon{
  width:26px;
  height:26px;
}

.mtg-input-icon--img{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.mtg-input-icon--img .mtg-ui-icon{
  width:18px;
  height:18px;
}

.mtg-choice-card .mtg-choice-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:30px;
  min-height:30px;
}

.mtg-section-head .mtg-section-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  min-height:34px;
}


.mtg-added-toast{
    margin:0 0 18px;
    padding:14px 18px;
    border-radius:14px;
    background:linear-gradient(135deg,#49a57f,#71caa5);
    color:#fff;
    font-weight:800;
    box-shadow:0 10px 30px rgba(15,23,42,.08);
}


/* MTG_SINGLE_MEDIA_GLOBAL_CSS_V1_START */

.mtg-product-gallery-pro{
    min-width:0;
}

.mtg-product-main-media{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    width:100%;
    min-height:460px;
    background:#f8fafc;
}

.mtg-product-main-media .mtg-product-image,
.mtg-product-main-video{
    display:block;
    width:100%;
    height:100%;
    min-height:460px;
    max-height:680px;
    object-fit:contain;
    background:#f8fafc;
}

.mtg-product-main-video{
    background:#020617;
}

.mtg-product-media-thumbs{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:10px;
    margin-top:12px;
}

.mtg-product-media-thumb{
    position:relative;
    display:block;
    overflow:hidden;
    aspect-ratio:1/1;
    min-width:0;
    padding:0;
    border:2px solid transparent;
    border-radius:12px;
    background:#fff;
    cursor:pointer;
    box-shadow:none;
    transition:
        border-color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.mtg-product-media-thumb:hover{
    transform:translateY(-2px);
    border-color:#94a3b8;
}

.mtg-product-media-thumb.is-active{
    border-color:var(--mtg-primary,#2563eb);
    box-shadow:
        0 0 0 2px
        color-mix(
            in srgb,
            var(--mtg-primary,#2563eb) 18%,
            transparent
        );
}

.mtg-product-media-thumb img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

.mtg-product-media-thumb-video::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(2,6,23,.48),
        rgba(2,6,23,.05)
    );
    pointer-events:none;
}

.mtg-product-video-placeholder{
    display:block;
    width:100%;
    height:100%;
    background:
        radial-gradient(
            circle at center,
            #334155,
            #020617
        );
}

.mtg-product-video-play{
    position:absolute;
    z-index:2;
    top:50%;
    left:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    transform:translate(-50%,-50%);
    color:var(--mtg-primary,#2563eb);
    filter:drop-shadow(0 4px 10px rgba(0,0,0,.3));
}

.mtg-product-media-thumb-video small{
    position:absolute;
    z-index:3;
    right:6px;
    bottom:5px;
    padding:2px 5px;
    border-radius:999px;
    background:rgba(2,6,23,.78);
    color:#fff;
    font-size:9px;
    font-weight:800;
    line-height:1.2;
}

@media(max-width:780px){
    .mtg-product-main-media,
    .mtg-product-main-media .mtg-product-image,
    .mtg-product-main-video{
        min-height:330px;
        max-height:520px;
    }

    .mtg-product-media-thumbs{
        display:flex;
        overflow-x:auto;
        grid-template-columns:none;
        gap:9px;
        padding-bottom:5px;
        scroll-snap-type:x proximity;
        scrollbar-width:thin;
    }

    .mtg-product-media-thumb{
        flex:0 0 76px;
        width:76px;
        height:76px;
        aspect-ratio:auto;
        scroll-snap-align:start;
    }
}

@media(max-width:480px){
    .mtg-product-main-media,
    .mtg-product-main-media .mtg-product-image,
    .mtg-product-main-video{
        min-height:280px;
    }
}

/* MTG_SINGLE_MEDIA_GLOBAL_CSS_V1_END */

/* MTG_SINGLE_PRODUCT_PREMIUM_V4_START */

body.single-mtg_product {
    --mtg-sp-ink: #0f172a;
    --mtg-sp-text: #334155;
    --mtg-sp-muted: #64748b;
    --mtg-sp-line: #e2e8f0;
    --mtg-sp-line-dark: #cbd5e1;
    --mtg-sp-soft: #f8fafc;
    --mtg-sp-navy: #14213d;
    --mtg-sp-green: #16a34a;
    --mtg-sp-green-soft: #edf9f1;
    --mtg-sp-danger: #b42318;
    --mtg-sp-shadow:
        0 18px 50px rgba(15, 23, 42, .07);
    --mtg-sp-shadow-soft:
        0 10px 28px rgba(15, 23, 42, .055);
}

/*
 * ============================================================
 * ÁREA GENERAL
 * ============================================================
 */

body.single-mtg_product .mtg-product-page {
    padding: clamp(32px, 4.5vw, 66px) 0 76px !important;
    background:
        radial-gradient(
            circle at 14% 4%,
            rgba(226, 232, 240, .42),
            transparent 31%
        ),
        linear-gradient(
            180deg,
            #fbfdff 0%,
            #ffffff 45%
        ) !important;
}

body.single-mtg_product .mtg-product-container {
    width: min(90%, 1420px) !important;
    max-width: 1420px !important;
    margin-inline: auto !important;
}

body.single-mtg_product .mtg-product-grid {
    display: grid !important;
    grid-template-columns:
        minmax(0, 1.13fr)
        minmax(420px, .87fr) !important;
    gap: clamp(30px, 3.2vw, 52px) !important;
    align-items: start !important;
}

body.single-mtg_product .mtg-product-right-stack {
    display: grid !important;
    gap: 22px !important;
    min-width: 0 !important;
}

/*
 * ============================================================
 * GALERÍA: CARD PRINCIPAL
 * ============================================================
 */

body.single-mtg_product .mtg-product-gallery {
    min-width: 0 !important;
    padding: 14px !important;
    border: 1px solid var(--mtg-sp-line) !important;
    outline: 0 !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    box-shadow: var(--mtg-sp-shadow) !important;
}

body.single-mtg_product .mtg-product-gallery::before,
body.single-mtg_product .mtg-product-gallery::after {
    display: none !important;
}

body.single-mtg_product .mtg-product-main-media {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 16px !important;
    background:
        linear-gradient(
            145deg,
            #f8fafc,
            #eef2f7
        ) !important;
    box-shadow: none !important;
}

body.single-mtg_product .mtg-product-main-media img,
body.single-mtg_product .mtg-product-main-media video {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 16px !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
}

body.single-mtg_product .mtg-product-main-media video {
    background: #080b10 !important;
}

/*
 * ============================================================
 * GALERÍA GENERADA POR EL LIGHTBOX
 * ============================================================
 */

body.single-mtg_product
.mtg-product-gallery
.mtg-lb-gallery {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.single-mtg_product
.mtg-product-gallery
.mtg-lb-stage {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 16px !important;
    background:
        linear-gradient(
            145deg,
            #f8fafc,
            #eef2f7
        ) !important;
    box-shadow: none !important;
}

body.single-mtg_product
.mtg-product-gallery
.mtg-lb-stage-button {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
}

body.single-mtg_product
.mtg-product-gallery
.mtg-lb-stage img,
body.single-mtg_product
.mtg-product-gallery
.mtg-lb-stage-poster {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 16px !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
}

/*
 * Elimina completamente el marco verde heredado.
 */
body.single-mtg_product
.mtg-product-gallery,
body.single-mtg_product
.mtg-product-gallery
.mtg-lb-stage,
body.single-mtg_product
.mtg-product-gallery
.mtg-lb-stage-button,
body.single-mtg_product
.mtg-product-gallery
.mtg-lb-stage img,
body.single-mtg_product
.mtg-product-gallery
.mtg-lb-thumbs,
body.single-mtg_product
.mtg-product-gallery
.mtg-lb-thumb,
body.single-mtg_product
.mtg-product-gallery
.mtg-lb-thumb img {
    border-color: var(--mtg-sp-line) !important;
    outline-color: transparent !important;
}

/*
 * ============================================================
 * THUMBNAILS
 * ============================================================
 */

body.single-mtg_product .mtg-product-media-thumbs,
body.single-mtg_product
.mtg-product-gallery
.mtg-lb-thumbs {
    display: grid !important;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(98px, 1fr)
        ) !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 12px !important;
    padding: 0 !important;
    background: transparent !important;
}

body.single-mtg_product .mtg-product-media-thumb,
body.single-mtg_product
.mtg-product-gallery
.mtg-lb-thumb {
    position: relative !important;
    min-width: 0 !important;
    aspect-ratio: 4 / 3 !important;
    overflow: hidden !important;
    padding: 3px !important;
    border: 1px solid var(--mtg-sp-line) !important;
    outline: 0 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease !important;
}

body.single-mtg_product .mtg-product-media-thumb:hover,
body.single-mtg_product
.mtg-product-gallery
.mtg-lb-thumb:hover {
    transform: translateY(-2px) !important;
    border-color: #9aa9bc !important;
    box-shadow:
        0 8px 18px rgba(15, 23, 42, .09) !important;
}

body.single-mtg_product .mtg-product-media-thumb.is-active,
body.single-mtg_product
.mtg-product-gallery
.mtg-lb-thumb.is-active {
    border-color: var(--mtg-sp-navy) !important;
    outline: 0 !important;
    background: #ffffff !important;
    box-shadow:
        0 0 0 2px rgba(20, 33, 61, .09),
        0 8px 18px rgba(15, 23, 42, .07) !important;
}

body.single-mtg_product .mtg-product-media-thumb img,
body.single-mtg_product
.mtg-product-gallery
.mtg-lb-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    object-position: center !important;
}

body.single-mtg_product .mtg-product-video-play,
body.single-mtg_product
.mtg-product-gallery
.mtg-lb-thumb-play {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    z-index: 4 !important;
    display: grid !important;
    place-items: center !important;
    width: 40px !important;
    height: 40px !important;
    border: 2px solid rgba(255, 255, 255, .94) !important;
    border-radius: 999px !important;
    background: rgba(15, 23, 42, .72) !important;
    color: #ffffff !important;
    transform: translate(-50%, -50%) !important;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, .24) !important;
}

body.single-mtg_product
.mtg-product-gallery
.mtg-lb-thumb-video-label {
    right: 6px !important;
    bottom: 6px !important;
    padding: 3px 7px !important;
    border-radius: 999px !important;
    background: rgba(15, 23, 42, .79) !important;
    color: #ffffff !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
}

/*
 * ============================================================
 * CARD DERECHA
 * ============================================================
 */

body.single-mtg_product .mtg-product-summary {
    min-width: 0 !important;
    padding: clamp(27px, 2.5vw, 38px) !important;
    border: 1px solid var(--mtg-sp-line) !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    box-shadow: var(--mtg-sp-shadow) !important;
}

body.single-mtg_product .mtg-product-cats {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    margin: 0 0 14px !important;
}

body.single-mtg_product .mtg-badge {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 28px !important;
    padding: 6px 11px !important;
    border: 1px solid #dce5f0 !important;
    border-radius: 999px !important;
    background: #f3f6fa !important;
    color: #43546c !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: .03em !important;
    text-transform: uppercase !important;
}

body.single-mtg_product .mtg-product-title {
    margin: 0 0 10px !important;
    color: var(--mtg-sp-ink) !important;
    font-size: clamp(38px, 4vw, 56px) !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    letter-spacing: -.045em !important;
}

body.single-mtg_product .mtg-product-pricing {
    display: flex !important;
    align-items: flex-end !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 0 0 20px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid var(--mtg-sp-line) !important;
}

body.single-mtg_product .mtg-price-main,
body.single-mtg_product .mtg-price-sale {
    color: var(--mtg-sp-ink) !important;
    font-size: clamp(34px, 3.4vw, 46px) !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    letter-spacing: -.035em !important;
}

body.single-mtg_product .mtg-price-regular {
    color: #94a3b8 !important;
    font-size: 18px !important;
    font-weight: 650 !important;
    text-decoration: line-through !important;
}

body.single-mtg_product .mtg-product-meta {
    display: grid !important;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        ) !important;
    gap: 10px !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
}

body.single-mtg_product .mtg-meta-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    min-width: 0 !important;
    min-height: 58px !important;
    padding: 13px 14px !important;
    border: 1px solid var(--mtg-sp-line) !important;
    border-radius: 14px !important;
    background: var(--mtg-sp-soft) !important;
}

body.single-mtg_product .mtg-meta-row strong {
    color: #53637a !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

body.single-mtg_product .mtg-meta-row span {
    overflow: hidden !important;
    color: var(--mtg-sp-ink) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-align: right !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/*
 * ============================================================
 * MODALIDAD
 * ============================================================
 */

body.single-mtg_product
.mtg-product-meta
.mtg-product-billing-type,
body.single-mtg_product
.mtg-product-meta
[class*="billing-type"],
body.single-mtg_product
.mtg-product-meta
[class*="billing"] {
    grid-column: 1 / -1 !important;
}

body.single-mtg_product .mtg-product-meta > div:last-child {
    grid-column: 1 / -1;
}

body.single-mtg_product
.mtg-product-meta
.mtg-billing-type-badge,
body.single-mtg_product
.mtg-product-meta
[class*="billing"][class*="badge"] {
    width: 100% !important;
    min-height: 54px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 12px 17px !important;
    border: 1px solid #cfe8d8 !important;
    border-radius: 14px !important;
    background:
        linear-gradient(
            135deg,
            #edf9f1,
            #f7fcf9
        ) !important;
    color: #166534 !important;
    box-shadow: none !important;
}

/*
 * Mantiene únicamente el pequeño ícono verde.
 */
body.single-mtg_product
.mtg-product-meta
.mtg-billing-type-badge::before,
body.single-mtg_product
.mtg-product-meta
[class*="billing"][class*="badge"]::before {
    background: var(--mtg-sp-green) !important;
}

/*
 * ============================================================
 * COMPRA
 * ============================================================
 */

body.single-mtg_product .mtg-buy-form {
    margin: 0 !important;
    padding-top: 18px !important;
    border-top: 1px solid var(--mtg-sp-line) !important;
}

body.single-mtg_product .mtg-buy-row {
    display: grid !important;
    grid-template-columns:
        168px
        minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: end !important;
}

body.single-mtg_product .mtg-qty-wrap {
    display: grid !important;
    gap: 7px !important;
}

body.single-mtg_product .mtg-qty-wrap label {
    color: #526278 !important;
    font-size: 12px !important;
    font-weight: 750 !important;
}

body.single-mtg_product .mtg-qty-wrap input {
    width: 100% !important;
    min-height: 52px !important;
    box-sizing: border-box !important;
    padding: 0 14px !important;
    border: 1px solid var(--mtg-sp-line-dark) !important;
    border-radius: 13px !important;
    outline: 0 !important;
    background: #ffffff !important;
    color: var(--mtg-sp-ink) !important;
    font-size: 15px !important;
    font-weight: 750 !important;
    box-shadow: none !important;
}

body.single-mtg_product .mtg-qty-wrap input:focus {
    border-color: #718096 !important;
    box-shadow:
        0 0 0 3px rgba(20, 33, 61, .08) !important;
}

body.single-mtg_product .mtg-btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 52px !important;
    padding: 0 20px !important;
    border: 0 !important;
    border-radius: 13px !important;
    background:
        linear-gradient(
            135deg,
            #14213d,
            #263b62
        ) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    box-shadow:
        0 12px 24px rgba(20, 33, 61, .19) !important;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease !important;
}

body.single-mtg_product .mtg-btn-primary:hover {
    transform: translateY(-2px) !important;
    filter: brightness(1.05) !important;
    box-shadow:
        0 16px 30px rgba(20, 33, 61, .25) !important;
}

body.single-mtg_product .mtg-btn-primary:disabled {
    transform: none !important;
    background: #a8b2c1 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

body.single-mtg_product .mtg-product-excerpt {
    margin: 20px 0 0 !important;
    color: var(--mtg-sp-muted) !important;
    font-size: 14px !important;
    line-height: 1.75 !important;
}

body.single-mtg_product .mtg-product-excerpt p {
    margin: 0 !important;
}

/*
 * ============================================================
 * COMPARTIR
 * ============================================================
 */

body.single-mtg_product .mtg-product-right-stack > div:not(.mtg-product-summary),
body.single-mtg_product .mtg-product-share-clean,
body.single-mtg_product .mtg-product-share {
    border-color: var(--mtg-sp-line) !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: var(--mtg-sp-shadow-soft) !important;
}

/*
 * ============================================================
 * DESCRIPCIÓN
 * ============================================================
 */

body.single-mtg_product .mtg-product-description-card {
    margin-top: 30px !important;
    padding: clamp(28px, 3vw, 42px) !important;
    border: 1px solid var(--mtg-sp-line) !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    box-shadow: var(--mtg-sp-shadow-soft) !important;
}

body.single-mtg_product .mtg-product-description-card h2 {
    margin: 0 0 18px !important;
    padding-bottom: 18px !important;
    border-bottom: 1px solid var(--mtg-sp-line) !important;
    color: var(--mtg-sp-ink) !important;
    font-size: clamp(27px, 2.6vw, 36px) !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    letter-spacing: -.03em !important;
}

body.single-mtg_product .mtg-product-description {
    color: #475569 !important;
    font-size: 15px !important;
    line-height: 1.85 !important;
}

body.single-mtg_product
.mtg-product-description > :first-child {
    margin-top: 0 !important;
}

body.single-mtg_product
.mtg-product-description > :last-child {
    margin-bottom: 0 !important;
}

/*
 * ============================================================
 * LIGHTBOX
 * ============================================================
 */

body.single-mtg_product .mtg-lb-modal {
    background: rgba(4, 7, 12, .91) !important;
    backdrop-filter: blur(9px) !important;
}

body.single-mtg_product .mtg-lb-viewer {
    border: 1px solid rgba(255, 255, 255, .10) !important;
    border-radius: 18px !important;
    background: #090c12 !important;
}

body.single-mtg_product .mtg-lb-content img,
body.single-mtg_product .mtg-lb-content video {
    object-fit: contain !important;
    object-position: center !important;
}

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

@media (max-width: 1080px) {
    body.single-mtg_product .mtg-product-grid {
        grid-template-columns:
            minmax(0, 1fr) !important;
    }

    body.single-mtg_product .mtg-product-summary {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 720px) {
    body.single-mtg_product .mtg-product-page {
        padding: 18px 0 48px !important;
    }

    body.single-mtg_product .mtg-product-container {
        width: 94% !important;
    }

    body.single-mtg_product .mtg-product-grid {
        gap: 18px !important;
    }

    body.single-mtg_product .mtg-product-gallery {
        padding: 10px !important;
        border-radius: 18px !important;
    }

    body.single-mtg_product .mtg-product-main-media,
    body.single-mtg_product
    .mtg-product-gallery
    .mtg-lb-stage {
        aspect-ratio: 1 / 1 !important;
        border-radius: 14px !important;
    }

    body.single-mtg_product
    .mtg-product-gallery
    .mtg-lb-stage img,
    body.single-mtg_product
    .mtg-product-gallery
    .mtg-lb-stage-poster {
        border-radius: 14px !important;
    }

    body.single-mtg_product .mtg-product-media-thumbs,
    body.single-mtg_product
    .mtg-product-gallery
    .mtg-lb-thumbs {
        display: flex !important;
        gap: 8px !important;
        overflow-x: auto !important;
        padding-bottom: 4px !important;
        scroll-snap-type: x mandatory !important;
    }

    body.single-mtg_product .mtg-product-media-thumb,
    body.single-mtg_product
    .mtg-product-gallery
    .mtg-lb-thumb {
        flex: 0 0 84px !important;
        width: 84px !important;
        scroll-snap-align: start !important;
    }

    body.single-mtg_product .mtg-product-summary {
        padding: 22px 18px !important;
        border-radius: 18px !important;
    }

    body.single-mtg_product .mtg-product-title {
        font-size: clamp(34px, 10vw, 44px) !important;
    }

    body.single-mtg_product .mtg-product-meta {
        grid-template-columns:
            minmax(0, 1fr) !important;
    }

    body.single-mtg_product
    .mtg-product-meta > div:last-child {
        grid-column: auto !important;
    }

    body.single-mtg_product .mtg-buy-row {
        grid-template-columns:
            minmax(0, 1fr) !important;
    }

    body.single-mtg_product .mtg-product-description-card {
        margin-top: 18px !important;
        padding: 22px 18px !important;
        border-radius: 18px !important;
    }
}

/* MTG_SINGLE_PRODUCT_PREMIUM_V4_END */


/* MTG_SINGLE_PRODUCT_COLORS_V41_START */

body.single-mtg_product {
    --mtg-rs-card: #ffffff;
    --mtg-rs-soft: #f8fafc;
    --mtg-rs-soft-2: #f1f5f9;
    --mtg-rs-line: #e2e8f0;
    --mtg-rs-line-2: #d8e1ec;
    --mtg-rs-title: #0f172a;
    --mtg-rs-text: #334155;
    --mtg-rs-muted: #64748b;
    --mtg-rs-price: #0b1f44;
    --mtg-rs-navy: #14213d;
    --mtg-rs-green: #16a34a;
    --mtg-rs-green-dark: #166534;
    --mtg-rs-green-soft: #effaf3;
    --mtg-rs-green-line: #ccebd7;
    --mtg-rs-disabled: #94a3b8;
    --mtg-rs-disabled-bg: #e2e8f0;
}

/* card principal derecha */
body.single-mtg_product .mtg-product-summary {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%) !important;
    border: 1px solid var(--mtg-rs-line) !important;
    box-shadow:
        0 14px 36px rgba(15, 23, 42, .06),
        0 2px 8px rgba(15, 23, 42, .03) !important;
}

/* badge categoría */
body.single-mtg_product .mtg-badge {
    background: #f8fafc !important;
    border: 1px solid #dbe5ef !important;
    color: #475569 !important;
}

/* título y precio */
body.single-mtg_product .mtg-product-title {
    color: var(--mtg-rs-title) !important;
}

body.single-mtg_product .mtg-price-main,
body.single-mtg_product .mtg-price-sale {
    color: var(--mtg-rs-price) !important;
}

body.single-mtg_product .mtg-price-regular {
    color: #94a3b8 !important;
}

/* meta rows: stock / destacado */
body.single-mtg_product .mtg-meta-row {
    background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%) !important;
    border: 1px solid var(--mtg-rs-line) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7) !important;
}

body.single-mtg_product .mtg-meta-row strong {
    color: #475569 !important;
}

body.single-mtg_product .mtg-meta-row span {
    color: var(--mtg-rs-title) !important;
}

body.single-mtg_product .mtg-meta-row span.mtg-stock-out,
body.single-mtg_product .mtg-meta-row .out-of-stock,
body.single-mtg_product .mtg-meta-row .sin-stock {
    color: #b42318 !important;
    font-weight: 800 !important;
}

/* modalidad de pago */
body.single-mtg_product .mtg-product-meta > div:last-child,
body.single-mtg_product .mtg-product-meta .mtg-billing-type-badge,
body.single-mtg_product .mtg-product-meta [class*="billing"][class*="badge"] {
    background: linear-gradient(135deg, #f5fcf7 0%, #effaf3 100%) !important;
    border: 1px solid var(--mtg-rs-green-line) !important;
    color: var(--mtg-rs-green-dark) !important;
    box-shadow: none !important;
}

body.single-mtg_product .mtg-product-meta .mtg-billing-type-badge::before,
body.single-mtg_product .mtg-product-meta [class*="billing"][class*="badge"]::before {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    box-shadow: 0 6px 14px rgba(34, 197, 94, .24) !important;
}

/* separador antes de compra */
body.single-mtg_product .mtg-buy-form {
    border-top: 1px solid var(--mtg-rs-line) !important;
}

/* label cantidad */
body.single-mtg_product .mtg-qty-wrap label {
    color: #475569 !important;
}

/* input cantidad */
body.single-mtg_product .mtg-qty-wrap input {
    background: #ffffff !important;
    border: 1px solid var(--mtg-rs-line-2) !important;
    color: var(--mtg-rs-title) !important;
}

body.single-mtg_product .mtg-qty-wrap input:focus {
    border-color: #94a3b8 !important;
    box-shadow: 0 0 0 3px rgba(20,33,61,.08) !important;
}

/* botón principal */
body.single-mtg_product .mtg-btn-primary {
    background: linear-gradient(135deg, #14213d 0%, #22365f 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(20, 33, 61, .18) !important;
}

body.single-mtg_product .mtg-btn-primary:hover {
    background: linear-gradient(135deg, #18294a 0%, #29416d 100%) !important;
}

body.single-mtg_product .mtg-btn-primary:disabled,
body.single-mtg_product .mtg-btn-primary[disabled] {
    background: linear-gradient(135deg, #b7c0cf 0%, #9aa6b8 100%) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

/* extracto */
body.single-mtg_product .mtg-product-excerpt {
    color: var(--mtg-rs-text) !important;
}

body.single-mtg_product .mtg-product-excerpt p,
body.single-mtg_product .mtg-product-excerpt span,
body.single-mtg_product .mtg-product-excerpt div {
    color: var(--mtg-rs-text) !important;
}

/* card compartir también más coherente */
body.single-mtg_product .mtg-product-share-clean,
body.single-mtg_product .mtg-product-share,
body.single-mtg_product .mtg-product-right-stack > div:not(.mtg-product-summary) {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%) !important;
    border: 1px solid var(--mtg-rs-line) !important;
}

/* iconitos compartir */
body.single-mtg_product .mtg-product-share a,
body.single-mtg_product .mtg-product-share-clean a {
    background: #ffffff !important;
    border: 1px solid #dce5ef !important;
    box-shadow: 0 4px 10px rgba(15,23,42,.04) !important;
}

body.single-mtg_product .mtg-product-share a:hover,
body.single-mtg_product .mtg-product-share-clean a:hover {
    transform: translateY(-2px);
    border-color: #b9c7d8 !important;
}

/* responsive fino */
@media (max-width: 720px) {
    body.single-mtg_product .mtg-product-summary {
        box-shadow: 0 10px 24px rgba(15, 23, 42, .05) !important;
    }
}

/* MTG_SINGLE_PRODUCT_COLORS_V41_END */

/* MTG_SINGLE_COLORS_EXACT_V42_START */

/*
 * Colores exactos de la card derecha.
 * Se sirve con filemtime para evitar CSS antiguo.
 */

body.single-mtg_product .mtg-product-summary {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfcfe 100%
        ) !important;
    border-color: #dfe6ef !important;
    box-shadow:
        0 18px 48px rgba(15, 23, 42, .065) !important;
}

body.single-mtg_product .mtg-product-title {
    color: #111827 !important;
}

body.single-mtg_product .mtg-price-main,
body.single-mtg_product .mtg-price-sale {
    color: #10213f !important;
}

body.single-mtg_product .mtg-product-meta {
    border-color: transparent !important;
}

body.single-mtg_product .mtg-meta-row {
    background:
        linear-gradient(
            180deg,
            #fbfcfe 0%,
            #f6f8fb 100%
        ) !important;
    border-color: #dce4ee !important;
}

body.single-mtg_product .mtg-meta-row strong {
    color: #64748b !important;
}

body.single-mtg_product .mtg-meta-row span {
    color: #111827 !important;
}

body.single-mtg_product .mtg-buy-form {
    border-top-color: #e2e8f0 !important;
}

body.single-mtg_product .mtg-qty-wrap label {
    color: #475569 !important;
}

body.single-mtg_product .mtg-qty-wrap input {
    background: #ffffff !important;
    border-color: #cfd9e6 !important;
    color: #111827 !important;
}

body.single-mtg_product .mtg-btn-primary {
    background:
        linear-gradient(
            135deg,
            #152744 0%,
            #263f68 100%
        ) !important;
    color: #ffffff !important;
}

body.single-mtg_product .mtg-btn-primary:disabled,
body.single-mtg_product .mtg-btn-primary[disabled] {
    background:
        linear-gradient(
            135deg,
            #b8c1cf 0%,
            #9ba8ba 100%
        ) !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

body.single-mtg_product .mtg-product-excerpt,
body.single-mtg_product .mtg-product-excerpt p {
    color: #64748b !important;
}

/* MTG_SINGLE_COLORS_EXACT_V42_END */

/* MTG SINGLE PRODUCT UI REAL V1 - START */

/*
 * 1. TÍTULO DEL PRODUCTO
 * Más proporcionado en desktop y móvil.
 */
body.single-mtg_product .mtg-product-title {
    font-size: clamp(17px, 1.5vw, 27px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.045em !important;
    text-wrap: balance !important;
    overflow-wrap: anywhere !important;
    margin: 14px 0 14px !important;
}

/*
 * 2. PRECIO DESTACADO
 * Se mantiene el precio de oferta y el regular dentro
 * de una franja visual clara.
 */
body.single-mtg_product .mtg-product-pricing {
    width: fit-content !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 6px 0 20px !important;
    padding: 13px 17px !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 17px !important;
    background:
        linear-gradient(
            135deg,
            #eff6ff 0%,
            #ffffff 55%,
            #ecfdf5 100%
        ) !important;
    box-shadow:
        0 12px 28px rgba(15, 42, 68, .10) !important;
}

body.single-mtg_product .mtg-price-sale {
    color: #0f2a44 !important;
    font-size: clamp(24px, 1.95vw, 35px) !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    letter-spacing: -0.04em !important;
    text-shadow: 0 1px 0 rgba(255,255,255,.85) !important;
}

body.single-mtg_product .mtg-price-regular {
    color: #64748b !important;
    font-size: clamp(12px, 0.94vw, 15px) !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    opacity: .82 !important;
    text-decoration-thickness: 2px !important;
}

/*
 * 3A. CAMPOS DEL SISTEMA ACTUAL DEL PANEL PREMIUM
 * Renderer:
 * mtg-render-product-custom-fields-real.php
 */
body.single-mtg_product .mtg-product-custom-fields-real {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 0 0 100% !important;
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin: 18px 0 !important;
    padding: 20px !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
}

body.single-mtg_product
.mtg-product-custom-fields-real-title {
    width: 100% !important;
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
}

body.single-mtg_product
.mtg-product-custom-fields-real label,
body.single-mtg_product
.mtg-product-custom-fields-real .mtg-product-custom-field-real,
body.single-mtg_product
.mtg-product-custom-fields-real [class*="field"] {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

body.single-mtg_product
.mtg-product-custom-fields-real input:not([type="checkbox"]):not([type="radio"]),
body.single-mtg_product
.mtg-product-custom-fields-real textarea,
body.single-mtg_product
.mtg-product-custom-fields-real select {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 52px !important;
    display: block !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border-radius: 13px !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
}

body.single-mtg_product
.mtg-product-custom-fields-real textarea {
    min-height: 120px !important;
    resize: vertical !important;
}

/*
 * Si el renderer actual fue insertado dentro del área
 * de cantidad/botón, ocupa una fila completa.
 */
body.single-mtg_product
.mtg-buy-row .mtg-product-custom-fields-real {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

body.single-mtg_product
.mtg-buy-form:has(.mtg-product-custom-fields-real)
.mtg-buy-row {
    display: grid !important;
    grid-template-columns: minmax(120px, .42fr) minmax(0, 1fr) !important;
    align-items: end !important;
    gap: 12px !important;
}

/*
 * 3B. SISTEMA ANTIGUO DE CAMPOS ADICIONALES
 * Se mantiene compatible para productos creados
 * desde el editor anterior.
 */
body.single-mtg_product .mtg-product-extra-fields {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    grid-column: 1 / -1 !important;
    margin: 18px 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

body.single-mtg_product
.mtg-product-extra-fields__grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
}

body.single-mtg_product
.mtg-product-extra-field {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    grid-column: 1 / -1 !important;
    box-sizing: border-box !important;
}

body.single-mtg_product
.mtg-product-extra-field input,
body.single-mtg_product
.mtg-product-extra-field textarea,
body.single-mtg_product
.mtg-product-extra-field select {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 52px !important;
    display: block !important;
    box-sizing: border-box !important;
}

body.single-mtg_product
.mtg-product-extra-field textarea {
    min-height: 120px !important;
}

/*
 * Móvil.
 */
@media (max-width: 700px) {
    body.single-mtg_product .mtg-product-title {
        font-size: clamp(15px, 4.5vw, 20px) !important;
        letter-spacing: -0.035em !important;
    }

    body.single-mtg_product .mtg-product-pricing {
        width: 100% !important;
        padding: 13px 15px !important;
    }

    body.single-mtg_product
    .mtg-buy-form:has(.mtg-product-custom-fields-real)
    .mtg-buy-row {
        grid-template-columns: 1fr !important;
    }

    body.single-mtg_product
    .mtg-product-custom-fields-real,
    body.single-mtg_product
    .mtg-product-extra-fields {
        padding: 16px !important;
    }
}

/* MTG SINGLE PRODUCT UI REAL V1 - END */

/* MTG PRECIO ÚNICO GLOBAL V1 */
body.single-mtg_product
.mtg-product-pricing > .mtg-price-sale:only-child,

body.single-mtg_product
.mtg-product-pricing > .mtg-price-regular:only-child,

body.single-mtg_product
.mtg-product-pricing > [class*="price"]:only-child {
    font-size: clamp(24px, 1.95vw, 35px) !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    letter-spacing: -0.04em !important;
    color: #0f2a44 !important;
    opacity: 1 !important;
    text-decoration: none !important;
}

/* ==========================================================
   MTG REQUIRED STAR INLINE
   El asterisco requerido debe ir junto al texto del label
   ========================================================== */
body.single-mtg_product .mtg-product-extra-fields label,
body.single-mtg_product .mtg-product-additional-fields label,
body.single-mtg_product .mtg-additional-fields label,
body.single-mtg_product .mtg-custom-fields label,
body.single-mtg_product .product-additional-fields label,
body.single-mtg_product .single-product-custom-fields label,
body.single-mtg_product .mtg-product-form__extra-fields label,
body.single-mtg_product .mtg-product-extra-field__label,
body.single-mtg_product .mtg-product-field__label,
body.single-mtg_product .mtg-field__label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
}

body.single-mtg_product .mtg-product-extra-fields label .required,
body.single-mtg_product .mtg-product-additional-fields label .required,
body.single-mtg_product .mtg-additional-fields label .required,
body.single-mtg_product .mtg-custom-fields label .required,
body.single-mtg_product .product-additional-fields label .required,
body.single-mtg_product .single-product-custom-fields label .required,
body.single-mtg_product .mtg-product-form__extra-fields label .required,
body.single-mtg_product .mtg-product-extra-field__label .required,
body.single-mtg_product .mtg-product-field__label .required,
body.single-mtg_product .mtg-field__label .required {
    display: inline !important;
    position: static !important;
    margin: 0 0 0 4px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    color: #ef4444 !important;
}

body.single-mtg_product .mtg-product-extra-fields .required:empty::before,
body.single-mtg_product .mtg-product-additional-fields .required:empty::before,
body.single-mtg_product .mtg-additional-fields .required:empty::before,
body.single-mtg_product .mtg-custom-fields .required:empty::before,
body.single-mtg_product .product-additional-fields .required:empty::before,
body.single-mtg_product .single-product-custom-fields .required:empty::before,
body.single-mtg_product .mtg-product-form__extra-fields .required:empty::before,
body.single-mtg_product .mtg-product-extra-field__label .required:empty::before,
body.single-mtg_product .mtg-product-field__label .required:empty::before,
body.single-mtg_product .mtg-field__label .required:empty::before {
    content: "*" !important;
}

/* MTG ASTERISCO REQUERIDO INLINE DEFINITIVO */
body.single-mtg_product
.mtg-product-custom-fields-real
.mtg-product-custom-field-real > label {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    width: 100% !important;
    margin: 0 0 8px !important;
}

body.single-mtg_product
.mtg-product-custom-fields-real
.mtg-product-custom-field-real > label > span {
    display: inline-block !important;
    position: static !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #dc2626 !important;
    line-height: 1 !important;
    flex: 0 0 auto !important;
}
