@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

/* ── BAR ── */
#novo-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    width: calc(100% - 40px);
    max-width: 860px;
    z-index: 99990;
    font-family: 'DM Sans', sans-serif;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2);
    padding: 8px 16px;
    opacity: 0;
    animation: novoBarSlideIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s forwards;
}

@keyframes novoBarSlideIn {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ── INNER ── */
#novo-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 100px;
}

/* ── LEFT ── */
#novo-bar-left {
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

/* Image link */
#novo-bar-img-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

#novo-bar-img-link:hover #novo-bar-img {
    opacity: 0.82;
    transition: opacity 0.2s;
}

#novo-bar-img {
    width: 80px;
    height: 100px;
    object-fit: contain;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 6px;
    box-sizing: border-box;
    display: block;
}

/* Info */
#novo-bar-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

#novo-bar-name-link {
    text-decoration: none;
}

#novo-bar-name-link:hover span {
    text-decoration: underline;
    text-underline-offset: 2px;
}

#novo-bar-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
    display: block;
}

#novo-bar-prices {
    display: flex;
    align-items: center;
    gap: 8px;
}

.novo-bar-old { font-size: 12px; color: rgba(255,255,255,0.35); text-decoration: line-through; }
.novo-bar-old del { text-decoration: line-through; }
.novo-bar-old bdi { font-size: 12px; }

.novo-bar-new { font-size: 17px; font-weight: 700; color: #e86a00; }
.novo-bar-new bdi { font-size: 17px; }

/* ── RIGHT ── */
#novo-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ── QTY — all 3 elements: same bg rgba(255,255,255,0.20) ── */
#novo-bar-qty {
    display: flex;
    align-items: center;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    overflow: hidden;
    height: 40px;
    background: rgba(255,255,255,0.20);
}

.novo-qty-btn {
    width: 34px;
    height: 40px;
    background: #1a1a1a;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.15s;
}

.novo-qty-btn:hover { background: #2a2a2a; }

#novo-qty-val {
    width: 34px;
    height: 40px;
    background: #1a1a1a;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ── CTA ── */
#novo-bar-btn {
    background: #e86a00;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 11px 22px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(232,106,0,0.4);
}

#novo-bar-btn:hover    { background: #d15e00; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,106,0,0.5); }
#novo-bar-btn:active   { transform: translateY(0); }
#novo-bar-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── TABLET ── */
@media (max-width: 768px) {
    #novo-bar { bottom: 14px; width: calc(100% - 28px); border-radius: 16px; padding: 8px 14px; }
    #novo-bar-name { font-size: 12px; max-width: 180px; }
    .novo-bar-new  { font-size: 15px; }
    #novo-bar-btn  { font-size: 12px; padding: 10px 16px; border-radius: 10px; }
}

/* ── MOBILE ── */
@media (max-width: 480px) {
    #novo-bar { bottom: 10px; width: calc(100% - 20px); border-radius: 14px; padding: 10px 12px; }

    #novo-bar-inner { flex-direction: column; align-items: stretch; gap: 10px; min-height: unset; }
    #novo-bar-left  { align-self: auto; gap: 10px; }

    #novo-bar-img { width: 48px !important; height: 48px !important; border-radius: 10px; }

    #novo-bar-name { font-size: 12px; max-width: 100%; }
    .novo-bar-old  { font-size: 11px; }
    .novo-bar-new  { font-size: 15px; }

    #novo-bar-right { display: flex; align-items: center; gap: 10px; width: 100%; }
    #novo-bar-qty   { height: 38px; flex-shrink: 0; }

    .novo-qty-btn   { width: 30px; height: 38px; font-size: 16px; }
    #novo-qty-val   { width: 28px; height: 38px; font-size: 13px; }

    #novo-bar-btn { flex: 1; font-size: 13px; padding: 10px 12px; border-radius: 10px; justify-content: center; }
}
