/* ================================================================
   Витрина и карточки товаров ППУ — стили в дизайн-системе лендингов
   ================================================================ */

/* ---- Витрина: фильтры ---- */
.template-landing-ppu .tp-ppu-section {
    padding: 80px 0;
}

.template-landing-ppu .tp-ppu-section .lp-section-header {
    margin-bottom: 40px;
}

.template-landing-ppu .tp-ppu-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr)) auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 16px;
}

.template-landing-ppu .tp-ppu-filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.template-landing-ppu .tp-ppu-filter-field > span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.template-landing-ppu .tp-ppu-filter-field input,
.template-landing-ppu .tp-ppu-filter-field select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    color: var(--text-primary);
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.template-landing-ppu .tp-ppu-filter-field input:focus,
.template-landing-ppu .tp-ppu-filter-field select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px var(--secondary-glow);
}

.template-landing-ppu .tp-ppu-filter-field input::placeholder {
    color: var(--text-muted);
}

.template-landing-ppu .tp-ppu-reset {
    height: 44px;
    padding: 0 20px;
    white-space: nowrap;
}

.template-landing-ppu .tp-ppu-count {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 14px;
}

.template-landing-ppu .tp-ppu-count strong {
    color: var(--secondary);
}

/* ---- Витрина: таблица с ограниченной высотой ---- */
.template-landing-ppu .tp-ppu-wrapper {
    max-height: 460px;
    overflow-y: auto;
    overflow-x: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(14, 165, 233, 0.55) var(--bg-surface);
}

.template-landing-ppu .tp-ppu-wrapper::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.template-landing-ppu .tp-ppu-wrapper::-webkit-scrollbar-track {
    background: var(--bg-surface);
    border-radius: 6px;
}

.template-landing-ppu .tp-ppu-wrapper::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.55);
    border-radius: 6px;
}

.template-landing-ppu .tp-ppu-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

.template-landing-ppu .tp-ppu-table {
    min-width: 980px;
}

.template-landing-ppu .tp-ppu-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bg-surface-elevated);
    padding: 14px 16px;
    font-size: 12px;
    line-height: 1.45;
    white-space: nowrap;
}

.template-landing-ppu .tp-ppu-table thead th span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
}

.template-landing-ppu .tp-ppu-table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
}

.template-landing-ppu .tp-ppu-table tbody tr[data-url] {
    cursor: pointer;
}

.template-landing-ppu .tp-ppu-diameter a {
    display: block;
    color: var(--primary);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

.template-landing-ppu .tp-ppu-diameter a:hover {
    color: var(--primary-hover);
}

.template-landing-ppu .tp-ppu-go {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 11px;
}

.template-landing-ppu .tp-ppu-cell-main {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
}

.template-landing-ppu .tp-ppu-cell-sub {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 11px;
    white-space: nowrap;
}

.template-landing-ppu .tp-ppu-na {
    color: var(--text-muted);
}

.template-landing-ppu .tp-ppu-band-line {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.8;
}

.template-landing-ppu .tp-ppu-table tr[hidden] {
    display: none;
}

.template-landing-ppu .tp-ppu-empty td {
    padding: 40px 20px !important;
    text-align: center;
    color: var(--text-secondary);
}

.template-landing-ppu .tp-ppu-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 16px 0 0;
    color: var(--text-muted);
    font-size: 12px;
}

.template-landing-ppu .tp-ppu-legend strong {
    color: var(--text-secondary);
}

/* ---- Карточка товара ---- */
.template-landing-ppu .tp-product-hero {
    padding: 60px 0 10px;
}

.template-landing-ppu .tp-product-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: center;
}

.template-landing-ppu .tp-product-hero h1 {
    font-size: 46px;
    line-height: 1.12;
    margin-bottom: 20px;
}

.template-landing-ppu .tp-product-intro {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
}

.template-landing-ppu .tp-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.template-landing-ppu .tp-product-tag {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    background: var(--bg-surface);
    font-size: 13px;
}

.template-landing-ppu .tp-product-visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.template-landing-ppu .tp-product-section {
    padding: 56px 0;
}

.template-landing-ppu .tp-product-section .lp-section-header {
    margin-bottom: 28px;
}

.template-landing-ppu .tp-product-section .section-title {
    font-size: 28px;
}

.template-landing-ppu .tp-product-table td:first-child {
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
}

.template-landing-ppu .tp-product-table td:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

.template-landing-ppu .tp-product-note {
    margin: 14px 0 0;
    color: var(--text-muted);
    font-size: 13px;
}

.template-landing-ppu .tp-product-neighbors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.template-landing-ppu .tp-product-neighbors a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
}

.template-landing-ppu .tp-product-neighbors a:hover {
    border-color: var(--secondary);
    color: var(--text-primary);
}

.template-landing-ppu .tp-product-back {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--secondary);
    font-size: 14px;
    text-decoration: none;
}

/* ---- Адаптив ---- */
@media (max-width: 1080px) {
    .template-landing-ppu .tp-ppu-filters {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
    .template-landing-ppu .tp-product-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .template-landing-ppu .tp-product-hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    .template-landing-ppu .tp-ppu-section {
        padding: 60px 0;
    }
    .template-landing-ppu .tp-ppu-filters {
        grid-template-columns: 1fr;
    }
    .template-landing-ppu .tp-ppu-wrapper {
        max-height: 420px;
    }
    .template-landing-ppu .tp-product-hero h1 {
        font-size: 30px;
    }
}
