/* Notificari (Toastify) in limbajul site-ului: card #2B2C2E, accent coral, hanken-grotesk + alternate-gothic.
   Construite de avToast() din js/functii.generale.js (cos, wishlist, comparare, 2+1 la viniluri).
   Indicatorul .av-vinyl-meter e folosit si de bannerul 2+1 din cos (helpers/template/newCartPageContent.phtml). */

.toastify.av-toast {
    --av-toast-accent: #F16A52;
    --av-toast-dur: 4000ms;

    display: flex;
    align-items: flex-start;
    gap: 0 4px;
    width: 400px;
    max-width: calc(100vw - 24px);
    padding: 16px 12px 18px 16px;
    overflow: hidden;
    background: #2B2C2E;
    border-left: 4px solid var(--av-toast-accent);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
    color: #FFFFFF;
    font-family: var(--ff-hg, 'hanken-grotesk'), 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
    cursor: default;
}

.toastify.av-toast--wish     { --av-toast-accent: var(--clr-blue, #49B2E3); }
.toastify.av-toast--muted    { --av-toast-accent: #675F5D; }
.toastify.av-toast--success  { --av-toast-accent: #79BE21; }

/* bara de timp ramas (se opreste cat timp mouse-ul e pe notificare, ca si temporizatorul Toastify) */
.toastify.av-toast::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--av-toast-accent);
    opacity: .7;
    transform-origin: left center;
    animation: av-toast-timer var(--av-toast-dur) linear forwards;
}

.toastify.av-toast:hover::after {
    animation-play-state: paused;
}

@keyframes av-toast-timer {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

.av-toast__inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1 1 auto;
    min-width: 0;
}

.av-toast__icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--av-toast-accent);
    color: #FFFFFF;
}

.av-toast__icon svg {
    width: 20px;
    height: 20px;
}

.av-toast__body {
    flex: 1 1 auto;
    min-width: 0;
}

.av-toast__eyebrow {
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #ACAAAA;
}

.av-toast__title {
    display: block;
    font-family: var(--ff-aga, 'alternate-gothic-atf'), 'Arial Narrow', Impact, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #FFFFFF;
}

.av-toast__text {
    margin: 6px 0 0;
    color: #EEEEEE;
    overflow-wrap: anywhere;
}

.av-toast__text b {
    color: var(--av-toast-accent);
    font-weight: 700;
}

.av-toast__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    margin-top: 12px;
    padding: 3px 16px 0;
    border-radius: 4px;
    background: var(--av-toast-accent);
    font-family: var(--ff-aga, 'alternate-gothic-atf'), 'Arial Narrow', Impact, sans-serif;
    font-size: 17px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #FFFFFF !important;
    text-decoration: none !important;
    cursor: pointer;
}

.av-toast__action:hover {
    filter: brightness(1.1);
}

/* pe verde textul alb nu se citeste destul (contrast ~2.3:1) */
.toastify.av-toast--success .av-toast__action {
    color: #131213 !important;
}

.toastify.av-toast .toast-close {
    flex: none;
    align-self: flex-start;
    margin: -6px 0 0;
    padding: 4px 6px;
    background: transparent;
    border: 0;
    font-size: 16px;
    color: #ACAAAA;
    opacity: 1;
    cursor: pointer;
}

.toastify.av-toast .toast-close:hover {
    color: #FFFFFF;
}

/* telefon: pe toata latimea, cu margini de 12px */
@media only screen and (max-width: 600px) {
    .toastify.av-toast.toastify-right,
    .toastify.av-toast.toastify-left,
    .toastify.av-toast.toastify-center {
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        margin: 0;
    }

    .av-toast__title {
        font-size: 22px;
    }
}

/* ---------- 2+1 la viniluri: discurile (2 cumparate + 1 cadou) ---------- */

.av-vinyl-meter {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.av-vinyl-meter__disc {
    position: relative;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px dashed #675F5D;
    background: transparent;
}

.av-vinyl-meter__disc.is-filled {
    border: 0;
    background:
        radial-gradient(circle, #EEEEEE 0 2px, #F16A52 2.5px 7px, transparent 7.5px),
        repeating-radial-gradient(circle, #131213 0 2px, #1E1E1F 2px 3px);
}

.av-vinyl-meter__plus {
    margin: 0 2px;
    font-family: var(--ff-aga, 'alternate-gothic-atf'), 'Arial Narrow', Impact, sans-serif;
    font-size: 20px;
    color: #ACAAAA;
}

.av-vinyl-meter__disc.is-gift {
    border: 2px solid #79BE21;
}

.av-vinyl-meter__disc.is-gift::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 14px;
    height: 14px;
    background: #79BE21;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 7h-2.2A3 3 0 0 0 12 3.8 3 3 0 0 0 6.2 7H4a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1v8a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1Zm-5-2a1 1 0 1 1 0 2h-2a1 1 0 0 1 1-2h1ZM9 5h1a1 1 0 0 1 1 2H9a1 1 0 1 1 0-2Zm2 15H6v-8h5v8Zm0-10H5V9h6v1Zm7 10h-5v-8h5v8Zm1-10h-6V9h6v1Z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 7h-2.2A3 3 0 0 0 12 3.8 3 3 0 0 0 6.2 7H4a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1v8a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1Zm-5-2a1 1 0 1 1 0 2h-2a1 1 0 0 1 1-2h1ZM9 5h1a1 1 0 0 1 1 2H9a1 1 0 1 1 0-2Zm2 15H6v-8h5v8Zm0-10H5V9h6v1Zm7 10h-5v-8h5v8Zm1-10h-6V9h6v1Z'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: .45;
}

.av-vinyl-meter__disc.is-gift.is-won {
    background: #79BE21;
}

.av-vinyl-meter__disc.is-gift.is-won::after {
    background: #FFFFFF;
    opacity: 1;
}
