/* ---------- Сторінки: товар, обране, порівняння, кабінет, блог ---------- */
.muted { color: var(--muted); }
.small { font-size: 12px; }
.link { color: var(--blue); font-weight: 600; }
.link-btn { color: var(--blue); font-weight: 600; }
.card__name a:hover { color: var(--blue); }
.view { padding-bottom: 80px; min-height: 50vh; }
.view-title { font-family: var(--head-font); font-size: 26px; margin: 6px 0 22px; }
.view-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.view-section { margin-top: 44px; }
.view-section h2 { font-family: var(--head-font); font-size: 19px; margin-bottom: 16px; }
.view-empty { text-align: center; padding: 50px 16px; color: var(--muted); font-size: 15px; }
.view-empty p { margin-bottom: 18px; }
.btn-inline { display: inline-block; width: auto; padding: 11px 26px; text-align: center; }
.products--4 { grid-template-columns: repeat(4, 1fr); }
.card-box { border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card-box + .card-box { margin-top: 18px; }
.card-box h2 { font-family: var(--head-font); font-size: 16px; margin-bottom: 6px; }

/* Форми */
.form { display: flex; flex-direction: column; gap: 10px; }
.form input { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; outline: none; font: inherit; }
.form input:focus { border-color: var(--blue); }

/* Товар */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.pdp__main { position: relative; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 16px; display: grid; place-items: center; overflow: hidden; background: #fafafa; }
.pdp__main img { width: 88%; height: 88%; object-fit: contain; }
.pdp__emoji { font-size: 160px; }
.pdp__badge { position: absolute; top: 16px; left: 16px; }
.pdp__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp__thumbs button { width: 70px; height: 70px; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #fafafa; }
.pdp__thumbs button.on { border-color: var(--blue); }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp__info h1 { font-family: var(--head-font); font-size: 24px; line-height: 1.3; margin-bottom: 16px; }
.pdp__meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13px; margin-bottom: 20px; }
.pdp__meta dt { color: var(--muted); }
.pdp__meta a { color: var(--blue); }
.pdp__price { font-size: 30px; font-weight: 700; display: flex; align-items: baseline; gap: 14px; }
.pdp__price .new { color: var(--red); }
.pdp__price s { font-size: 18px; color: #999; font-weight: 500; }
.pdp__stock { color: #2f9e5b; font-weight: 600; margin: 8px 0 20px; }
.pdp__stock.out { color: var(--red); }
.pdp__actions { display: flex; gap: 10px; align-items: center; }
.pdp .card__buy, .compare .card__buy { opacity: 1; transform: none; }
.pdp__buy { flex: 1; max-width: 280px; margin: 0; padding: 14px; font-size: 15px; }
.pdp__icon { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); font-size: 20px; }
.pdp__icon.on, .pdp__icon:hover { background: var(--yellow); border-color: var(--yellow); }
.pdp__note { margin-top: 22px; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Текст сторінок */
.rich { font-size: 15px; line-height: 1.7; color: #222; max-width: 820px; }
.rich p { margin-bottom: 14px; }
.rich h2 { font-family: var(--head-font); font-size: 18px; margin: 26px 0 10px; }
.rich ul { margin: 0 0 14px 22px; }
.rich li { margin-bottom: 4px; }
.article { max-width: 860px; }
.article__img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 16px; margin: 10px 0 24px; }
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 28px; }
.contacts h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.contacts a { color: var(--blue); }
.contacts .big-phone { display: block; font-family: var(--head-font); font-size: 17px; font-weight: 700; }

/* Блог */
.blog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.post-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.post-card img, .post-card__ph { width: 100%; height: 180px; object-fit: cover; }
.post-card__ph { display: grid; place-items: center; font-size: 56px; background: linear-gradient(135deg,#e8eefc,#c9d7fb); }
.post-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__body h3 { font-size: 16px; line-height: 1.35; }
.post-card__body p { color: var(--muted); font-size: 13px; line-height: 1.5; flex: 1; }

.socials:empty, .socials:not(:has(a:not([hidden]))) { display: none; }

/* Порівняння */
.compare-wrap { overflow-x: auto; }
.compare { border-collapse: collapse; min-width: 100%; }
.compare th, .compare td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; font-size: 13px; }
.compare th { color: var(--muted); font-weight: 600; white-space: nowrap; width: 130px; }
.compare td { min-width: 190px; position: relative; }
.compare__media { display: grid; place-items: center; height: 130px; }
.compare__media .card__img { max-height: 120px; }
.compare__media .card__img--emoji { font-size: 70px; }
.compare__name { display: block; font-weight: 600; margin-top: 8px; line-height: 1.35; }
.compare__rm { position: absolute; top: 6px; right: 8px; font-size: 20px; color: #999; }
.compare s { color: #999; }
.compare .card__buy { margin: 0; }

/* Кабінет */
.auth { max-width: 440px; margin: 10px auto 0; }
.auth__tabs { display: flex; gap: 6px; margin-bottom: 18px; background: #f3f3f3; border-radius: 24px; padding: 4px; }
.auth__tabs a { flex: 1; text-align: center; padding: 10px; border-radius: 20px; font-weight: 600; color: #555; }
.auth__tabs a.on { background: #fff; color: #111; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.acc { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: start; }
.acc__nav { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.acc__nav a, .acc__nav button { padding: 10px 12px; border-radius: 10px; text-align: left; font-size: 14px; }
.acc__nav a:hover, .acc__nav button:hover { background: #f5f7ff; }
.acc__nav a.on { background: #eaf0fe; color: var(--blue); font-weight: 700; }
.order__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.order__items { list-style: none; border-top: 1px solid var(--line); }
.order__items li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.order__items a { color: var(--blue); }
.order__foot { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-size: 13px; align-items: baseline; }
.order__foot b { margin-left: auto; font-size: 15px; }
.order__foot a { color: var(--blue); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; background: #f0f0f0; color: #555; }
.pill--NEW, .pill--CONFIRMED { background: #e7efff; color: #3565c9; }
.pill--PROCESSING, .pill--SHIPPED { background: #fff1dc; color: #b86a00; }
.pill--DELIVERED { background: #e3f6ea; color: #2f9e5b; }
.pill--CANCELLED, .pill--RETURNED { background: #fde8e8; color: var(--red); }

.cart-item__name:hover { color: var(--blue); }

@media (max-width: 900px) {
  .pdp, .acc { grid-template-columns: 1fr; }
  .products--4, .blog { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .blog { grid-template-columns: 1fr; }
  .view-title { font-size: 21px; }
  .pdp__info h1 { font-size: 20px; }
}

.consent { align-items: flex-start !important; font-size: 12px !important; line-height: 1.45; color: #555; margin: 4px 0 10px; }
.consent input { margin-top: 2px !important; flex: none; width: auto !important; }
.consent a { color: var(--blue); text-decoration: underline; }

/* ---------- Іконки категорій (плитки як у фірмовому стилі) ---------- */
.cats { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 26px 12px; }
.cat { gap: 12px; }
.cat__tile {
  width: 120px; height: 120px; border-radius: 24px; background: #F1F4FF; display: grid; place-items: center;
  overflow: hidden; transition: transform .2s, box-shadow .2s, background .2s;
}
.cat:hover .cat__tile { transform: translateY(-3px); background: #E6ECFF; box-shadow: 0 10px 22px rgba(47,91,255,.16); }
.cat.active .cat__tile { outline: 3px solid var(--blue); outline-offset: 3px; }
.cat__tile .cat__img--svg, .cat__tile .cat__img--emoji { width: 100%; height: 100%; display: grid; place-items: center; }
.cat__tile .cat__img--svg svg { width: 46px; height: 46px; display: block; }
.cat__tile .cat__img--emoji { font-size: 44px; filter: none; }
.cat__tile img.cat__img { width: 100%; height: 100%; object-fit: cover; }
/* Білий фон фото товару зливається з голубою плиткою (multiply: білий → колір плитки) */
.cat__photo { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s; }
.cat:hover .cat__photo { transform: scale(1.06); }
.cat__name { font-family: var(--body-font) !important; font-size: 13.5px !important; font-weight: 600; color: #101A33; line-height: 1.3; }
.cats--home { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }

/* Іконка у боковому меню */
.sidebar__cats a { display: flex; align-items: center; gap: 10px; }
.side-ic { width: 26px; height: 26px; flex: none; border-radius: 8px; background: #F1F4FF; display: grid; place-items: center; font-size: 14px; }
.side-ic svg { width: 17px; height: 17px; }

/* Товар без фото — велика іконка категорії */
.card__img--svg svg { width: 96px; height: 96px; display: block; }
.card__img--svg { background: #F1F4FF; border-radius: 28px; padding: 28px; }
.pdp__emoji svg { width: 150px; height: 150px; display: block; }
.cart-item__media svg { width: 28px; height: 28px; }
.compare__media .card__img--svg svg { width: 64px; height: 64px; }
.hero__chip svg { width: 32px; height: 32px; }

/* ---------- Головна ---------- */
.hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 24px;
  margin: 10px 0 22px; padding: 56px 56px; border-radius: 28px; color: #fff;
  background: radial-gradient(circle at 85% 20%, #5b80ff 0%, transparent 45%), linear-gradient(135deg, #2F5BFF 0%, #1d3fd0 55%, #101A33 130%);
}
.hero__kicker { display: inline-block; padding: 6px 14px; border-radius: 20px; background: rgba(255,255,255,.16); font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-family: var(--head-font); font-size: 44px; line-height: 1.12; margin-bottom: 16px; }
.hero p { font-size: 16px; line-height: 1.6; opacity: .9; max-width: 520px; margin-bottom: 26px; }
.hero__btns { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__btns .btn-primary { margin: 0; color: #111; padding: 14px 30px; font-size: 15px; }
.hero__ghost { padding: 13px 26px; border-radius: 26px; border: 2px solid rgba(255,255,255,.55); font-weight: 600; font-size: 15px; }
.hero__ghost:hover { background: rgba(255,255,255,.12); }
.hero__art { position: relative; height: 320px; }
.hero__icon { position: absolute; inset: 0; margin: auto; width: 230px; height: 230px; border-radius: 50%; box-shadow: 0 30px 60px rgba(8,20,80,.45), 0 0 0 14px rgba(255,255,255,.08), 0 0 0 30px rgba(255,255,255,.05); }
.hero__chip { position: absolute; width: 66px; height: 66px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 32px; box-shadow: 0 12px 30px rgba(8,20,80,.3); animation: float 5s ease-in-out infinite; }
.hero__chip--0 { top: 4%; left: 14%; }
.hero__chip--1 { top: 0; right: 16%; animation-delay: -1s; }
.hero__chip--2 { top: 42%; right: 0; animation-delay: -2s; }
.hero__chip--3 { bottom: 2%; right: 18%; animation-delay: -3s; }
.hero__chip--4 { bottom: 6%; left: 10%; animation-delay: -4s; }
.hero__chip--5 { top: 44%; left: 0; animation-delay: -2.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero__chip { animation: none; } }

.adv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 10px; }
.adv__item { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; }
.adv__item b { display: block; font-size: 14px; }
.adv__item span:not(.adv__ic) { font-size: 12px; color: var(--muted); }
.adv__ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: #eef2ff; display: grid; place-items: center; font-size: 22px; }

.home-sec { margin-top: 46px; }
.home-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.home-sec__head h2 { font-family: var(--head-font); font-size: 24px; }
.cats--home { grid-template-columns: repeat(6, 1fr); margin-bottom: 0; }
.cats--home .cat__img--emoji { font-size: 56px; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 50px; padding: 34px 40px; border-radius: 24px; background: #101A33; color: #fff; }
.cta h2 { font-family: var(--head-font); font-size: 22px; margin-bottom: 8px; }
.cta p { opacity: .8; max-width: 640px; line-height: 1.55; font-size: 14px; }
.cta .btn-primary { margin: 0; flex: none; }

@media (max-width: 1100px) {
  .cats--home { grid-template-columns: repeat(4, 1fr); }
  .adv { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 40px 32px; }
  .hero__art { display: none; }
  .hero h1 { font-size: 34px; }
  .cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .hero { padding: 30px 22px; border-radius: 20px; }
  .hero h1 { font-size: 27px; }
  .hero p { font-size: 14px; }
  .adv { grid-template-columns: 1fr 1fr; gap: 10px; }
  .adv__item { flex-direction: column; align-items: flex-start; padding: 14px; }
  .cats, .cats--home { grid-template-columns: repeat(3, 1fr); gap: 18px 8px; }
  .cat__tile { width: 100px; height: 100px; border-radius: 20px; }
  .cat__tile .cat__img--svg svg { width: 40px; height: 40px; }
  .cat__name { font-size: 12px !important; }
  .cats--home .cat__img--emoji { font-size: 36px; }
  .home-sec__head h2 { font-size: 19px; }
  .cta { padding: 26px 22px; }
}

/* ---------- Пошук з підказками ---------- */
.search input[type=search]::-webkit-search-cancel-button { display: none; }
.suggest { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: 16px; box-shadow: 0 18px 40px rgba(16,26,51,.18); padding: 6px; max-height: 70vh; overflow-y: auto; }
.sg { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 10px; font-size: 13px; color: #101A33; }
.sg:hover, .sg.hl { background: #F1F4FF; }
.sg__media { width: 44px; height: 44px; border-radius: 10px; background: #F1F4FF; display: grid; place-items: center; overflow: hidden; }
.sg__media img { width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.sg__media svg { width: 24px; height: 24px; }
.sg__name { line-height: 1.3; }
.sg b { white-space: nowrap; }
.sg small { color: var(--muted); }
.sg--all { display: block; text-align: center; color: var(--blue); font-weight: 600; }
.sg--none { display: block; text-align: center; color: var(--muted); padding: 16px; }

/* ---------- Каталог: лічильник, «Показати ще», кнопка фільтрів ---------- */
.shop-count { font-size: 13px; color: var(--muted); margin-top: 4px; }
.more-wrap { text-align: center; }
.more-btn { margin: 10px auto 0; padding: 13px 34px; border-radius: 26px; border: 2px solid var(--blue); color: var(--blue); font-weight: 600; transition: .2s; }
.more-btn:hover { background: var(--blue); color: #fff; }
.filters-btn { display: none; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 20px; background: #F1F4FF; font-weight: 600; font-size: 13px; color: #101A33; }
.filters-btn svg { width: 18px; height: 18px; }
.sidebar__close { display: none; }

/* ---------- Сторінка товару: кількість, «в 1 клік» ---------- */
.qty--pdp { border: 1px solid var(--line); border-radius: 26px; padding: 4px; gap: 4px; }
.qty--pdp button { width: 38px; height: 38px; font-size: 18px; }
.qty--pdp span { min-width: 26px; font-size: 16px; }
.pdp__quick { margin-top: 12px; padding: 10px 0; color: var(--blue); font-weight: 600; font-size: 14px; }
.pdp__quick:hover { text-decoration: underline; }
.pdp__notify, .card__buy--notify { background: #EEF2FF !important; color: var(--blue) !important; }
.pdp__notify:hover, .card__buy--notify:hover { background: var(--blue) !important; color: #fff !important; }

/* ---------- Рейтинг, відгуки, характеристики ---------- */
.stars { --r: 0%; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 2px;
  background: linear-gradient(90deg, #FFB800 var(--r), #D9DEEA var(--r)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars::before { content: "★★★★★"; }
.card__rating { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); margin: -4px 0 6px; }
.pdp__rating { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: -6px 0 14px; }
.pdp__rating:hover { color: var(--blue); }
.specs { width: 100%; max-width: 820px; border-collapse: collapse; font-size: 14px; }
.specs th, .specs td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 40%; color: var(--muted); font-weight: 500; }
.specs tr:nth-child(odd) { background: #F8FAFF; }
.reviews { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.review p { line-height: 1.6; font-size: 14px; }
.review__reply { margin-top: 10px; padding: 10px 14px; background: #F1F4FF; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.review-form h3 { font-size: 16px; }
.review-form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; outline: none; resize: vertical; }
.review-form textarea:focus { border-color: var(--blue); }
.review-thanks { padding: 10px 0; font-weight: 600; line-height: 1.5; }
/* Вибір оцінки зірками (справа наліво, щоб :hover підсвічував попередні) */
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 30px; color: #D9DEEA; cursor: pointer; transition: color .15s; line-height: 1; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #FFB800; }
.star-input input:focus-visible + label { outline: 2px solid var(--blue); border-radius: 4px; }

/* Промокод */
/* .modal__box впереди — чтобы перебить общие правила для полей и кнопок в окнах (width: 100%, жёлтый фон) */
.promo { display: flex; gap: 8px; margin: 4px 0 12px; }
.modal__box .promo input { flex: 1; min-width: 0; width: auto; margin: 0; text-transform: uppercase; }
.modal__box .promo input::placeholder { text-transform: none; }
.modal__box .promo button { flex: none; width: auto; padding: 0 20px; border: 1px solid var(--blue); border-radius: 10px; background: #fff; color: var(--blue); font-weight: 600; transition: background .15s, color .15s; }
.modal__box .promo button:hover { background: var(--blue); color: #fff; }
.promo-info { background: #e8f8ee; color: #1f7a45; border-radius: 10px; padding: 9px 12px; font-size: 13px; font-weight: 600; margin-bottom: 10px; }

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

/* ---------- Мобільне меню ---------- */
.burger { display: none; width: 40px; height: 40px; border-radius: 12px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; margin-left: -8px; }
.burger i { display: block; width: 20px; height: 2px; border-radius: 2px; background: #101A33; }
.drawer { position: fixed; inset: 0; z-index: 120; background: rgba(16,26,51,.45); }
.drawer__panel { width: min(320px, 86vw); height: 100%; background: #fff; padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; animation: slideIn .2s ease-out; }
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: none; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__head .logo__img { height: 26px; }
.drawer__close { font-size: 30px; color: #999; line-height: 1; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a { padding: 11px 4px; font-size: 15px; font-weight: 500; border-bottom: 1px solid #f2f2f2; }
.drawer__nav a:hover { color: var(--blue); }
.drawer__nav hr { border: 0; height: 10px; }
.drawer .btn-primary { margin: 4px 0 0; }
.drawer__foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.drawer__foot .big-phone { font-family: var(--head-font); font-weight: 700; color: var(--blue); font-size: 17px; }
body.no-scroll { overflow: hidden; }

/* ---------- Нагору ---------- */
.to-top { position: fixed; right: 20px; bottom: 24px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 20px; font-weight: 700; box-shadow: 0 10px 24px rgba(47,91,255,.35); }
.to-top:hover { background: var(--blue-dark); }

@media (max-width: 1100px) {
  .burger { display: flex; }
}
@media (max-width: 900px) {
  .filters-btn { display: inline-flex; }
  .content__head { flex-wrap: wrap; gap: 12px; }
  /* Фільтри — висувна панель справа */
  .sidebar { position: fixed; z-index: 110; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: #fff; border: 0; border-radius: 0;
    padding: 56px 22px 24px; overflow-y: auto; box-shadow: -20px 0 50px rgba(16,26,51,.2); transform: translateX(105%); transition: transform .25s; }
  .sidebar { height: 100vh; height: 100dvh; max-height: none; align-self: auto; }
  /* Затемнення сторінки за відкритою панеллю */
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(16,26,51,.45); }
  .sidebar__close { display: block; position: absolute; top: 12px; right: 16px; font-size: 30px; color: #999; }
}

/* ---------- Мобільна версія ---------- */
/* Елементи сітки не повинні розтягувати сторінку ширше за екран */
.shop > *, .content, .products > *, .cats > *, .pdp > *, .acc > *, .blog > *, .search, .row2 > * { min-width: 0; }
html, body { overflow-x: hidden; }
.card__name { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .shop { grid-template-columns: minmax(0, 1fr); }
  .header__inner { gap: 16px; }
}
@media (max-width: 600px) {
  .topbar__inner { gap: 10px; }
  .header__inner { height: 64px; }
  .logo__img { height: 24px; }
  /* Вхід до кабінету лишаємо на телефоні — лише іконкою */
  .account { display: flex !important; margin-left: auto; font-size: 0; gap: 0; }
  .account svg { width: 24px; }
  .header__icons { margin-left: 0; gap: 16px; }
  .searchbar__inner { height: 58px; }
  .catalog-btn span[data-i18n] { display: none; }
  .catalog-btn { padding: 10px 12px; }
  .cats { gap: 18px 12px; }
  .cat__name { font-size: 12px; }
  .view-title { margin-bottom: 16px; }
  .pdp { gap: 20px; }
  .pdp__emoji { font-size: 110px; }
  .pdp__price { font-size: 26px; }
  .pdp__buy { max-width: none; }
  .compare th { width: 90px; }
  .compare td { min-width: 150px; }
  .order__foot b { margin-left: 0; }
  .modal__box { padding: 22px 18px; }
}

.checkout input.invalid { border-color: var(--red) !important; background: #fff5f5; }
.form-error { background: #fff1f1; border: 1px solid #ffd1d1; border-radius: 10px; padding: 10px 12px; }

[hidden] { display: none !important; }

/* Вкладки опису товару: Опис / Характеристики / Особливості */
.ptabs__head { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.ptabs__btn {
  padding: 11px 20px; font-family: var(--head-font); font-size: 15px; font-weight: 700; color: #777;
  border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: .15s;
}
.ptabs__btn:hover { color: var(--blue); }
.ptabs__btn.on { color: #111; border-bottom-color: var(--blue); }
.ptabs__pane { max-width: 860px; }
.rich--clip { max-height: 230px; overflow: hidden; position: relative; }
.rich--clip::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, #fff); }
.desc-more { margin-top: 10px; font-weight: 600; color: var(--blue); }
.tab-sub { font-family: var(--head-font); font-size: 16px; margin: 22px 0 10px; }
.tab-list { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.tab-list li { position: relative; padding-left: 20px; line-height: 1.5; color: #333; }
.tab-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.tab-list--check li { padding-left: 28px; }
.tab-list--check li::before {
  content: "✓"; width: 18px; height: 18px; top: .15em; left: 0; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff; background: var(--blue);
}
@media (max-width: 640px) { .ptabs__btn { padding: 10px 12px; font-size: 14px; } }

/* Рейтинг у рядку «Код» нової картки */
.card__meta .card__rating { margin: 0; justify-content: flex-end; }
/* Головна: 4 картки в ряд — компактніша ціна й кнопка */
.products--4 .card__price span { font-size: 17px; }
.products--4 .card__buy { padding: 10px 16px; }
