.offers-ribbon {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
}

.offers-ribbon-content {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.offers-ribbon-content::-webkit-scrollbar {
    display: none;
}

.offer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.offer-btn__icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: inline-block;
    flex-shrink: 0;
}

.offer-btn:hover,
.offer-btn.active {
    background: var(--accent-primary);
    color: var(--text-inverse);
    border-color: var(--accent-primary);
}

.hero-section {
    padding: 32px 0;
    margin-bottom: 48px;
}

.hero-full {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
}

.hero-banner-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.hero-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    height: 300px;
    isolation: isolate;
    transition: transform 0.3s ease;
}

.hero-banner-link:hover .hero-banner {
    transform: translateY(-2px);
}

.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: none;
}

@media (max-width: 991px) {
    .hero-banner {
        height: 300px;
    }
}

@media (min-width: 992px) {
    .hero-full {
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
        left: auto;
        right: auto;
        margin-left: auto;
        margin-right: auto;
        padding: 0;
    }

    .hero-banner {
        height: 240px;
    }

    .hero-image {
        object-fit: cover;
    }
}

@media (max-width: 767px) {
    .hero-full {
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        width: 100vw;
    }

    .hero-banner {
        height: 240px;
        border-radius: 0;
    }
    
    .hero-image {
        object-fit: cover;
    }
}

.section {
    padding: 64px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
    width: 100%;
}

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

@media (max-width: 767px) {
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .category-card {
        padding: 16px 12px;
        min-height: 210px;
    }

    .category-icon {
        font-size: 36px;
        width: 52px;
        height: 52px;
        margin-bottom: 12px;
    }

    .category-icon img {
        width: 44px;
        height: 44px;
    }

    .category-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .category-description {
        font-size: 12px;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .category-price {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .category-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

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

.category-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    border: 1px solid var(--border-subtle);
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 400px;
    width: 100%;
    min-width: 0;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 24px rgba(252, 180, 98,0.2);
}

.category-icon {
    font-size: 64px;
    margin-bottom: 24px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.category-icon img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
}

.category-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.category-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    flex: 1;
}

.category-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.category-btn {
    padding: 12px 32px;
    border-radius: var(--radius-xl);
    background: var(--accent-primary);
    color: var(--text-inverse);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.category-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 4px 12px rgba(252, 180, 98,0.3);
}

.view-all-btn {
    text-align: center;
    margin-top: 32px;
}

.popular-section {
    margin-top: 64px;
}

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

@media (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 575px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .product-card {
        padding: 16px;
    }

    .product-image {
        height: 130px;
        margin-bottom: 12px;
    }

    .product-name {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .product-description {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .product-price {
        font-size: 16px;
    }

    .product-price-old,
    .product-price-new {
        font-size: 14px;
    }
}

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

/* ===== 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: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));
}

@media (max-width: 768px) {
    .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; }
}


