/**
 * 3D ART Cene po količini - rasponi na stranici proizvoda
 * Boje se mogu prepisati iz teme CSS promenljivama --artqty-*.
 *
 * @author    B.Dragan
 * @copyright 2026 B.Dragan
 */

.artqty {
    --artqty-ink: #0F1A2A;
    --artqty-line: #E2E6EC;
    --artqty-muted: #334155;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    border: 1px solid var(--artqty-line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.artqty__tier {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 64px;
    margin: 0;
    padding: 10px 8px;
    border: 0;
    border-left: 1px solid var(--artqty-line);
    background: transparent;
    color: var(--artqty-ink);
    font: inherit;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.artqty__tier:first-child {
    border-left: 0;
}

.artqty__tier:hover {
    background: #F1F4F8;
}

.artqty__tier:focus-visible {
    outline: 2px solid var(--artqty-ink);
    outline-offset: -2px;
}

.artqty__tier.is-active {
    background: var(--artqty-ink);
    color: #fff;
}

.artqty__qty {
    font-size: 14px;
    font-weight: 600;
}

.artqty__price {
    font-size: 15px;
    font-weight: 800;
}

@media (max-width: 480px) {
    .artqty {
        grid-template-columns: repeat(2, 1fr);
    }

    .artqty__tier:nth-child(odd) {
        border-left: 0;
    }

    .artqty__tier:nth-child(n+3) {
        border-top: 1px solid var(--artqty-line);
    }
}
