:root {
  --text: #111;
  --muted: #6c6c6c;
  --line: #e7e7e7;
  --panel: #f8f8f8;
  --green: #0c8f5a;
  --red: #9b1c1c;
  --radius-button: 12px;
  --radius-input: 12px;
  --radius-card: 14px;
  --radius-dialog: 22px;
  --radius-pill: 999px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
}
body[data-lang="lv"] .ru, body[data-lang="ru"] .lv { display: none; }
.wrap { width: min(100% - 32px, 1180px); margin: 0 auto; }
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 900; letter-spacing: .08em; }
.mark { width: 34px; height: 34px; background: #111; display: grid; place-items: center; }
.mark:before { content: ""; width: 18px; height: 18px; background: linear-gradient(#fff 0 0) center/18px 4px no-repeat, linear-gradient(#fff 0 0) center/4px 18px no-repeat; }
.actions { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px; }
.lang button, .cart, .back, .buy, .search-icon {
  border: 0; background: transparent; border-radius: var(--radius-button); padding: 9px 12px; font-weight: 800; cursor: pointer;
}
.lang button { border-radius: var(--radius-pill); }
.lang button.active, .cart, .buy { background: #111; color: #fff; }
.cart { min-width: 52px; }
.hero { padding: 46px 0 18px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.shop-hero { padding-bottom: 14px; }
.eyebrow { margin: 0 0 10px; color: var(--muted); font-size: 13px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(38px, 6vw, 78px); line-height: .95; letter-spacing: 0; }
.lead { margin: 18px 0 0; color: var(--muted); font-size: clamp(17px, 2.1vw, 22px); line-height: 1.4; max-width: 760px; }
.search-icon {
  width: 54px; height: 54px; border: 1px solid var(--line); background: #fff; font-size: 30px; line-height: 1;
}
.controls { display: grid; gap: 14px; padding-bottom: 18px; }
.search-panel { animation: panelIn .16s ease; }
.search-panel input {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-input); padding: 15px 18px; font-size: 16px;
}
.suggestions {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  padding: 8px;
  box-shadow: 0 14px 36px rgba(0,0,0,.08);
}
.suggestions button {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 0;
  border-radius: var(--radius-button);
  background: #f7f7f7;
  padding: 10px 12px;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}
.suggestions small, .suggestion-empty { color: var(--muted); font-size: 12px; font-weight: 850; }
.suggestion-empty { padding: 10px 12px; }
@keyframes panelIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.bubble-swarm { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bubble {
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius-pill); min-height: 42px; padding: 10px 16px;
  font-weight: 900; cursor: pointer; box-shadow: 0 4px 18px rgba(0,0,0,.04);
}
.bubble:nth-child(3n) { padding-inline: 22px; }
.bubble:nth-child(4n) { min-height: 50px; }
.bubble.active { background: #111; color: #fff; border-color: #111; }
.mobile-filter-panel { display: none; }
.skin-box {
  display: grid; grid-template-columns: minmax(210px,.55fr) 1fr; gap: 16px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px; background: var(--panel);
}
.skin-box strong { display: block; font-size: 18px; }
.skin-box span { display: block; margin-top: 4px; color: var(--muted); line-height: 1.35; }
.skin-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.skin-chip {
  border: 1px solid #dcdcdc; background: #fff; border-radius: var(--radius-pill); padding: 9px 12px; font-weight: 850; cursor: pointer;
}
.skin-chip.active { background: #111; border-color: #111; color: #fff; }
.list-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 0 0 14px;
}
.mobile-tools { display: none; }
.result-summary {
  font-size: 14px;
  font-weight: 950;
  color: #4b4b4b;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 0;
  margin-top: 8px;
}
.active-filters:empty { display: none; }
.active-filters button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.active-filters .clear-all {
  background: #111;
  border-color: #111;
  color: #fff;
}
.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.sort-control select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  background: #fff;
  padding: 0 34px 0 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}
.grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; padding: 8px 0 56px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; background: #fff; color: inherit; text-decoration: none;
  display: flex; flex-direction: column; min-height: 100%; transition: transform .16s ease, box-shadow .16s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.pic { aspect-ratio: 1/1; background: var(--panel); display: grid; place-items: center; overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: contain; }
.info { padding: 14px; display: grid; gap: 10px; flex: 1; }
.cat { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.title { font-weight: 850; line-height: 1.25; }
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.mini-tag {
  width: max-content;
  border-radius: var(--radius-pill);
  background: #f3f3f3;
  color: #555;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}
.price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.now { font-size: 20px; font-weight: 950; }
.unit-price { color: var(--muted); font-size: 12px; font-weight: 850; }
.stock { width: max-content; border-radius: var(--radius-pill); padding: 6px 10px; font-size: 12px; font-weight: 900; }
.stock.in { background: #e9fbf2; color: var(--green); }
.stock.low { background: #fff7da; color: #7a5300; }
.stock.out { background: #fff0f0; color: var(--red); }
.quick { border: 1px solid #111; background: #111; color: #fff; border-radius: var(--radius-button); padding: 11px 12px; font-weight: 900; cursor: pointer; }
.quick.disabled, .buy.disabled { border-color: #d8d8d8; background: #efefef; color: #8a8a8a; cursor: not-allowed; }
.product { padding: 34px 0 70px; display: grid; grid-template-columns: minmax(300px,.9fr) minmax(0,1fr); gap: 34px; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }
.product-media { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--panel); padding: 22px; }
.product-media img { width: 100%; height: auto; display: block; object-fit: contain; }
.product-info { align-self: start; }
.product h1 { font-size: clamp(34px, 5vw, 62px); line-height: 1; }
.desc { color: var(--muted); font-size: 18px; line-height: 1.55; }
.ingredient-focus { margin: 22px 0; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px; background: var(--panel); }
.ingredient-focus h2 { margin: 0 0 12px; font-size: 18px; line-height: 1.2; }
.ingredient-focus ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ingredient-focus li { display: grid; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid #e1e1e1; }
.ingredient-focus li:last-child { border-bottom: 0; padding-bottom: 0; }
.ingredient-focus li strong { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.ingredient-focus li span, .focus-note { color: var(--muted); line-height: 1.42; }
.focus-note { margin: 12px 0 0; font-size: 13px; }
.meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.pill { border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 8px 12px; font-weight: 800; color: var(--muted); }
.buyrow { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.buy { padding: 15px 24px; font-size: 16px; }
.product-proof {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 14px;
  background: var(--panel);
}
.product-proof h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.1; }
.product-proof p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.42; }
.product-proof img { width: 96px; height: 96px; object-fit: contain; border-radius: var(--radius-input); background: #fff; }
.related-products { padding-bottom: 68px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 26px; }
.related-grid { padding-bottom: 0; }
.toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 80; background: #111; color: #fff; border-radius: var(--radius-button);
  padding: 14px 16px; font-weight: 900; box-shadow: 0 12px 30px rgba(0,0,0,.22);
  transform: translateY(24px); opacity: 0; pointer-events: none; transition: .2s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 55;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: #111;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity .18s ease, transform .18s ease;
}
.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.fly { position: fixed; z-index: 90; width: 40px; height: 40px; border-radius: var(--radius-pill); background: #111; pointer-events: none; animation: fly .62s ease forwards; }
@keyframes fly { to { transform: translate(var(--dx),var(--dy)) scale(.2); opacity: 0; } }
.cart.bump { animation: bump .32s ease; }
@keyframes bump { 50% { transform: scale(1.14); } }
.cart-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.36); }
.cart-drawer { position: fixed; top: 0; right: 0; z-index: 70; width: min(100%,420px); height: 100dvh; background: #fff; box-shadow: -20px 0 50px rgba(0,0,0,.16); transform: translateX(104%); transition: transform .22s ease; display: flex; flex-direction: column; border-radius: var(--radius-dialog) 0 0 var(--radius-dialog); overflow: hidden; }
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding: 20px; border-bottom: 1px solid var(--line); }
.cart-head strong { display: block; font-size: 26px; }
.cart-head span { display: block; margin-top: 4px; color: var(--muted); }
.icon-close { width: 42px; height: 42px; border: 0; border-radius: var(--radius-button); background: #f3f3f3; font-size: 28px; line-height: 1; cursor: pointer; }
.cart-items { padding: 12px 20px; overflow: auto; display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.cart-line img { width: 58px; height: 58px; object-fit: contain; background: var(--panel); border-radius: var(--radius-input); }
.cart-line-title { font-weight: 850; line-height: 1.2; }
.cart-line-price { margin-top: 5px; color: var(--muted); font-size: 14px; }
.qty { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.qty button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: var(--radius-button); background: #fff; font-weight: 900; }
.cart-empty { padding: 22px 20px; color: var(--muted); }
.cart-empty.hidden { display: none; }
.cart-total { margin-top: auto; border-top: 1px solid var(--line); padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
.cart-checkout { margin: 0 20px 20px; border-radius: var(--radius-button); }
.footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 14px; }
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .product { grid-template-columns: 1fr; }
  .skin-box { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .wrap { width: min(100% - 22px, 1180px); }
  .header-inner { height: 64px; }
  .brand span { display: none; }
  .hero { grid-template-columns: 1fr auto; padding-top: 28px; }
  .shop-hero .lead { display: none; }
  .search-icon { width: 48px; height: 48px; }
  .mobile-filter-panel { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .mobile-filter-panel label {
    display: grid; gap: 7px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-card);
    background: linear-gradient(180deg, #fff, #f8f8f8); box-shadow: 0 8px 24px rgba(0,0,0,.05);
  }
  .mobile-multi-filter {
    display: grid; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-card);
    background: linear-gradient(180deg, #fff, #f8f8f8); box-shadow: 0 8px 24px rgba(0,0,0,.05);
  }
  .mobile-filter-panel label > span, .mobile-multi-filter > span {
    color: var(--muted); font-size: 12px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase;
  }
  .mobile-filter-panel select {
    width: 100%; min-height: 46px; border: 0; border-radius: var(--radius-input); background: #111; color: #fff;
    padding: 0 42px 0 14px; font: inherit; font-size: 16px; font-weight: 900; cursor: pointer;
    appearance: none;
    background-image:
      linear-gradient(45deg, transparent 50%, #fff 50%),
      linear-gradient(135deg, #fff 50%, transparent 50%);
    background-position: calc(100% - 22px) 19px, calc(100% - 15px) 19px;
    background-size: 7px 7px, 7px 7px;
    background-repeat: no-repeat;
  }
  .mobile-skin-options { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .mobile-skin-options::-webkit-scrollbar { display: none; }
  .mobile-check {
    flex: 0 0 auto; border: 1px solid var(--line); border-radius: var(--radius-pill); background: #fff;
    padding: 9px 12px; font-weight: 900; cursor: pointer; white-space: nowrap;
  }
  .mobile-check.active { background: #111; color: #fff; border-color: #111; }
  .list-tools {
    position: sticky;
    top: 64px;
    z-index: 18;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 9px 11px 10px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .mobile-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mobile-tools button {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius-button);
    background: #111;
    color: #fff;
    font-weight: 950;
  }
  .result-summary { font-size: 13px; }
  .active-filters { margin-top: 6px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .active-filters button { flex: 0 0 auto; }
  .sort-control { justify-content: space-between; }
  .sort-control select { min-width: 160px; }
  .suggestions { max-height: 48vh; overflow: auto; }
  .bubble-swarm, .skin-box { display: none; }
  .grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .info { padding: 11px; }
  .title { font-size: 14px; }
  .now { font-size: 18px; }
  .product { gap: 20px; padding-top: 20px; }
  .breadcrumbs { padding-top: 12px; font-size: 12px; }
  .product-proof { grid-template-columns: 1fr; }
  .product-proof img { display: none; }
  .related-grid { grid-template-columns: repeat(2,1fr); }
  .desc { font-size: 16px; }
}
