/**
 * SNT Jeans - "Compra el look completo" (template-parts/product/outfit.php)
 * Rows on mobile, side-by-side cards from 768px.
 */

/* Link under the main "Agregar al Carrito" button */
.snt-outfit-teaser {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    border: 1px solid hsl(var(--foreground));
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: background-color .2s, color .2s;
}
.snt-outfit-teaser:hover { background: hsl(var(--foreground)); color: hsl(var(--background)); }

.snt-outfit {
    scroll-margin-top: 120px;
    max-width: 1144px;
    margin: 48px auto 0;
    padding: 0 16px;
}
.snt-outfit__head { margin-bottom: 16px; }
.snt-outfit__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: hsl(var(--accent));
}
.snt-outfit__title {
    font-family: var(--font-display);
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    text-transform: uppercase;
}

.snt-outfit__items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.snt-outfit__plus { display: none; }

.snt-outfit__item {
    position: relative;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    padding: 10px;
    border: 1px solid hsl(var(--border));
    border-radius: 10px;
    background: hsl(var(--background));
    opacity: .55;
    transition: opacity .2s, border-color .2s, box-shadow .2s;
}
.snt-outfit__item.is-selected { opacity: 1; border-color: hsl(var(--foreground) / .25); }
.snt-outfit__item.needs-size { border-color: hsl(var(--accent)); box-shadow: 0 0 0 1px hsl(var(--accent)); }

.snt-outfit__check {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    cursor: pointer;
}
.snt-outfit__check input { position: absolute; opacity: 0; width: 0; height: 0; }
.snt-outfit__check span {
    display: block;
    width: 22px;
    height: 22px;
    border: 1.5px solid hsl(var(--foreground) / .5);
    border-radius: 6px;
    background: hsl(var(--background));
    transition: background-color .2s, border-color .2s;
}
.snt-outfit__check input:checked + span {
    border-color: hsl(var(--foreground));
    background: hsl(var(--foreground)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.snt-outfit__check input:focus-visible + span { outline: 2px solid hsl(var(--accent)); outline-offset: 2px; }

.snt-outfit__img {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: hsl(var(--secondary));
    aspect-ratio: 3 / 4;
}
.snt-outfit__img img { width: 100%; height: 100%; object-fit: cover; }

.snt-outfit__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.snt-outfit__name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}
.snt-outfit__name:hover { text-decoration: underline; }
.snt-outfit__tag {
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
}
.snt-outfit__price { font-size: 14px; font-weight: 700; }
.snt-outfit__price del {
    margin-right: 6px;
    font-weight: 400;
    font-size: 12px;
    color: hsl(var(--muted-foreground));
}

.snt-outfit__sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.snt-outfit__size {
    min-width: 40px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid hsl(var(--border));
    font-size: 12px;
    font-weight: 600;
    transition: border-color .2s, background-color .2s, color .2s;
}
.snt-outfit__size:hover:not([disabled]) { border-color: hsl(var(--foreground)); }
.snt-outfit__size.is-active {
    border-color: hsl(var(--foreground));
    background: hsl(var(--foreground));
    color: hsl(var(--background));
}
.snt-outfit__size[disabled] {
    color: hsl(var(--muted-foreground) / .45);
    text-decoration: line-through;
    cursor: not-allowed;
}

.snt-outfit__foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}
.snt-outfit__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.snt-outfit__total strong { font-size: 20px; letter-spacing: -.01em; }
.snt-outfit__add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 56px;
    background: hsl(var(--foreground));
    color: hsl(var(--background));
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: opacity .2s;
}
.snt-outfit__add:hover { opacity: .9; }
.snt-outfit__add[disabled] { opacity: .4; cursor: not-allowed; }
.snt-outfit__add.is-loading { cursor: progress; }
.snt-outfit__add.is-loading span::after { content: '…'; }
.snt-outfit__msg { min-height: 1em; font-size: 13px; font-weight: 600; color: hsl(var(--accent)); }

@media (min-width: 768px) {
    .snt-outfit { margin-top: 64px; }
    .snt-outfit__head { text-align: center; margin-bottom: 24px; }
    .snt-outfit__items {
        flex-direction: row;
        align-items: stretch;
        justify-content: center;
        gap: 12px;
    }
    .snt-outfit__plus {
        display: flex;
        align-items: center;
        font-size: 28px;
        font-weight: 300;
        color: hsl(var(--muted-foreground));
    }
    .snt-outfit__item {
        flex: 0 1 280px;
        grid-template-columns: 1fr;
        align-content: start;
        padding: 12px;
    }
    .snt-outfit__name { font-size: 14px; }
    .snt-outfit__foot {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 24px;
        margin-top: 24px;
    }
    .snt-outfit__total { gap: 12px; }
    .snt-outfit__add { width: auto; padding: 0 40px; }
    .snt-outfit__msg { flex-basis: 100%; text-align: center; }
}
