/* ==========================================================================
   Beat Sync - storefront styles
   ========================================================================== */

:root {
  --brand: #8b3dff;
  --brand-2: #00c8ff;
  --brand-grad: linear-gradient(115deg, #ff2fd0 0%, #a855f7 48%, #00c8ff 100%);
  --accent: #ff2fd0;
  --ink: #0f1327;
  --ink-2: #3d4468;
  --muted: #767d9c;
  --line: #e7e9f3;
  --bg: #f4f5fa;
  --card: #ffffff;
  --ok: #12b76a;
  --warn: #f79009;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 19, 39, .06), 0 4px 14px rgba(15, 19, 39, .05);
  --shadow-md: 0 10px 30px rgba(15, 19, 39, .10);
  --shadow-lg: 0 24px 60px rgba(15, 19, 39, .16);
  --max: 1280px;
}

[data-theme='dark'] {
  --ink: #eef1ff;
  --ink-2: #b9c0e0;
  --muted: #8d95bb;
  --line: #262b46;
  --bg: #0b0e1c;
  --card: #141830;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; letter-spacing: -.02em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 18px; }
.row { display: flex; align-items: center; gap: 14px; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.hide { display: none !important; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  background: var(--brand-grad); color: #fff; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, opacity .2s;
  box-shadow: 0 8px 20px rgba(168, 85, 247, .28);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(168, 85, 247, .34); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); box-shadow: none; }
.btn.dark { background: var(--ink); box-shadow: none; }
.btn.accent { background: linear-gradient(115deg, #ff2fd0, #ff7a3d); box-shadow: 0 8px 20px rgba(255, 47, 208, .3); }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 500; cursor: pointer;
  transition: .2s;
}
.chip:hover, .chip.on { border-color: var(--brand); color: var(--brand); background: rgba(168, 85, 247, .07); }

/* ------------------------------------------------------------------- header */

.topbar {
  background: var(--ink); color: #cdd3f0; font-size: 12.5px; padding: 7px 0; overflow: hidden;
}
[data-theme='dark'] .topbar { background: #05070f; }
.topbar .wrap { display: flex; align-items: center; gap: 18px; }
.ticker { flex: 1; overflow: hidden; white-space: nowrap; }
.ticker span { display: inline-block; animation: slide 26s linear infinite; padding-left: 100%; }
@keyframes slide { to { transform: translateX(-100%); } }
.topbar a { opacity: .85; }
.topbar a:hover { opacity: 1; color: #fff; }
.topbar .sep { opacity: .3; }

header.main {
  background: var(--card); position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
header.main .wrap { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.logo .mark {
  width: 38px; height: 38px; border-radius: 12px; background: var(--brand-grad);
  display: grid; place-items: center; color: #fff; font-size: 19px;
  box-shadow: 0 6px 16px rgba(168, 85, 247, .35);
}
.logo img.mark {
  width: 44px; height: 44px; border-radius: 50%; background: none; padding: 0;
  box-shadow: 0 6px 18px rgba(255, 47, 208, .35);
}
.logo b { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.search { flex: 1; max-width: 620px; position: relative; }
.search form {
  display: flex; align-items: center; background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 4px 4px 4px 18px; transition: .2s;
}
.search form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(168, 85, 247, .1); }
.search input { flex: 1; border: 0; background: none; outline: none; padding: 9px 0; font-size: 14px; }
.search button { border: 0; background: var(--brand-grad); color: #fff; border-radius: 999px; padding: 9px 20px; cursor: pointer; font-weight: 600; }
.suggest {
  position: absolute; top: 110%; left: 0; right: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 80;
}
.suggest a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover { background: var(--bg); }
.suggest img { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; background: var(--bg); }
.suggest .t { font-size: 13.5px; font-weight: 600; }
.suggest .p { font-size: 12.5px; color: var(--brand); font-weight: 700; }

.head-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  display: grid; place-items: center; cursor: pointer; position: relative; transition: .2s; font-size: 17px;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--card);
}
.hotline { text-align: right; line-height: 1.2; }
.hotline small { color: var(--muted); font-size: 11.5px; }
.hotline b { font-size: 15px; }

nav.cats { background: var(--card); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
nav.cats .wrap { display: flex; gap: 4px; align-items: center; overflow-x: auto; scrollbar-width: none; }
nav.cats .wrap::-webkit-scrollbar { display: none; }
nav.cats a {
  padding: 13px 15px; font-size: 14px; font-weight: 500; white-space: nowrap; position: relative; color: var(--ink-2);
}
nav.cats a:hover, nav.cats a.on { color: var(--brand); }
nav.cats a.on::after, nav.cats a:hover::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 0; height: 3px;
  background: var(--brand-grad); border-radius: 3px 3px 0 0;
}
nav.cats a.hot { color: var(--accent); font-weight: 600; }
.burger { display: none; }

/* --------------------------------------------------------------------- hero */

.hero { padding: 22px 0 6px; }
.hero-grid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; }
.slider {
  position: relative; border-radius: 22px; overflow: hidden; min-height: 380px;
  background: #0d1030; box-shadow: var(--shadow-md);
}
.slide {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
  gap: 20px; padding: 40px 44px; opacity: 0; transform: scale(1.04); transition: opacity .7s ease, transform .7s ease;
  pointer-events: none;
}
.slide.on { opacity: 1; transform: scale(1); pointer-events: auto; }
.slide::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(120% 120% at 80% 20%, rgba(255, 47, 208, .5), transparent 55%),
              radial-gradient(90% 90% at 10% 90%, rgba(0, 200, 255, .45), transparent 60%), #0d1030;
}
.slide > * { position: relative; z-index: 1; }
.slide .eyebrow {
  display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .14);
  color: #fff; backdrop-filter: blur(6px); margin-bottom: 14px;
}
.slide h2 { font-size: clamp(26px, 3.4vw, 42px); color: #fff; margin-bottom: 12px; }
.slide h2 em { font-style: normal; background: linear-gradient(90deg, #7dd3fc, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slide p { color: #c3cae8; margin: 0 0 22px; max-width: 42ch; }
.slide .art { display: grid; place-items: center; }
.slide .art img { max-height: 300px; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.slider .dots { position: absolute; bottom: 18px; left: 44px; display: flex; gap: 8px; z-index: 3; }
.slider .dots i {
  width: 9px; height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .35); cursor: pointer; transition: .3s;
}
.slider .dots i.on { width: 28px; background: #fff; }
.slider .arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; z-index: 3; backdrop-filter: blur(6px);
}
.slider .arrow:hover { background: rgba(255, 255, 255, .3); }
.slider .arrow { top: auto; bottom: 16px; transform: none; width: 36px; height: 36px; }
.slider .arrow.prev { left: auto; right: 66px; } .slider .arrow.next { right: 18px; }

.side-promos { display: grid; gap: 16px; }
.promo {
  border-radius: 20px; padding: 22px; color: #fff; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; min-height: 182px; box-shadow: var(--shadow-sm);
}
.promo.a { background: linear-gradient(135deg, #ff2fd0, #a855f7); }
.promo.b { background: linear-gradient(135deg, #0f172a, #4338ca); }
.promo h4 { font-size: 19px; margin-bottom: 4px; }
.promo p { margin: 0 0 14px; font-size: 13px; opacity: .9; }
.promo span.link { font-size: 13px; font-weight: 700; text-decoration: underline; }
.promo .blob { position: absolute; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, .16); right: -40px; bottom: -50px; }

/* ----------------------------------------------------------------- features */

.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0; }
.usp div {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  display: flex; gap: 13px; align-items: center; transition: .25s;
}
.usp div:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.usp i { font-size: 22px; width: 44px; height: 44px; border-radius: 12px; background: rgba(168, 85, 247, .1); display: grid; place-items: center; font-style: normal; }
.usp b { display: block; font-size: 14px; }
.usp small { color: var(--muted); font-size: 12.5px; }

/* ---------------------------------------------------------------- sections */

section.block { margin: 34px 0; }
.sec-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.sec-head h3 { font-size: 23px; margin: 0; }
.sec-head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.sec-head .line { flex: 1; height: 1px; background: var(--line); margin-bottom: 8px; }
.sec-head a.more { font-size: 13.5px; font-weight: 600; color: var(--brand); white-space: nowrap; }

.cat-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 12px;
  text-align: center; transition: .25s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.cat-card .ic {
  width: 58px; height: 58px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center;
  font-size: 25px; background: linear-gradient(135deg, rgba(168, 85, 247, .12), rgba(6, 182, 212, .12));
}
.cat-card b { font-size: 13.5px; display: block; }
.cat-card small { color: var(--muted); font-size: 12px; }

/* ------------------------------------------------------------ product cards */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 16px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; position: relative; transition: .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; z-index: 2; }
.card .thumb { position: relative; aspect-ratio: 1 / 1; background: #fff; padding: 14px; }
[data-theme='dark'] .card .thumb { background: #f6f7fb; }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.card:hover .thumb img { transform: scale(1.07); }
.card .tags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; }
.tag {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: #fff;
  background: var(--accent); letter-spacing: .02em;
}
.tag.new { background: var(--brand); }
.tag.out { background: var(--muted); }
.card .quick {
  position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 7px;
  opacity: 0; transform: translateX(8px); transition: .25s;
}
.card:hover .quick { opacity: 1; transform: none; }
.quick button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  cursor: pointer; display: grid; place-items: center; font-size: 14px; box-shadow: var(--shadow-sm);
}
.quick button:hover { background: var(--brand); color: #fff; border-color: transparent; }
.card .body { padding: 12px 14px 16px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.card .brand { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.card h4 {
  font-size: 13.8px; font-weight: 600; margin: 0; line-height: 1.45; min-height: 40px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .stars { font-size: 11.5px; color: #f5a623; letter-spacing: 1px; }
.card .stars span { color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.card .price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.card .price b { font-size: 17px; color: var(--brand); letter-spacing: -.02em; }
.card .price s { font-size: 12.5px; color: var(--muted); }
.card .cta { display: flex; gap: 7px; margin-top: 10px; }
.card .cta .btn { flex: 1; padding: 9px 10px; font-size: 12.8px; }
.card .stockline { font-size: 11.5px; color: var(--ok); font-weight: 600; }
.card .stockline.no { color: var(--accent); }

/* list view on shop page */
.grid.list { grid-template-columns: 1fr; }
.grid.list .card { flex-direction: row; }
.grid.list .card .thumb { width: 210px; flex: none; }
.grid.list .card h4 { min-height: 0; font-size: 16px; -webkit-line-clamp: 2; }
.grid.list .card .body { padding: 20px; }
.grid.list .desc { font-size: 13px; color: var(--muted); }

/* --------------------------------------------------------------- shop page */

.crumbs { font-size: 13px; color: var(--muted); padding: 16px 0; }
.crumbs a:hover { color: var(--brand); }
.shop { display: grid; grid-template-columns: 268px 1fr; gap: 22px; align-items: start; padding-bottom: 40px; }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); position: sticky; top: 96px; }
.fgroup { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup h5 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.fgroup label { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 13.8px; cursor: pointer; }
.fgroup label:hover { color: var(--brand); }
.fgroup input[type='checkbox'], .fgroup input[type='radio'] { accent-color: var(--brand); width: 16px; height: 16px; }
.fgroup label .n { margin-left: auto; font-size: 12px; color: var(--muted); }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); outline: none;
}
.price-inputs input:focus { border-color: var(--brand); }

.toolbar {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.toolbar select {
  padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); outline: none;
}
.view-toggle { display: flex; gap: 4px; }
.view-toggle button { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.view-toggle button.on { background: var(--brand); color: #fff; border-color: transparent; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin: 28px 0; }
.pagination button {
  min-width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer;
}
.pagination button.on { background: var(--brand-grad); color: #fff; border-color: transparent; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty div { font-size: 48px; margin-bottom: 10px; }

/* ------------------------------------------------------------ product page */

.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.gallery .main-img {
  background: #fff; border-radius: 16px; aspect-ratio: 1/1; display: grid; place-items: center; padding: 24px;
  border: 1px solid var(--line); overflow: hidden;
}
.gallery .main-img img { max-height: 100%; object-fit: contain; transition: transform .4s; }
.gallery .main-img:hover img { transform: scale(1.12); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs img {
  width: 68px; height: 68px; object-fit: contain; padding: 6px; background: #fff;
  border: 2px solid var(--line); border-radius: 10px; cursor: pointer;
}
.thumbs img.on { border-color: var(--brand); }
.pdp h1 { font-size: 26px; }
.pdp .meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.pdp .meta b { color: var(--ink); }
.price-box { background: var(--bg); border-radius: 14px; padding: 16px 18px; margin: 16px 0; }
.price-box .now { font-size: 30px; font-weight: 800; color: var(--brand); letter-spacing: -.03em; }
.price-box s { color: var(--muted); margin-left: 10px; }
.price-box .save { display: inline-block; margin-left: 10px; background: rgba(255, 47, 208, .12); color: var(--accent); font-weight: 700; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; }
.price-box small { display: block; color: var(--muted); margin-top: 6px; font-size: 12.5px; }
.key-specs { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 7px; }
.key-specs li { display: flex; gap: 10px; font-size: 13.6px; }
.key-specs li::before { content: '✓'; color: var(--ok); font-weight: 700; }
.key-specs li b { color: var(--muted); font-weight: 500; min-width: 118px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 38px; height: 42px; border: 0; background: var(--card); cursor: pointer; font-size: 17px; }
.qty button:hover { background: var(--bg); color: var(--brand); }
.qty span { width: 44px; text-align: center; font-weight: 600; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.buy-row .btn { flex: 1; min-width: 150px; padding: 13px 20px; }
.assure { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.assure div { display: flex; gap: 10px; align-items: center; font-size: 13px; background: var(--bg); padding: 10px 12px; border-radius: 12px; }
.assure i { font-style: normal; font-size: 17px; }

.tabs { margin-top: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.tabs nav { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs nav button {
  padding: 15px 24px; border: 0; background: none; cursor: pointer; font-weight: 600; font-size: 14.5px;
  color: var(--muted); white-space: nowrap; border-bottom: 3px solid transparent;
}
.tabs nav button.on { color: var(--brand); border-bottom-color: var(--brand); }
.tab-body { padding: 26px 28px; }
.tab-body h4 { margin-top: 20px; }
.tab-body ul { padding-left: 20px; }
.tab-body p { color: var(--ink-2); }
table.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
table.specs tr:nth-child(odd) { background: var(--bg); }
table.specs td { padding: 12px 16px; border: 1px solid var(--line); }
table.specs td:first-child { width: 240px; color: var(--muted); font-weight: 500; }

/* ----------------------------------------------------------- imported feed */

.feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.feed-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: .25s;
}
.feed-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feed-card .cover { aspect-ratio: 16/9; background: var(--bg); overflow: hidden; }
.feed-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.feed-card iframe { width: 100%; border: 0; display: block; min-height: 300px; background: var(--bg); }
.feed-card .fb { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.feed-card .src { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); display: flex; gap: 8px; align-items: center; }
.feed-card h4 { font-size: 15.5px; margin: 0; }
.feed-card p { margin: 0; font-size: 13.3px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feed-card .caption { font-size: 13px; background: rgba(168, 85, 247, .07); border-left: 3px solid var(--brand); padding: 8px 12px; border-radius: 0 8px 8px 0; }
.feed-card a.go { margin-top: auto; font-weight: 700; font-size: 13px; color: var(--brand); }

/* ---------------------------------------------------------------- cart page */

.cart-wrap { display: grid; grid-template-columns: 1fr 350px; gap: 22px; align-items: start; padding-bottom: 44px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.panel h3 { font-size: 18px; margin-bottom: 16px; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: 12px; padding: 6px; border: 1px solid var(--line); }
.cart-item .n { font-weight: 600; font-size: 14.4px; }
.cart-item .sku { font-size: 12px; color: var(--muted); }
.cart-item .rm { border: 0; background: none; color: var(--accent); cursor: pointer; font-size: 12.5px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.sum-row.total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 14px; font-size: 19px; font-weight: 800; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); outline: none; transition: .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(168, 85, 247, .1); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.success { text-align: center; padding: 50px 20px; }
.success .tick { width: 78px; height: 78px; border-radius: 50%; background: rgba(18, 183, 106, .12); color: var(--ok); font-size: 38px; display: grid; place-items: center; margin: 0 auto 18px; }

/* ----------------------------------------------------------------- newsletter, footer */

.newsletter {
  border-radius: 22px; padding: 38px; background: var(--brand-grad); color: #fff;
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.newsletter h3 { font-size: 25px; margin: 0; }
.newsletter p { margin: 4px 0 0; opacity: .9; font-size: 14px; }
.newsletter form { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.newsletter input { padding: 13px 18px; border-radius: 999px; border: 0; outline: none; min-width: 250px; }
.newsletter .btn { background: var(--ink); box-shadow: none; }

footer.site { background: var(--ink); color: #b8c0e4; margin-top: 40px; padding: 46px 0 0; }
[data-theme='dark'] footer.site { background: #05070f; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 34px; }
footer.site h5 { color: #fff; font-size: 15px; margin: 0 0 14px; }
footer.site a, footer.site li { font-size: 13.6px; line-height: 2; }
footer.site a:hover { color: #fff; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site .logo { color: #fff; margin-bottom: 12px; }
footer.site p { font-size: 13.5px; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .09); display: grid; place-items: center; font-size: 16px; }
.socials a:hover { background: var(--brand); }
.copyright { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; font-size: 13px; display: flex; gap: 12px; flex-wrap: wrap; }

/* --------------------------------------------------------------- utilities */

.toast-host { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: #fff; padding: 13px 18px; border-radius: 12px; box-shadow: var(--shadow-lg);
  font-size: 14px; display: flex; gap: 10px; align-items: center; animation: pop .3s ease;
}
.toast.err { background: var(--accent); }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } }

.skeleton { background: linear-gradient(90deg, var(--line) 25%, var(--bg) 37%, var(--line) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.sk-card { height: 320px; }

.drawer-backdrop { position: fixed; inset: 0; background: rgba(9, 12, 28, .5); z-index: 90; backdrop-filter: blur(2px); }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .side-promos { grid-template-columns: 1fr 1fr; }
  .usp { grid-template-columns: repeat(2, 1fr); }
  .cat-strip { grid-template-columns: repeat(3, 1fr); }
  .pdp { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .shop { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: 0 auto 0 0; width: 300px; z-index: 100; overflow-y: auto; border-radius: 0;
    transform: translateX(-100%); transition: transform .3s ease;
  }
  .filters.open { transform: none; }
  .cart-wrap { grid-template-columns: 1fr; }
  .hotline, nav.cats .wrap a:nth-child(n+7) { display: none; }
}
@media (max-width: 720px) {
  header.main .wrap { flex-wrap: wrap; gap: 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .burger { display: grid; }
  .slide { grid-template-columns: 1fr; padding: 26px; }
  .slide .art { display: none; }
  .slider { min-height: 300px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid.list .card { flex-direction: column; }
  .grid.list .card .thumb { width: 100%; }
  .usp, .side-promos { grid-template-columns: 1fr; }
  .cat-strip { grid-template-columns: repeat(2, 1fr); }
  .newsletter form { margin-left: 0; }
  .newsletter input { min-width: 0; flex: 1; }
  footer.site .cols { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
}

