.ctn-mp {
    --ctn-primary: #a70d18;
    --ctn-primary-dark: color-mix(in srgb, var(--ctn-primary) 82%, #000);
    --ctn-primary-soft: color-mix(in srgb, var(--ctn-primary) 9%, #fff);
    --ctn-secondary: #173f73;
    --ctn-page-bg: #f3f4f6;
    --ctn-text: #20252c;
    --ctn-muted: #667085;
    --ctn-line: #e4e7ec;
    --ctn-soft: #f8f9fb;
    --ctn-green: #18864b;
    --ctn-danger: #b42318;
    --ctn-radius: 18px;
    --ctn-shadow: 0 8px 28px rgba(16, 24, 40, .07);
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 18px 0 52px;
    color: var(--ctn-text);
    background: var(--ctn-page-bg);
    box-shadow: 0 0 0 100vmax var(--ctn-page-bg);
    clip-path: inset(0 -100vmax);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.ctn-mp,
.ctn-mp * {
    box-sizing: border-box;
}

.ctn-mp button,
.ctn-mp input,
.ctn-mp select,
.ctn-mp textarea {
    font: inherit;
}

.ctn-mp button,
.ctn-mp a {
    -webkit-tap-highlight-color: transparent;
}

.ctn-mp a {
    color: var(--ctn-secondary);
    text-decoration: none;
}

.ctn-mp img {
    max-width: 100%;
}

.ctn-mp-page {
    width: min(1320px, calc(100% - 36px));
    margin: 0 auto;
}

.ctn-icon {
    display: inline-block;
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}

/* Aísla los SVG de reglas globales de Divi y los centra geométricamente. */
.ctn-mp svg.ctn-icon {
    position: static !important;
    inset: auto !important;
    margin: 0 !important;
    display: block !important;
    flex: 0 0 auto;
    opacity: 1 !important;
    transform: none !important;
    line-height: 1 !important;
}

.ctn-mp-topline {
    min-height: 40px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ctn-mp-breadcrumbs,
.ctn-mp-breadcrumbs .woocommerce-breadcrumb {
    margin: 0;
    padding: 0;
    color: var(--ctn-muted);
    font-size: 13px;
    line-height: 1.5;
}

.ctn-mp-breadcrumbs .woocommerce-breadcrumb span {
    margin: 0 8px;
    color: #a8b0bd;
}

.ctn-mp-breadcrumbs a {
    color: #475467;
}

.ctn-mp-actions {
    display: flex;
    gap: 4px;
    flex: 0 0 auto;
}

.ctn-action-button {
    min-height: 38px;
    padding: 7px 10px;
    border: 0;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ctn-secondary);
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: background .18s ease, color .18s ease;
}

.ctn-action-button:hover,
.ctn-action-button:focus-visible {
    color: var(--ctn-primary);
    background: #fff;
    outline: none;
}

.ctn-favorite-button.is-active {
    color: var(--ctn-primary);
}

.ctn-favorite-button.is-active .ctn-icon {
    fill: currentColor;
}

.ctn-mp-main-card {
    display: grid;
    grid-template-columns: minmax(420px, 1.17fr) minmax(290px, .78fr) minmax(310px, .72fr);
    gap: clamp(20px, 2.2vw, 34px);
    padding: clamp(20px, 2.4vw, 34px);
    border: 1px solid rgba(16, 24, 40, .05);
    border-radius: var(--ctn-radius);
    background: #fff;
    box-shadow: var(--ctn-shadow);
}

.ctn-mp-summary-mobile {
    display: none;
}

.ctn-mp-gallery {
    min-width: 0;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 16px;
    align-self: start;
}

.ctn-mp-thumbs {
    max-height: 540px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #c8ced7 transparent;
}

.ctn-mp-thumb {
    position: relative;
    width: 64px;
    height: 64px;
    padding: 5px;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ctn-mp-thumb:hover {
    border-color: #aeb7c4;
    transform: translateY(-1px);
}

.ctn-mp-thumb:focus-visible,
.ctn-mp-thumb.is-active {
    border-color: var(--ctn-primary);
    box-shadow: 0 0 0 2px var(--ctn-primary-soft);
    outline: none;
}

.ctn-mp-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.ctn-mp-stage {
    position: relative;
    min-width: 0;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.ctn-mp-image-button {
    width: 100%;
    height: 520px;
    padding: 22px;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: zoom-in;
}

.ctn-mp-featured {
    width: 100%;
    height: 100%;
    max-height: 480px;
    display: block;
    object-fit: contain;
    transition: opacity .18s ease, transform .25s ease;
}

.ctn-mp-image-button:hover .ctn-mp-featured {
    transform: scale(1.015);
}

.ctn-sale-badge {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #fff;
    background: var(--ctn-primary);
    box-shadow: 0 4px 12px rgba(167, 13, 24, .18);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.ctn-zoom-hint {
    position: absolute;
    z-index: 3;
    right: 12px;
    bottom: 12px;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid var(--ctn-line);
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #344054;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 4px 14px rgba(16, 24, 40, .08);
    font-size: 12px;
    font-weight: 700;
    pointer-events: none;
}

.ctn-zoom-hint .ctn-icon {
    width: 17px;
    height: 17px;
}

.ctn-stage-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--ctn-line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ctn-secondary);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 5px 18px rgba(16, 24, 40, .12);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity .18s ease, background .18s ease;
}

.ctn-stage-prev { left: 8px; }
.ctn-stage-next { right: 8px; }

.ctn-mp-stage:hover .ctn-stage-arrow,
.ctn-stage-arrow:focus-visible {
    opacity: 1;
}

.ctn-stage-arrow:hover,
.ctn-stage-arrow:focus-visible {
    color: #fff;
    background: var(--ctn-primary);
    outline: none;
}

.ctn-gallery-counter {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 13px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #475467;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 3px 12px rgba(16, 24, 40, .07);
    font-size: 11px;
    font-weight: 700;
    transform: translateX(-50%);
}

.ctn-mp-summary {
    min-width: 0;
    align-self: start;
}

.ctn-mp-eyebrow {
    margin-bottom: 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--ctn-muted);
    font-size: 12px;
}

.ctn-mp-eyebrow span + span::before {
    content: "|";
    margin-right: 7px;
    color: #c4c9d1;
}

.ctn-mp-summary h1 {
    margin: 0 0 12px;
    color: #1f242b;
    font-size: clamp(24px, 2.1vw, 34px);
    font-weight: 750;
    line-height: 1.14;
    letter-spacing: -.025em;
}

.ctn-product-reference {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    color: var(--ctn-muted);
    font-size: 12px;
}

.ctn-product-reference strong {
    color: #344054;
    font-weight: 700;
}

.ctn-mp-rating {
    min-height: 28px;
    margin: 3px 0 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.ctn-rating-number {
    color: var(--ctn-secondary);
    font-weight: 700;
}

.ctn-stars .star-rating {
    width: 5.4em;
    height: 1em;
    margin: 0;
    float: none;
    color: var(--ctn-primary);
    font-size: 14px;
    line-height: 1;
}

.ctn-mp-rating a {
    font-weight: 650;
}

.ctn-price-block {
    margin: 12px 0 20px;
}

.ctn-mp-price,
.ctn-buybox-price,
.ctn-mobile-price,
.ctn-related-price {
    color: #171a1f;
    font-variant-numeric: tabular-nums;
}

.ctn-mp-price {
    font-size: clamp(32px, 3vw, 44px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.03em;
}

.ctn-mp-price > .amount,
.ctn-mp-price ins .amount {
    color: #171a1f;
}

.ctn-mp-price del,
.ctn-buybox-price del,
.ctn-mobile-price del,
.ctn-related-price del {
    display: block;
    margin-bottom: 3px;
    color: #98a2b3;
    font-size: .52em;
    font-weight: 500;
    line-height: 1.2;
}

.ctn-mp-price ins,
.ctn-buybox-price ins,
.ctn-mobile-price ins,
.ctn-related-price ins {
    text-decoration: none;
}

.ctn-price-discount {
    margin-top: 6px;
    display: inline-block;
    color: var(--ctn-green);
    font-size: 14px;
    font-weight: 800;
}

.ctn-tax-note {
    margin-top: 5px;
    display: block;
    color: var(--ctn-muted);
    font-size: 11px;
}

.ctn-mp-short {
    margin: 0 0 20px;
    color: #475467;
    font-size: 14px;
    line-height: 1.65;
}

.ctn-mp-short p {
    margin: 0 0 10px;
}

.ctn-mp-highlights {
    margin-top: 22px;
    padding-top: 21px;
    border-top: 1px solid var(--ctn-line);
}

.ctn-mp-highlights h2 {
    margin: 0 0 13px;
    color: #24292f;
    font-size: 16px;
    font-weight: 750;
}

.ctn-mp-highlights ul {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    list-style: none;
}

.ctn-mp-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #475467;
    font-size: 13px;
    line-height: 1.45;
}

.ctn-mp-highlights li .ctn-icon {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    color: var(--ctn-primary);
    stroke-width: 2.4;
}

.ctn-mp-highlights li strong {
    color: #344054;
}

.ctn-mp-buybox {
    min-width: 0;
    align-self: start;
}

.ctn-buy-card {
    padding: 22px;
    border: 1px solid #dfe3e8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(16, 24, 40, .055);
}

.ctn-buy-card + .ctn-buy-card {
    margin-top: 14px;
}

.ctn-buybox-price {
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 650;
    line-height: 1.12;
}

.ctn-buy-benefit {
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ctn-quote-intro {
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--ctn-secondary) 18%, #fff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: color-mix(in srgb, var(--ctn-secondary) 6%, #fff);
}

.ctn-quote-intro > div {
    min-width: 0;
}

.ctn-quote-intro strong,
.ctn-quote-intro span {
    display: block;
}

.ctn-quote-intro strong {
    color: var(--ctn-secondary);
    font-size: 14px;
}

.ctn-quote-intro div span {
    margin-top: 3px;
    color: var(--ctn-muted);
    font-size: 11px;
    line-height: 1.45;
}

.ctn-benefit-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--ctn-primary);
    background: var(--ctn-primary-soft);
    flex: 0 0 auto;
    line-height: 0;
    text-align: center;
}

.ctn-benefit-icon .ctn-icon {
    width: 18px;
    height: 18px;
}

.ctn-buy-benefit div {
    min-width: 0;
    padding: 0;
}

.ctn-buy-benefit strong,
.ctn-buy-benefit span {
    display: block;
}

.ctn-buy-benefit strong {
    color: var(--ctn-green);
    font-size: 14px;
    line-height: 1.25;
}

.ctn-buy-benefit span {
    margin-top: 3px;
    color: var(--ctn-muted);
    font-size: 11px;
    line-height: 1.4;
}

.ctn-stock {
    min-height: 22px;
    margin: 18px 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
}

.ctn-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 13%, transparent);
    flex: 0 0 8px;
}

.ctn-stock.is-available { color: var(--ctn-green); }
.ctn-stock.is-unavailable { color: var(--ctn-danger); }

.ctn-cart-wrap form.cart,
.ctn-cart-wrap form.variations_form,
.ctn-cart-wrap form.grouped_form {
    width: 100%;
    margin: 0 !important;
    padding: 0;
    display: block !important;
}

.ctn-cart-wrap .quantity {
    position: relative;
    width: 100% !important;
    height: 46px;
    margin: 0 0 10px !important;
    padding: 0 43px;
    border: 1px solid #d6dbe3;
    border-radius: 10px;
    display: flex !important;
    align-items: stretch;
    float: none !important;
    overflow: hidden;
    background: #fff;
}

.ctn-cart-wrap .quantity .qty {
    width: 100% !important;
    min-width: 0;
    height: 44px !important;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 4px !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #20252c;
    background: #fff !important;
    box-shadow: none !important;
    text-align: center;
    font-weight: 700;
    -moz-appearance: textfield;
}

.ctn-cart-wrap .quantity .qty::-webkit-outer-spin-button,
.ctn-cart-wrap .quantity .qty::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.ctn-qty-button {
    position: absolute;
    z-index: 2;
    top: 0;
    width: 43px;
    height: 44px;
    padding: 0;
    border: 0;
    color: var(--ctn-secondary);
    background: #f8fafc;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
}

.ctn-qty-button:hover,
.ctn-qty-button:focus-visible {
    color: var(--ctn-primary);
    background: var(--ctn-primary-soft);
    outline: none;
}

.ctn-qty-minus { left: 0; border-right: 1px solid #e2e6ec; }
.ctn-qty-plus { right: 0; border-left: 1px solid #e2e6ec; }

.ctn-cart-wrap .single_add_to_cart_button,
.ctn-cart-wrap .button,
.ctn-buy-now-button {
    width: 100% !important;
    min-height: 48px;
    margin: 0 !important;
    padding: 12px 16px !important;
    border: 1px solid var(--ctn-primary) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    background: var(--ctn-primary) !important;
    box-shadow: none !important;
    cursor: pointer;
    float: none !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: center;
    text-transform: none !important;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

/* Divi agrega un icono mediante ::after y cambia el padding al hacer hover. */
body #page-container .ctn-mp .ctn-cart-wrap .single_add_to_cart_button.button::before,
body #page-container .ctn-mp .ctn-cart-wrap .single_add_to_cart_button.button::after,
body .ctn-mp .ctn-cart-wrap .single_add_to_cart_button.button::before,
body .ctn-mp .ctn-cart-wrap .single_add_to_cart_button.button::after,
body .ctn-mp .ctn-buy-now-button::before,
body .ctn-mp .ctn-buy-now-button::after,
body .ctn-mp .ctn-mewd-quote-action .mewd-button::before,
body .ctn-mp .ctn-mewd-quote-action .mewd-button::after,
body .ctn-mp .ctn-mobile-cart-button::before,
body .ctn-mp .ctn-mobile-cart-button::after,
body .ctn-mp .ctn-mobile-buy-button::before,
body .ctn-mp .ctn-mobile-buy-button::after,
body .ctn-mp .ctn-mobile-quote-button::before,
body .ctn-mp .ctn-mobile-quote-button::after {
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: none !important;
    opacity: 0 !important;
}

body #page-container .ctn-mp .ctn-cart-wrap .single_add_to_cart_button.button,
body #page-container .ctn-mp .ctn-cart-wrap .single_add_to_cart_button.button:hover,
body #page-container .ctn-mp .ctn-cart-wrap .single_add_to_cart_button.button:focus,
body .ctn-mp .ctn-cart-wrap .single_add_to_cart_button.button,
body .ctn-mp .ctn-cart-wrap .single_add_to_cart_button.button:hover,
body .ctn-mp .ctn-cart-wrap .single_add_to_cart_button.button:focus,
body .ctn-mp .ctn-buy-now-button,
body .ctn-mp .ctn-buy-now-button:hover,
body .ctn-mp .ctn-buy-now-button:focus {
    padding: 12px 16px !important;
    text-align: center !important;
}

.ctn-cart-wrap .single_add_to_cart_button:hover,
.ctn-cart-wrap .button:hover,
.ctn-cart-wrap .single_add_to_cart_button:focus-visible,
.ctn-cart-wrap .button:focus-visible {
    border-color: var(--ctn-primary-dark) !important;
    background: var(--ctn-primary-dark) !important;
    transform: translateY(-1px);
    outline: none;
}

.ctn-cart-wrap .single_add_to_cart_button.disabled,
.ctn-cart-wrap .single_add_to_cart_button:disabled,
.ctn-cart-wrap .button.disabled,
.ctn-cart-wrap .button:disabled {
    border-color: #d0d5dd !important;
    color: #fff !important;
    background: #aeb5bf !important;
    cursor: not-allowed;
    opacity: 1 !important;
    transform: none;
}

.ctn-buy-now-button {
    margin-top: 9px !important;
    border-color: var(--ctn-primary-soft) !important;
    color: var(--ctn-primary) !important;
    background: var(--ctn-primary-soft) !important;
}

.ctn-buy-now-button:hover,
.ctn-buy-now-button:focus-visible {
    border-color: color-mix(in srgb, var(--ctn-primary) 20%, #fff) !important;
    background: color-mix(in srgb, var(--ctn-primary) 14%, #fff) !important;
    transform: translateY(-1px);
    outline: none;
}

.ctn-choice-separator {
    position: relative;
    margin: 18px 0 12px;
    color: #98a2b3;
    text-align: center;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ctn-choice-separator::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--ctn-line);
}

.ctn-choice-separator span {
    position: relative;
    z-index: 1;
    padding: 0 9px;
    background: #fff;
}

.ctn-mewd-quote-action .mewd-single-quote {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    display: grid;
    gap: 10px;
    background: transparent;
}

.ctn-mewd-quote-action .mewd-variable-note {
    margin: 0;
    color: var(--ctn-muted);
    font-size: 11px;
    line-height: 1.45;
}

.ctn-mewd-quote-action .mewd-quote-add-form {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 9px;
    align-items: stretch;
}

.ctn-mewd-quote-action .mewd-quantity-stepper {
    width: 100%;
    height: 48px;
    border-color: #d6dbe3;
    border-radius: 10px;
    grid-template-columns: 31px minmax(34px, 1fr) 31px;
}

.ctn-mewd-quote-action .mewd-quantity-stepper button,
.ctn-mewd-quote-action .mewd-quantity-stepper input {
    height: 46px !important;
    line-height: 46px !important;
}

.ctn-mewd-quote-action .mewd-button,
.ctn-mewd-quote-action button.mewd-button {
    width: 100% !important;
    min-width: 0;
    min-height: 48px;
    padding: 11px 12px !important;
    border-radius: 10px !important;
    background: var(--ctn-secondary) !important;
    font-size: 13px !important;
}

.ctn-mewd-quote-action .mewd-button:hover,
.ctn-mewd-quote-action button.mewd-button:hover,
.ctn-mewd-quote-action .mewd-button:focus-visible,
.ctn-mewd-quote-action button.mewd-button:focus-visible {
    background: color-mix(in srgb, var(--ctn-secondary) 82%, #000) !important;
    outline: none;
}

.ctn-mewd-quote-action .mewd-quote-cart-link {
    display: inline-flex;
    align-items: center;
    color: var(--ctn-secondary);
    font-size: 12px;
    font-weight: 750;
}

.ctn-mewd-quote-action .mewd-quote-count {
    min-width: 21px;
    height: 21px;
    margin-left: 5px;
    padding: 0 5px;
    display: inline-grid !important;
    place-items: center;
    color: #fff;
    background: var(--ctn-secondary);
    font-size: 11px;
    line-height: 1 !important;
    text-align: center;
    vertical-align: middle;
}

.ctn-cart-wrap .variations {
    width: 100%;
    margin: 0 0 10px !important;
    border: 0 !important;
}

.ctn-cart-wrap .variations tbody,
.ctn-cart-wrap .variations tr,
.ctn-cart-wrap .variations th,
.ctn-cart-wrap .variations td {
    width: 100%;
    padding: 0 !important;
    border: 0 !important;
    display: block;
    background: transparent !important;
}

.ctn-cart-wrap .variations tr {
    margin: 0 0 12px;
}

.ctn-cart-wrap .variations label {
    margin: 0 0 6px;
    display: block;
    color: #344054;
    font-size: 13px;
    font-weight: 750;
}

.ctn-cart-wrap .variations select {
    width: 100%;
    min-height: 44px;
    margin: 0 !important;
    padding: 9px 36px 9px 11px !important;
    border: 1px solid #d6dbe3 !important;
    border-radius: 9px !important;
    color: #344054;
    background-color: #fff !important;
    box-shadow: none !important;
}

.ctn-cart-wrap .reset_variations {
    margin-top: 6px;
    display: inline-block !important;
    color: var(--ctn-primary);
    font-size: 11px;
    font-weight: 700;
}

.ctn-cart-wrap .single_variation_wrap,
.ctn-cart-wrap .woocommerce-variation-add-to-cart {
    display: block;
}

.ctn-cart-wrap .woocommerce-variation-description,
.ctn-cart-wrap .woocommerce-variation-availability {
    margin-bottom: 9px;
    color: var(--ctn-muted);
    font-size: 12px;
}

.ctn-cart-wrap .woocommerce-variation-price {
    margin: 3px 0 10px;
    color: #20252c;
    font-size: 21px;
    font-weight: 750;
}

.ctn-cart-wrap .group_table {
    width: 100%;
    margin: 0 0 12px;
    border: 0;
}

.ctn-cart-wrap .group_table td {
    padding: 8px 4px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ctn-line) !important;
    background: transparent !important;
    font-size: 12px;
}

.ctn-cart-wrap .group_table .quantity {
    width: 104px !important;
    margin: 0 !important;
}

.ctn-cart-wrap .stock.out-of-stock,
.ctn-cart-wrap .woocommerce-variation-price:empty,
.ctn-cart-wrap .woocommerce-variation-availability:empty {
    display: none;
}

.ctn-protected {
    min-height: 52px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--ctn-line);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ctn-muted);
    font-size: 11px;
    line-height: 1.45;
}

.ctn-protected .ctn-icon {
    width: 20px;
    height: 20px;
    color: var(--ctn-green);
}

.ctn-protected strong {
    display: block;
    color: #344054;
    font-size: 12px;
}

.ctn-payment-card {
    padding: 18px 20px;
}

.ctn-payment-title {
    min-height: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    line-height: 1.25;
}

.ctn-payment-title .ctn-icon {
    width: 20px;
    height: 20px;
    color: var(--ctn-primary);
}

.ctn-payment-card p {
    margin: 9px 0 8px;
    color: var(--ctn-muted);
    font-size: 11px;
    line-height: 1.5;
}

.ctn-payment-card a {
    font-size: 12px;
    font-weight: 750;
}

.ctn-mp-section {
    margin-top: 22px;
    padding: clamp(22px, 2.7vw, 38px);
    border: 1px solid rgba(16, 24, 40, .05);
    border-radius: var(--ctn-radius);
    background: #fff;
    box-shadow: var(--ctn-shadow);
}

.ctn-section-head {
    margin-bottom: 23px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.ctn-section-head span {
    margin-bottom: 4px;
    display: block;
    color: var(--ctn-primary);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ctn-section-head h2 {
    margin: 0;
    color: #20252c;
    font-size: clamp(21px, 2.1vw, 29px);
    font-weight: 760;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.ctn-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ctn-related-card {
    min-width: 0;
    border: 1px solid var(--ctn-line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.ctn-related-card:hover {
    border-color: #d1d6de;
    box-shadow: 0 12px 28px rgba(16, 24, 40, .1);
    transform: translateY(-3px);
}

.ctn-related-media {
    position: relative;
    aspect-ratio: 1.35 / 1;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.ctn-related-media::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 0;
    left: 16px;
    height: 1px;
    background: var(--ctn-line);
}

.ctn-related-media img {
    width: 100%;
    height: 100%;
    margin: 0 !important;
    display: block;
    object-fit: contain;
}

.ctn-related-sale {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #fff;
    background: var(--ctn-primary);
    font-size: 10px;
    font-weight: 850;
}

.ctn-related-info {
    padding: 16px;
}

.ctn-related-info h3 {
    min-height: 42px;
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 720;
    line-height: 1.4;
}

.ctn-related-info h3 a {
    color: #20252c;
}

.ctn-related-price {
    font-size: 21px;
    font-weight: 750;
    line-height: 1.2;
}

.ctn-related-stock {
    margin-top: 5px;
    display: block;
    color: var(--ctn-green);
    font-size: 11px;
    font-weight: 750;
}

.ctn-related-button {
    min-height: 38px;
    margin-top: 13px;
    padding: 8px 12px;
    border: 1px solid color-mix(in srgb, var(--ctn-primary) 18%, #fff);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ctn-primary) !important;
    background: var(--ctn-primary-soft);
    font-size: 12px;
    font-weight: 800;
    transition: color .18s ease, background .18s ease;
}

.ctn-related-button:hover,
.ctn-related-button:focus-visible {
    color: #fff !important;
    background: var(--ctn-primary);
    outline: none;
}

.ctn-spec-grid {
    border: 1px solid var(--ctn-line);
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
}

.ctn-spec-row {
    min-width: 0;
    min-height: 58px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: minmax(110px, .7fr) minmax(0, 1.3fr);
    gap: 14px;
    align-items: center;
    border-bottom: 1px solid var(--ctn-line);
    color: #475467;
    font-size: 13px;
}

.ctn-spec-row:nth-child(odd) {
    border-right: 1px solid var(--ctn-line);
}

.ctn-spec-row:nth-last-child(-n+2) {
    border-bottom: 0;
}

.ctn-spec-row:nth-child(4n+1),
.ctn-spec-row:nth-child(4n+2) {
    background: #f8f9fb;
}

.ctn-spec-row strong {
    min-width: 0;
    color: #20252c;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.ctn-description-body {
    max-width: 960px;
    color: #475467;
    font-size: 15px;
    line-height: 1.75;
}

.ctn-description-body > *:first-child { margin-top: 0; }
.ctn-description-body > *:last-child { margin-bottom: 0; }
.ctn-description-body h2,
.ctn-description-body h3,
.ctn-description-body h4 { color: #20252c; }
.ctn-description-body img { height: auto; border-radius: 10px; }

.ctn-image-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ctn-detail-image {
    aspect-ratio: 1 / 1;
    padding: 18px;
    border: 1px solid var(--ctn-line);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    cursor: zoom-in;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.ctn-detail-image:hover,
.ctn-detail-image:focus-visible {
    border-color: var(--ctn-primary);
    box-shadow: 0 0 0 3px var(--ctn-primary-soft);
    outline: none;
}

.ctn-detail-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.ctn-payment-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ctn-payment-info > div {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--ctn-line);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 10px;
    align-items: center;
    background: #fff;
}

.ctn-payment-info .ctn-icon {
    grid-row: 1 / 3;
    color: var(--ctn-primary);
}

.ctn-payment-info strong,
.ctn-payment-info span {
    display: block;
}

.ctn-payment-info strong {
    color: #344054;
    font-size: 13px;
}

.ctn-payment-info span {
    margin-top: 3px;
    color: var(--ctn-muted);
    font-size: 11px;
    line-height: 1.45;
}

.ctn-reviews-body #reviews,
.ctn-reviews-body #comments,
.ctn-reviews-body #review_form_wrapper {
    max-width: none;
}

.ctn-reviews-body .woocommerce-Reviews-title {
    display: none;
}

.ctn-reviews-body .commentlist {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.ctn-reviews-body .commentlist li {
    margin: 0 0 12px !important;
    padding: 16px !important;
    border: 1px solid var(--ctn-line);
    border-radius: 12px;
}

.ctn-reviews-body .comment-text {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.ctn-reviews-body #respond {
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
    background: var(--ctn-soft);
}

.ctn-reviews-body input[type="text"],
.ctn-reviews-body input[type="email"],
.ctn-reviews-body textarea,
.ctn-reviews-body select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d6dbe3;
    border-radius: 9px;
    background: #fff;
}

.ctn-reviews-body textarea { min-height: 120px; }

.ctn-reviews-body .submit {
    min-height: 44px !important;
    padding: 10px 18px !important;
    border: 0 !important;
    border-radius: 9px !important;
    color: #fff !important;
    background: var(--ctn-primary) !important;
    font-weight: 800 !important;
}

.ctn-mobile-cta {
    display: none;
}

.ctn-gallery-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    padding: 54px 74px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    color: #fff;
    background: rgba(7, 10, 15, .94);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.ctn-gallery-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.ctn-modal-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctn-modal-stage img {
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 100px);
    display: block;
    object-fit: contain;
}

.ctn-modal-close,
.ctn-modal-arrow {
    border: 1px solid rgba(255, 255, 255, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
}

.ctn-modal-close:hover,
.ctn-modal-arrow:hover,
.ctn-modal-close:focus-visible,
.ctn-modal-arrow:focus-visible {
    background: var(--ctn-primary);
    outline: none;
}

.ctn-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}

.ctn-modal-arrow {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
}

.ctn-modal-counter {
    grid-column: 1 / -1;
    justify-self: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    font-size: 12px;
    font-weight: 700;
}

body.ctn-modal-open {
    overflow: hidden;
}

.ctn-toast {
    position: fixed;
    z-index: 1000000;
    left: 50%;
    bottom: 28px;
    max-width: min(420px, calc(100% - 30px));
    padding: 11px 16px;
    border-radius: 10px;
    color: #fff;
    background: #20252c;
    box-shadow: 0 10px 28px rgba(16, 24, 40, .24);
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity .2s ease, transform .2s ease;
}

.ctn-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.ctn-wc-alert {
    max-width: 900px;
    margin: 20px auto;
    padding: 16px 18px;
    border: 1px solid #f0c36d;
    border-radius: 10px;
    color: #664d03;
    background: #fff8e5;
}

@media (max-width: 1160px) {
    .ctn-mp-main-card {
        grid-template-columns: minmax(390px, 1.15fr) minmax(300px, .85fr);
    }

    .ctn-mp-buybox {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr);
        gap: 16px;
        align-items: start;
    }

    .ctn-buy-card + .ctn-buy-card {
        margin-top: 0;
    }

    .ctn-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 840px) {
    .ctn-mp {
        padding-top: 10px;
    }

    .ctn-mp-page {
        width: min(100% - 24px, 720px);
    }

    .ctn-mp-topline {
        align-items: flex-start;
    }

    .ctn-mp-breadcrumbs {
        max-width: calc(100% - 100px);
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .ctn-action-button span {
        display: none;
    }

    .ctn-action-button {
        width: 38px;
        padding: 7px;
        justify-content: center;
        background: #fff;
    }

    .ctn-mp-main-card {
        padding: 22px;
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .ctn-mp-summary-desktop .ctn-mp-eyebrow,
    .ctn-mp-summary-desktop > h1 {
        display: none;
    }

    .ctn-mp-summary-mobile {
        display: block;
        order: 1;
    }

    .ctn-mp-summary-mobile h1 {
        margin-bottom: 0;
        font-size: clamp(24px, 5vw, 32px);
    }

    .ctn-mp-gallery {
        order: 2;
    }

    .ctn-mp-summary-desktop {
        order: 3;
    }

    .ctn-mp-buybox {
        grid-column: auto;
        order: 4;
        display: grid;
        grid-template-columns: 1fr;
    }

    .ctn-buy-card + .ctn-buy-card {
        margin-top: 0;
    }

    .ctn-mp-stage,
    .ctn-mp-image-button {
        min-height: 430px;
        height: 430px;
    }

    .ctn-mp-featured {
        max-height: 395px;
    }

    .ctn-buybox-price {
        display: none;
    }

    .ctn-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ctn-spec-grid {
        grid-template-columns: 1fr;
    }

    .ctn-spec-row:nth-child(odd) {
        border-right: 0;
    }

    .ctn-spec-row:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--ctn-line);
    }

    .ctn-spec-row:last-child {
        border-bottom: 0;
    }

    .ctn-spec-row:nth-child(odd) { background: #f8f9fb; }
    .ctn-spec-row:nth-child(even) { background: #fff; }

    .ctn-payment-info {
        grid-template-columns: 1fr;
    }

    .ctn-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ctn-mp {
        padding: 5px 0 24px;
        font-size: 14px;
    }

    .ctn-mp-page {
        width: 100%;
    }

    .ctn-mp-topline {
        min-height: 38px;
        margin: 0 12px 7px;
    }

    .ctn-mp-breadcrumbs,
    .ctn-mp-breadcrumbs .woocommerce-breadcrumb {
        font-size: 11px;
    }

    .ctn-mp-breadcrumbs .woocommerce-breadcrumb span {
        margin: 0 5px;
    }

    .ctn-mp-main-card,
    .ctn-mp-section {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: 0 3px 16px rgba(16, 24, 40, .055);
    }

    .ctn-mp-main-card {
        padding: 18px 16px 20px;
        gap: 16px;
    }

    .ctn-mp-summary-mobile h1 {
        font-size: 22px;
        line-height: 1.22;
    }

    .ctn-mp-gallery {
        margin: 0 -4px;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ctn-mp-stage {
        order: 1;
        min-height: 330px;
        height: 330px;
    }

    .ctn-mp-image-button {
        height: 330px;
        min-height: 330px;
        padding: 14px;
    }

    .ctn-mp-featured {
        max-height: 300px;
    }

    .ctn-mp-thumbs {
        order: 2;
        max-height: none;
        padding: 2px 2px 6px;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .ctn-mp-thumb {
        width: 58px;
        height: 58px;
        flex: 0 0 58px;
        scroll-snap-align: start;
    }

    .ctn-stage-arrow {
        width: 38px;
        height: 38px;
        opacity: 1;
    }

    .ctn-stage-prev { left: 4px; }
    .ctn-stage-next { right: 4px; }
    .ctn-zoom-hint { display: none; }

    .ctn-mp-summary-desktop {
        padding-top: 2px;
    }

    .ctn-product-reference {
        margin-bottom: 9px;
    }

    .ctn-price-block {
        margin-bottom: 16px;
    }

    .ctn-mp-price {
        font-size: 34px;
    }

    .ctn-mp-highlights {
        margin-top: 17px;
        padding-top: 17px;
    }

    .ctn-buy-card {
        padding: 18px;
        border-radius: 13px;
    }

    .ctn-buy-card + .ctn-buy-card {
        margin-top: 0;
    }

    .ctn-mp-section {
        margin-top: 12px;
        padding: 24px 16px;
    }

    .ctn-section-head {
        margin-bottom: 18px;
    }

    .ctn-section-head h2 {
        font-size: 22px;
    }

    .ctn-related-grid {
        margin: 0 -16px;
        padding: 2px 16px 14px;
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .ctn-related-grid::-webkit-scrollbar {
        display: none;
    }

    .ctn-related-card {
        width: min(74vw, 260px);
        flex: 0 0 min(74vw, 260px);
        scroll-snap-align: start;
    }

    .ctn-spec-row {
        min-height: 54px;
        padding: 12px;
        grid-template-columns: minmax(95px, .8fr) minmax(0, 1.2fr);
        gap: 10px;
        font-size: 12px;
    }

    .ctn-description-body {
        font-size: 14px;
        line-height: 1.7;
    }

    .ctn-image-grid {
        grid-template-columns: 1fr;
    }

    .ctn-detail-image {
        max-height: 370px;
    }

    .ctn-mobile-cta {
        position: sticky;
        z-index: 9999;
        right: 8px;
        bottom: max(8px, env(safe-area-inset-bottom));
        left: 8px;
        width: calc(100% - 16px);
        min-height: 64px;
        margin: 12px 8px 0;
        padding: 8px;
        border: 1px solid rgba(255, 255, 255, .16);
        border-radius: 14px;
        display: grid;
        grid-template-columns: minmax(74px, .8fr) minmax(82px, .9fr) minmax(92px, 1fr);
        gap: 7px;
        align-items: center;
        color: #fff;
        background: rgba(22, 29, 38, .96);
        box-shadow: 0 12px 30px rgba(16, 24, 40, .3);
        backdrop-filter: blur(10px);
    }

    .ctn-mobile-cta.is-single-action {
        grid-template-columns: minmax(100px, 1fr) minmax(110px, 1fr);
    }

    .ctn-mobile-price {
        min-width: 0;
        padding-left: 5px;
        color: #fff;
        font-size: 16px;
        font-weight: 800;
        line-height: 1.15;
        overflow: hidden;
    }

    .ctn-mobile-price del {
        color: #c8ced7;
        font-size: 10px;
    }

    .ctn-mobile-cart-button,
    .ctn-mobile-buy-button,
    .ctn-mobile-quote-button {
        min-height: 46px;
        padding: 8px;
        border-radius: 9px;
        cursor: pointer;
        font-size: 12px;
        font-weight: 800;
    }

    .ctn-mobile-cart-button {
        border: 1px solid rgba(255, 255, 255, .18);
        color: #fff;
        background: var(--ctn-secondary);
    }

    .ctn-mobile-buy-button,
    .ctn-mobile-quote-button {
        border: 1px solid var(--ctn-primary);
        color: #fff;
        background: var(--ctn-primary);
    }

    .ctn-mobile-price--label {
        font-size: 12px;
        line-height: 1.25;
    }

    .ctn-mewd-quote-action .mewd-quote-add-form {
        grid-template-columns: 102px minmax(0, 1fr);
    }

    .ctn-gallery-modal {
        padding: 58px 10px 28px;
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 5px;
    }

    .ctn-modal-arrow {
        width: 40px;
        height: 40px;
    }

    .ctn-modal-close {
        top: 10px;
        right: 10px;
    }

    .ctn-toast {
        bottom: 92px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ctn-mp *,
    .ctn-mp *::before,
    .ctn-mp *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
