.catalog-header { padding: 48px 0 32px; }
.catalog-title { font-size: 36px; font-weight: 700; margin-bottom: 8px; }

.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    padding: 32px 0;
}

.categories-sidebar {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-subtle);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.categories-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.category-link {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.category-link:hover,
.category-link.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.category-link.active {
    color: var(--accent-primary);
    border-left: 3px solid var(--accent-primary);
}

.category-link-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
.category-link-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.products-section { flex: 1; }

.section-header { margin-bottom: 32px; }
.section-header h2 { font-size: 28px; font-weight: 600; margin-bottom: 16px; }

.sections-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid var(--border-subtle);
}

.section-tag:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.section-tag.active {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
    font-weight: 600;
}

/* ===== GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 16px;
    width: 100%;
}

/* ===== CARD ===== */
.pCard{
    position:relative;
    display:block;
    width:100%;
    text-decoration:none;
    color:inherit;

    border-radius:22px;
    overflow:hidden;

    background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.030));
    border: 1px solid rgba(255,255,255,.12);

    box-shadow:
      0 14px 42px rgba(0,0,0,.34),
      inset 0 1px 0 rgba(255,255,255,.16),
      inset 0 -1px 0 rgba(0,0,0,.25);

    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);

    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
    transform: translateZ(0);
}

.pCard::before,
.pCard::after{
    content: none !important;
}

.pCard:hover{
    transform: translateY(-3px);
    border-color: rgba(252, 180, 98, .34);
    box-shadow:
      0 18px 52px rgba(0,0,0,.42),
      0 0 0 1px rgba(252, 180, 98, .26),
      0 0 28px rgba(252, 180, 98, .12),
      inset 0 1px 0 rgba(255,255,255,.18);
}

.pCard:focus-visible{
    outline:none;
    box-shadow:
      0 0 0 2px rgba(252, 180, 98,.55),
      0 18px 52px rgba(0,0,0,.42);
}

.pInner{
    position:relative;
    z-index:2;
    padding: 14px;
}

/* ===== HEAD (иконка + категория + подкатегория) ===== */
.pHead{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom: 12px;
    min-height: 44px;
}

.pHeadLeft{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
}

.pHeadIcon{
    width:42px;
    height:42px;
    border-radius:14px;
    display:grid;
    place-items:center;

    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    overflow:hidden;
    flex: 0 0 auto;
}
.pHeadIcon img{
    width:22px; height:22px;
    object-fit:contain;
    display:block;
    filter: drop-shadow(0 0 3px rgba(0,0,0,.35));
}
.pHeadIcon span{
    font-size:18px;
    line-height:1;
    filter: drop-shadow(0 0 3px rgba(0,0,0,.35));
}

.pHeadTxt{
    display:flex;
    flex-direction:column;
    gap:2px;
    min-width:0;
}

.pHeadTitle{
    font-size:15px;
    font-weight:850;
    letter-spacing:.15px;
    color: var(--text-primary);

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width: 100%;
}
.pHeadSub{
    font-size:12px;
    font-weight:650;
    color: rgba(169,179,189,.95);

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width: 100%;
}

.pHeadRight{
    display:flex;
    align-items:center;
    gap:8px;
    flex: 0 0 auto;
}

.pAutoPill{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:8px 10px;
    border-radius:999px;

    font-size:12px;
    font-weight:900;
    letter-spacing:.2px;

    color: rgba(255,255,255,.95);
    background: rgba(0, 227, 140, .10);
    border: 1px solid rgba(0, 227, 140, .20);

    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
    white-space:nowrap;
}

/* ===== MEDIA ===== */
.pMedia{
    border-radius:18px;
    overflow:hidden;
    background: #0b0f14;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.pImg{
    width:100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display:block;
}
.pImg--empty{
    width:100%;
    aspect-ratio: 16 / 10;
    display:grid;
    place-items:center;
    color: var(--muted);
    font-size:12px;
    background:#0b0f14;
}

/* ===== INFO ===== */
.pInfo{
    margin-top: 12px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.pTitle{
    margin:0;
    font-size:15px;
    font-weight:850;
    line-height:1.22;
    letter-spacing:.12px;

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    min-height: 38px;
}

.pPriceRow{
    display:flex;
    align-items:baseline;
    gap:10px;
    flex-wrap:wrap;
}

.pPriceNow{
    font-size:21px;
    font-weight:950;
    letter-spacing:.2px;
    color: var(--accent-amber);
    line-height:1;
}

.pDiscountInline{
    font-size:13px;
    font-weight:950;
    color: #ff6b6b;
    letter-spacing:.2px;
    line-height:1;
}

.pPriceOld{
    font-size:12px;
    font-weight:850;
    color: rgba(111,122,131,1);
    text-decoration: line-through;
    line-height:1;
}

.pDiscountPill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:7px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:950;

    color:#fff;
    background: rgba(255, 77, 77, .14);
    border: 1px solid rgba(255, 77, 77, .26);

    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

.pFoot{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.06);
    margin-top: 2px;
}

.pSeller{
    font-size:12px;
    font-weight:750;
    color: var(--muted);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    max-width: 72%;
}

.pStars{
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-size:12px;
    font-weight:900;
    color: rgba(169,179,189,1);
    white-space:nowrap;
    flex: 0 0 auto;
}
.pStars svg{
    width:14px;
    height:14px;
    color: var(--accent-amber);
    opacity:.95;
    filter: drop-shadow(0 0 2px rgba(0,0,0,.28));
}

.empty-state { text-align: center; padding: 64px 24px; color: var(--text-muted); }

@media (max-width: 768px) {
    .catalog-layout { grid-template-columns: 1fr; }
    .categories-sidebar { position: static; }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .pInner{ padding: 12px; }
    .pHead{ margin-bottom: 10px; min-height: 42px; }
    .pHeadIcon{ width:40px; height:40px; border-radius:14px; }
    .pHeadTitle{ font-size:14px; }
    .pHeadSub{ font-size:11px; }
    .pTitle{ font-size:14px; min-height: 36px; }
    .pPriceNow{ font-size:19px; }
}

@media (max-width: 420px) {
    .products-grid { grid-template-columns: 1fr; }
}

/* ===== Модалка/фильтры оставил твои ===== */
.section-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}
.section-modal.active { display: flex; align-items: center; justify-content: center; }
.section-modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border-subtle);
}
.section-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}
.section-modal-title { font-size: 24px; font-weight: 700; color: var(--text-primary); }
.section-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.section-modal-close:hover { background: var(--bg-elevated); color: var(--text-primary); }
.section-modal-content-body { max-height: calc(90vh - 120px); overflow-y: auto; }

#filterBtn:hover {
    background: var(--bg-primary);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}


