/*
AUTORETOQUES PRODUCT CSS OPTIMIZADO
- Mantiene diseño.
- Sustituye colores repetidos por variables globales.
- Preparado para usar junto al archivo global.
*/

:root {
    --ar-navy: #081426;
    --ar-navy-2: #10243e;
    --ar-yellow: #f5b800;
    --ar-text: #101828;
    --ar-muted: #667085;
    --ar-border: #e4e8ee;
    --ar-bg: #f5f7fa;
    --ar-white: #ffffff;
}

.ar-container {
    width: min(100% - 40px, 1440px);
    margin: 0 auto;
}

.ar-product-page {
    background: var(--ar-white);
    color: var(--ar-text);
}

.ar-breadcrumbs {
    padding: 22px 0;
    font-size: 13px;
    color: var(--ar-muted);
}

.ar-breadcrumbs a {
    color: var(--ar-muted);
    text-decoration: none;
}

.ar-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, .75fr) minmax(360px, .68fr);
    gap: 36px;
    align-items: start;
    padding-bottom: 44px;
}

.ar-product-gallery {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 24px;
}

.ar-product-gallery__thumbs {
    display: grid;
    gap: 18px;
    align-content: start;
}

.ar-product-gallery__thumb {
    width: 82px;
    height: 82px;
    border: 1px solid var(--ar-border);
    border-radius: 12px;
    background: var(--ar-white);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
}

.ar-product-gallery__thumb.is-active {
    border-color: var(--ar-yellow);
    box-shadow: 0 0 0 3px rgba(247,181,0,.16);
}

.ar-product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ar-product-gallery__main {
    position: relative;
    min-height: 560px;
    display: grid;
    place-items: center;
    padding: 40px;
    border-radius: 22px;
    background: linear-gradient(180deg, var(--ar-white), var(--ar-bg));
    border: 1px solid var(--ar-border);
}

.ar-product-gallery__main img {
    max-width: 100%;
    max-height: 520px;
    object-fit: contain;
}

.ar-product-gallery__badges {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ar-product-gallery__badges span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--ar-border);
    font-size: 12px;
    font-weight: 600;
}

.ar-product-info {
    padding-top: 30px;
}

.ar-product-label {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 11px;
    border: 1px solid var(--ar-yellow);
    border-radius: 8px;
    color: var(--ar-yellow);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ar-product-title {
    margin: 0 0 18px;
    color: var(--ar-navy);
    font-size: clamp(34px, 4vw, 40px);
    line-height: 1.2;
    letter-spacing: -.04em;
}

.ar-product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.ar-product-rating .star-rating {
    color: var(--ar-yellow);
}

.ar-product-excerpt {
    max-width: 540px;
    color: var(--ar-muted);
    line-height: 1.75;
}

.ar-product-price {
    margin: 26px 0 20px;
}

.ar-product-price .price,
.ar-product-price > span,
.ar-product-price bdi {
    color: var(--ar-navy);
    font-size: 25px;
    font-weight: 600;
}

.ar-product-price small {
    display: block;
    margin-top: 4px;
    color: var(--ar-muted);
}

.ar-product-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    color: var(--ar-navy);
    font-size: 14px;
    font-weight: 600;
}

.ar-product-trust span::before,
.ar-product-benefits li::before {
    content: "✓";
    margin-right: 8px;
    color: var(--ar-navy);
    font-weight: 600;
}

.ar-product-benefits {
    margin: 28px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--ar-border);
    list-style: none;
    display: grid;
    gap: 14px;
    color: var(--ar-navy);
}

.ar-product-buybox {
    position: sticky;
    top: 24px;
    padding: 24px;
    border: 1px solid var(--ar-border);
    border-radius: 22px;
    background: var(--ar-white);
    box-shadow: 0 24px 70px rgba(13,24,42,.10);
}

.ar-step-heading strong {
    display: block;
    color: var(--ar-navy);
    font-size: 16px;
    text-transform: uppercase;
    line-height: 1.2;
}

.ar-step-heading p {
    margin: 6px 0 16px;
    color: var(--ar-muted);
    font-size: 14px;
}

.ar-open-color-modal,
.ar-add-to-cart,
.ar-buy-now,
.ar-color-form button {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.ar-open-color-modal,
.ar-buy-now,
.ar-color-form button {
    background: var(--ar-navy);
    color: var(--ar-white);
}

.ar-add-to-cart {
    margin-top: 14px;
    background: var(--ar-yellow) !important;
    color: var(--ar-navy) !important;
}

.ar-buy-now {
    margin-top: 10px;
}

.ar-color-step {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--ar-border);
}

.ar-cart-step {
    padding-top: 22px;
        gap: 10px !important;
    display: flex !important;
    flex-direction: column;
}

.ar-product-cart .quantity {
    display: inline-flex;
    align-items: center;
    margin-top: 14px;
}

.ar-product-cart .qty {
    width: 86px;
    height: 42px;
    border: 1px solid var(--ar-border);
    border-radius: 8px;
    text-align: center;
}

.ar-selected-color {
    display: grid;
    grid-template-columns: 66px 1fr;
    gap: 14px;
    align-items: center;
    margin-top: 20px;
    padding: 16px;
    border: 1px solid var(--ar-border);
    border-radius: 16px;
    background: var(--ar-bg);
}

.ar-selected-color__swatch {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #e51d26, #9b0008);
    box-shadow: inset 0 0 18px rgba(0,0,0,.18);
}

.ar-selected-color span {
    display: block;
    margin-bottom: 4px;
    color: var(--ar-muted);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.ar-selected-color strong {
    display: block;
    color: #fb0000;
    font-size: 17px;
}

.ar-selected-color p {
    margin: 4px 0;
    color: var(--ar-muted);
    font-size: 13px;
}

.at-color-help {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin: 14px 0 18px;
    padding: 14px 15px;

    background: #f7f9fc;
    border: 1px solid #dfe5ed;
    border-radius: 12px;
}

.at-color-help__icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #07182e;
    color: #fff;
    border-radius: 50%;

    font-size: 14px;
    font-weight: 700;
}

.at-color-help__content {
    min-width: 0;
}

.at-color-help__content strong {
    display: block;
    margin-bottom: 3px;

    color: #07182e;
    font-size: 13px;
    font-weight: 700;
}

.at-color-help__content p {
    margin: 0;

    color: #71809a;
    font-size: 12px;
    line-height: 1.5;
}

.at-color-help__content a {
    display: block;
    margin-top: 5px;

    color: #07182e;
    font-weight: 700;
    text-decoration: underline;
}

.at-color-help__content a:hover {
    text-decoration: none;
}

.ar-change-color {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ar-navy);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.ar-secure-note {
    margin: 14px 0 0;
    text-align: center;
    color: var(--ar-muted);
    font-size: 13px;
}

.ar-product-trustbar {
    padding: 24px 0;
}

.ar-product-trustbar__grid {
    display: grid;
    grid-template-columns: repeat(var(--ar-trust-count, 4), 1fr);
    border: 1px solid var(--ar-border);
    border-radius: 18px;
    overflow: hidden;
    background: var(--ar-white);
}

.ar-product-trustbar__grid div {
    padding: 22px 24px;
    border-right: 1px solid var(--ar-border);
}

.ar-product-trustbar__grid div:last-child {
    border-right: 0;
}

.ar-product-trustbar strong,
.ar-product-trustbar span {
    display: block;
}

.ar-product-trustbar strong {
    color: var(--ar-navy);
}

.ar-product-trustbar span {
    margin-top: 4px;
    color: var(--ar-muted);
    font-size: 13px;
}

.ar-product-details {
    padding: 14px 0 34px;
}

.ar-product-details__grid {
    display: grid;
    grid-template-columns: repeat(var(--ar-detail-count, 3), 1fr);
    border: 1px solid var(--ar-border);
    border-radius: 18px;
    overflow: hidden;
}

.ar-detail-card {
    padding: 30px;
    border-right: 1px solid var(--ar-border);
}

.ar-detail-card:last-child {
    border-right: 0;
}

.ar-detail-card h2,
.ar-related-products h2 {
    margin: 0 0 18px;
    color: var(--ar-navy);
    font-size: 22px;
}

.ar-content {
    color: var(--ar-muted);
    line-height: 1.75;
}

.ar-specs-list {
    display: grid;
    gap: 14px;
    margin: 0;
}

.ar-specs-list div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.ar-specs-list dt {
    color: var(--ar-muted);
}

.ar-specs-list dd {
    margin: 0;
    color: var(--ar-navy);
    font-weight: 600;
}

.ar-steps-list {
    margin: 0;
    padding-left: 22px;
    color: var(--ar-muted);
    line-height: 1.9;
}

.ar-related-products {
    padding: 10px 0 52px;
}

.ar-related-products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.ar-related-card {
    padding: 18px;
    border: 1px solid var(--ar-border);
    border-radius: 16px;
    background: var(--ar-white);
}

.ar-related-card a {
    color: var(--ar-navy);
    text-decoration: none;
}

.ar-related-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.ar-related-card h3 {
    min-height: 44px;
    font-size: 16px;
    text-align: center;
}

.ar-related-card__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.ar-related-card__button {
    padding: 10px 14px;
    border: 1px solid var(--ar-navy);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

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

.ar-color-modal[hidden] {
    display: none;
}

.ar-color-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 24px;
}

.ar-color-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 13, .72);
    backdrop-filter: blur(4px);
}

.ar-color-modal__dialog {
    position: relative;
    isolation: isolate;
    width: min(100%, 720px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 34px;
    border: 1px solid #e4e8ee;
    border-radius: 20px;
    background: #ffffff;
    color: #101828;
    box-shadow: 0 30px 90px rgba(0,0,0,.32);
}

.ar-color-modal__close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #081426;
    cursor: pointer;
    font-size: 24px;
}

.ar-color-modal__close:hover, .ar-color-modal__close:focus{
    background:transparent !important;
    color:#000 !important;
}

.ar-color-modal h2 {
    margin: 0 34px 20px 0;
    color: #081426;
    font-size: 28px;
}

.ar-color-modal__intro {
    margin: -8px 0 22px;
    color: #667085;
    line-height: 1.55;
}

.ar-color-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f7fa;
}

.ar-color-tabs button {
    min-height: 48px;
    border: 0;
    background: transparent;
    color: #081426;
    font-weight: 600;
}

.ar-color-tabs button.is-active {
    background: #081426;
    color: #ffffff;
}

.ar-color-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ar-color-form label {
    display: grid;
    gap: 7px;
}

.ar-color-form span {
    color: #081426;
    font-size: 13px;
    font-weight: 600;
}

.ar-color-form input,
.ar-color-form select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--ar-border);
    border-radius: 10px;
    padding: 0 14px;
    background: #ffffff;
    color: #101828;
    opacity: 1;
}

.ar-color-form input::placeholder {
    color: #7b8491;
    opacity: 1;
}

.ar-color-form__wide,
.ar-color-form__family,
.ar-color-form button {
    grid-column: 1 / -1;
}

.ar-product-buybox .wcpay-payment-request-wrapper,
.ar-product-buybox .wc-stripe-payment-request-wrapper {
    width: 100%;
    margin-top: 12px;
}

.ar-color-modal__result {
    margin-top: 18px;
}

.ar-color-result,
.ar-color-modal .atcf-result {
    padding: 18px;
    border: 1px solid var(--ar-border);
    border-radius: 14px;
    background: #f5f7fa;
    color: #101828;
}

.ar-color-modal__help {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
    color: #667085;
    font-size: 14px;
}

.ar-color-modal__help a {
    color: #081426;
    font-weight: 600;
}

@media (max-width: 1180px) {
    .ar-product-layout {
        grid-template-columns: 1fr 1fr;
    }

    .ar-product-buybox {
        grid-column: 1 / -1;
        position: static;
    }
}

@media (max-width: 760px) {
    .ar-container {
        width: min(100% - 24px, 100%);
    }

    .ar-breadcrumbs {
        padding: 14px 0;
    }

    .ar-product-layout,
    .ar-product-gallery,
    .ar-product-details__grid,
    .ar-product-trustbar__grid,
    .ar-related-products__grid {
        grid-template-columns: 1fr;
    }

    .ar-product-gallery__thumbs {
        order: 2;
        grid-template-columns: repeat(4, 1fr);
    }

    .ar-product-gallery__thumb {
        width: 100%;
        height: 72px;
    }

    .ar-product-gallery__main {
                min-height: 300px;
        padding: 0;
        height: 300px;
    }

    .ar-product-gallery__badges{
        display: none;
    }

    .ar-product-gallery__main img {
               max-height: 300px;
        border-radius: 22px;
        height: 300px;
        object-fit: cover;
    }

    .ar-product-info {
        padding-top: 0;
    }

    .ar-product-title {
        font-size: 31px;
    }

    .ar-product-price .price,
    .ar-product-price > span,
    .ar-product-price bdi {
        font-size: 34px;
    }

    .ar-product-buybox {
        margin-top: -10px;
        padding: 18px;
        border-radius: 18px;
    }

    .ar-product-trustbar__grid div,
    .ar-detail-card {
        border-right: 0;
        border-bottom: 1px solid var(--ar-border);
    }

    .ar-detail-card:last-child,
    .ar-product-trustbar__grid div:last-child {
        border-bottom: 0;
    }

    .ar-color-form {
        grid-template-columns: 1fr;
    }

    .ar-color-modal {
        align-items: end;
        padding: 0;
    }

    .ar-color-modal__dialog {
        width: 100%;
        max-height: 88vh;
        border-radius: 20px 20px 0 0;
        padding: 24px 18px;
    }

    .ar-color-modal h2 {
        font-size: 22px;
    }

    .ar-color-modal__help {
        display: grid;
        text-align: center;
        gap: 6px;
    }

    .ar-related-card__bottom {
        display: grid;
        text-align: center;
    }
}

.ar-content h3,.ar-additional-info h3{margin:24px 0 10px;color:var(--ar-navy);font-size:17px}.ar-content ul,.ar-additional-info ul{margin:0;padding-left:20px}.ar-content li,.ar-additional-info li{margin:7px 0}.ar-check-list{padding-left:0!important;list-style:none}.ar-check-list li::before{content:"✓";display:inline-grid;place-items:center;width:16px;height:16px;margin-right:8px;border-radius:3px;background:#32b874;color:#fff;font-size:11px;font-weight:800}.ar-additional-info{margin-top:24px;padding:18px;background:var(--ar-bg);border-radius:12px;color:var(--ar-muted)}


@media(max-width: 768px){
    .separate-containers .site-main{
        margin:20px 0px;
    }

    .ar-breadcrumbs{
        display: none;
    }

    .ar-product-gallery__thumbs{
        gap:9px;
    }
}
