/* Главная v2 (31.10.2026): товары первыми. Только существующие переменные темы (pandasale.css). */

/* --- вводная полоса --- */
.ps-home2 .h2-intro{padding:14px 0 0}
.ps-home2 .h2-intro-box{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;box-sizing:border-box;
  padding:8px 10px 8px 20px;border-radius:14px;background:var(--brand-wash)}
.ps-home2 .h2-intro h1{margin:0;font-size:22px;font-weight:800;line-height:1.2;letter-spacing:-.2px;color:var(--ink)}
.ps-home2 .h2-intro p{margin:2px 0 0;font-size:14px;font-weight:600;color:var(--ink-soft);display:flex;flex-wrap:wrap;gap:0 6px}
.ps-home2 .h2-intro .dot{color:var(--brand-dd)}
.ps-home2 .h2-intro-btn{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 20px;border-radius:12px;
  background:var(--ink);color:#fff;font-weight:700;font-size:15px;text-decoration:none}
.ps-home2 .h2-intro-btn:hover{color:#fff;opacity:.9}

/* --- витрины: плотнее отступы секций --- */
.ps-home2 .sec{padding:26px 0 0}
.ps-home2 .sec-head{margin-bottom:16px}
.ps-home2 .h2-hits .sec{padding-top:18px}

/* --- карточки: квадратное фото без сдвигов вёрстки --- */
.ps-home2 .card .imgwrap{aspect-ratio:1/1}
.ps-home2 .card .imgwrap img{width:100%;height:100%;object-fit:contain}

/* --- услуги: три карточки в одну строку --- */
.ps-home2 .h2-services{padding:28px 0 0}
.ps-home2 .h2-services .wrap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ps-home2 .h2-svc{display:flex;align-items:center;gap:14px;min-height:84px;box-sizing:border-box;padding:16px 18px;border-radius:16px;
  color:var(--ink);text-decoration:none;transition:transform .15s}
.ps-home2 .h2-svc:hover{transform:translateY(-2px);color:var(--ink)}
.ps-home2 .h2-svc .ic{flex:none;width:48px;height:48px;border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:center}
.ps-home2 .h2-svc .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ps-home2 .h2-svc .tx b{font-size:17px;font-weight:800;line-height:1.2}
.ps-home2 .h2-svc .tx span{font-size:13px;font-weight:600;color:var(--ink-soft);line-height:1.3}
.ps-home2 .h2-svc .ar{flex:none;font-size:20px;font-weight:700}
.ps-home2 .s-blue{background:linear-gradient(135deg,#eef6ff,#e3edff)}.ps-home2 .s-blue .ic{color:#2f5bd0}
.ps-home2 .s-lilac{background:linear-gradient(135deg,#f5efff,#ebe2ff)}.ps-home2 .s-lilac .ic{color:#6b3fc0}
.ps-home2 .s-peach{background:linear-gradient(135deg,#fff7e6,#ffe9d6)}.ps-home2 .s-peach .ic{color:#b5561a}

/* --- лояльность: тёмная полоса + шесть квадратов 88×88 --- */
.ps-home2 .h2-loyal{padding:32px 0 0}
.ps-home2 .h2-loyal-box{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;border-radius:16px;background:var(--ink);color:#fff}
.ps-home2 .h2-loyal-txt h2{margin:0;font-size:22px;font-weight:800;line-height:1.25;color:#fff}
.ps-home2 .h2-loyal-txt p{margin:6px 0 0;font-size:14px;color:#d4d4cc;max-width:42ch}
.ps-home2 .h2-loyal-tiles{flex:none;display:flex;gap:10px}
.ps-home2 .h2-loyal-tiles .t{width:88px;height:88px;box-sizing:border-box;border-radius:12px;background:#2a2a28;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:4px;text-decoration:none}
.ps-home2 .h2-loyal-tiles .t b{font-size:24px;font-weight:800;line-height:1;color:var(--brand)}
.ps-home2 .h2-loyal-tiles .t span{font-size:12px;color:#d4d4cc;line-height:1.2;text-align:center}
.ps-home2 .h2-loyal-tiles .t.more{background:var(--brand);color:var(--ink);font-weight:800;font-size:14px}
.ps-home2 .h2-loyal-tiles .t.more:hover{background:var(--brand-d);color:var(--ink)}

/* --- плитки категорий: компактная полоса-разделитель --- */
.ps-home2 .h2-cats .ps-cat-list{display:none}
.ps-home2 .h2-cats .ps-cat-tiles{padding:28px 0 0}
.ps-home2 .h2-cats .sec-head{margin-bottom:12px}
.ps-home2 .h2-cats .sec-head h2{font-size:20px}
.ps-home2 .h2-cats .sec-head .eyebrow{display:none}
.ps-home2 .h2-cats .catrow{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.ps-home2 .h2-cats .catcard{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;min-height:56px;padding:8px 14px;
  border-radius:14px;aspect-ratio:auto;height:auto}
.ps-home2 .h2-cats .catcard .ce svg{width:26px;height:26px}
.ps-home2 .h2-cats .catcard b,.ps-home2 .h2-cats .catcard span:not(.ce){font-size:14px;margin:0}

/* --- планшет --- */
@media (max-width:1100px){
  .ps-home2 .h2-loyal-box{flex-direction:column;align-items:flex-start}
  .ps-home2 .h2-cats .catrow{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:900px){
  .ps-home2 .h2-services .wrap{grid-template-columns:1fr;gap:8px}
  .ps-home2 .h2-svc{min-height:64px;padding:12px 14px}
  .ps-home2 .h2-svc .ic{width:40px;height:40px;border-radius:11px}
}

/* --- телефон --- */
@media (max-width:640px){
  .ps-home2 .wrap{padding:0 16px}
  .ps-home2 .h2-intro{padding:10px 0 0}
  .ps-home2 .h2-intro-box{min-height:50px;padding:7px 14px;border-radius:12px}
  .ps-home2 .h2-intro h1{font-size:15px;line-height:1.3}
  .ps-home2 .h2-intro p{font-size:12px;margin:1px 0 0}
  .ps-home2 .h2-intro .h2-hide-m,.ps-home2 .h2-intro-btn{display:none}
  .ps-home2 .sec{padding:22px 0 0}
  .ps-home2 .h2-hits .sec{padding-top:14px}
  .ps-home2 .sec-head{margin-bottom:10px}
  .ps-home2 .sec-head h2{font-size:20px}
  .ps-home2 .sec-head .eyebrow{display:none}
  .ps-home2 .sec-head .more{min-height:44px;display:inline-flex;align-items:center}
  .ps-home2 .grid{gap:12px}
  /* Хиты: 6 карточек, остальные раскрывает «Показать ещё» */
  .ps-home2 .h2-hits .pshits-grid:not(.h2-open) > .card:nth-child(n+7){display:none}
  .ps-home2 .h2-hits .pshits-more{width:100%;min-height:48px}
  .ps-home2 .h2-services{padding:22px 0 0}
  .ps-home2 .h2-svc .tx b{font-size:15px}
  .ps-home2 .h2-svc .tx span{font-size:12px}
  .ps-home2 .h2-loyal{padding:24px 0 0}
  .ps-home2 .h2-loyal-box{padding:16px 14px 14px;gap:12px}
  .ps-home2 .h2-loyal-txt h2{font-size:17px}
  .ps-home2 .h2-loyal-txt p{font-size:12px;margin-top:2px}
  .ps-home2 .h2-loyal-tiles{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .ps-home2 .h2-loyal-tiles .t{width:auto;height:64px}
  .ps-home2 .h2-loyal-tiles .t b{font-size:20px}
  .ps-home2 .h2-loyal-tiles .t span{font-size:11px}
  .ps-home2 .h2-cats .catrow{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .ps-home2 .h2-cats .catcard{min-height:48px;padding:6px 12px}
  .ps-home2 .trust{margin:28px 0 8px!important}
}

/* --- правки после проверки --- */
.ps-home2 .h2-cats .catrow{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.ps-home2 .sec-head .eyebrow{display:none}
@media (max-width:640px){
  .ps-home2 .h2-cats .catrow{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ps-home2 .card .wish{width:44px;height:44px}
  .ps-home2 .card .addbtn{width:44px;height:44px;min-width:44px}
}

/* --- Хиты: всегда полные ряды (сетка .grid: 5 → 4 кол. ≤1100 → 3 кол. ≤880 → 2 кол. ≤620); лишнее раскрывает «Показать ещё» --- */
@media (max-width:1100px) and (min-width:881px){ .ps-home2 .h2-hits .pshits-grid:not(.h2-open) > .card:nth-child(n+9){display:none} }
@media (max-width:880px) and (min-width:621px){ .ps-home2 .h2-hits .pshits-grid:not(.h2-open) > .card:nth-child(n+10){display:none} }

/* --- полоса = ссылка на «Доставка и оплата» (31.10.2026) --- */
.ps-home2 a.h2-intro-box{color:var(--ink);text-decoration:none;transition:background .15s}
.ps-home2 a.h2-intro-box:hover{background:#e6f2cf;color:var(--ink)}
.ps-home2 .h2-intro-txt{display:flex;flex-direction:column}
.ps-home2 .h2-intro-sub{margin:2px 0 0;font-size:14px;font-weight:600;color:var(--ink-soft);display:flex;flex-wrap:wrap;gap:0 6px}
.ps-home2 .h2-intro-go{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 18px;border-radius:12px;
  background:#fff;border:1px solid var(--line);font-weight:700;font-size:15px;color:var(--ink)}
.ps-home2 a.h2-intro-box:hover .h2-intro-go{border-color:var(--ink)}
/* «Все категории» — плиткой, ссылку в заголовке прячем */
.ps-home2 .h2-cats .sec-head .more{display:none}
.ps-home2 .h2-cats .h2-allcats{background:var(--ink);color:#fff}
.ps-home2 .h2-cats .h2-allcats .ce{color:var(--brand)}
.ps-home2 .h2-cats .h2-allcats:hover{color:#fff;opacity:.92}
.ps-home2 .h2-cats .catcard{align-items:center}
@media (max-width:640px){
  .ps-home2 .h2-intro-sub{font-size:12px;margin:1px 0 0}
  .ps-home2 .h2-intro-go{min-height:0;padding:0;border:0;background:none;font-size:0}
  .ps-home2 .h2-intro-go span{font-size:20px}
}
.ps-home2 .h2-cats .h2-allcats b{color:#fff!important}
.ps-home2 .h2-intro .h2-hide-m{display:inline-flex;gap:0 6px}
@media (max-width:640px){ .ps-home2 .h2-cats .h2-allcats{grid-column:1/-1} .ps-home2 .h2-intro .h2-hide-m{display:none} }

/* --- Новинки / Снова в наличии: сетка как у Хитов, ровные ряды; лишнее открывает «Показать ещё» (31.10.2026) --- */
.ps-home2 .h2-lane .pshits-grid:not(.h2-open) > .card:nth-child(n+6){display:none}
@media (max-width:1100px) and (min-width:881px){ .ps-home2 .h2-lane .pshits-grid:not(.h2-open) > .card:nth-child(n+5){display:none} }
@media (max-width:880px) and (min-width:621px){ .ps-home2 .h2-lane .pshits-grid:not(.h2-open) > .card:nth-child(n+4){display:none} }
@media (max-width:620px){ .ps-home2 .h2-lane .pshits-grid:not(.h2-open) > .card:nth-child(n+5){display:none} }
.ps-home2 .pshits-more{width:auto}
@media (max-width:640px){ .ps-home2 .pshits-more{width:100%;min-height:48px} }
.ps-home2 .pshits-grid > .card.h2-cut{display:none!important}

/* --- лояльность без «Подробнее»: плитки-ссылки по центру (01.11.2026) --- */
.ps-home2 .h2-loyal-tiles{flex:1;justify-content:center}
.ps-home2 .h2-loyal-tiles a.t{transition:background .15s,transform .15s}
.ps-home2 .h2-loyal-tiles a.t:hover{background:#353532;transform:translateY(-2px)}
@media (max-width:1100px){ .ps-home2 .h2-loyal-tiles{width:100%} }
@media (max-width:640px){
  .ps-home2 .h2-loyal-tiles{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
  .ps-home2 .h2-loyal-tiles .t{flex:0 0 calc((100% - 16px) / 3)}
}
/* лояльность: плитки заполняют всю правую часть, без пустоты (01.11.2026) */
@media (min-width:641px){
  .ps-home2 .h2-loyal-tiles{flex:1 1 auto;justify-content:stretch}
  .ps-home2 .h2-loyal-tiles .t{flex:1 1 0;width:auto;min-width:88px}
}
