* { box-sizing: border-box; }
        body { margin: 0; padding-bottom: 92px; background: #f6f8fb; color: #26332a;
               font-family: Metropolis, system-ui, -apple-system, "Segoe UI", sans-serif; }
        .shop-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96);
                       border-bottom: 1px solid #e5ebf0; backdrop-filter: blur(12px); }
        .header-inner { max-width: 1240px; min-height: 68px; margin: auto; padding: 0 24px;
                        display: flex; align-items: center; gap: 18px; }
        .back { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px;
                border: 1px solid #e5ebf0; border-radius: 999px; color: #5c6b5d;
                background: #fff; font-size: 13px; text-decoration: none; transition: .18s ease; }
        .back:hover { border-color: #c7def2; color: #1769aa; background: #f4f8fc; }
        .brand { display: inline-flex; align-items: center; gap: 9px; color: #1769aa;
                 font-size: 19px; font-weight: 750; letter-spacing: -.45px; }
        .brand-mark { display: grid; width: 32px; height: 32px; place-items: center;
                      border-radius: 11px; background: #eaf3fb; color: #1769aa; font-size: 17px; }
        .brand { margin-left: auto; }
        main { max-width: 1240px; margin: 0 auto; padding: 28px 24px 42px; }
        .page-intro { position: relative; display: flex; min-height: 174px; align-items: center;
                      justify-content: space-between; gap: 18px; overflow: hidden; margin-bottom: 20px;
                      padding: 28px 32px; border: 1px solid #e2efdd; border-radius: 23px;
                      background: linear-gradient(115deg, #eaf3fb 0%, #f5f9ed 58%, #fcfcf3 100%); }
        .page-intro::after { position: absolute; right: 8%; top: -84px; width: 260px; height: 260px;
                             border: 36px solid rgba(35,124,189,.08); border-radius: 50%; content: ""; }
        .intro-copy, .intro-count { position: relative; z-index: 1; }
        .eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px;
                   color: #377cab; font-size: 11px; font-weight: 750; letter-spacing: .11em;
                   text-transform: uppercase; }
        .eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: #247fbd; content: ""; }
        .page-intro h1 { margin: 0; color: #26392a; font-size: clamp(28px, 4vw, 40px);
                         font-weight: 750; letter-spacing: -.7px; line-height: 1.08; }
        .page-intro p { margin: 10px 0 0; color: #687867; font-size: 14px; }
        .intro-count { display: grid; min-width: 94px; min-height: 94px; place-content: center;
                       padding: 12px; border: 1px solid rgba(255,255,255,.85); border-radius: 24px;
                       background: rgba(255,255,255,.72); text-align: center; box-shadow: 0 6px 18px rgba(46,91,46,.07); }
        .intro-count strong { color: #1769aa; font-size: 24px; line-height: 1; }
        .intro-count span { margin-top: 6px; color: #748273; font-size: 11px; }
        .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px;
                   flex-wrap: wrap; margin-bottom: 16px; padding: 13px 15px; border: 1px solid #e6edf2;
                   border-radius: 16px; background: rgba(255,255,255,.92); box-shadow: 0 3px 12px rgba(31,58,80,.035); }
        .toolbar .count { display: inline-flex; align-items: center; gap: 5px; color: #657064; font-size: 13px; }
        .toolbar .count b { color: #1769aa; }
        .sort-label { margin-right: 3px; color: #879184; font-size: 11px; font-weight: 700; }
        .sorts { display: flex; flex-wrap: wrap; gap: 7px; }
        .sorts a { padding: 8px 12px; border: 1px solid transparent; border-radius: 999px;
                   background: #f3f6f1; color: #526052; font-size: 11px; font-weight: 650;
                   text-decoration: none; transition: .16s ease; }
        .sorts a:hover { border-color: #d0e3f5; background: #eaf3fb; color: #1769aa; }
        .sorts a.active { background: #1769aa; color: #fff; box-shadow: 0 3px 9px rgba(23,105,170,.2); }
        .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 15px; }
        .product { position: relative; min-width: 0; padding: 11px; border: 1px solid #edf0eb; border-radius: 19px;
                   background: #fff; box-shadow: 0 5px 18px rgba(31,58,80,.045);
                   display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
        .product:hover { transform: translateY(-4px); border-color: #d6e5f2; box-shadow: 0 12px 28px rgba(31,58,80,.105); }
        .p-img-wrap {
                      position: relative;
                      width: 100%;
                      aspect-ratio: 1 / 1;
                      overflow: hidden;
                      border-radius: 13px;
                      /* background: linear-gradient(145deg, #f5f8fc, #eef4fb); */
                      margin-bottom: 12px;
                      }
        .p-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%;
                          object-fit: contain; display: block; padding: 5px; transition: transform .25s ease; }
        .product:hover .p-img-wrap img { transform: scale(1.035); }
        .p-name { min-height: 2.7em; margin-bottom: 7px; color: #303b32; font-size: 14px; font-weight: 700;
                  line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2;
                  -webkit-box-orient: vertical; overflow: hidden; }
        .p-price { color: #1769aa; font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
        .p-unit { color: #7c867b; font-size: 12px; font-weight: 400; }
        .p-stock { display: inline-flex; align-items: center; gap: 6px; margin: 9px 0 10px;
                   color: #52745a; font-size: 11px; font-weight: 650; }
        .p-stock::before { width: 6px; height: 6px; border-radius: 50%; background: #4689bb; content: ""; }
        .p-stock.order { color: #92713b; }
        .p-stock.order::before { background: #d5a23d; }
        .add-to-cart { width: 100%; margin-top: auto; padding: 11px 12px; border: 0;
                       border-radius: 11px; background: #eaf3fb; color: #1769aa; font: inherit;
                       font-size: 12px; font-weight: 750; cursor: pointer;
                       transition: background .16s, color .16s, box-shadow .16s; }
        .add-to-cart:hover { background: #1769aa; color: #fff; box-shadow: 0 5px 12px rgba(23,105,170,.18); }
        .empty { display: grid; justify-items: center; gap: 9px; padding: 54px 20px;
                 border: 1px solid #e6edf4; border-radius: 20px; background: #fff;
                 color: #687366; text-align: center; box-shadow: 0 5px 18px rgba(31,58,80,.04); }
        .empty-icon { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 18px;
                      background: #eff5fc; color: #377cab; font-size: 25px; }
        @media (max-width: 600px) {
            .header-inner { min-height: 60px; padding: 0 12px; gap: 9px; }
            .back { padding: 8px 10px; font-size: 11px; }
            .brand { gap: 6px; font-size: 15px; }
            .brand-mark { width: 28px; height: 28px; border-radius: 9px; font-size: 15px; }
            main { padding: 18px 12px 28px; }
            .page-intro { min-height: 148px; margin-bottom: 14px; padding: 20px 17px; border-radius: 19px; }
            .page-intro p { max-width: 220px; font-size: 12px; }
            .intro-count { min-width: 68px; min-height: 68px; padding: 8px; border-radius: 18px; }
            .intro-count strong { font-size: 20px; }
            .intro-count span { font-size: 9px; }
            .toolbar { align-items: flex-start; padding: 11px; border-radius: 14px; }
            .sort-label { display: none; }
            .sorts { gap: 6px; }
            .sorts a { padding: 7px 9px; font-size: 10px; }
            .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
            .product { padding: 8px; border-radius: 15px; }
            .p-img-wrap { border-radius: 11px; margin-bottom: 9px; }
            .p-name { font-size: 13px; }
            .p-price { font-size: 15px; }
            .p-stock { font-size: 10px; }
            .add-to-cart { padding: 10px 8px; font-size: 11px; }
        }

/* Компактные карточки каталога с управлением корзиной поверх фото. */
.grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px 14px; }
.product {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.product:hover { transform: none; border-color: transparent; box-shadow: none; }
.p-img-wrap {
    aspect-ratio: 1 / 1;
    margin: 0 0 8px;
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
}
.p-img-wrap img { padding: 9px; }
.product:hover .p-img-wrap img { transform: scale(1.025); }
.p-price {
    margin: 0 5px 4px;
    color: #202c34;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: 0;
}
.p-unit { color: #59666e; font-size: 12px; }
.p-name {
    min-height: 0;
    margin: 0 5px;
    color: #303b42;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
}
@media (max-width: 600px) {
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
    .product { padding: 0; border: 0; border-radius: 0; }
    .p-img-wrap { margin-bottom: 7px; border-radius: 25px; }
    .p-img-wrap img { padding: 7px; }
    .p-price { margin: 0 5px 4px; font-size: 16px; }
    .p-name { margin: 0 5px; font-size: 13px; }
}
