/* =====================================================================
   СУНДУК — shared stylesheet for all pages (responsive desktop + mobile)
   ===================================================================== */
:root {
  --bg-0: #17181B;
  --card: #252528;
  --card-2: #2c2c30;
  --line: #2a2a2e;
  --text: #ececec;
  --text-dim: #a8a8a8;
  --text-mute: #6c6c70;
  --accent: #F99057;
  --accent-2: #FEC701;
  --accent-3: #FEAE46;
  --pill-bg: #2C1710;
  --pill-bg-hover: #3d241a;
  --cats-bg: #241815;
  --danger: #F21E1E;
  --pink: #ff2d8a;
  --mint: #2bf0c2;
  --maxw: 1100px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg-0);
  color: var(--text);
  font-family: 'Montserrat', system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
a { color: inherit; }
img { max-width: 100%; }
body { display: flex; flex-direction: column; align-items: center; min-height: 100vh; }
.wrap { flex: 1 0 auto; width: 100%; }
footer { align-self: stretch; }

/* ====== HEADER BACKGROUND (orange glow + chests) ====== */
.page-header-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 620px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(249,144,87,.30) 0%,
      rgba(249,144,87,.10) 42%,
      rgba(23,24,27,0) 100%),
    url("chests.svg") top center / 100% auto no-repeat;
  background-color: transparent;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 24px 24px 36px; position: relative; z-index: 1; }
.narrow { max-width: 840px; margin: 0 auto; }

/* ====== LOGO ====== */
.logo {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 4px;
  user-select: none;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.logo img { width: auto; object-fit: contain; display: block; }
.logo-mark { height: 29px; }
.logo-text-fallback {
  display: flex; align-items: center; gap: 6px;
  font: 800 18px/1 'Montserrat', sans-serif;
  letter-spacing: 1.5px;
  color: #fff;
}
.logo-text-fallback .chest {
  width: 28px; height: 22px;
  background: linear-gradient(180deg, #c98a4a, #8a4f23);
  border-radius: 4px; position: relative;
  box-shadow: inset 0 0 0 1.5px #4a2a14;
}
.logo-text-fallback .chest::before { content:""; position:absolute; left:0;right:0;top:42%; height:2px; background:#4a2a14; }
.logo-text-fallback .chest::after { content:""; position:absolute; left:50%;top:55%; transform:translate(-50%,-50%); width:5px;height:7px; background:#f5c84a; border-radius:1px; box-shadow:0 0 0 1px #4a2a14; }

/* header CYNDYK wordmark */
.cyndyk-mark { font: 800 19px/1 'Montserrat', sans-serif; letter-spacing: 2px; gap: 7px; }
.cyndyk-mark .chest { width: 30px; height: 23px; }

/* ====== DESKTOP HEADER ====== */
header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 14px;
}
.search {
  position: relative;
  background: var(--pill-bg);
  border-radius: 124px;
  height: 44px;
  display: flex; align-items: center;
  padding: 0 18px 0 46px;
  flex: 1 1 auto;
  min-width: 240px;
  max-width: 520px;
}
.search .s-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: rgba(255,255,255,.5); display: flex; }
.search .s-ico svg { width: 18px; height: 18px; }
.search input {
  background: transparent; border: 0; outline: 0;
  color: var(--text);
  font: 500 15px 'Montserrat', sans-serif;
  width: 100%;
}
.search input::placeholder { color: rgba(255,255,255,.45); }

.pill-btn {
  background: var(--pill-bg);
  border: 0;
  color: var(--text);
  height: 44px;
  padding: 0 32px;
  border-radius: 124px;
  font: 600 14px 'Montserrat', sans-serif;
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}
.pill-btn:hover { background: var(--pill-bg-hover); }
.pill-btn img { width: 20px; height: 20px; object-fit: contain; }
.pill-btn svg { width: 20px; height: 20px; }
.cart-icon { width: 20px; height: 20px; object-fit: contain; }
.cart-count { font-weight: 700; color: #fff; }

/* ====== CATEGORY NAV ====== */
nav.cats {
  width: 100%;
  height: 44px;
  background: var(--cats-bg);
  border-radius: 124px;
  display: flex; align-items: center;
  justify-content: space-around;
  padding: 0 18px;
  margin: 8px 0 24px;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
nav.cats::-webkit-scrollbar { display: none; }
nav.cats .cat-item {
  background: transparent; border: 0;
  color: #fff;
  font: 600 14px 'Montserrat', sans-serif;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  transition: color .15s, opacity .15s;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 100px;
  text-decoration: none;
}
nav.cats .cat-item img,
nav.cats .cat-item .ico-fallback { transition: opacity .15s; }
nav.cats .cat-item:hover { color: rgba(255,255,255,.6); }
nav.cats .cat-item:hover img,
nav.cats .cat-item:hover .ico-fallback { opacity: .55; }
nav.cats .cat-item.active { color: rgba(255,255,255,.4); }
nav.cats .cat-item.active img { opacity: .35; }
nav.cats .cat-item img {
  width: 18px; height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .9;
}
nav.cats .cat-item .ico-fallback { width: 18px; height: 18px; color: #fff; opacity: .9; }
nav.cats .cat-item svg { width: 18px; height: 18px; color: #fff; opacity: .9; flex-shrink: 0; }

/* ====== MOBILE HEADER + DRAWER + TABBAR (hidden on desktop) ====== */
.m-header { display: none; }
.m-tabbar { display: none; }
.m-drawer-backdrop { display: none; }
.m-drawer { display: none; }
.m-search { display: none; }

/* ====== HERO CAROUSEL ====== */
.hero {
  position: relative;
  height: 390px;
  border-radius: 18px;
  overflow: hidden;
  background: #1a1a1e;
  margin-bottom: 36px;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .6s ease;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  border-radius: 18px;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide-bg-fallback {
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 30% 40%, #2563d8 0%, rgba(37,99,216,0) 55%),
    radial-gradient(circle at 70% 70%, #1a1042 0%, rgba(26,16,66,0) 60%),
    linear-gradient(135deg, #0a0418 0%, #1a0d2e 100%);
  z-index: -1;
}
.hero-stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.hero-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 157px;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.9) 100%);
  pointer-events: none;
  z-index: 1;
  border-radius: 0 0 18px 18px;
}
.slide-plats {
  position: absolute;
  top: 28px; right: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  z-index: 3;
  justify-items: start;
}
.slide-plat {
  display: flex; align-items: center; gap: 8px;
  color: #fff;
  font: 700 18px 'Montserrat', sans-serif;
}
.slide-plat img { width: 22px; height: 22px; object-fit: contain; }
.slide-plat .ico-fallback { width: 22px; height: 22px; color: #fff; }
.slide-plat svg { width: 22px; height: 22px; color: #fff; flex-shrink: 0; }
.slide-content { position: absolute; top: 140px; right: 28px; z-index: 3; text-align: right; }
.slide-sub {
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 38px;
  color: #fff; letter-spacing: 0.5px; line-height: 1.05; text-transform: uppercase;
}
.slide-sub .from { display: block; font-size: 26px; font-weight: 600; margin-top: 6px; opacity: .95; }
.slide-wordmark { position: absolute; left: 50%; bottom: 54px; transform: translateX(-50%); z-index: 3; height: 52px; }
.slide-wordmark img { height: 100%; width: auto; }
.slide-title-big {
  position: absolute; left: 50%; bottom: 50px; transform: translateX(-50%);
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 52px;
  letter-spacing: 14px; color: #fff; z-index: 3; white-space: nowrap;
}
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; z-index: 4; }
.hero-dots span { width: 7px; height: 7px; background: rgba(255,255,255,.5); border-radius: 50%; cursor: pointer; transition: all .2s; }
.hero-dots span.active { background: #fff; transform: scale(1.3); width: 22px; border-radius: 100px; }
.arrow-zone { position: absolute; top: 0; bottom: 0; width: 22%; z-index: 3; display: flex; align-items: center; cursor: pointer; }
.arrow-zone.left  { left: 0;  justify-content: flex-start; padding-left: 16px; background: linear-gradient(90deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 100%); opacity: 0; transition: opacity .3s ease; }
.arrow-zone.right { right: 0; justify-content: flex-end;   padding-right: 16px; background: linear-gradient(270deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 100%); opacity: 0; transition: opacity .3s ease; }
.hero:hover .arrow-zone { opacity: 1; }
.slider-arrow {
  width: 48px; height: 48px; background: transparent; border: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: #fff; z-index: 4; opacity: 0; transform: translateX(-8px);
  transition: opacity .35s ease, transform .35s ease, color .15s ease; user-select: none; pointer-events: none;
}
.arrow-zone.right .slider-arrow { transform: translateX(8px); }
.hero:hover .slider-arrow { opacity: 1; transform: translateX(0); pointer-events: auto; }
.slider-arrow:hover { color: #fff; transform: scale(1.15); }
.slider-arrow svg { width: 26px; height: 26px; }

/* ====== SECTION TITLES ====== */
section.products { margin-bottom: 36px; }
.sec-title {
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 22px;
  text-align: left; margin: 36px 0 18px; letter-spacing: 0; text-transform: none;
  display: flex; align-items: center; gap: 10px;
}
.sec-title .emo { font-size: 22px; font-weight: 400; }

/* ====== PRODUCT GRID + CARDS ====== */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--card); border-radius: 14px; padding: 10px;
  display: flex; flex-direction: column; gap: 10px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .2s ease, border-color .2s;
  position: relative; overflow: visible; transform-origin: center;
  text-decoration: none; color: inherit;
}
.card:hover { transform: scaleY(1.03); border-color: rgba(255,255,255,.10); }
.cover { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #0e0e10; }
.cover > img.cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-badges { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; pointer-events: none; z-index: 3; }
.badge { font: 700 10.5px 'Montserrat', sans-serif; letter-spacing: .5px; text-transform: uppercase; padding: 4px 8px; border-radius: 8px; color: #fff; }
.badge.action { background: var(--pink); }
.badge.topprice { background: var(--pink); }
.badge.cashback { background: var(--mint); color: #00201a; border-radius: 50%; width: 30px; height: 30px; display:inline-flex; align-items:center; justify-content:center; padding: 0; font-weight: 800; font-size: 11px; }
.hover-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; z-index: 10;
  border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
.card:hover .hover-overlay { opacity: 1; pointer-events: auto; }
.hover-actions { display: flex; gap: 24px; }
.hover-action { width: 58px; display: flex; flex-direction: column; align-items: center; cursor: pointer; position: relative; }
.hover-circle {
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: transform .15s, background .15s; background: rgba(30,30,35,.92); border: 1px solid rgba(255,255,255,.12); color: #fff;
}
.hover-circle.red { background: var(--danger); border-color: rgba(242,30,30,.4); }
.hover-action:hover .hover-circle { transform: scale(1.08); }
.hover-circle img { width: 26px; height: 26px; object-fit: contain; }
.hover-circle svg { width: 26px; height: 26px; }
.hover-action .hover-label { position: absolute; top: 66px; left: 50%; transform: translateX(-50%); font: 700 11px 'Montserrat', sans-serif; letter-spacing: 0.2px; color: #fff; text-align: center; white-space: nowrap; }
.card-title {
  font: 600 12px 'Montserrat', sans-serif; color: rgba(255,255,255,.88); line-height: 1.35;
  min-height: 30px; padding: 0 4px; text-align: center;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.price-block { display: flex; flex-direction: row; align-items: flex-end; justify-content: center; gap: 12px; padding: 6px 4px; overflow: visible; }
.price-now { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 32px; color: #fff; line-height: 1; letter-spacing: -.5px; white-space: nowrap; }
.price-old-col { display: flex; flex-direction: column; align-items: center; justify-content: space-between; align-self: stretch; overflow: visible; }
.badge-discount {
  display: inline-block; background: var(--danger); color: #fff; font: 700 11px 'Montserrat', sans-serif;
  letter-spacing: -.03em; padding: 2px 9px; border-radius: 50px; line-height: 1.4;
  margin-top: -25px; position: relative; z-index: 20;
}
.price-old { font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: 20px; color: rgba(255,255,255,.42); text-decoration: line-through; line-height: 1; white-space: nowrap; }

/* ====== PROMO BANNER ====== */
.promo {
  position: relative; border-radius: 18px; overflow: hidden; height: 220px; margin-bottom: 36px;
  background: radial-gradient(circle at 50% 60%, #7a1a2a 0%, #2a0a12 60%, #100408 100%);
  display:flex; align-items:center; justify-content:center; cursor: pointer; transition: transform .2s;
}
.promo img { width: 100%; height: 100%; object-fit: cover; }
.promo:hover { transform: translateY(-2px); }

/* ====== SOCIAL ====== */
.social { width: 715px; max-width: 100%; margin: 48px auto; text-align: center; }
.social h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: 0; text-transform: none; margin-bottom: 8px; }
.social p { color: #ccc; font-size: 19px; font-weight: 600; margin-bottom: 32px; line-height: 1.45; }
.social-icons { display: flex; justify-content: center; gap: 40px; }
.social-btn {
  width: 72px; height: 72px; background: #0D0D0D; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .2s, background .2s; color: #fff; text-decoration: none;
}
.social-btn:hover { transform: scale(1.06); background: #3d241a; }
.social-btn img { width: 36px; height: 36px; object-fit: contain; }
.social-btn svg { width: 28px; height: 28px; }

/* ====== CATALOG CTA ====== */
.catalog-cta { display: flex; justify-content: center; margin: 52px 0 16px; }
.catalog-cta a, .catalog-cta button {
  background: linear-gradient(90deg, #FEC701 0%, #FEAE46 100%); color: #17181B; border: 0;
  height: 56px; padding: 0 38px; border-radius: 124px; font: 700 16px 'Montserrat', sans-serif;
  cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: transform .15s; text-decoration: none;
}
.catalog-cta a:hover, .catalog-cta button:hover { transform: translateY(-1px); }

/* ====== FOOTER ====== */
footer { background: #000; padding: 44px 0; margin-top: 0; position: relative; z-index: 1; }
.footer-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; gap: 60px; }
.footer-left { display: flex; flex-direction: column; gap: 7px; min-width: 280px; }
.footer-left a { color: #d8d8d8; text-decoration: none; font: 500 16px 'Montserrat', sans-serif; transition: color .2s; }
.footer-left a:hover { color: #fff; }
.payment-row { margin-top: 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.payment-row img { height: 30px; width: auto; object-fit: contain; }
.footer-center { flex: 1; }
.footer-top { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; flex-wrap: wrap; }
.footer-logo img { display: block; }
.footer-logo .logo-mark { height: 27px; }
.footer-socials { display: flex; gap: 12px; }
.footer-social { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: transparent; transition: transform .2s; cursor: pointer; color: #fff; text-decoration: none; }
.footer-social:hover { transform: translateY(-2px); }
.footer-social img { width: 22px; height: 22px; }
.footer-social svg { width: 22px; height: 22px; }
.footer-mail { background: #fff; color: #454545; height: 44px; padding: 0 24px; border-radius: 100px; display: flex; align-items: center; font: 600 16px 'Montserrat', sans-serif; text-decoration: none; }
.footer-copy { font: 500 14px 'Montserrat', sans-serif; color: #d2d2d2; margin-bottom: 14px; }
.footer-text { color: rgba(255,255,255,.35); line-height: 1.7; font: 400 14px 'Montserrat', sans-serif; max-width: 760px; }

/* ====== NOTIFICATION (rounded liquid-glass pill) ====== */
.notif {
  position: fixed; bottom: 24px; right: 24px; color: #fff;
  background: rgba(42,32,28,.42);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  padding: 14px 24px; border-radius: 100px; font: 600 13.5px 'Montserrat', sans-serif;
  z-index: 9999; border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 44px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.14);
  transform: translateY(10px); opacity: 0; transition: transform .25s, opacity .25s;
}
.notif.show { transform: translateY(0); opacity: 1; }

/* ====== PAGE HEAD (inner pages) ====== */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 22px; flex-wrap: wrap; }
.page-head .sec-title { margin: 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font: 500 14px 'Montserrat', sans-serif; color: var(--text-mute); margin: 4px 0 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span.sep { opacity: .5; }

/* ====== FILTER + PAGINATION (catalog / filters) ====== */
.filter { position: relative; display: inline-block; }
.filter-btn {
  background: var(--pill-bg); border: 0; color: var(--text); height: 44px; padding: 0 20px;
  border-radius: 124px; font: 600 14px 'Montserrat', sans-serif; display: inline-flex; align-items: center; gap: 9px;
  cursor: pointer; transition: background .2s; white-space: nowrap; width: 100%;
}
.filter-btn:hover { background: var(--pill-bg-hover); }
.filter-btn b { color: #fff; font-weight: 700; }
.filter-btn svg { width: 16px; height: 16px; }
.filter-btn .chev { margin-left: 2px; transition: transform .2s; }
.filter.open .filter-btn .chev { transform: rotate(180deg); }
.filter-menu {
  position: absolute; top: 52px; left: 0; right: 0; width: 100%; background: rgba(38,26,20,.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 6px; z-index: 30; box-shadow: 0 20px 46px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s, transform .18s;
}
.filter.open .filter-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.filter-menu button {
  display: flex; width: 100%; align-items: center; gap: 8px; background: transparent; border: 0; color: var(--text-mute);
  font: 500 14px 'Montserrat', sans-serif; padding: 11px 14px; border-radius: 10px; cursor: pointer; text-align: left; transition: color .15s, background .15s;
}
.filter-menu button:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.8); }
.filter-menu button.active { color: #fff; font-weight: 700; }

.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin: 28px 0 8px; }
.pagination button {
  min-width: 38px; height: 38px; padding: 0 10px; border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--text-mute); font: 600 15px 'Montserrat', sans-serif; transition: background .15s, color .15s;
}
.pagination button:hover { color: #fff; }
.pagination button.active { background: transparent; color: #fff; font-weight: 800; }
.pagination button.nav { color: var(--text-mute); }
.pagination button.nav:hover { color: #fff; }
.pagination .dots { color: var(--text-mute); padding: 0 4px; }

/* ====== FILTER SIDEBAR (filters page) ====== */
.catalog-layout { display: grid; grid-template-columns: 264px 1fr; gap: 24px; align-items: start; }
.filter-panel { background: var(--card); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 20px; position: sticky; top: 18px; }
.filter-panel h4 { font: 700 13px 'Montserrat', sans-serif; letter-spacing: .8px; text-transform: uppercase; color: var(--text-mute); margin: 18px 0 12px; }
.filter-panel h4:first-child { margin-top: 0; }
.fp-check { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font: 500 14px 'Montserrat', sans-serif; color: var(--text-dim); }
.fp-check:hover { color: #fff; }
.fp-box { width: 19px; height: 19px; border-radius: 6px; border: 1.5px solid rgba(255,255,255,.25); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.fp-check input { display: none; }
.fp-check input:checked + .fp-box { background: var(--accent-2); border-color: var(--accent-2); }
.fp-check input:checked + .fp-box::after { content: ""; width: 5px; height: 9px; border: solid #17181B; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px,-1px); }
.fp-check input:checked ~ span { color: #fff; }
.fp-count { margin-left: auto; color: var(--text-mute); font-size: 12px; }
.fp-price { display: flex; gap: 10px; margin-top: 4px; }
.fp-price input { width: 100%; background: #1a1310; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; color: #fff; padding: 9px 12px; font: 500 14px 'Montserrat', sans-serif; outline: none; }
.fp-price input:focus { border-color: var(--accent-3); }
.fp-apply { width: 100%; margin-top: 16px; background: linear-gradient(90deg, #FEC701 0%, #FEAE46 100%); color: #17181B; border: 0; height: 46px; border-radius: 100px; font: 700 14px 'Montserrat', sans-serif; cursor: pointer; }
.fp-reset { width: 100%; margin-top: 8px; background: transparent; color: var(--text-mute); border: 0; height: 36px; font: 600 13px 'Montserrat', sans-serif; cursor: pointer; }
.fp-reset:hover { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--pill-bg); color: var(--text); border-radius: 100px; padding: 7px 14px; font: 600 13px 'Montserrat', sans-serif; cursor: pointer; }
.chip .x { opacity: .6; }
.chip:hover .x { opacity: 1; }
.m-filter-btn { display: none; }

/* =====================================================================
   MOBILE  (≤ 820px)
   ===================================================================== */
@media (max-width: 820px) {
  header.top, nav.cats { display: none; }
  .m-header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 0 10px; position: relative; z-index: 5;
  }
  .m-icon-btn {
    width: 56px; height: 56px; flex-shrink: 0; border: 0; cursor: pointer;
    background: #1d1411; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff;
  }
  .m-icon-btn svg { width: 26px; height: 26px; }
  .m-header .logo { margin: 0 auto; }
  .m-header .logo img { height: 34px; }
  .m-header .logo-mark { height: 25px; }
  .m-header .logo-text-fallback { font-size: 22px; }

  /* bottom tab bar */
  .m-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #0c0c0e; border-top: 1px solid rgba(255,255,255,.07);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .m-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; background: transparent; border: 0; cursor: pointer; color: #fff; text-decoration: none; padding: 4px 0; position: relative; }
  .m-tab svg { width: 26px; height: 26px; }
  .m-tab span { font: 600 11px 'Montserrat', sans-serif; color: #cfcfcf; }
  .m-tab.active span { color: var(--accent-2); }
  .m-tab.active svg { color: var(--accent-2); }
  .m-tab .m-tab-badge {
    position: absolute; top: -2px; left: 50%; transform: translateX(6px);
    background: var(--danger); color: #fff; font: 700 10px 'Montserrat', sans-serif;
    min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
  }
  body { padding-bottom: 78px; }

  /* drawer */
  .m-drawer-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .m-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
  .m-drawer {
    position: fixed; top: 0; left: 0; bottom: 0; width: 82%; max-width: 340px; z-index: 80;
    background: #161214; transform: translateX(-100%); transition: transform .28s ease;
    display: flex; flex-direction: column; padding: 22px 20px; gap: 6px; overflow-y: auto;
  }
  .m-drawer.open { transform: translateX(0); }
  .m-drawer .m-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .m-drawer .m-drawer-head .logo { flex: 0 0 auto; display: flex; align-items: center; }
  .m-drawer .m-drawer-head .logo-mark,
  .m-drawer .m-drawer-head a img { height: 44px !important; width: auto !important; max-width: 75%; filter: none !important; }
  .m-drawer .m-drawer-close { background: transparent; border: 0; color: #fff; cursor: pointer; width: 40px; height: 40px; display:flex;align-items:center;justify-content:center; }
  .m-drawer .m-drawer-close svg { width: 24px; height: 24px; }
  .m-drawer-label { font: 700 12px 'Montserrat', sans-serif; letter-spacing: 1px; text-transform: uppercase; color: var(--text-mute); margin: 14px 4px 4px; }
  .m-drawer a {
    display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 12px;
    color: #fff; text-decoration: none; font: 600 16px 'Montserrat', sans-serif;
  }
  .m-drawer a:hover, .m-drawer a:active { background: #221a17; }
  .m-drawer a svg, .m-drawer a img { width: 22px; height: 22px; color: #fff; }
  .m-drawer a img { filter: brightness(0) invert(1); object-fit: contain; }

  /* mobile search overlay — transparent bar, glass only on the search block */
  .m-search {
    position: fixed; top: 0; left: 0; right: 0; z-index: 85; background: transparent; padding: 14px;
    display: flex; align-items: center; gap: 10px; transform: translateY(-110%); transition: transform .25s;
  }
  .m-search.open { transform: translateY(0); }
  .m-search .search {
    max-width: none; flex: 1; height: 50px;
    background: rgba(255,255,255,.10);
    -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
    border: 1px solid rgba(255,255,255,.20);
    box-shadow: 0 6px 22px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.16);
  }
  .m-search .m-search-close { background: transparent; border: 0; color: #fff; cursor: pointer; padding: 8px; }
  .m-search .m-search-close svg { width: 24px; height: 24px; }

  /* layout */
  .wrap { padding: 8px 14px 30px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .page-header-bg { height: 420px; }
  .hero { height: 230px; margin-bottom: 26px; }
  .hero-slide { padding: 22px; }
  .slide-plats { top: 16px; right: 16px; gap: 8px 16px; }
  .slide-plat { font-size: 13px; }
  .slide-plat img, .slide-plat .ico-fallback { width: 16px; height: 16px; }
  .slide-content { top: auto; bottom: 64px; right: 18px; }
  .slide-sub { font-size: 22px; }
  .slide-sub .from { font-size: 16px; }
  .slide-wordmark { height: 30px; bottom: 26px; }
  .slide-title-big { font-size: 28px; letter-spacing: 6px; bottom: 28px; }
  .arrow-zone { display: none; }

  .sec-title { font-size: 30px; font-weight: 800; margin: 26px 0 16px; }
  .price-now { font-size: 26px; }
  .price-old { font-size: 16px; }
  .card-title { font-size: 13px; }

  .promo { height: 150px; border-radius: 14px; }
  .social { margin: 36px auto; }
  .social h3 { font-size: 20px; }
  .social p { font-size: 15px; margin-bottom: 22px; }
  .social-icons { gap: 26px; }
  .social-btn { width: 60px; height: 60px; }
  .social-btn img { width: 30px; height: 30px; }
  .social-btn svg { width: 24px; height: 24px; }

  .catalog-cta { margin: 34px 0 8px; }

  footer { padding: 32px 0 26px; }
  .footer-wrap { flex-direction: column; gap: 26px; padding: 0 18px; }
  .footer-left { min-width: 0; width: 100%; align-items: flex-start; }
  .footer-center { width: 100%; }
  .footer-top { gap: 16px; }
  .footer-mail { font-size: 14px; height: 40px; }

  /* catalog / filters */
  .page-head { gap: 12px; margin: 4px 0 16px; }
  .filter-btn { height: 40px; padding: 0 16px; font-size: 13px; }
  .pagination { justify-content: center; margin: 22px 0 6px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 16px; }
  .filter-panel {
    position: fixed; top: 0; right: 0; bottom: 0; width: 86%; max-width: 360px; z-index: 80;
    border-radius: 0; overflow-y: auto; transform: translateX(100%); transition: transform .28s ease;
  }
  .filter-panel.open { transform: translateX(0); }
  .filter-panel .fp-mobile-close { display: flex; }
  .m-filter-btn {
    display: inline-flex; align-items: center; gap: 8px; background: var(--pill-bg); color: #fff; border: 0;
    height: 40px; padding: 0 16px; border-radius: 100px; font: 600 13px 'Montserrat', sans-serif; cursor: pointer;
  }
  .m-filter-btn svg { width: 16px; height: 16px; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .price-now { font-size: 22px; }
}
