/* LD Moda Fitness — catálogo e página de produto, revisão 2026-08-30. */

/* Cards: imagem sem respiro branco e informações de variação legíveis. */
.weglow-site .product-card {
    overflow: hidden;
}

.weglow-site .product-card .product-image {
    aspect-ratio: 3 / 4;
    background: #f4f0ed;
    height: auto !important;
    overflow: hidden;
    width: 100%;
}

.weglow-site .product-card .product-image > a:not(.product-wishlist) {
    display: block;
    height: 100%;
    overflow: hidden;
    width: 100%;
}

.weglow-site .product-card .product-image > a.product-wishlist {
    display: grid !important;
    height: 40px !important;
    width: 40px !important;
}

.weglow-site .product-card .product-image img {
    display: block;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    transform: scale(1.015);
    transition: transform .3s ease;
    width: 100% !important;
}

.weglow-site .product-card:hover .product-image img {
    transform: scale(1.045);
}

.weglow-site .product-card .product-meta {
    gap: .6rem;
}

.weglow-site .product-card-variants {
    display: grid;
    gap: .42rem;
    margin-top: .05rem;
}

.weglow-site .product-card-variant-row {
    align-items: center;
    display: flex;
    gap: .48rem;
    min-height: 24px;
}

.weglow-site .product-card-variant-label {
    color: var(--ld-muted);
    flex: 0 0 58px;
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.weglow-site :is(.product-card-swatch-list, .product-card-size-list) {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .32rem;
}

.weglow-site .product-card-swatch {
    background: var(--product-swatch);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #cdbdb8;
    display: inline-block;
    height: 17px;
    width: 17px;
}

.weglow-site .product-card-size-pill {
    align-items: center;
    background: #fff;
    border: 1px solid var(--ld-line);
    border-radius: 5px;
    color: var(--ld-ink);
    display: inline-flex;
    font-size: .68rem;
    font-weight: 800;
    justify-content: center;
    min-height: 23px;
    min-width: 25px;
    padding: .15rem .34rem;
}

.weglow-site .product-card-assurances {
    gap: .22rem !important;
    margin-top: .5rem !important;
    padding-top: .52rem !important;
}

.weglow-site .product-actions {
    margin-top: .52rem !important;
    padding-top: 0 !important;
}

/* Variações na página do produto. */
.weglow-site .product-option-heading {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: .7rem;
}

.weglow-site .product-option-heading > span {
    color: var(--ld-ink);
    font-size: .86rem;
    font-weight: 800;
}

.weglow-site .product-option-legend-accessible {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.weglow-site .product-colour-option span {
    gap: .5rem;
}

.weglow-site .product-colour-option i {
    background: var(--product-swatch);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #cdbdb8;
    display: inline-block;
    height: 18px;
    width: 18px;
}

.weglow-site .product-colour-option input:checked + span i {
    box-shadow: 0 0 0 2px currentColor;
}

.weglow-site .size-guide-trigger {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--ld-rose-dark);
    cursor: pointer;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 800;
    gap: .4rem;
    padding: .25rem 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.weglow-site .size-guide-trigger:hover {
    color: var(--ld-black);
}

.weglow-site .size-guide-trigger svg {
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    width: 18px;
}

/* Página de produto: galeria dominante e compra mais organizada. */
.weglow-site .product-breadcrumb {
    align-items: center;
    color: var(--ld-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: .78rem;
    gap: .5rem;
    padding: 1.2rem 0 .2rem;
}

.weglow-site .product-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.weglow-site .product-breadcrumb a:hover {
    color: var(--ld-rose-dark);
}

.weglow-site .product-detail {
    align-items: start !important;
    gap: clamp(2rem, 4vw, 4.5rem) !important;
    grid-template-columns: minmax(0, 1.1fr) minmax(390px, .9fr) !important;
    padding: clamp(1.2rem, 2.5vw, 2.4rem) !important;
}

.weglow-site .product-gallery {
    align-items: start;
    gap: 1rem !important;
    grid-template-columns: minmax(0, 1fr) !important;
    position: sticky;
    top: 1rem;
}

.weglow-site .product-gallery-thumbnails-shell {
    align-items: center;
    display: grid;
    max-width: 320px;
    width: 100%;
}

.weglow-site .product-gallery-thumbnails-shell.has-pagination {
    gap: .55rem;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    max-width: 390px;
}

.weglow-site .product-gallery-thumbnails {
    background: transparent !important;
    display: flex !important;
    flex-direction: row !important;
    gap: .65rem;
    overflow: hidden !important;
    scroll-behavior: smooth;
    scrollbar-width: none;
    width: 100%;
}

.weglow-site .product-gallery-thumbnails::-webkit-scrollbar {
    display: none;
}

.weglow-site .product-gallery-thumbnail {
    aspect-ratio: 4 / 5;
    background: transparent !important;
    flex: 0 0 calc((100% - 1.3rem) / 3);
    height: auto !important;
    overflow: hidden;
    padding: 0 !important;
    width: auto !important;
}

.weglow-site .product-gallery-thumbnail img {
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top;
    width: 100% !important;
}

.weglow-site .product-gallery-arrow {
    align-items: center;
    background: transparent;
    border: 1px solid var(--ld-line);
    border-radius: 50%;
    color: var(--ld-black);
    cursor: pointer;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    padding: 0;
    width: 34px;
}

.weglow-site .product-gallery-arrow:hover,
.weglow-site .product-gallery-arrow:focus-visible {
    background: transparent;
    border-color: var(--ld-rose);
    color: var(--ld-rose);
}

.weglow-site .product-gallery-arrow:disabled {
    cursor: default;
    opacity: .3;
}

.weglow-site .product-gallery-arrow svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 18px;
}

.weglow-site .product-gallery-stage {
    align-items: stretch !important;
    aspect-ratio: 4 / 5;
    background: #f4f0ed !important;
    min-height: 620px;
    overflow: hidden;
    padding: 0 !important;
    position: relative;
}

.weglow-site .product-gallery-stage > img {
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center top !important;
    width: 100% !important;
}

.weglow-site .product-gallery-overlay-actions {
    align-items: center;
    display: flex;
    gap: .55rem;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 4;
}

.weglow-site .product-gallery-overlay-actions form {
    margin: 0;
}

.weglow-site .product-gallery-overlay-actions .sale-badge {
    inset: auto !important;
    position: static !important;
}

.weglow-site .product-gallery-overlay-actions .detail-wishlist-button {
    align-items: center;
    background: rgb(255 255 255 / 92%) !important;
    border: 1px solid var(--ld-line) !important;
    border-radius: 50%;
    box-shadow: 0 5px 18px rgb(0 0 0 / 9%);
    display: inline-flex;
    height: 44px;
    justify-content: center;
    min-height: 44px;
    padding: 0 !important;
    width: 44px;
}

.weglow-site .product-gallery-overlay-actions .detail-wishlist-button svg {
    height: 22px;
    margin: 0;
    width: 22px;
}

.weglow-site .product-detail-content {
    padding: .4rem 0 !important;
}

.weglow-site .product-detail-content h1 {
    font-size: clamp(2.2rem, 3.6vw, 4rem);
    letter-spacing: -.04em;
    line-height: 1.02;
    margin-bottom: 1.2rem;
}

.weglow-site .product-rating-quick {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.weglow-site .product-purchase-card {
    border-radius: 14px;
    padding: clamp(1rem, 2vw, 1.55rem) !important;
}

.weglow-site .product-variation-selector {
    gap: 1.25rem !important;
}

.weglow-site .product-information {
    margin-top: 2.5rem;
}

.weglow-site .product-complete-description > header {
    max-width: 780px;
}

.weglow-site .product-description-blocks {
    align-items: stretch;
    display: grid !important;
    gap: 1rem !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.weglow-site .product-description-blocks .description-introduction {
    background: linear-gradient(135deg, var(--ld-rose-pale), #fff);
    border: 1px solid var(--ld-line);
    grid-column: 1 / -1;
    padding: 1.3rem;
}

.weglow-site .product-description-blocks article {
    border: 1px solid var(--ld-line);
    border-radius: 12px;
    padding: 1.2rem;
}

.weglow-site .product-description-blocks li {
    margin-bottom: .55rem;
}

/* Estrelas SVG: elimina caracteres quebrados e mantém leitura acessível. */
.weglow-site .rating-stars {
    align-items: center;
    display: inline-flex;
    gap: .18rem;
}

.weglow-site .rating-stars svg,
.weglow-site .rating-options svg {
    fill: transparent;
    height: 20px;
    stroke: var(--ld-rose);
    stroke-linejoin: round;
    stroke-width: 1.6;
    width: 20px;
}

.weglow-site .rating-stars-small svg {
    height: 16px;
    width: 16px;
}

.weglow-site .rating-stars svg.is-filled,
.weglow-site .rating-options label:hover svg,
.weglow-site .rating-options input:checked + label svg {
    fill: var(--ld-rose);
}

.weglow-site .rating-options label {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
}

/* Modal configurável de tabela de medidas. */
body.has-size-guide-open {
    overflow: hidden;
}

.weglow-site .size-guide-modal[hidden] {
    display: none !important;
}

.weglow-site .size-guide-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1.25rem;
    position: fixed;
    z-index: 1200;
}

.weglow-site .size-guide-backdrop {
    background: rgb(0 0 0 / 62%);
    border: 0;
    inset: 0;
    position: absolute;
}

.weglow-site .size-guide-dialog {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 28px 80px rgb(0 0 0 / 26%);
    max-height: calc(100vh - 2.5rem);
    max-width: 1120px;
    overflow: auto;
    position: relative;
    width: 100%;
    z-index: 1;
}

.weglow-site .size-guide-dialog > header {
    align-items: center;
    border-bottom: 1px solid #ece7e5;
    display: flex;
    justify-content: space-between;
    padding: 1.2rem 1.4rem;
}

.weglow-site .size-guide-dialog > header span {
    color: var(--ld-rose-dark);
    display: block;
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .08em;
    margin-bottom: .2rem;
    text-transform: uppercase;
}

.weglow-site .size-guide-dialog h2 {
    font-size: 1.45rem;
    margin: 0;
}

.weglow-site .size-guide-actions,
.weglow-site .size-guide-unit {
    align-items: center;
    display: flex;
    gap: .4rem;
}

.weglow-site .size-guide-unit {
    background: #f4f1ef;
    border-radius: 9px;
    padding: 3px;
}

.weglow-site .size-guide-unit button,
.weglow-site .size-guide-close {
    background: transparent;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    min-height: 36px;
    min-width: 40px;
}

.weglow-site .size-guide-unit button.is-active {
    background: #fff;
    box-shadow: 0 1px 4px rgb(0 0 0 / 10%);
    font-weight: 800;
}

.weglow-site .size-guide-close {
    background: #f4f1ef;
    font-size: 1.45rem;
}

.weglow-site .size-guide-body {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr);
    padding: clamp(1.3rem, 3vw, 2.5rem);
}

.weglow-site .size-guide-figure {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 390px;
}

.weglow-site .size-guide-figure img {
    display: block;
    height: auto;
    max-height: 409px;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.weglow-site .size-guide-table-wrap {
    align-self: center;
    overflow-x: auto;
}

.weglow-site .size-guide-table-wrap table {
    border-collapse: separate;
    border-spacing: .55rem;
    min-width: 620px;
    width: 100%;
}

.weglow-site .size-guide-table-wrap th,
.weglow-site .size-guide-table-wrap td {
    padding: 1rem;
    text-align: center;
}

.weglow-site .size-guide-table-wrap thead th {
    color: var(--ld-black);
    font-size: .92rem;
}

.weglow-site .size-guide-table-wrap tbody th {
    color: var(--ld-muted);
    text-align: left;
}

.weglow-site .size-guide-table-wrap td {
    background: #f7f5f4;
    border: 1px solid #e8e2df;
    border-radius: 10px;
    font-weight: 750;
}

.weglow-site .size-guide-table-wrap > p {
    color: var(--ld-muted);
    font-size: .78rem;
    margin: .9rem .55rem 0;
}

@media (max-width: 1050px) {
    .weglow-site .product-detail {
        gap: 2rem !important;
        grid-template-columns: minmax(0, 1fr) minmax(350px, .9fr) !important;
    }
    .weglow-site .product-gallery-stage { min-height: 520px; }
    .weglow-site .product-description-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .weglow-site .product-detail { grid-template-columns: 1fr !important; }
    .weglow-site .product-gallery { position: static; }
    .weglow-site .product-gallery-stage { min-height: 0; }
    .weglow-site .size-guide-body { grid-template-columns: 1fr; }
    .weglow-site .size-guide-figure { display: none; }
}

@media (max-width: 600px) {
    .weglow-site .product-detail { padding: .75rem !important; }
    .weglow-site .product-gallery-thumbnails-shell { max-width: 280px; }
    .weglow-site .product-gallery-thumbnails-shell.has-pagination { max-width: 350px; }
    .weglow-site .product-detail-content h1 { font-size: 2.25rem; }
    .weglow-site .product-description-blocks { grid-template-columns: 1fr; }
    .weglow-site .product-card-variant-label { flex-basis: 52px; }
    .weglow-site .size-guide-modal { padding: .5rem; }
    .weglow-site .size-guide-dialog { border-radius: 14px; max-height: calc(100vh - 1rem); }
    .weglow-site .size-guide-dialog > header { padding: 1rem; }
    .weglow-site .size-guide-body { padding: .8rem; }
    .weglow-site .size-guide-table-wrap table { border-spacing: .35rem; min-width: 540px; }
    .weglow-site .size-guide-table-wrap th,
    .weglow-site .size-guide-table-wrap td { padding: .75rem .55rem; }
}

/* Ajustes pontuais de catálogo móvel, carrinho, checkout e tabela de medidas. */
@media (max-width: 720px) {
    .weglow-site .mobile-product-carousel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        row-gap: .8rem;
    }

    .weglow-site .mobile-product-track.product-grid,
    .weglow-site .mobile-product-track.category-products {
        grid-column: 1 / -1;
        grid-row: 1;
        grid-auto-columns: 100% !important;
        gap: 0 !important;
        padding: 2px 2px 4px !important;
    }

    .weglow-site .mobile-product-track > .product-card {
        min-width: 0;
        scroll-snap-align: start;
        width: 100%;
    }

    .weglow-site .mobile-product-carousel-button {
        background: transparent !important;
        border-color: var(--ld-line) !important;
        box-shadow: none !important;
        grid-row: 2;
        position: static !important;
        top: auto !important;
        transform: none !important;
    }

    .weglow-site .mobile-product-carousel-button.previous {
        grid-column: 1;
        justify-self: end;
        left: auto !important;
        margin-right: .32rem;
    }

    .weglow-site .mobile-product-carousel-button.next {
        grid-column: 2;
        justify-self: start;
        margin-left: .32rem;
        right: auto !important;
    }

    .weglow-site .mobile-product-carousel-button:hover,
    .weglow-site .mobile-product-carousel-button:focus-visible {
        background: transparent !important;
        border-color: var(--ld-rose) !important;
        color: var(--ld-rose) !important;
    }
}

@media (max-width: 820px) {
    .weglow-site .size-guide-body {
        display: grid !important;
        gap: 1rem;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .weglow-site .size-guide-figure {
        display: flex !important;
        min-height: 0;
        order: 1;
    }

    .weglow-site .size-guide-figure img {
        max-height: 290px;
    }

    .weglow-site .size-guide-table-wrap {
        order: 2;
        overflow-x: visible;
    }

    .weglow-site .size-guide-table-wrap table {
        border-spacing: .3rem !important;
        min-width: 0 !important;
        table-layout: fixed;
        width: 100%;
    }

    .weglow-site .size-guide-table-wrap th,
    .weglow-site .size-guide-table-wrap td {
        font-size: clamp(.66rem, 2.7vw, .82rem);
        padding: .62rem .18rem !important;
    }

    .weglow-site .size-guide-table-wrap tbody th {
        width: 22%;
    }
}

/* Carrinho: miniaturas 4:5 sem respiro externo, iguais às da página do produto. */
.weglow-site .weglow-cart-image,
.weglow-site .cart-drawer-image {
    aspect-ratio: 4 / 5;
    background: transparent !important;
    border-radius: 0 !important;
    height: auto !important;
    overflow: hidden;
    padding: 0 !important;
    position: relative;
}

.weglow-site .weglow-cart-image {
    width: 120px;
}

.weglow-site .cart-drawer-image {
    width: 72px;
}

.weglow-site :is(.weglow-cart-image, .cart-drawer-image) img {
    display: block;
    height: 100% !important;
    inset: 0;
    object-fit: cover !important;
    object-position: center top;
    position: absolute;
    width: 100% !important;
}

/* Frete: paleta LD e separação clara entre as ações. */
.weglow-site .weglow-shipping-calculator {
    border-color: var(--ld-line) !important;
}

.weglow-site .weglow-shipping-postal-form input {
    border-color: var(--ld-line) !important;
}

.weglow-site .weglow-shipping-postal-form input:focus {
    border-color: var(--ld-rose) !important;
    box-shadow: 0 0 0 3px rgb(203 138 122 / 14%) !important;
}

.weglow-site :is(.weglow-shipping-heading small, .weglow-shipping-postal-form label > span, .weglow-shipping-option small) {
    color: var(--ld-muted) !important;
}

.weglow-site .weglow-shipping-option {
    border-color: var(--ld-line) !important;
}

.weglow-site .weglow-shipping-option:hover,
.weglow-site .weglow-shipping-option.is-selected {
    background: var(--ld-rose-pale) !important;
    border-color: var(--ld-rose) !important;
}

.weglow-site .weglow-shipping-option.is-selected {
    box-shadow: inset 4px 0 0 var(--ld-rose) !important;
}

.weglow-site :is(.weglow-order-total .weglow-total, .weglow-drawer-total .weglow-grand-total) {
    border-color: var(--ld-line) !important;
}

.weglow-site .cart-page-summary > .weglow-checkout-pending {
    margin-bottom: .85rem !important;
}

.weglow-site .cart-page-summary > .cart-primary-button + .weglow-secondary-button {
    margin-top: .85rem !important;
}

.weglow-site .weglow-drawer-actions {
    gap: .75rem !important;
}

/* Checkout: remove tons verdes e mantém somente a paleta oficial da LD. */
.weglow-site :is(.checkout-section, .checkout-summary) {
    border-color: var(--ld-line) !important;
}

.weglow-site .checkout-section-title {
    border-color: var(--ld-line) !important;
}

.weglow-site .checkout-section-title > span {
    background: var(--ld-rose-soft) !important;
    color: var(--ld-rose-dark) !important;
}

.weglow-site .checkout-fields :is(input, select) {
    border-color: var(--ld-line) !important;
}

.weglow-site .checkout-fields :is(input, select):focus {
    border-color: var(--ld-rose) !important;
    box-shadow: 0 0 0 3px rgb(203 138 122 / 14%) !important;
}

.weglow-site .saved-address-option > span,
.weglow-site .shipping-option {
    border-color: var(--ld-line) !important;
}

.weglow-site .saved-address-option > input:checked + span,
.weglow-site .shipping-option:has(input:checked) {
    background: var(--ld-rose-pale) !important;
    border-color: var(--ld-rose) !important;
}

.weglow-site .checkout-terms {
    background: var(--ld-rose-pale) !important;
    border-left-color: var(--ld-rose) !important;
}

.weglow-site .checkout-alert {
    background: var(--ld-rose-pale) !important;
    border-left-color: var(--ld-rose) !important;
    color: var(--ld-rose-dark) !important;
}

.weglow-site .checkout-items article {
    grid-template-columns: 70px minmax(0, 1fr) auto;
}

.weglow-site .checkout-items img {
    aspect-ratio: 4 / 5;
    background: transparent !important;
    display: block;
    height: auto !important;
    object-fit: cover !important;
    object-position: center top;
    width: 70px !important;
}

/* Página de produto no desktop: foto inteira e miniaturas na lateral. */
@media (min-width: 821px) {
    .weglow-site .product-detail {
        grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr) !important;
    }

    .weglow-site .product-gallery {
        gap: 1rem !important;
        grid-template-columns: 76px minmax(0, 1fr) !important;
        max-width: 650px;
        width: 100%;
    }

    .weglow-site .product-gallery-stage {
        align-items: center !important;
        aspect-ratio: auto;
        background: #fff !important;
        grid-column: 2;
        grid-row: 1;
        height: clamp(520px, calc(100vh - 150px), 760px);
        min-height: 0;
    }

    .weglow-site .product-gallery-stage > img {
        height: 100% !important;
        max-height: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: center top !important;
        width: 100% !important;
    }

    .weglow-site .product-gallery-thumbnails-shell {
        align-self: start;
        grid-column: 1;
        grid-row: 1;
        max-width: none;
        width: 76px;
    }

    .weglow-site .product-gallery-thumbnails-shell.has-pagination {
        gap: .55rem;
        grid-template-columns: 1fr;
        grid-template-rows: 34px minmax(0, 1fr) 34px;
        height: clamp(520px, calc(100vh - 150px), 760px);
        max-width: none;
    }

    .weglow-site .product-gallery-thumbnails {
        flex-direction: column !important;
        gap: .65rem;
        max-height: 100%;
    }

    .weglow-site .product-gallery-thumbnail {
        flex: 0 0 95px;
        height: 95px !important;
        width: 76px !important;
    }

    .weglow-site .product-gallery-arrow {
        justify-self: center;
    }

    .weglow-site .product-gallery-arrow.is-previous svg,
    .weglow-site .product-gallery-arrow.is-next svg {
        transform: rotate(90deg);
    }
}

