/* =============================================
   ShowGlass Advanced Pricing — Frontend Styles
   ============================================= */

/* ---- Bloco de preço unificado ---- */
.sg-price-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.4;
}

/* Preço regular riscado */
.sg-price-regular {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.sg-price-regular del {
    opacity: 1;
}
.sg-price-regular del .woocommerce-Price-amount {
    opacity: 1;
}

/* Preço principal (PIX/Boleto ou único) */
.sg-price-main {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.sg-pix-amount {
    font-weight: 700;
}
.sg-pix-amount .woocommerce-Price-amount {
    font-weight: inherit;
}

/* Preço no Cartão (só visível na página do produto) */
.sg-price-card {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.sg-card-amount {
    text-decoration: line-through;
}

/* Labels (PIX, Cartão) */
.sg-label {
    color: #777;
    line-height: 1;
}
.sg-label-pix {
    font-weight: 500;
}

/* ---- Badge de desconto ---- */
.sg-discount-badge {
    display: inline-block;
    background: #d63638;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 1.6;
    white-space: nowrap;
}

/* ---- Parcelamento ---- */
.sg-installments {
    color: #666;
    font-style: italic;
    line-height: 1.3;
    margin-top: 2px;
}

/* ---- Aviso no Checkout ---- */
.sg-checkout-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 0 0 16px;
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.5;
    transition: background 0.3s, border-color 0.3s;
}
.sg-notice-neutral {
    background: #f0f7ff;
    border-left: 4px solid #2271b1;
    color: #1d2327;
}
.sg-notice-success {
    background: #edfaed;
    border-left: 4px solid #1e8e4c;
    color: #1d2327;
}
.sg-notice-icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
}
.sg-notice-text strong {
    font-weight: 700;
}

/* ---- Produto variável: ocultar até selecionar variação ---- */
.sg-variable-pending {
    display: none;
}

/* ---- Badge "Oferta!" personalizado ---- */
.sg-onsale {
    display: inline-block;
    color: #fff !important;
    font-weight: 700;
    border-radius: 3px;
    /* cor definida via style="" inline */
}

/* ---- Swatches de cor (Box / categorias especiais) ---- */
.sg-color-swatches {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}
.sg-swatches-label {
    font-size: 11px;
    color: #777;
    margin-right: 2px;
    white-space: nowrap;
}
.sg-swatch-img {
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #ddd;
    cursor: default;
    pointer-events: none;
    display: block;
    flex-shrink: 0;
}
