/* Ficha de producto */

.product-content{
    padding:28px 30px 64px;
    background:var(--paper);
    border-radius:14px;
}

.product-detail{
    display:grid;
    grid-template-columns:minmax(0,1.05fr) minmax(330px,.95fr);
    gap:42px;
}

.product-main-image{
    aspect-ratio:1/1;
    display:grid;
    place-items:center;
    overflow:hidden;
    padding:24px;
    border:1px solid var(--line);
    border-radius:14px;
    background:#f7f8fa;
}

.product-main-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    mix-blend-mode:multiply;
}

.product-thumbnails{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:9px;
    margin-top:12px;
}

.product-thumbnail{
    aspect-ratio:1/1;
    overflow:hidden;
    padding:5px;
    border:1px solid var(--line);
    border-radius:7px;
    background:#fff;
    cursor:pointer;
}

.product-thumbnail.active,
.product-thumbnail:hover{
    border-color:var(--accent);
}

.product-thumbnail img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.product-detail-sku{
    margin:0 0 10px;
    color:var(--muted);
    font-size:.78rem;
    text-transform:uppercase;
    letter-spacing:.05em;
}

.product-summary h1{
    margin:0;
    color:var(--navy);
    font-size:clamp(2rem,4vw,3rem);
    line-height:1.08;
    letter-spacing:-.045em;
}

.product-lead{
    margin:20px 0 0;
    color:#475467;
    font-size:.98rem;
}

.product-purchase{
    margin-top:26px;
    padding:22px;
    border:1px solid #ead9a8;
    border-radius:12px;
    background:#fffaf0;
}

.product-purchase.is-offer{
    border-color:#e7bd58;
    background:#fff8e7;
}

.detail-offer-label{
    display:inline-flex;
    margin:0 0 8px;
    padding:5px 9px;
    border-radius:999px;
    color:#fff;
    background:#b54708;
    font-size:.7rem;
    font-weight:900;
    letter-spacing:.06em;
    text-transform:uppercase;
}

.detail-price-before{
    margin:0 0 2px;
    color:#7a8490;
    font-size:.88rem;
    font-weight:700;
    text-decoration:line-through;
}

.detail-price{
    margin:0;
    color:var(--navy);
    font-size:2.2rem;
    font-weight:900;
    letter-spacing:-.04em;
}

.detail-price.pending{
    color:var(--muted);
    font-size:1.25rem;
}

.tax-note{
    margin:0;
    color:var(--muted);
    font-size:.74rem;
}

.detail-stock{
    margin:18px 0 0;
    color:var(--success);
    font-size:.86rem;
    font-weight:850;
}

.detail-stock.out{
    color:var(--muted);
}

.add-cart-detail{
    min-height:50px;
    font-size:1rem;
}

.purchase-assurances{
    display:grid;
    gap:11px;
    margin-top:20px;
    padding-top:18px;
    border-top:1px solid #ead9a8;
}

.purchase-assurance{
    display:grid;
    grid-template-columns:minmax(112px,.42fr) minmax(0,1fr);
    gap:12px;
    color:#475467;
    font-size:.79rem;
    line-height:1.45;
}

.purchase-assurance strong{
    color:var(--navy);
    font-size:.78rem;
}

.shipping-details-button{
    display:inline;
    padding:0;
    border:0;
    color:#667085;
    background:transparent;
    font:inherit;
    font-weight:750;
    text-decoration:underline;
    text-decoration-color:#c5cbd3;
    text-underline-offset:2px;
    cursor:pointer;
}

.shipping-details-button:hover,
.shipping-details-button:focus-visible{
    color:var(--navy);
    text-decoration-color:#98a2b3;
}

.product-facts{
    margin:25px 0 0;
    border-top:1px solid var(--line);
}

.product-facts>div{
    display:grid;
    grid-template-columns:110px 1fr;
    gap:18px;
    padding:11px 0;
    border-bottom:1px solid var(--line);
}

.product-facts dt{
    color:var(--muted);
    font-size:.78rem;
    font-weight:800;
}

.product-facts dd{
    margin:0;
    color:var(--navy);
    font-size:.82rem;
}

.product-facts dd a{
    color:var(--accent-dark);
    font-weight:750;
}

.product-description{
    margin-top:48px;
    padding-top:30px;
    border-top:1px solid var(--line);
}

.product-description h2{
    margin:0 0 16px;
    color:var(--navy);
    font-size:1.6rem;
}

.product-description div{
    color:#475467;
    line-height:1.75;
}

.related-products{
    margin-top:48px;
    padding-top:30px;
    border-top:1px solid var(--line);
}

.related-products-heading{
    margin-bottom:20px;
}

.related-products-heading h2{
    margin:0;
    color:var(--navy);
    font-size:1.6rem;
}

.related-products-heading p{
    margin:6px 0 0;
    color:var(--muted);
    font-size:.9rem;
}

.shop-content .related-product-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
}

.shipping-cost-dialog{
    width:min(620px,calc(100% - 28px));
    max-height:min(720px,calc(100vh - 28px));
    overflow:auto;
    padding:0;
    border:0;
    border-radius:14px;
    color:#344054;
    background:var(--paper);
    box-shadow:0 28px 80px rgba(8,25,39,.32);
}

.shipping-cost-dialog::backdrop{
    background:rgba(8,25,39,.56);
}

.shipping-cost-dialog-panel{
    padding:26px;
}

.shipping-cost-dialog-heading{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:24px;
}

.shipping-cost-dialog-heading h2{
    margin:0;
    color:var(--navy);
    font-size:1.45rem;
}

.shipping-cost-dialog-heading p{
    margin:7px 0 0;
    color:var(--muted);
    font-size:.87rem;
    line-height:1.55;
}

.shipping-cost-dialog-close{
    flex:0 0 auto;
    width:34px;
    height:34px;
    padding:0;
    border:1px solid var(--line);
    border-radius:50%;
    color:#667085;
    background:#f7f8fa;
    font-size:1.4rem;
    line-height:1;
    cursor:pointer;
}

.shipping-cost-dialog-close:hover,
.shipping-cost-dialog-close:focus-visible{
    color:var(--navy);
    border-color:#aeb8c4;
}

.shipping-cost-table-wrap{
    overflow-x:auto;
    margin-top:22px;
    border:1px solid var(--line);
    border-radius:10px;
}

.shipping-cost-table{
    width:100%;
    border-collapse:collapse;
    font-size:.84rem;
}

.shipping-cost-table th,
.shipping-cost-table td{
    padding:12px 14px;
    border-bottom:1px solid var(--line);
    text-align:left;
    white-space:nowrap;
}

.shipping-cost-table th{
    color:var(--navy);
    background:#f4f6f8;
    font-size:.75rem;
    text-transform:uppercase;
    letter-spacing:.03em;
}

.shipping-cost-table tr:last-child td{
    border-bottom:0;
}

body.shipping-dialog-open{
    overflow:hidden;
}

@media(max-width:980px){
    .product-content{
        padding:28px min(4vw,30px) 50px;
        border-radius:0;
    }

    .product-detail{
        grid-template-columns:1fr 1fr;
        gap:28px;
    }

    .shop-content .related-product-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:700px){
    .product-detail{
        grid-template-columns:1fr;
    }

    .purchase-assurance{
        grid-template-columns:1fr;
        gap:2px;
    }
}

@media(max-width:520px){
    .shop-content .related-product-grid{
        grid-template-columns:1fr;
    }

    .shipping-cost-dialog-panel{
        padding:20px 16px;
    }

    .shipping-cost-table th,
    .shipping-cost-table td{
        padding:11px 10px;
        font-size:.74rem;
    }
}
