@font-face {
  font-family: Inter;
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Bounded;
  src: url("/assets/fonts/Bounded-Regular.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #0d0802;
  --gray: #585757;
  --sand: #dad4c2;
  --paper: #f6f5f1;
  --line: #eae8e1;
  --muted: #898781;
  --tg-content-top: 0px;
  --tg-content-bottom: 0px;
  --radius: 20px;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: weight;
}
/* Both modes stay in the original Telegram WebView, preserving its context. */
.admin-mode-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  font-size: 12px;
  color: var(--gray);
}
.admin-mode-switch button {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}
.role-dialog {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  color: var(--ink);
}
.role-dialog::backdrop { background: #0d080278; }
.role-logo { width: 96px; margin-bottom: 28px; }
.role-dialog h2 { margin: 12px 0; font-size: 26px; }
.role-dialog p { color: var(--gray); font-size: 14px; line-height: 1.6; }
.role-actions { display: grid; gap: 12px; margin-top: 24px; }
.role-actions .button { width: 100%; justify-content: center; }
.role-actions .button-outline { border: 1px solid var(--sand); }
.role-dialog .role-error { margin-top: 16px; color: #9a2f25; }
.admin-mode-panel {
  position: fixed;
  z-index: 90;
  inset: var(--tg-content-top) 0 max(var(--tg-content-bottom), env(safe-area-inset-bottom, 0px));
  background: white;
}
#admin-frame { width: 100%; height: 100%; display: block; border: 0; background: white; }
body.admin-mode { overflow: hidden; }
body.admin-mode > .announcement,
body.admin-mode > .header,
body.admin-mode > .admin-mode-switch,
body.admin-mode > .search-row,
body.admin-mode > #main,
body.admin-mode > .footer,
body.admin-mode > .bottom-nav,
body.admin-mode > #toast { visibility: hidden; }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding-top: var(--tg-content-top);
  -webkit-tap-highlight-color: transparent;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gray);
  outline-offset: 5px;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
}
input:focus-visible,
textarea:focus-visible {
  border-color: var(--gray) !important;
  box-shadow: 0 0 0 3px #dad4c24d;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Bounded, Inter, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}
.icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
strong {
  font-weight: 650;
}
[hidden] {
  display: none !important;
}
.container {
  width: calc(100% - 96px);
  max-width: 1200px;
  margin: 0 auto;
}
.announcement {
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--ink);
  color: #e7e1d3;
  font-size: 10px;
  letter-spacing: 0.065em;
}
.announcement-spark {
  font-size: 14px;
  color: var(--sand);
}
.header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.header-inner {
  max-width: 1200px;
  margin: auto;
  width: calc(100% - 96px);
  height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand img {
  width: 91px;
  height: 44px;
  object-fit: contain;
}
.brand > span {
  max-width: 105px;
  line-height: 1.7;
  font-size: 8px;
  letter-spacing: 0.22em;
  border-left: 1px solid #d9d5ce;
  padding-left: 18px;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 31px;
  padding-right: 30px;
}
.desktop-nav button {
  font-size: 13px;
  padding: 12px 0;
  position: relative;
  color: var(--gray);
}
.desktop-nav button.active {
  color: var(--ink);
  font-weight: 600;
}
.desktop-nav button.active:after {
  content: "";
  height: 3px;
  width: 16px;
  border-radius: 2px;
  background: var(--sand);
  position: absolute;
  bottom: 1px;
  left: calc(50% - 8px);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 19px;
}
.icon-button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-radius: 50%;
}
.icon-button .icon {
  width: 22px;
  height: 22px;
}
.icon-button:hover {
  background: var(--paper);
}
.header-cart {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.header-cart > .icon {
  width: 21px;
}
.cart-count {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  background: var(--sand);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
}
.dot-count {
  position: absolute;
  top: 0;
  right: -1px;
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 9px;
  background: var(--ink);
  color: white;
  border: 2px solid white;
}
.search-row {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 21px;
  margin-bottom: 24px;
}
.search-wrap {
  height: 47px;
  background: var(--paper);
  border: 1px solid #efede7;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  padding: 0 17px;
}
.search-wrap .icon {
  height: 20px;
  width: 20px;
  color: var(--gray);
}
.search-wrap input {
  background: none;
  width: 100%;
  border: 0;
  height: 100%;
  font-size: 12px;
  color: var(--ink);
  outline: none;
}
.search-wrap input::placeholder {
  color: #8a8780;
}
.search-wrap kbd {
  white-space: nowrap;
  font-family: Inter, sans-serif;
  font-size: 9px;
  color: #99968e;
  border: 1px solid #ddd9d0;
  border-radius: 4px;
  padding: 2px 5px;
}
.help-link {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 11px;
}
.help-link .icon:first-child {
  height: 19px;
  width: 19px;
}
.help-link .icon:last-child {
  height: 13px;
  width: 13px;
  margin-left: 8px;
}
.hero {
  position: relative;
  height: 398px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ece8df;
  isolation: isolate;
}
.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    #eeebe4 0%,
    #eeebe4 39%,
    #eeebe4f5 49%,
    #eeebe4de 59%,
    #eeebe400 78%
  );
}
.hero-content {
  padding: 41px 44px;
  position: relative;
  width: 65%;
}
.eyebrow {
  font-size: 9px;
  font-weight: 550;
  letter-spacing: 0.16em;
  line-height: 1.5;
  color: var(--gray);
  display: block;
}
.hero .eyebrow {
  margin-bottom: 20px;
  font-size: 8px;
  letter-spacing: 0.15em;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.16;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
}
.hero p {
  font-size: 12px;
  line-height: 1.75;
  color: var(--gray);
  margin-bottom: 23px;
}
.button {
  min-height: 46px;
  padding: 0 21px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  font-size: 11px;
  font-weight: 500;
  transition:
    background 0.18s,
    transform 0.18s;
}
.button:hover {
  transform: translateY(-1px);
}
.button .icon {
  width: 17px;
  height: 17px;
}
.button-dark {
  background: var(--ink);
  color: white;
}
.button-dark:hover {
  background: #36312b;
}
.button-light {
  background: #fff;
  color: var(--ink);
}
.button-light:hover {
  background: var(--sand);
}
.button-full {
  width: 100%;
}
.hero-controls {
  position: absolute;
  right: 25px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 19px;
}
.slide-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.slide-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  background: #ffffff70;
  border-radius: 50%;
  border: 1px solid #99968e55;
}
.slide-dots button.active {
  width: 20px;
  border-radius: 5px;
  background: #fff;
  border-color: #fff;
}
.slide-index {
  font-size: 10px;
  color: #fff;
  text-shadow: 0 1px 4px #0004;
  font-weight: 500;
}
.slide-index > span {
  opacity: 0.7;
}
.hero-next {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff80;
  border-radius: 50%;
  color: #fff;
  backdrop-filter: blur(5px);
}
.hero-next .icon {
  width: 16px;
  height: 16px;
}
.device-slide .hero-image {
  left: 49%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.device-slide .hero-image img {
  width: 88%;
  height: 94%;
  object-fit: contain;
  transform: rotate(5deg);
  mix-blend-mode: multiply;
}
.device-slide:after {
  background: linear-gradient(90deg, #eeebe4 0%, #eeebe4 35%, #eeebe400 61%);
}
.device-slide .slide-index {
  color: var(--gray);
  text-shadow: none;
}
.device-slide .slide-dots button {
  background: #b0aca3;
}
.device-slide .slide-dots button.active {
  background: var(--ink);
  border-color: var(--ink);
}
.device-slide .hero-next {
  color: var(--ink);
  border-color: #58575760;
}
.audio-slide .hero-image img {
  width: 100%;
  height: 98%;
  transform: rotate(-8deg);
}
.benefits {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 25px;
  padding: 22px 15px;
  border-bottom: 1px solid var(--line);
}
.benefits > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: var(--gray);
}
.benefits .icon {
  width: 18px;
  height: 18px;
  color: var(--gray);
}
.section {
  margin-top: 37px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.section-title .eyebrow {
  margin-bottom: 7px;
  font-size: 7px;
  letter-spacing: 0.15em;
}
.section-title h2 {
  font-size: 25px;
  line-height: 1.3;
}
.text-button {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 500;
  padding: 5px 0;
  white-space: nowrap;
}
.text-button .icon {
  width: 16px;
  height: 16px;
}
.text-button:hover {
  color: var(--gray);
}
.title-dot {
  color: #b4ac97;
  margin-left: 1px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.category-card {
  position: relative;
  padding: 9px 12px 14px;
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 13px;
  display: flex;
  align-items: center;
  flex-direction: column;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.category-card:hover {
  border-color: var(--sand);
  background: #f0eee7;
}
.category-image {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.category-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.2s;
}
.category-card:hover img {
  transform: translateY(-3px);
}
.category-card > span {
  font-size: 11px;
  font-weight: 500;
}
.category-card > .icon {
  position: absolute;
  top: 13px;
  right: 12px;
  width: 11px;
  height: 11px;
  color: #878378;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 19px;
}
.product-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.product-card:hover {
  border-color: #d4cfc3;
  box-shadow: 0 6px 22px #0d080206;
}
.product-visual {
  position: relative;
  background: var(--paper);
  padding: 26px 13px 4px;
  height: 225px;
}
.product-badge {
  position: absolute;
  left: 13px;
  top: 13px;
  padding: 5px 8px;
  background: #e7e2d5;
  color: #5c584e;
  border-radius: 5px;
  font-size: 8px;
  letter-spacing: 0.015em;
  z-index: 1;
  line-height: 1.2;
}
.product-badge.new {
  background: #e6e9e3;
  color: #52604b;
}
.product-badge.sale {
  background: var(--ink);
  color: #fff;
}
.favorite-button {
  position: absolute;
  right: 11px;
  top: 9px;
  border-radius: 50%;
  width: 33px;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: #6c685e;
  background: #ffffff8c;
  transition:
    color 0.2s,
    background 0.2s;
}
.favorite-button .icon {
  width: 18px;
  height: 18px;
}
.favorite-button:hover {
  background: white;
}
.favorite-button.selected {
  color: var(--ink);
  background: #fff;
}
.favorite-button.selected .icon {
  fill: var(--ink);
}
.product-image-button {
  height: 100%;
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.25s;
}
.product-image-button:hover img {
  transform: scale(1.04);
}
.product-info {
  padding: 15px 16px 16px;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.06em;
  margin-bottom: 9px;
}
.color-dots {
  display: flex;
  gap: 4px;
}
.color-dots i {
  display: block;
  height: 8px;
  width: 8px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px #00000015;
}
.product-name {
  font-size: 13px;
  font-weight: 600;
  display: block;
  line-height: 1.5;
  text-align: left;
  padding: 0;
  letter-spacing: -0.025em;
}
.product-option {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
  min-height: 14px;
}
.product-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 17px;
}
.old-price {
  display: block;
  text-decoration: line-through;
  font-size: 9px;
  color: #98948b;
  margin-bottom: 4px;
  min-height: 10px;
}
.product-price {
  font-size: 17px;
  letter-spacing: -0.03em;
  display: block;
  line-height: 1.2;
}
.add-button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.add-button:hover {
  background: var(--gray);
}
.add-button .icon {
  width: 16px;
  height: 16px;
}
.selection-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 32px 34px;
  border-radius: 16px;
  background: var(--ink);
  color: white;
  margin-top: 39px;
  position: relative;
  overflow: hidden;
}
.selection-banner:after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: 170px;
  top: -100px;
  border: 1px solid #ffffff10;
  border-radius: 50%;
  pointer-events: none;
}
.selection-symbol {
  color: var(--sand);
  height: 63px;
  width: 63px;
  border: 1px solid #dad4c230;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: rotate(-7deg);
}
.selection-symbol .icon {
  height: 33px;
  width: 33px;
  stroke-width: 1.3;
}
.selection-banner > div:nth-child(2) {
  flex: 1;
}
.selection-banner .eyebrow {
  color: #c7c0af;
  font-size: 7px;
  margin-bottom: 7px;
}
.selection-banner h2 {
  font-size: 23px;
  line-height: 1.4;
}
.selection-banner p {
  font-size: 10px;
  color: #a9a59c;
  margin-top: 8px;
  line-height: 1.6;
}
.selection-banner .button {
  flex-shrink: 0;
  font-size: 10px;
}
.new-section {
  margin-top: 39px;
  margin-bottom: 50px;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 27px 0 30px;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 7px 22px;
  align-items: center;
}
.footer img {
  width: 62px;
  grid-row: span 2;
}
.footer p {
  font-size: 9px;
  color: var(--gray);
}
.footer > span {
  font-size: 8px;
  color: var(--muted);
  grid-column: 2;
}
.footer > button {
  font-size: 9px;
  grid-column: 3;
  grid-row: 1 / span 2;
}
.bottom-nav {
  display: none;
}
.page-heading {
  padding: 17px 0 28px;
}
.page-heading .eyebrow {
  font-size: 8px;
  margin-bottom: 12px;
}
.page-heading h1 {
  font-size: 36px;
  line-height: 1.3;
}
.page-heading p {
  font-size: 12px;
  color: var(--gray);
  margin-top: 12px;
  line-height: 1.7;
}
.category-tabs {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.category-tabs > button {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--gray);
  white-space: nowrap;
}
.category-tabs .icon {
  width: 15px;
  height: 15px;
}
.category-tabs > button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.category-tabs > button:hover:not(.active) {
  background: var(--paper);
}
.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 25px;
  padding-bottom: 18px;
  color: var(--muted);
  font-size: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 23px;
}
.catalog-toolbar > span {
  flex: 1;
}
.sale-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray);
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--ink);
  width: 14px;
  height: 14px;
  cursor: pointer;
}
.sort-select {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sort-select .icon {
  width: 16px;
  height: 16px;
}
.sort-select select {
  border: 0;
  background: #fff;
  color: var(--gray);
  font-size: 10px;
  max-width: 160px;
  cursor: pointer;
}
.catalog-grid {
  margin-bottom: 48px;
}
.empty-state {
  text-align: center;
  padding: 70px 20px 90px;
  max-width: 600px;
  margin: 0 auto;
}
.empty-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  color: var(--gray);
}
.empty-icon .icon {
  width: 30px;
  height: 30px;
}
.empty-state h2 {
  font-size: 26px;
  line-height: 1.4;
}
.empty-state p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.8;
  margin: 15px auto 24px;
  max-width: 340px;
}
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 38px;
  align-items: start;
  margin-bottom: 60px;
}
.cart-items {
  display: grid;
  gap: 12px;
}
.cart-item {
  display: flex;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  align-items: center;
}
.cart-item-image {
  width: 100px;
  height: 100px;
  padding: 0;
  background: var(--paper);
  border-radius: 10px;
  flex-shrink: 0;
}
.cart-item-image img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-info p {
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0 16px;
  line-height: 1.5;
}
.cart-item-info strong {
  font-size: 16px;
}
.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}
.remove-item .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.quantity-control {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--paper);
  border-radius: 7px;
  height: 30px;
  font-size: 11px;
}
.quantity-control button {
  width: 27px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.quantity-control button .icon {
  width: 12px;
  height: 12px;
}
.quantity-control span {
  min-width: 12px;
  text-align: center;
}
.continue-shopping {
  margin: 12px 0;
}
.order-summary {
  background: var(--paper);
  border-radius: 16px;
  padding: 26px;
  position: sticky;
  top: 24px;
}
.order-summary h2 {
  font-size: 22px;
  margin-bottom: 24px;
}
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  margin-bottom: 17px;
  color: var(--gray);
}
.summary-row > span:last-child {
  text-align: right;
}
.summary-total {
  border-top: 1px solid #dedad0;
  padding-top: 20px;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 23px;
  font-size: 10px;
}
.summary-total strong {
  font-size: 20px;
  white-space: nowrap;
  letter-spacing: -0.04em;
}
.summary-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 17px;
}
.summary-security {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 22px;
  font-size: 9px;
  color: var(--gray);
}
.summary-security .icon {
  width: 15px;
  height: 15px;
}
.back-link {
  margin-bottom: 21px;
  color: var(--gray);
}
.checkout-form {
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.checkout-form h2 {
  font-size: 20px;
  margin-bottom: 0;
}
.checkout-form > h2:not(:first-child) {
  margin-top: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.checkout-form label {
  font-size: 10px;
  line-height: 1.7;
  color: var(--gray);
}
.checkout-form label > input:not([type="checkbox"]):not([type="radio"]),
.checkout-form textarea {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 12px;
  color: var(--ink);
  padding: 13px 14px;
  margin-top: 7px;
  line-height: 1.5;
}
.checkout-form textarea {
  resize: vertical;
}
.checkout-form .optional {
  color: var(--muted);
  font-size: 9px;
}
.delivery-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.delivery-options label {
  cursor: pointer;
  position: relative;
}
.delivery-options input {
  position: absolute;
  right: 12px;
  top: 12px;
}
.delivery-options label > span {
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  height: 116px;
}
.delivery-options input:checked + span {
  border-color: var(--gray);
  background: var(--paper);
}
.delivery-options .icon {
  width: 20px;
  height: 20px;
}
.delivery-options strong {
  color: var(--ink);
  font-size: 11px;
}
.delivery-options small {
  font-size: 9px;
  color: var(--muted);
}
.consent-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.consent-label > input {
  margin-top: 3px;
  flex-shrink: 0;
}
.consent-label span {
  font-size: 10px;
  line-height: 1.7;
}
.form-footnote {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}
.form-error {
  padding: 12px;
  border-radius: 8px;
  background: #f8ece7;
  color: #8e3e27;
  font-size: 11px;
  line-height: 1.7;
}
.success-state {
  max-width: 560px;
  margin: 20px auto 55px;
  padding: 35px 0;
  text-align: center;
}
.success-icon {
  height: 70px;
  width: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 24px;
  background: var(--sand);
  border-radius: 50%;
}
.success-icon .icon {
  height: 32px;
  width: 32px;
}
.success-state .eyebrow {
  font-size: 8px;
}
.success-state h1 {
  font-size: 33px;
  line-height: 1.4;
  margin: 14px 0;
}
.success-state > p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--gray);
  max-width: 370px;
  margin: auto;
}
.order-receipt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  text-align: left;
  padding: 24px;
  background: var(--paper);
  border-radius: 12px;
  margin: 28px 0;
  font-size: 12px;
}
.order-receipt strong {
  text-align: right;
  overflow-wrap: anywhere;
}
.order-receipt > span {
  color: var(--gray);
}
.profile-card {
  display: flex;
  align-items: center;
  gap: 21px;
  padding: 27px;
  background: var(--paper);
  border-radius: 15px;
}
.avatar {
  height: 62px;
  width: 62px;
  background: var(--sand);
  font-family: Bounded, Inter, sans-serif;
  font-size: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.profile-card h2 {
  font-size: 24px;
  margin-bottom: 9px;
}
.profile-card p {
  font-size: 10px;
  color: var(--gray);
  line-height: 1.7;
}
.profile-brand {
  margin-left: auto;
  color: #c2bbab;
}
.profile-brand .icon {
  height: 44px;
  width: 44px;
}
.profile-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}
.profile-links button {
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  font-size: 11px;
}
.profile-links button > .icon:first-child {
  width: 19px;
  height: 19px;
  color: var(--gray);
}
.profile-links button > span {
  flex: 1;
  text-align: left;
}
.profile-links button > small {
  font-size: 10px;
  color: var(--muted);
}
.profile-links button > .icon:last-child {
  width: 14px;
  height: 14px;
}
.profile-empty {
  padding: 40px 20px 60px;
  background: var(--paper);
  border-radius: 15px;
  text-align: center;
  margin-bottom: 45px;
}
.profile-empty .icon {
  color: var(--muted);
  width: 34px;
  height: 34px;
}
.profile-empty p {
  font-size: 12px;
  color: var(--gray);
  margin-top: 15px;
  line-height: 1.8;
}
.order-history {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.order-history article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  font-size: 12px;
}
.order-history article strong {
  display: block;
}
.order-history article span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 8px;
}
.local-history-note {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 40px;
}
.support-hero {
  background: linear-gradient(120deg, #f2f0e9, #e6e1d5);
  padding: 40px 42px;
  border-radius: 18px;
  position: relative;
  isolation: isolate;
}
.support-hero > img {
  position: absolute;
  right: 48px;
  top: 50px;
  width: 220px;
  opacity: 0.2;
  z-index: -1;
}
.support-hero h2 {
  font-size: 29px;
  line-height: 1.4;
  max-width: 480px;
}
.support-hero > p {
  max-width: 480px;
  font-size: 12px;
  line-height: 1.9;
  margin: 18px 0 24px;
  color: var(--gray);
}
.support-username {
  font-size: 10px;
  margin-left: 15px;
  color: var(--gray);
}
.support-hero .button {
  gap: 14px;
}
.faq {
  max-width: 850px;
  margin: 40px 0 50px;
}
.faq h2 {
  font-size: 24px;
  margin-bottom: 18px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 22px 0;
  font-size: 12px;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary > .icon {
  height: 18px;
  width: 18px;
}
.faq details[open] summary > .icon {
  transform: rotate(45deg);
}
.faq details p {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.9;
  padding-bottom: 22px;
  max-width: 690px;
}
.dialog-open {
  overflow: hidden;
}
.product-dialog {
  border: 0;
  border-radius: 20px;
  padding: 0;
  max-width: 860px;
  width: calc(100% - 64px);
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  background: #fff;
  color: var(--ink);
}
.product-dialog[open] {
  display: grid;
  grid-template-columns: 44% 56%;
}
.product-dialog::backdrop {
  background: #0d08026b;
  backdrop-filter: blur(4px);
}
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  background: #fff;
  border: 1px solid var(--line);
  width: 32px;
  height: 32px;
}
.dialog-close .icon {
  height: 17px;
  width: 17px;
}
.product-detail-image {
  position: relative;
  background: var(--paper);
  padding: 45px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.product-detail-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.product-detail-image > span:last-child {
  position: absolute;
  bottom: 18px;
  font-size: 8px;
  color: var(--muted);
  left: 0;
  width: 100%;
  text-align: center;
}
.product-detail-info {
  padding: 38px 30px 28px;
}
.product-detail-info .eyebrow {
  font-size: 8px;
  margin-bottom: 14px;
}
.product-detail-info h2 {
  font-size: 27px;
  line-height: 1.3;
  padding-right: 8px;
}
.detail-subtitle {
  font-size: 11px;
  color: var(--gray);
  line-height: 1.8;
  margin-top: 10px;
}
.detail-select {
  margin-top: 25px;
  font-size: 10px;
  color: var(--gray);
}
.detail-select strong {
  color: var(--ink);
}
.color-options {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.color-options button {
  height: 32px;
  width: 32px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 50%;
  display: flex;
}
.color-options button.active {
  border-color: var(--ink);
}
.color-options span {
  height: 100%;
  width: 100%;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px #0000000d;
}
.storage-options {
  display: flex;
  gap: 8px;
  margin-top: 11px;
  flex-wrap: wrap;
}
.storage-options button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 10px;
}
.storage-options button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.detail-price {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 27px 0 20px;
}
.detail-price > strong {
  font-size: 25px;
  letter-spacing: -0.04em;
}
.detail-price .old-price {
  font-size: 12px;
  margin: 0;
}
.detail-actions {
  display: flex;
  gap: 10px;
}
.detail-actions > .button {
  flex: 1;
  gap: 12px;
  font-size: 10px;
  padding: 0 10px;
}
.detail-favorite {
  position: static;
  border: 1px solid var(--line);
  height: 46px;
  width: 46px;
  border-radius: 10px;
  background: var(--paper);
  flex-shrink: 0;
}
.detail-description {
  font-size: 11px;
  color: var(--gray);
  line-height: 1.85;
  margin-top: 24px;
}
.specs {
  margin-top: 20px;
}
.specs > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  font-size: 9px;
}
.specs span {
  color: var(--muted);
}
.specs strong {
  font-weight: 450;
  text-align: right;
}
.detail-demo {
  font-size: 8px;
  color: var(--muted);
  margin-top: 16px;
}
.info-dialog {
  border: 0;
  border-radius: 16px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 15px);
  border-radius: 12px;
  padding: 13px 23px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
  max-width: calc(100% - 32px);
  width: max-content;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 100;
  box-shadow: 0 5px 25px #0002;
  pointer-events: none;
}
.toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
@media (min-width: 1500px) {
  .container,
  .header-inner {
    max-width: 1250px;
  }
  .hero {
    height: 430px;
  }
  .hero-content {
    padding: 47px 50px;
  }
  .hero h1 {
    font-size: 54px;
  }
  .hero p {
    font-size: 13px;
  }
  .product-visual {
    height: 246px;
  }
  .category-image {
    height: 104px;
  }
}
@media (max-width: 1050px) {
  .container,
  .header-inner {
    width: calc(100% - 56px);
  }
  .brand > span {
    display: none;
  }
  .desktop-nav {
    gap: 24px;
    padding: 0;
  }
  .header-actions {
    gap: 14px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero-content {
    padding: 38px 32px;
  }
  .hero {
    height: 370px;
  }
  .hero .eyebrow {
    font-size: 7px;
  }
  .hero p {
    font-size: 11px;
  }
  .category-grid {
    gap: 9px;
  }
  .category-card {
    padding: 8px 8px 12px;
  }
  .category-card > span {
    font-size: 10px;
  }
  .category-image {
    height: 77px;
  }
  .product-grid {
    gap: 13px;
  }
  .product-visual {
    height: 190px;
  }
  .product-info {
    padding: 13px;
  }
  .product-name {
    font-size: 12px;
  }
  .product-price {
    font-size: 16px;
  }
  .selection-banner {
    padding: 26px;
    gap: 20px;
  }
  .selection-symbol {
    display: none;
  }
  .selection-banner h2 {
    font-size: 21px;
  }
  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 23px;
  }
  .order-summary {
    padding: 22px;
  }
  .summary-total strong {
    font-size: 18px;
  }
  .checkout-form {
    padding: 22px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .cart-item {
    gap: 14px;
    padding: 12px;
  }
  .cart-item-image {
    width: 80px;
    height: 80px;
  }
  .profile-links {
    gap: 9px;
  }
  .profile-links button {
    padding: 16px 12px;
    gap: 8px;
  }
}
@media (max-width: 760px) {
  .container,
  .header-inner {
    width: calc(100% - 32px);
  }
  .announcement {
    height: 28px;
    font-size: 8px;
    letter-spacing: 0.035em;
    gap: 15px;
  }
  .announcement-spark {
    font-size: 11px;
  }
  .header-inner {
    height: 74px;
    gap: 15px;
  }
  .brand img {
    width: 80px;
    height: 38px;
  }
  .brand > span {
    display: block;
    font-size: 6px;
    width: 76px;
    padding-left: 12px;
    border-left-color: #dedbd3;
    letter-spacing: 0.15em;
  }
  .brand {
    gap: 12px;
  }
  .desktop-nav,
  .profile-button,
  .cart-label {
    display: none;
  }
  .header-actions {
    gap: 12px;
  }
  .header-cart {
    gap: 7px;
    padding: 0;
  }
  .header-cart > .icon {
    width: 20px;
    height: 20px;
  }
  .cart-count {
    width: 19px;
    height: 19px;
    font-size: 9px;
  }
  .icon-button {
    height: 30px;
    width: 30px;
  }
  .icon-button .icon {
    width: 21px;
    height: 21px;
  }
  .header-favorites {
    width: 25px;
  }
  .search-row {
    margin-top: 15px;
    margin-bottom: 17px;
    gap: 12px;
  }
  .search-wrap {
    height: 44px;
    padding: 0 13px;
    border-radius: 11px;
    gap: 10px;
  }
  .search-wrap input {
    font-size: 12px;
  }
  .search-wrap kbd,
  .help-link {
    display: none;
  }
  .hero {
    height: 352px;
    border-radius: 15px;
  }
  .hero-content {
    padding: 28px 24px;
    width: 85%;
  }
  .hero .eyebrow {
    font-size: 6px;
    margin-bottom: 18px;
    letter-spacing: 0.13em;
  }
  .hero h1 {
    font-size: 37px;
    line-height: 1.17;
    letter-spacing: -0.06em;
    margin-bottom: 15px;
  }
  .hero p {
    font-size: 10px;
    line-height: 1.8;
    margin-bottom: 22px;
  }
  .hero:after {
    background: linear-gradient(
      90deg,
      #eeebe4 0%,
      #eeebe4 25%,
      #eeebe4ee 44%,
      #eeebe4a6 60%,
      #eeebe400 100%
    );
  }
  .hero-image {
    left: 10%;
  }
  .hero-image img {
    object-position: 78% center;
  }
  .hero-content .button {
    padding: 0 16px;
    min-height: 42px;
    font-size: 9px;
    gap: 17px;
  }
  .hero-controls {
    bottom: 17px;
    right: 18px;
    gap: 11px;
  }
  .slide-index {
    font-size: 8px;
  }
  .hero-next {
    height: 28px;
    width: 28px;
  }
  .slide-dots {
    gap: 5px;
  }
  .slide-dots button {
    width: 5px;
    height: 5px;
  }
  .slide-dots button.active {
    width: 16px;
  }
  .device-slide .hero-image {
    left: 45%;
    opacity: 0.62;
  }
  .device-slide .hero-image img {
    width: 140%;
    max-width: none;
    height: 82%;
    object-position: center;
  }
  .device-slide:after {
    background: linear-gradient(
      90deg,
      #eeebe4 0%,
      #eeebe4 23%,
      #eeebe470 55%,
      #eeebe400 100%
    );
  }
  .audio-slide .hero-image img {
    width: 160%;
    height: 87%;
  }
  .benefits {
    padding: 17px 0;
    gap: 13px;
    justify-content: space-between;
  }
  .benefits > div {
    gap: 6px;
    font-size: 7px;
    line-height: 1.6;
    flex: 1;
  }
  .benefits > div:nth-child(2) {
    justify-content: center;
  }
  .benefits > div:last-child {
    justify-content: flex-end;
  }
  .benefits .icon {
    width: 16px;
    height: 16px;
  }
  .benefits span {
    max-width: 95px;
  }
  .section {
    margin-top: 29px;
  }
  .section-title {
    gap: 10px;
    margin-bottom: 16px;
    align-items: flex-end;
  }
  .section-title .eyebrow {
    font-size: 6px;
    margin-bottom: 6px;
    letter-spacing: 0.12em;
  }
  .section-title h2 {
    font-size: 20px;
    line-height: 1.35;
  }
  .text-button {
    font-size: 8px;
    gap: 6px;
  }
  .text-button .icon {
    width: 13px;
    height: 13px;
  }
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }
  .category-card {
    padding: 7px 8px 11px;
    border-radius: 11px;
  }
  .category-image {
    height: 76px;
  }
  .category-card > span {
    font-size: 10px;
  }
  .category-card > .icon {
    width: 9px;
    height: 9px;
    right: 9px;
    top: 10px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .product-card {
    border-radius: 12px;
  }
  .product-visual {
    height: 182px;
    padding: 27px 8px 2px;
  }
  .product-badge {
    top: 10px;
    left: 10px;
    padding: 4px 6px;
    font-size: 7px;
    border-radius: 4px;
  }
  .favorite-button {
    width: 29px;
    height: 29px;
    top: 6px;
    right: 7px;
  }
  .favorite-button .icon {
    width: 17px;
    height: 17px;
  }
  .product-info {
    padding: 12px 12px 13px;
  }
  .product-meta {
    font-size: 7px;
    margin-bottom: 8px;
  }
  .color-dots {
    gap: 3px;
  }
  .color-dots i {
    width: 6px;
    height: 6px;
  }
  .product-name {
    font-size: 11px;
    line-height: 1.55;
  }
  .product-option {
    font-size: 7px;
    margin-top: 4px;
    min-height: 22px;
  }
  .product-bottom {
    margin-top: 10px;
    gap: 6px;
  }
  .product-price {
    font-size: 15px;
  }
  .old-price {
    font-size: 8px;
    margin-bottom: 4px;
  }
  .add-button {
    width: 29px;
    height: 29px;
    border-radius: 8px;
  }
  .add-button .icon {
    width: 15px;
    height: 15px;
  }
  .selection-banner {
    margin-top: 28px;
    padding: 24px 22px;
    gap: 20px;
    display: block;
    border-radius: 13px;
  }
  .selection-banner .eyebrow {
    font-size: 6px;
  }
  .selection-banner h2 {
    font-size: 19px;
    line-height: 1.5;
  }
  .selection-banner p {
    font-size: 9px;
    line-height: 1.8;
    max-width: 255px;
    margin-top: 8px;
  }
  .selection-banner .button {
    margin-top: 18px;
    font-size: 9px;
    min-height: 40px;
    padding: 0 16px;
    gap: 25px;
  }
  .selection-banner:after {
    right: -75px;
    top: -20px;
    width: 220px;
    height: 220px;
  }
  .new-section {
    margin-top: 29px;
    margin-bottom: 32px;
  }
  .new-section .section-title {
    display: block;
  }
  .new-section .section-title .text-button {
    margin-top: 10px;
  }
  .footer {
    padding-top: 22px;
    padding-bottom: calc(99px + env(safe-area-inset-bottom, 0px));
    gap: 6px 13px;
    grid-template-columns: 50px 1fr;
    align-items: center;
  }
  .footer img {
    width: 48px;
  }
  .footer p {
    font-size: 8px;
    line-height: 1.6;
  }
  .footer > span {
    font-size: 7px;
    line-height: 1.7;
  }
  .footer > button {
    grid-column: 2;
    grid-row: 3;
    margin-top: 8px;
    text-align: left;
    padding: 0;
    font-size: 8px;
  }
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid var(--line);
    background: #ffffffed;
    backdrop-filter: blur(18px);
    padding: 9px 5px calc(9px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -3px 18px #00000003;
  }
  .bottom-nav > button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    min-width: 54px;
    color: #a09c92;
    padding: 4px;
    font-size: 8px;
    font-weight: 450;
  }
  .bottom-nav .icon {
    width: 21px;
    height: 21px;
  }
  .bottom-nav > button.active {
    color: var(--ink);
    font-weight: 600;
  }
  .bottom-nav > button.active:before {
    content: "";
    position: absolute;
    width: 34px;
    height: 28px;
    background: #dad4c24d;
    border-radius: 9px;
    top: 0;
    z-index: -1;
  }
  .nav-count {
    position: absolute;
    top: 0;
    right: 8px;
    background: var(--ink);
    color: white;
    border: 1px solid white;
    height: 14px;
    min-width: 14px;
    padding: 0 3px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
  }
  .toast {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    font-size: 10px;
    padding: 12px 17px;
  }
  .page-heading {
    padding: 13px 0 25px;
  }
  .page-heading .eyebrow {
    font-size: 6px;
    margin-bottom: 11px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .page-heading p {
    font-size: 10px;
    margin-top: 10px;
    line-height: 1.8;
  }
  .category-tabs {
    gap: 7px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    margin: 0 -16px 17px;
    padding-left: 16px;
    padding-right: 16px;
    scrollbar-width: none;
  }
  .category-tabs::-webkit-scrollbar {
    display: none;
  }
  .category-tabs > button {
    font-size: 9px;
    padding: 10px 12px;
    flex-shrink: 0;
    border-radius: 8px;
    gap: 6px;
  }
  .category-tabs .icon {
    width: 14px;
    height: 14px;
  }
  .catalog-toolbar {
    font-size: 9px;
    gap: 10px;
    padding-bottom: 15px;
    margin-bottom: 17px;
  }
  .sort-select {
    gap: 5px;
  }
  .sort-select .icon {
    height: 13px;
    width: 13px;
  }
  .sort-select select {
    font-size: 8px;
    max-width: 130px;
  }
  .sale-filter {
    gap: 3px;
    font-size: 8px;
  }
  .sale-filter input {
    width: 12px;
    height: 12px;
  }
  .catalog-grid {
    margin-bottom: 30px;
  }
  .empty-state {
    padding: 47px 8px 65px;
  }
  .empty-state h2 {
    font-size: 22px;
  }
  .empty-state p {
    font-size: 11px;
  }
  .empty-state .button {
    font-size: 10px;
  }
  .empty-icon {
    height: 63px;
    width: 63px;
    border-radius: 19px;
  }
  .empty-icon .icon {
    height: 26px;
    width: 26px;
  }
  .cart-layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 35px;
  }
  .cart-items {
    width: 100%;
    gap: 10px;
  }
  .cart-item {
    gap: 11px;
    padding: 11px;
  }
  .cart-item-image {
    width: 75px;
    height: 85px;
    border-radius: 8px;
  }
  .cart-item-info .product-name {
    font-size: 11px;
  }
  .cart-item-info p {
    font-size: 8px;
    margin: 4px 0 13px;
  }
  .cart-item-info strong {
    font-size: 14px;
  }
  .cart-item-controls {
    gap: 20px;
  }
  .quantity-control {
    height: 27px;
    gap: 4px;
    font-size: 10px;
  }
  .quantity-control button {
    width: 23px;
    height: 27px;
  }
  .quantity-control .icon {
    width: 10px !important;
    height: 10px !important;
  }
  .remove-item .icon {
    height: 15px;
    width: 15px;
  }
  .order-summary {
    width: 100%;
    position: static;
    padding: 24px;
  }
  .order-summary h2 {
    font-size: 23px;
  }
  .summary-row {
    font-size: 11px;
  }
  .summary-total {
    font-size: 11px;
  }
  .summary-total strong {
    font-size: 23px;
  }
  .summary-note {
    font-size: 10px;
  }
  .checkout-form {
    width: 100%;
    padding: 22px 18px;
    gap: 19px;
  }
  .checkout-form h2 {
    font-size: 19px;
  }
  .checkout-form label {
    font-size: 11px;
  }
  .form-grid {
    gap: 17px;
  }
  .checkout-form input:not([type="checkbox"]):not([type="radio"]),
  .checkout-form textarea {
    font-size: 16px !important;
  }
  .delivery-options {
    gap: 10px;
  }
  .delivery-options label > span {
    padding: 12px;
    height: 112px;
    gap: 8px;
  }
  .delivery-options input {
    right: 8px;
    top: 8px;
  }
  .delivery-options strong {
    font-size: 11px;
  }
  .delivery-options small {
    font-size: 8px;
  }
  .consent-label span {
    font-size: 10px;
  }
  .back-link {
    font-size: 9px;
  }
  .form-footnote {
    font-size: 9px;
  }
  .success-state {
    padding: 26px 2px;
    margin-bottom: 30px;
  }
  .success-state h1 {
    font-size: 27px;
  }
  .success-state > p {
    font-size: 11px;
  }
  .order-receipt {
    padding: 21px 16px;
    font-size: 10px;
    gap: 19px;
  }
  .success-state .eyebrow {
    font-size: 7px;
  }
  .profile-card {
    padding: 21px 18px;
    gap: 15px;
  }
  .avatar {
    height: 49px;
    width: 49px;
    font-size: 19px;
  }
  .profile-card h2 {
    font-size: 20px;
    margin-bottom: 5px;
  }
  .profile-card p {
    font-size: 9px;
  }
  .profile-brand {
    display: none;
  }
  .profile-links {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .profile-links button {
    padding: 17px 15px;
    font-size: 11px;
  }
  .profile-empty {
    margin-bottom: 32px;
    padding-bottom: 40px;
  }
  .profile-empty p {
    font-size: 10px;
  }
  .order-history article {
    padding: 17px 13px;
    font-size: 10px;
  }
  .order-history article span {
    font-size: 8px;
    line-height: 1.7;
  }
  .local-history-note {
    font-size: 9px;
  }
  .support-hero {
    padding: 29px 23px;
  }
  .support-hero h2 {
    font-size: 23px;
    line-height: 1.45;
  }
  .support-hero > img {
    right: 20px;
    top: 33px;
    width: 105px;
    opacity: 0.08;
  }
  .support-hero p {
    font-size: 10px;
    line-height: 1.9;
    margin-top: 18px;
  }
  .support-hero .button {
    font-size: 10px;
    gap: 10px;
    padding: 0 15px;
  }
  .support-username {
    display: block;
    margin: 13px 0 0;
    font-size: 9px;
  }
  .faq {
    margin: 30px 0;
  }
  .faq h2 {
    font-size: 21px;
  }
  .faq summary {
    font-size: 11px;
    padding: 20px 0;
    gap: 12px;
  }
  .faq details p {
    font-size: 10px;
  }
  .product-dialog {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 32px - var(--tg-content-top));
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .product-dialog[open] {
    grid-template-columns: 1fr;
  }
  .dialog-close {
    position: sticky;
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    top: 12px;
    right: 12px;
    margin: 12px 12px -44px 0;
    z-index: 4;
    width: 32px;
    height: 32px;
  }
  .product-detail-image {
    min-height: 0;
    height: 250px;
    padding: 23px 28px;
    grid-column: 1;
    grid-row: 1;
  }
  .product-detail-image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
  }
  .product-detail-image .product-badge {
    top: 18px;
    left: 19px;
    font-size: 8px;
  }
  .product-detail-image > span:last-child {
    bottom: 11px;
    font-size: 7px;
  }
  .product-detail-info {
    padding: 23px 23px 28px;
  }
  .product-detail-info h2 {
    font-size: 25px;
  }
  .product-detail-info .eyebrow {
    font-size: 7px;
    margin-bottom: 10px;
  }
  .detail-subtitle {
    font-size: 11px;
  }
  .detail-select {
    font-size: 10px;
    margin-top: 21px;
  }
  .detail-select strong {
    font-size: 10px;
  }
  .detail-price {
    margin-top: 24px;
  }
  .detail-price strong {
    font-size: 26px;
  }
  .detail-actions > .button {
    font-size: 10px;
    min-height: 46px;
  }
  .detail-favorite {
    height: 46px;
    width: 46px;
  }
  .detail-description {
    font-size: 11px;
  }
  .specs > div {
    font-size: 10px;
  }
  .detail-demo {
    font-size: 8px;
  }
  .product-detail-info .storage-options button {
    font-size: 11px;
  }
  .detail-favorite {
    top: auto;
    right: auto;
  }
}
@media (max-width: 370px) {
  .brand > span {
    display: none;
  }
  .hero h1 {
    font-size: 33px;
  }
  .hero-content {
    padding-left: 21px;
    padding-top: 30px;
  }
  .hero p {
    font-size: 9px;
  }
  .hero {
    height: 335px;
  }
  .section-title h2 {
    font-size: 18px;
  }
  .section-title .text-button {
    font-size: 7px;
    gap: 4px;
  }
  .product-visual {
    height: 160px;
  }
  .product-info {
    padding: 10px;
  }
  .product-name {
    font-size: 10px;
  }
  .product-price {
    font-size: 13px;
  }
  .product-option {
    font-size: 6.5px;
  }
  .category-image {
    height: 68px;
  }
  .category-card > span {
    font-size: 9px;
  }
  .benefits {
    gap: 8px;
  }
  .benefits > div {
    font-size: 6px;
    gap: 5px;
  }
  .catalog-toolbar {
    gap: 7px;
  }
  .sort-select select {
    max-width: 110px;
  }
  .sale-filter {
    font-size: 7px;
  }
  .selection-banner h2 {
    font-size: 17px;
  }
  .cart-item-image {
    width: 63px;
    height: 76px;
  }
  .quantity-control {
    gap: 2px;
  }
  .cart-item-controls {
    gap: 17px;
  }
  .delivery-options small {
    font-size: 7px;
  }
  .bottom-nav > button {
    min-width: 48px;
    font-size: 7px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
}
@media (max-width: 760px) {
  #main[data-view="home"] {
    display: flex;
    flex-direction: column;
  }
  #main[data-view="home"] > .hero {
    order: 0;
    flex-shrink: 0;
  }
  #main[data-view="home"] > .benefits {
    order: 1;
  }
  #main[data-view="home"] > .featured-section {
    order: 2;
  }
  #main[data-view="home"] > .category-section {
    order: 3;
  }
  #main[data-view="home"] > .selection-banner {
    order: 4;
  }
  #main[data-view="home"] > .new-section {
    order: 5;
  }
  .hero {
    height: 260px;
  }
  .hero-content {
    width: 100%;
    padding: 27px 24px;
  }
  .hero h1 {
    font-size: 34px;
    line-height: 1.18;
    margin-bottom: 23px;
  }
  .hero p {
    display: none;
  }
  .hero .eyebrow {
    margin-bottom: 16px;
  }
  .hero-content .button {
    min-height: 42px;
    font-size: 10px;
  }
  .category-grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 5px;
    margin-right: -16px;
    padding-right: 16px;
    scrollbar-width: none;
  }
  .category-grid::-webkit-scrollbar {
    display: none;
  }
  .category-card {
    min-width: 110px;
    flex: 0 0 110px;
  }
  .category-image {
    height: 79px;
  }
  .category-card > span {
    font-size: 11px;
  }
  .product-name {
    font-size: 13px;
    min-height: 40px;
  }
  .product-meta {
    font-size: 8px;
  }
  .product-option {
    font-size: 9px;
    min-height: 27px;
  }
  .product-price {
    font-size: 17px;
  }
  .old-price {
    font-size: 9px;
  }
  .product-badge {
    font-size: 8px;
  }
  .add-button {
    width: 33px;
    height: 33px;
  }
  .product-info {
    padding: 12px;
  }
  .product-visual {
    height: 173px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .support-hero p,
  .faq details p {
    font-size: 12px;
  }
  .faq summary {
    font-size: 12px;
  }
  .cart-item-info .product-name {
    min-height: 0;
    font-size: 12px;
  }
  .cart-item-info p {
    font-size: 9px;
  }
  .profile-card p {
    font-size: 11px;
  }
  .profile-empty p {
    font-size: 12px;
  }
}
@media (max-width: 370px) {
  .hero h1 {
    font-size: 30px;
  }
  .hero-content {
    padding-left: 21px;
  }
  .hero {
    height: 246px;
  }
  .product-name {
    font-size: 11px;
    min-height: 35px;
  }
  .product-option {
    font-size: 8px;
  }
  .product-price {
    font-size: 15px;
  }
  .product-visual {
    height: 153px;
  }
  .product-badge {
    font-size: 7px;
  }
  .product-info {
    padding: 10px;
  }
  .cart-item-info .product-name {
    min-height: 0;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
