/* Public /procenka — live supplier quotes */

.av-quote {
    padding: 2rem 0 4rem;
    min-height: 50vh;
}

.av-quote__crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    color: var(--text-muted, #7F8F78);
}

.av-quote__crumbs a {
    color: var(--accent-hover, #91AB7C) !important;
    text-decoration: none !important;
}

.av-quote__eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-hover, #91AB7C);
    margin-bottom: 0.35rem;
}

.av-quote__title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary, #F1F4EE);
}

.av-quote__lead {
    margin: 0 0 1.5rem;
    max-width: 40rem;
    color: var(--text-secondary, #B7C4B0);
    line-height: 1.55;
}

.av-quote__form {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.av-quote__form input {
    flex: 1 1 16rem;
    min-height: 2.85rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-strong, rgba(148, 168, 132, 0.28));
    background: var(--surface, #1A211C);
    color: var(--text-primary, #F1F4EE);
    font-size: 1rem;
}

.av-quote__form button {
    padding: 0 1.1rem;
    border-radius: 10px;
    border: 1px solid #6d8660;
    background: #7A9368;
    color: #0E1210;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
}

.av-quote__form button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.av-quote__form button.is-loading:disabled {
    opacity: 1;
    cursor: progress;
}

.av-quote__status {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--text-muted, #7F8F78);
}

.av-quote__status.is-error {
    color: #f87171;
}

.av-quote__table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--border-strong, rgba(148, 168, 132, 0.28));
    background: linear-gradient(145deg, var(--surface-elevated, #222B24), var(--surface, #1A211C));
}

.av-quote__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.av-quote__table th,
.av-quote__table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(148, 168, 132, 0.14);
    vertical-align: middle;
}

.av-quote__table th {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted, #7F8F78);
    font-weight: 600;
}

.av-quote__table td {
    color: var(--text-secondary, #B7C4B0);
}

.av-quote__table tr:last-child td {
    border-bottom: 0;
}

.av-quote__supplier {
    color: var(--text-secondary, #B7C4B0);
    font-size: 0.82rem;
}

.av-quote__price {
    color: var(--accent-hover, #91AB7C) !important;
    font-weight: 700;
    white-space: nowrap;
}

.av-quote__badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(122, 147, 104, 0.16);
    color: var(--accent-hover, #91AB7C);
}

.av-quote__badge--analog {
    background: rgba(148, 168, 132, 0.12);
    color: var(--text-muted, #7F8F78);
}

.av-quote__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin: 0 0 1.25rem;
}

.av-quote__filters label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted, #7F8F78);
}

.av-quote__form input,
.av-quote__form button {
    height: var(--btn-height-lg, 2.75rem);
    min-height: var(--btn-height-lg, 2.75rem);
    max-height: var(--btn-height-lg, 2.75rem);
    box-sizing: border-box;
    border-radius: 10px;
}

.av-quote__filters select,
.av-quote__filters input,
.av-quote__filter-reset {
    height: var(--control-height, 2.5rem);
    min-height: var(--control-height, 2.5rem);
    max-height: var(--control-height, 2.5rem);
    box-sizing: border-box;
    border-radius: 10px;
}

.av-quote__filters select,
.av-quote__filters input {
    width: 100%;
    min-width: 11rem;
    padding: 0 0.85rem;
    border: 1px solid var(--border-strong, rgba(148, 168, 132, 0.28));
    background: var(--surface, #1A211C);
    color: var(--text-primary, #F1F4EE);
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0;
}

.av-quote__filter-reset {
    padding: 0 0.95rem;
    border: 1px solid rgba(148, 168, 132, 0.32);
    background: #1A211C;
    color: #F1F4EE;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.av-quote__sort {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.av-quote__sort.is-active {
    color: var(--text-primary, #F1F4EE);
}

.av-quote-card__specs {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 0.88rem;
}

.av-quote-card__specs td {
    padding: 0.4rem 0.5rem 0.4rem 0;
    border-bottom: 1px solid rgba(148, 168, 132, 0.12);
    vertical-align: top;
}

.av-quote-card__specs td:first-child {
    color: var(--text-muted, #7F8F78);
    width: 42%;
}

.av-quote-card__specs td:last-child {
    color: var(--text-primary, #F1F4EE);
    white-space: pre-line;
}

.av-quote__thumb-cell {
    width: 4.5rem;
    padding-right: 0.4rem !important;
}

body.home-page main img.av-quote__thumb,
.av-quote__thumb {
    display: block;
    width: 3.4rem;
    height: 3.4rem;
    max-width: 3.4rem;
    max-height: 3.4rem;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
}

.av-quote__thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f1411;
    color: var(--text-muted, #7F8F78);
    font-size: 0.62rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    padding: 0.2rem;
}

.av-quote-card__zoom {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #fff;
    cursor: zoom-in;
}

.av-quote-card__count {
    position: absolute;
    left: 0.45rem;
    bottom: 0.45rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(14, 18, 16, 0.72);
    color: #f1f4ee;
    font-size: 0.72rem;
    font-weight: 700;
}

.av-quote-lightbox[hidden] {
    display: none;
}

.av-quote-lightbox {
    position: fixed;
    inset: 0;
    z-index: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.av-quote-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}

.av-quote-lightbox__img {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 960px);
    max-height: 86vh;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
}

.av-quote-lightbox__close,
.av-quote-lightbox__nav {
    position: absolute;
    z-index: 2;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #f1f4ee;
    cursor: pointer;
}

.av-quote-lightbox__close {
    top: 0.8rem;
    right: 0.8rem;
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.5rem;
    line-height: 1;
}

.av-quote-lightbox__nav {
    top: 50%;
    width: 2.8rem;
    height: 2.8rem;
    margin-top: -1.4rem;
    font-size: 2rem;
    line-height: 1;
}

.av-quote-lightbox__nav--prev { left: 0.6rem; }
.av-quote-lightbox__nav--next { right: 0.6rem; }

.av-quote-lightbox__nav[hidden] { display: none; }

.av-quote-lightbox__count {
    position: absolute;
    z-index: 2;
    bottom: 1rem;
    left: 0;
    right: 0;
    margin: 0;
    text-align: center;
    color: #f1f4ee;
    font-weight: 700;
}

.av-quote__row {
    cursor: pointer;
}

.av-quote__row:hover td {
    background: rgba(122, 147, 104, 0.14);
}

.av-quote__buy {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.av-quote__buy .av-quote-qty,
.av-quote__buy .av-quote-qty button,
.av-quote__buy .av-quote-qty input {
    height: 2.1rem;
}

.av-quote__add {
    box-sizing: border-box;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0 0.75rem;
    border: 1px solid #6d8660;
    border-radius: 10px;
    background: #7A9368;
    color: #0E1210;
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.av-quote__add:disabled {
    opacity: 0.45;
    cursor: default;
}

.av-quote__more {
    box-sizing: border-box;
    height: 2.25rem;
    border: 1px solid rgba(148, 168, 132, 0.32);
    background: #1A211C;
    color: #F1F4EE;
    border-radius: 10px;
    padding: 0 0.75rem;
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.av-quote__more:hover {
    background: rgba(122, 147, 104, 0.16);
}

.av-quote-modal[hidden] {
    display: none;
}

.av-quote-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4vh 1rem 1rem;
}

.av-quote-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.av-quote-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 52rem);
    max-height: 88vh;
    overflow: auto;
    border-radius: 16px;
    border: 1px solid var(--border-strong, rgba(148, 168, 132, 0.28));
    background: #141a16;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.av-quote-modal__close {
    position: absolute;
    top: 0.6rem;
    right: 0.7rem;
    width: 2.2rem;
    height: 2.2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #f1f4ee;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.av-quote-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1.5rem;
}

@media (min-width: 760px) {
    .av-quote-card {
        grid-template-columns: 220px 1fr;
        padding: 1.5rem 1.5rem 1.75rem;
    }
}

.av-quote-card__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
}

.av-quote-card__img--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: #0f1411;
    color: var(--text-muted, #7F8F78);
    font-weight: 700;
    text-align: center;
    padding: 1rem;
}

.av-quote-card__img--empty span {
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1.35;
}

.av-quote-card__title {
    margin: 0.35rem 2rem 0.4rem 0;
    font-size: 1.35rem;
    color: var(--text-primary, #F1F4EE);
}

.av-quote-card__meta,
.av-quote-card__desc,
.av-quote-card__hint {
    margin: 0 0 0.6rem;
    color: var(--text-secondary, #B7C4B0);
    line-height: 1.45;
    font-size: 0.92rem;
}

.av-quote-card__desc--muted {
    color: var(--text-muted, #7F8F78);
    font-size: 0.85rem;
}

.av-quote-card__price {
    margin: 0 0 0.75rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-hover, #91AB7C);
}

.av-quote-card__h {
    margin: 0.75rem 0 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted, #7F8F78);
}

.av-quote-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
}

.av-quote-qty {
    display: inline-flex;
    align-items: center;
    height: 2.75rem;
    border: 1px solid rgba(148, 168, 132, 0.28);
    border-radius: 10px;
    overflow: hidden;
    background: #1A211C;
}

.av-quote-qty button {
    width: 2.4rem;
    height: 2.75rem;
    border: 0;
    background: transparent;
    color: #F1F4EE;
    font-size: 1.25rem;
    cursor: pointer;
}

.av-quote-qty input {
    width: 2.6rem;
    height: 2.75rem;
    border: 0;
    background: transparent;
    color: #F1F4EE;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
}

.av-quote-card__stock {
    color: #B7C4B0;
    font-size: 0.85rem;
}

.av-quote-qty input::-webkit-outer-spin-button,
.av-quote-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.av-quote-card__hint {
    margin-top: 0.75rem;
    font-size: 0.8rem;
}
