/* ─── Oferta em Dobro — Frontend ─── */

/* Single product badge */
.odobro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 16px;
    padding: 9px 14px;
    background: var(--odobro-bg, #111);
    color: var(--odobro-color, #fff);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}
.odobro-badge-icon { font-size: 15px; }

/* Loop / archive ribbon */
.odobro-ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    background: var(--odobro-bg, #111);
    color: var(--odobro-color, #fff);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
/* WooCommerce loop item needs positioning context for the ribbon */
ul.products li.product { position: relative; }

/* Injected notice (theme-independent) */
.odobro-inject {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: auto;
    max-width: max-content;
    flex: 0 0 auto;
    align-self: flex-start;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.odobro-inject-icon { line-height: 1; font-size: 1em; }

/* On listing cards: compact ribbon anchored over the card image */
.odobro-inject--loop {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 6;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 4px 10px;
}

/* On the single product page: prominent banner under the title */
.odobro-inject--single {
    font-size: 15px;
    padding: 10px 18px;
    margin: 14px 0 4px;
}

/* Badge pinned over the single-product image/gallery card */
.odobro-inject--image {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 20;
    font-size: 13px;
    padding: 7px 14px;
    pointer-events: none;
}

/* Cart free line */
.odobro-free-tag {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #0f7b4f;
    background: #e7f6ee;
    border: 1px solid #bfe6d1;
    border-radius: 999px;
    padding: 1px 8px;
    vertical-align: middle;
    white-space: nowrap;
}
.odobro-free-price { color: #0f7b4f; font-weight: 700; }
.odobro-free-qty { color: #6b7280; font-weight: 600; }

/* ─── Archive / dedicated listing page ─── */
.odobro-archive {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.odobro-archive-head { text-align: center; margin: 0 0 28px; }
.odobro-archive-title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 8px;
    color: #0f1115;
}
.odobro-archive-sub {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Filter bar */
.odobro-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 32px;
}
.odobro-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid #e3e5e8;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.odobro-filter-pill:hover {
    border-color: #111;
    color: #111;
    transform: translateY(-1px);
}
.odobro-filter-pill.is-active {
    background: #111;
    border-color: #111;
    color: #fff;
}

.odobro-archive-empty {
    text-align: center;
    color: #9ca3af;
    font-size: 15px;
    padding: 48px 0;
}
.odobro-archive--empty p {
    text-align: center;
    color: #9ca3af;
    font-size: 15px;
    padding: 48px 0;
}

/* ─── Padroniza label do carrossel UPC com o badge do plugin (pill laranja + 🔥) ─── */
.upc-card .product-label.label-term-oferta-em-dobro {
    background: #fa7900 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 4px 11px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .03em !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: inline-flex !important;
    align-items: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.18) !important;
}
.upc-card .product-label.label-term-oferta-em-dobro::after {
    content: " 🔥";
    margin-left: 3px;
}
.upc-card .upc-badges-overlay,
.upc-card .product-labels,
.upc-card .product-labels.labels-rounded {
    overflow: visible !important;
    max-width: none !important;
}

/* ─── Estado "esgotada" (cota 100%) — cinza neutro, sem apelo de promo ─── */
.odobro-badge--expired,
.odobro-ribbon--expired,
.odobro-inject--expired {
    background: #6b7280 !important;
    color: #fff !important;
}
.odobro-badge--expired { box-shadow: 0 4px 14px rgba(0,0,0,.10); }
.upc-card .product-label.label-term-oferta-em-dobro.is-expired {
    background: #6b7280 !important;
}
