:root {
  --navy: #0b2a5b;
  --navy-2: #12397a;
  --blue: #1458d6;
  --blue-dark: #0d44ad;
  --sky: #eef4ff;
  --sky-2: #dce8ff;
  --text: #17223b;
  --muted: #5d6880;
  --line: #e3e8f1;
  --sale: #e3262f;
  --ok: #1a8f4c;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(11, 42, 91, .08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #fff; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.page { padding-top: 20px; padding-bottom: 60px; min-height: 60vh; }
.muted { color: var(--muted); }
.muted-light { color: #b9c8e6; }
.empty { padding: 40px; text-align: center; color: var(--muted); grid-column: 1 / -1; background: var(--sky); border-radius: var(--radius); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: #fff; border: 2px solid var(--blue);
  padding: 11px 22px; border-radius: 999px; font-weight: 600; cursor: pointer;
  transition: background .15s, transform .15s, border-color .15s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-lg { padding: 14px 30px; font-size: 17px; }
.btn-white { background: #fff; color: var(--navy); border-color: #fff; }
.btn-white:hover { background: var(--sky-2); border-color: var(--sky-2); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--sky-2); }
.btn-ghost:hover { background: var(--sky); border-color: var(--sky-2); }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--navy); cursor: pointer;
}
.icon-btn:hover { background: var(--sky); }

/* ---------- Шапка ---------- */
.promo-bar { background: var(--navy); color: #fff; text-align: center; font-size: 14px; padding: 8px 16px; }
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--navy); letter-spacing: -.3px; }
.logo-mark { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 20px; flex: none; }
.logo-text { display: inline-flex; align-items: center; padding: 6px 16px; border-radius: 999px; background: var(--blue); color: #fff; line-height: 1.15; }
.logo-light { color: #fff; }
.logo-light .logo-mark { background: #fff; color: var(--navy); }
.burger { display: none; }

.nav { display: flex; gap: 4px; }
.nav-item { position: relative; }
.nav-item > a { display: flex; align-items: center; gap: 4px; padding: 26px 12px; font-weight: 600; color: var(--navy); }
.nav-item > a svg { width: 16px; height: 16px; transition: transform .2s; }
.nav-item > a:hover { color: var(--blue); }
.has-drop:hover > a svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: 0; background: #fff; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 18px 40px rgba(11, 42, 91, .15); padding: 16px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: .18s;
}
.has-drop:hover .dropdown { opacity: 1; visibility: visible; transform: none; }
.drop-cats { width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.drop-cats a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; }
.drop-cats a:hover { background: var(--sky); }
.drop-cats b { display: block; color: var(--navy); font-size: 15px; }
.drop-cats small { color: var(--muted); font-size: 13px; }
.drop-cats .drop-all { grid-column: 1 / -1; justify-content: center; color: var(--blue); font-weight: 600; }
.drop-brands { width: 480px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.drop-brands a {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px 10px;
  border: 1px solid var(--line); border-bottom: 3px solid var(--c); border-radius: 14px; background: #fff;
  transition: transform .18s, box-shadow .18s;
}
.drop-brands a:hover { transform: translateY(-3px); box-shadow: 0 10px 22px color-mix(in srgb, var(--c) 22%, transparent); }
.db-logo { width: 100%; height: 54px; display: flex; align-items: center; justify-content: center; }
.db-logo img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .18s; }
.drop-brands a:hover .db-logo img { transform: scale(1.06); }
.db-logo b { font-size: 20px; color: var(--c); }
.db-name { font-size: 13px; font-weight: 600; color: var(--muted); }
.drop-brands a:hover .db-name { color: var(--c); }
.drop-brands .drop-all {
  grid-column: 1 / -1; flex-direction: row; justify-content: center; padding: 8px; border: 0; background: none;
  color: var(--blue); font-weight: 600;
}
.drop-brands .drop-all:hover { transform: none; box-shadow: none; text-decoration: underline; }
.mnav-brands a {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 8px;
  border: 1px solid var(--line); border-bottom: 3px solid var(--c); border-radius: 12px; background: #fff;
}
.mnav-brands a:active { background: color-mix(in srgb, var(--c) 8%, #fff); }
.mnav-brands .db-logo { height: 40px; }
.mnav-brands .db-logo b { font-size: 16px; }
.mnav-brands .db-name { font-size: 12px; }
.ico { width: 40px; height: 40px; border-radius: 50%; background: var(--sky); color: var(--blue); display: inline-grid; place-items: center; flex: none; }

.search { flex: 1; display: flex; max-width: 380px; margin-left: auto; background: var(--sky); border-radius: 999px; overflow: hidden; border: 2px solid transparent; }
.search:focus-within { border-color: var(--blue); background: #fff; }
.search input { flex: 1; border: 0; background: transparent; padding: 10px 16px; outline: none; min-width: 0; }
.search button { border: 0; background: transparent; padding: 0 14px; color: var(--navy); cursor: pointer; }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--sale); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.cart-count[hidden] { display: none; }

.mobile-nav {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(340px, 88vw); background: #fff; z-index: 100; padding: 16px 20px 40px;
  overflow-y: auto; transform: translateX(-100%); transition: transform .25s;
}
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 18px; color: var(--navy); }
.mobile-nav .search { max-width: none; margin: 0 0 8px; }
.mobile-nav h4 { margin: 20px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.mnav-list a { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-weight: 600; color: var(--navy); }
.mnav-list .ico { width: 34px; height: 34px; }
.mnav-list .ico-img { width: 40px; height: 40px; overflow: hidden; }
.ico-img img { width: 28px; height: 28px; object-fit: contain; mix-blend-mode: multiply; }
.mnav-brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.overlay { position: fixed; inset: 0; background: rgba(11, 42, 91, .45); z-index: 90; opacity: 0; visibility: hidden; transition: .25s; }
.nav-open .mobile-nav { transform: none; }
.nav-open .overlay { opacity: 1; visibility: visible; }
.nav-open { overflow: hidden; }

/* ---------- Главная ---------- */
.hero { padding: 24px 0 0; }
.hero-inner {
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%); color: #fff; border-radius: 28px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; padding: 60px; overflow: hidden; position: relative;
}
.hero-inner::after {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -140px; bottom: -260px;
  background: rgba(255, 255, 255, .08); pointer-events: none; z-index: 0;
}
.hero h1 { color: #fff; font-size: clamp(32px, 5vw, 56px); }
.hero p { font-size: 18px; color: #d6e3ff; max-width: 480px; }
.eyebrow { display: inline-block; background: rgba(255, 255, 255, .15); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-actions .btn:first-child { background: #fff; color: var(--navy); border-color: #fff; }
.hero-actions .btn-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.hero-actions .btn-white:hover { background: rgba(255, 255, 255, .1); }
.hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-content: center; position: relative; z-index: 1; }
.hero-chip {
  aspect-ratio: 1; border-radius: 22px; background: #fff; color: var(--c); display: grid; place-items: center;
  font-weight: 800; font-size: clamp(14px, 1.6vw, 20px); box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  animation: float 5s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); border-bottom: 6px solid var(--c);
  padding: 14px; overflow: hidden; position: relative;
}
.hero-chip .badge { top: 8px; left: 8px; padding: 3px 8px; font-size: 11.5px; line-height: 1.3; }
.hero-chip img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
@keyframes float { 50% { transform: translateY(-8px); } }

.section { padding: 56px 0; }
.section-tint { background: var(--sky); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.section-head a { color: var(--blue); font-weight: 600; white-space: nowrap; }

.section-pets { padding-bottom: 0; }
.pets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pet-tile { border-radius: var(--radius); background: var(--sky); padding: 24px; display: grid; gap: 18px; }
.pet-main { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; }
.pet-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.pet-ico { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; margin-bottom: 8px; transition: background .2s, color .2s; }
.pet-ico svg { width: 38px; height: 38px; stroke-width: 1.4; }
.pet-text b { font-size: 26px; color: var(--navy); line-height: 1.2; }
.pet-text small { color: var(--muted); margin-bottom: 12px; }
.pet-text .btn svg { transform: rotate(-90deg); }
.pet-imgs { display: flex; justify-content: flex-end; }
.pet-imgs img {
  width: 34%; max-width: 130px; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 16px; padding: 8px;
  box-shadow: var(--shadow); margin-left: -6%; transition: transform .25s;
}
.pet-imgs img:nth-child(2) { transform: translateY(-10px); z-index: 1; }
.pet-main:hover .pet-ico { background: var(--blue); color: #fff; }
.pet-main:hover .pet-imgs img { transform: translateY(-6px); }
.pet-main:hover .pet-imgs img:nth-child(2) { transform: translateY(-16px); }
.pet-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pet-links a { background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--navy); transition: background .2s, color .2s; }
.pet-links a:hover { background: var(--blue); color: #fff; }

.cats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.cat-tile { text-align: center; padding: 8px; border-radius: var(--radius); transition: transform .2s; }
.cat-tile:hover { transform: translateY(-4px); }
.cat-circle {
  width: 100%; max-width: 130px; aspect-ratio: 1; margin: 0 auto 12px; border-radius: 50%; background: var(--sky);
  display: grid; place-items: center; color: var(--blue); transition: background .2s, color .2s;
}
.cat-circle svg { width: 46%; height: 46%; stroke-width: 1.4; }
.cat-circle:has(img) { position: relative; overflow: hidden; }
.cat-circle img { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s; }
.cat-tile:hover .cat-circle { background: var(--blue); color: #fff; }
.cat-tile:hover .cat-circle:has(img) { background: #dde6ff; }
.cat-tile:hover .cat-circle img { transform: scale(1.08); }
.cat-tile b { display: block; color: var(--navy); }
.cat-tile small { color: var(--muted); font-size: 13px; }

.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.brand-tile {
  padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
  border-top: 5px solid var(--c); transition: box-shadow .2s, transform .2s;
}
.brand-tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.brand-logo { height: 90px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.brand-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-logo b { font-size: 26px; color: var(--c); }
.brand-tile { text-align: center; }
.brand-tile small { color: var(--muted); }

.perks-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.perk { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.perk-ico { width: 60px; height: 60px; border-radius: 50%; background: var(--sky); color: var(--blue); display: grid; place-items: center; margin-bottom: 8px; }
.perk-ico svg { width: 28px; height: 28px; }
.perk b { color: var(--navy); }
.perk small { color: var(--muted); }

.newsletter { background: var(--blue); color: #fff; padding: 48px 0; }
.newsletter-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.newsletter h2 { color: #fff; margin: 0; }
.newsletter p { margin: 4px 0 0; color: #d6e3ff; }
.newsletter form { display: flex; gap: 10px; flex: 1; max-width: 480px; }
.newsletter input { flex: 1; border: 0; border-radius: 999px; padding: 12px 20px; outline: none; min-width: 0; }

/* ---------- Карточка товара ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.pcard { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pcard-img { position: relative; aspect-ratio: 1; background: #fff; display: grid; place-items: center; padding: 16px; }
.pcard-img > img { position: absolute; top: 16px; left: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; }
.badge { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-sale { left: 12px; background: var(--sale); color: #fff; }
.badge-demo { right: 12px; background: #fff3c4; color: #7a5b00; }
.pcard-body { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard-brand { font-size: 13px; font-weight: 800; color: var(--c); text-transform: uppercase; letter-spacing: .5px; }
.pcard-title { font-weight: 600; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3em; }
.pcard-title:hover { color: var(--blue); }
.pcard-size { font-size: 14px; color: var(--muted); }
.rating { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.rating b { color: var(--navy); }
.stars { position: relative; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 1px; }
.stars::before { content: "★★★★★"; color: #d9dee8; }
.stars::after { content: "★★★★★"; color: #ffa41c; position: absolute; left: 0; top: 0; width: var(--p); overflow: hidden; white-space: nowrap; }
.bought { font-size: 13px; color: var(--ok); font-weight: 600; }
.product-info .rating { font-size: 15px; margin-bottom: 4px; }
.product-info .bought { margin-bottom: 12px; }
.unit-price { color: var(--muted); font-size: 14px; }
.pcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.price { font-size: 20px; font-weight: 800; color: var(--navy); }
.old-price { color: var(--muted); margin-left: 8px; font-size: 15px; }
.out { font-size: 13px; color: var(--muted); font-weight: 600; }

.ph {
  width: 100%; height: 100%; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 14%, #fff), color-mix(in srgb, var(--c) 30%, #fff)); color: var(--c);
}
.ph b { font-size: 26px; }
.ph small { font-weight: 600; opacity: .8; }
.ph-lg b { font-size: 48px; }
.ph-logo { background: #fff; border: 1px solid var(--line); padding: 14%; gap: 10px; }
.ph-logo img { width: 100%; flex: 1 1 0; min-height: 0; object-fit: contain; }
.pcard-img > .ph, .gallery-main > .ph { position: absolute; inset: 16px; width: auto; height: auto; }
.gallery-main { position: relative; }
.cl-img .ph-logo { padding: 8px; }

/* ---------- Каталог ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--blue); }
.catalog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.catalog-head h1 { margin: 0; }
.catalog-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.catalog-tools input, .catalog-tools select { border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; background: #fff; outline: none; }
.catalog-tools input:focus, .catalog-tools select:focus { border-color: var(--blue); }
#toggle-filters { display: none; }
.catalog-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: 96px; background: var(--sky); border-radius: var(--radius); padding: 20px; max-height: calc(100vh - 116px); overflow-y: auto; }
.filter-group { margin-bottom: 20px; }
.filter-group h4 { font-size: 15px; margin-bottom: 8px; }
.radio, .check { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; font-size: 15px; }
.radio em, .check em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 13px; }
.radio input, .check input { accent-color: var(--blue); width: 17px; height: 17px; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pagination:empty { display: none; }
.page-btn {
  min-width: 44px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--navy); font-weight: 600; cursor: pointer; transition: .15s;
}
.page-btn:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.page-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.page-btn:disabled { opacity: .4; cursor: default; }

/* ---------- Страница товара ---------- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.gallery { position: sticky; top: 96px; }
.gallery-main { aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; padding: 24px; background: #fff; }
.gallery-main > img { position: absolute; top: 24px; left: 24px; width: calc(100% - 48px); height: calc(100% - 48px); object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumb { flex: none; width: 76px; height: 76px; border: 2px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; cursor: pointer; }
.thumb.active, .thumb:hover { border-color: var(--blue); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-info h1 { font-size: clamp(24px, 3vw, 32px); margin-top: 6px; }
.pi-size { color: var(--muted); margin-bottom: 14px; }
.pi-price .price { font-size: 34px; }
.pi-stock { margin: 8px 0 20px; font-weight: 600; }
.pi-stock.yes { color: var(--ok); }
.pi-stock.no { color: var(--sale); }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.buy-row .btn { flex: 1; min-width: 220px; padding: 14px 24px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 40px; height: 44px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--navy); }
.qty button:hover { background: var(--sky); }
.qty input { width: 44px; border: 0; text-align: center; font-weight: 700; outline: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.perks { list-style: none; padding: 16px; margin: 0 0 24px; background: var(--sky); border-radius: var(--radius); display: grid; gap: 10px; }
.perks li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); }
.perks .ico { background: #fff; width: 36px; height: 36px; }
.perks .ico svg { width: 18px; height: 18px; }
.bullets { padding-left: 20px; margin: 0; }
.bullets li { margin-bottom: 8px; }
.pdesc { margin-top: 48px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Корзина ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 90px 1fr auto 110px 44px; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cl-img { width: 90px; height: 90px; display: grid; place-items: center; }
.cl-img img { width: 100%; height: 100%; object-fit: contain; }
.cl-img .ph b { font-size: 15px; }
.cl-img .ph small { display: none; }
.cl-info { display: flex; flex-direction: column; }
.cl-info a { font-weight: 600; color: var(--navy); }
.cl-info small { color: var(--muted); }
.cl-info .price { font-size: 15px; }
.cl-sum { text-align: right; color: var(--navy); font-size: 17px; }
.checkout { position: sticky; top: 96px; background: var(--sky); border-radius: var(--radius); padding: 24px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-row.sum-free span { display: inline-flex; align-items: center; gap: 6px; }
.sum-row.sum-free span:last-child { color: var(--ok); font-weight: 700; }
.sum-row.sum-free svg { width: 18px; height: 18px; color: var(--ok); }
.sum-row.total { font-size: 22px; font-weight: 800; color: var(--navy); border-top: 1px solid var(--sky-2); margin-top: 6px; padding-top: 12px; }
.checkout-go { margin-top: 18px; padding: 15px 16px; font-size: 16px; gap: 4px; white-space: nowrap; }
.checkout-go svg { transform: rotate(-90deg); }
.checkout-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.checkout-note svg { width: 16px; height: 16px; color: var(--ok); }
.cart-empty h2 { margin-bottom: 4px; }
.cart-empty .btn { margin-top: 12px; }

/* ---------- Оформление заказа ---------- */
.co-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.co-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.co-card h2 { margin-bottom: 4px; }
.co-sub { margin: 0 0 22px; color: var(--muted); }
.co-steps { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0 0 22px; }
.co-steps li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--sky); color: var(--muted); font-weight: 600; }
.co-steps i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; background: #fff; color: var(--muted); border: 1px solid var(--sky-2); }
.co-steps li.active { background: var(--blue); color: #fff; }
.co-steps li.active i { background: #fff; color: var(--blue); border-color: #fff; }
.co-steps li.done { color: var(--ok); }
.co-steps li.done i { background: var(--ok); color: #fff; border-color: var(--ok); }

.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.co-grid .full { grid-column: 1 / -1; }
.co-field { display: flex; flex-direction: column; gap: 6px; }
.co-field > span { font-size: 14px; font-weight: 600; color: var(--navy); }
.co-field em { font-style: normal; font-weight: 400; color: var(--muted); }
.co-field input, .co-field select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.co-field select { appearance: none; cursor: pointer; padding-right: 38px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6880' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
}
.co-field input:focus, .co-field select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--sky); }
.co-field.invalid input, .co-field.invalid select { border-color: var(--sale); box-shadow: 0 0 0 4px #fde8e9; }
.co-field.invalid > span { color: var(--sale); }
.co-grid .btn { margin-top: 8px; }

.co-summary { position: sticky; top: 96px; background: var(--sky); border-radius: var(--radius); padding: 22px 24px; }
.co-summary summary { list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--navy); font-size: 18px; cursor: default; }
.co-summary summary::-webkit-details-marker { display: none; }
.co-items { margin: 10px -6px 10px 0; padding: 8px 6px 2px 0; display: grid; gap: 12px; max-height: 330px; overflow: hidden auto; }
.co-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.co-thumb { position: relative; width: 56px; height: 56px; background: #fff; border-radius: 12px; display: grid; place-items: center; padding: 4px; }
.co-thumb img { width: 100%; height: 100%; object-fit: contain; }
.co-thumb i { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--navy); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.co-name { color: var(--navy); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-edit-cart { display: block; text-align: center; margin-top: 14px; color: var(--blue); font-weight: 600; font-size: 14px; }

.co-address { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--sky); margin-bottom: 18px; font-size: 14px; line-height: 1.6; }
.co-link { border: 0; background: none; color: var(--blue); font-weight: 600; cursor: pointer; padding: 0; }
.pay-box { border: 1.5px solid var(--line); border-radius: 16px; padding: 20px; }
.pay-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pay-head b { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); }
.pay-head b svg { color: var(--blue); }
.card-logos { display: flex; gap: 6px; }
.card-logos > span { display: block; width: 44px; height: 28px; border-radius: 5px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; transition: opacity .2s, filter .2s; }
.card-logos > span.dim { opacity: .3; filter: grayscale(1); }
.card-logos svg, .cc-brand svg { width: 100%; height: 100%; stroke: none; fill: none; display: block; }
.cc-wrap { position: relative; display: block; }
.cc-wrap input { padding-right: 64px; letter-spacing: .5px; }
.cc-brand { position: absolute; right: 12px; top: 50%; width: 42px; height: 26px; transform: translateY(-50%) scale(.6); opacity: 0; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; transition: .2s; }
.cc-brand.show { opacity: 1; transform: translateY(-50%); }
.co-hint { font-size: 12.5px; color: var(--muted); }
.co-field.invalid .co-hint { color: var(--sale); }
.co-check { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--sky); border-radius: 12px; cursor: pointer; font-weight: 600; color: var(--navy); font-size: 14.5px; }
.co-check input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; margin: 0; }
.co-billing[hidden] { display: none; }
.pay-total { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 14px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 700; color: var(--navy); }
.pay-total b { font-size: 24px; font-weight: 800; }
.pay-secure { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.pay-error { margin: 0 0 14px; padding: 0; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--sale); }
.pay-error:empty { display: none; }
.pay-error.card-blocked { color: #b45309; }

.co-done { max-width: 560px; margin: 20px auto; text-align: center; padding: 44px 28px; background: var(--sky); border-radius: var(--radius); }
.co-done-ico { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 36px; display: grid; place-items: center; }
.co-done p { color: var(--muted); margin-bottom: 22px; }

/* ---------- Подвал ---------- */
.footer { background: var(--navy); color: #fff; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-grid > div > a, .footer-grid > div > span { display: block; color: #b9c8e6; padding: 3px 0; }
.footer-grid > div > a:hover { color: #fff; }
.footer-grid .logo { display: flex; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 20px; font-size: 14px; color: #8fa3c9; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 14px 24px;
  border-radius: 999px; font-weight: 600; box-shadow: var(--shadow); opacity: 0; transition: .25s; z-index: 200; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.fab-cart { display: none; }
@media (max-width: 900px) {
  .fab-cart {
    position: fixed; right: 16px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 80;
    width: 60px; height: 60px; border-radius: 50%; background: var(--blue); color: #fff;
    display: grid; place-items: center; box-shadow: 0 10px 24px rgba(11, 42, 91, .35);
    opacity: 0; visibility: hidden; transform: scale(.6); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .fab-cart.show { opacity: 1; visibility: visible; transform: none; }
  .fab-cart svg { width: 28px; height: 28px; }
  .fab-cart .cart-count {
    top: -4px; right: -4px; min-width: 24px; height: 24px; border-radius: 12px; font-size: 13px; border: 2px solid #fff;
  }
  .fab-cart.bump { animation: fab-bump .45s ease; }
  .nav-open .fab-cart { opacity: 0; visibility: hidden; }
  .toast { bottom: calc(100px + env(safe-area-inset-bottom)); }
}
@keyframes fab-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.22); }
  65% { transform: scale(.94); }
  100% { transform: scale(1); }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .cats { grid-template-columns: repeat(4, 1fr); }
  .nav { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 32px 20px 28px; }
  .hero-art { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
  .hero-chip:nth-child(n+10) { display: none; }
  .hero-chip { border-radius: 18px; padding: 8px; border-bottom-width: 4px; }
  .hero-chip .badge { top: 6px; left: 6px; padding: 2px 6px; font-size: 10.5px; }
  .catalog-layout, .product-layout, .cart-layout, .co-layout { grid-template-columns: 1fr; }
  .co-summary { position: static; order: -1; padding: 16px 18px; }
  .co-summary summary { cursor: pointer; font-size: 16px; }
  .co-summary summary span::after { content: " ▾"; color: var(--muted); }
  .co-summary[open] summary span::after { content: " ▴"; }
  .gallery, .checkout { position: static; }
  #toggle-filters { display: inline-flex; }
  .filters { display: none; position: static; max-height: none; }
  .filters-open .filters { display: block; }
  .perks-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header-inner { gap: 8px; height: 64px; }
  .header .search { display: none; }
  .logo { margin-right: auto; font-size: 19px; }
  .cats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pets { grid-template-columns: 1fr; gap: 14px; }
  .pet-tile { padding: 18px; }
  .cat-tile small { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard-body { padding: 4px 12px 12px; }
  .pcard-foot .btn span { display: none; }
  .price { font-size: 18px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .hero-art { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-chip:nth-child(n+10) { display: none; }
  .hero-chip { border-radius: 16px; padding: 6px; border-bottom-width: 4px; }
  .hero-chip .badge { top: 5px; left: 5px; padding: 2px 5px; font-size: 10px; letter-spacing: 0; }
  .section { padding: 40px 0; }
  .cart-line { grid-template-columns: 70px 1fr 44px; }
  .cart-line .qty { grid-column: 2; justify-self: start; }
  .cl-sum { grid-column: 3; grid-row: 2; }
  .cl-del { grid-column: 3; grid-row: 1; }
  .cl-img { width: 70px; height: 70px; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter form { flex-direction: column; }
  .co-card { padding: 20px 16px; border: 0; box-shadow: none; }
  .co-grid { grid-template-columns: 1fr; gap: 12px; }
  .co-field input, .co-field select { font-size: 16px; }
  .co-steps li { padding: 8px 10px; font-size: 14px; }
  .co-address { flex-direction: column; gap: 6px; }
  .pay-box { padding: 16px 14px; }
  .pay-box > .co-grid { grid-template-columns: 1fr 1fr; gap: 12px 10px; }
  .pay-box .co-billing { grid-template-columns: 1fr; }
  .pay-box .co-field > span { font-size: 13px; }
  .pay-box .btn-lg { padding: 14px 16px; font-size: 16px; }
  .pay-total b { font-size: 22px; }
}
