/* Fa Site Pricechart — Taraghi brand */
.price-board {
    --pb-ink: #1a1c1c;
    --pb-charcoal: #303434;
    --pb-gold: #f6c37f;
    --pb-gold-soft: rgba(246, 195, 127, 0.18);
    --pb-stone: #f4f1ec;
    --pb-line: rgba(48, 52, 52, 0.1);
    --pb-muted: #6b7070;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background:
        linear-gradient(180deg, #faf8f5 0%, #ffffff 40%, #f7f5f1 100%);
    position: relative;
}

.price-board__inner {
    width: min(1140px, calc(100% - 2rem));
    margin-inline: auto;
}

.price-board__head {
    text-align: center;
    margin-bottom: 1.75rem;
}

.price-board__eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pb-gold-deep, #c9974a);
    font-weight: 700;
}

.price-board__title {
    margin: 0;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    color: var(--pb-charcoal);
    font-weight: 800;
}

.price-board__sub {
    margin: 0.55rem auto 0;
    max-width: 32rem;
    color: var(--pb-muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

.price-board__filters {
    margin-bottom: 1.5rem;
}

.price-board__filters-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--pb-charcoal);
    font-weight: 700;
    font-size: 0.95rem;
}

.category-rail {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0.35rem 0.15rem 0.75rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.category-rail::-webkit-scrollbar {
    height: 4px;
}

.category-rail::-webkit-scrollbar-thumb {
    background: rgba(48, 52, 52, 0.25);
    border-radius: 4px;
}

.category-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    border: 1px solid var(--pb-line);
    background: #fff;
    color: var(--pb-charcoal);
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.category-chip:hover {
    border-color: var(--pb-gold);
    transform: translateY(-1px);
}

.category-chip.active {
    background: var(--pb-charcoal);
    border-color: var(--pb-charcoal);
    color: var(--pb-gold);
    box-shadow: 0 10px 24px rgba(48, 52, 52, 0.18);
}

.price-table-shell {
    background: #fff;
    border: 1px solid var(--pb-line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(26, 28, 28, 0.06);
}

.price-table-shell .table {
    margin: 0;
    width: 100%;
}

.price-table-shell thead th {
    background: var(--pb-charcoal);
    color: #fff;
    border: none;
    padding: 0.95rem 0.85rem;
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}

.price-table-shell tbody td {
    padding: 0.95rem 0.85rem;
    vertical-align: middle;
    border-color: var(--pb-line);
    font-size: 0.92rem;
}

.price-table-shell tbody tr {
    transition: background 0.2s ease;
}

.price-table-shell tbody tr:hover {
    background: var(--pb-stone);
}

.price-product {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-product img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--pb-stone);
}

.price-product__title {
    font-weight: 700;
    color: var(--pb-ink);
}

.price-product__desc {
    display: block;
    color: var(--pb-muted);
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.price-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--pb-stone);
    color: var(--pb-charcoal);
}

.price-badge--gold {
    background: var(--pb-gold-soft);
    color: #8a6428;
}

.price-badge--up {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.price-badge--down {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}

.price-value {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--pb-ink);
    letter-spacing: -0.01em;
}

.btn-chart {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: var(--pb-charcoal);
    color: var(--pb-gold);
    display: inline-grid;
    place-items: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-chart:hover {
    background: #1a1c1c;
    color: #fff;
    transform: translateY(-2px) scale(1.05);
}

.price-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--pb-muted);
}

.price-empty i {
    font-size: 2rem;
    color: var(--pb-gold);
    margin-bottom: 0.75rem;
    display: block;
}

/* Mobile cards */
.price-mobile {
    display: none;
}

.price-card {
    background: #fff;
    border: 1px solid var(--pb-line);
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 10px 28px rgba(26, 28, 28, 0.05);
}

.price-card__top {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    margin-bottom: 0.85rem;
}

.price-card__top img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
}

.price-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.price-card__cell {
    background: var(--pb-stone);
    border-radius: 10px;
    padding: 0.65rem 0.7rem;
}

.price-card__cell span {
    display: block;
    font-size: 0.72rem;
    color: var(--pb-muted);
    margin-bottom: 0.2rem;
}

.price-card__cell strong {
    font-size: 0.9rem;
    color: var(--pb-ink);
}

.price-card__actions {
    display: flex;
    justify-content: stretch;
}

.price-card__actions .btn-chart-wide {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    background: var(--pb-charcoal);
    color: var(--pb-gold);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

/* Modal polish */
#priceChartModal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

#priceChartModal .modal-header {
    background: var(--pb-charcoal);
    color: #fff;
    border: none;
}

#priceChartModal .modal-title {
    color: #fff;
    font-weight: 700;
}

#priceChartModal .btn-close {
    filter: invert(1);
}

.price-info {
    background: var(--pb-stone);
    border-radius: 12px;
    padding: 1rem;
    border-inline-start: 3px solid var(--pb-gold);
}

#priceChart {
    width: 100% !important;
    max-height: 380px;
}

.price-chart-contact {
    margin: 0 0 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: rgba(246, 195, 127, 0.22);
    border: 1px solid rgba(201, 151, 74, 0.45);
    color: #303434;
    font-weight: 700;
    line-height: 1.7;
    text-align: center;
}

@media (max-width: 991.98px) {
    .price-desktop {
        display: none !important;
    }

    .price-mobile {
        display: block !important;
    }
}

@media (max-width: 575.98px) {
    .price-board__filters-label {
        flex-direction: column;
        align-items: flex-start;
    }

    .price-card__grid {
        grid-template-columns: 1fr;
    }
}
