/* ============================================================
   SHOPGP3 — CARDS (Neon Premium + Economia à direita)
============================================================ */

/* Container geral do card */
.shopgp3-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 14px;
    border-radius: 20px;

    background:
        radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.18), transparent 55%),
        radial-gradient(circle at 100% 0, rgba(59, 130, 246, 0.16), transparent 55%),
        #020617;

    border: 1px solid rgba(129, 140, 248, 0.45);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.9);
    overflow: visible;
}

/* Link ocupa o card inteiro */
.shopgp3-card > a {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

/* TOP: imagem */
.shopgp3-card__top {
    width: 100%;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 16px;
    padding: 8px;
    background: #f9fafb;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity .25s ease-out;
}

.product-image.loaded {
    opacity: 1;
}

/* Badge de desconto */
.shopgp3-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 50;

    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #9eff7a, #22c55e);
    color: #052e16;

    font-size: 0.8rem;
    font-weight: 700;

    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.shopgp3-discount-badge .value {
    font-weight: 800;
}

.shopgp3-discount-badge .label {
    font-size: 0.7rem;
}

/* BODY: título e preços */
.shopgp3-card__body {
    padding-top: 4px;
}

.shopgp3-card__body h3 {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
    line-height: 1.35;
    color: #f9fafb;
}

.shopgp3-price-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shopgp3-price-old {
    font-size: 0.8rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.shopgp3-price-current {
    font-size: 1.1rem;
    font-weight: 800;
    color: #4ade80;
}

/* Economia antiga (se ainda existir em algum markup) */
.shopgp3-economy-chip {
    display: none;
}

/* ECONOMIA NO CANTO INFERIOR DIREITO */
.shopgp3-economy-float {
    position: absolute;
    right: 14px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center; /* CENTRALIZA */
    text-align: center;  /* GARANTE CENTRALIZAÇÃO */
    gap: 2px;
}

/* Texto “Economize” discreto */
.shopgp3-economy-label {
    font-size: 0.66rem;
    font-weight: 500;
    color: rgba(34, 197, 94, 0.55); /* verde suave */
    letter-spacing: 0.02em;
}

/* Valor economizado */
.shopgp3-economy-value {
    padding: 5px 12px;
    border-radius: 16px;

    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #15803d;

    font-size: 0.78rem;
    font-weight: 700;
}

/* CUPOM BLOCK (mantém estilo anterior) */
.shopgp3-card-coupon {
    padding-top: 10px;
}

.shopgp3-card-coupon .badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.shopgp3-card-coupon .badge {
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f97316;
    color: #fff7ed;
    font-weight: 600;
}

.shopgp3-card-coupon .merchant-label {
    font-size: 0.7rem;
    color: var(--text-muted-card);
    white-space: nowrap;
}

.shopgp3-card-coupon .code-row {
    font-size: 0.8rem;
    margin: 4px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.shopgp3-card-coupon .code-chip {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px dashed rgba(148, 163, 184, 0.8);
    background: #f9fafb;
    color: #111827;
    font-size: 0.78rem;
}

.shopgp3-card-coupon .meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-muted-card);
    margin-top: 4px;
}

.shopgp3-card-coupon .see-more-link {
    font-size: 0.72rem;
    color: #2563eb;
    text-decoration: none;
}

/* ============================================================
   CUPONS — Neon Premium
============================================================ */

.shopgp3-card-coupon {
    position: relative;
    padding: 14px;
    border-radius: 18px;

    background:
        radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.18), transparent 55%),
        radial-gradient(circle at 100% 0, rgba(79, 70, 229, 0.18), transparent 55%),
        rgba(15, 23, 42, 0.95);

    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.65);

    display: flex;
    flex-direction: column;
    gap: 10px;

    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease;
}

.shopgp3-card-coupon:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.9);
    border-color: rgba(129, 140, 248, 0.8);
}

/* TOP BADGE BAR */
.shopgp3-card-coupon__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* “Cupom” badge */
.shopgp3-coupon-badge {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}

/* Merchant */
.shopgp3-coupon-merchant {
    color: #cbd5e1;
    font-size: 0.72rem;
    opacity: 0.85;
}

/* IMAGE */
.shopgp3-card-coupon__image img {
    width: 100%;
    max-height: 110px;
    object-fit: contain;
    border-radius: 10px;
}

/* TITLE */
.shopgp3-card-coupon__title {
    margin: 4px 0 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: #e5e7eb;
    line-height: 1.35;
}

/* CODE */
.shopgp3-card-coupon__code {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}

.shopgp3-card-coupon__code .label {
    color: #9ca3af;
    font-weight: 500;
}

.shopgp3-card-coupon__code .chip {
    background: #f9fafb;
    color: #111827;
    font-size: 0.78rem;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px dashed rgba(148, 163, 184, 0.8);
}

/* DISCOUNT VALUE */
.shopgp3-card-coupon__discount {
    font-size: 0.8rem;
    color: #93c5fd;
}

/* EXPIRATION */
.shopgp3-card-coupon__expiration {
    font-size: 0.72rem;
    color: #64748b;
}

/* SEE MORE LINK */
.shopgp3-card-coupon__more {
    margin-top: 4px;
    text-align: right;
}

.shopgp3-card-coupon__more a {
    color: #60a5fa;
    font-size: 0.76rem;
}
