@import "https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght,wdth@8..144,300..800,75..125&display=swap";

/* styles.css */
@font-face {
  font-family: "Google Sans Flex";
  src: url("./assets/GoogleSansFlex-VariableFont_GRAD,ROND,opsz,slnt,wdth,wght.ttf") format("truetype");
  font-display: swap;
}
:root {
  --font-display:
    "Google Sans Flex",
    "Roboto Flex",
    system-ui,
    sans-serif;
  --font-body:
    "Roboto Flex",
    system-ui,
    sans-serif;
  --radius-s: 14px;
  --radius-m: 20px;
  --radius-l: 28px;
  --radius-xl: 36px;
}
* {
  box-sizing: border-box;
}
html,
body,
#root {
  height: 100%;
}
body {
  margin: 0;
  background: #0b0d14;
  color: #eef0f7;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.app-shell {
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
}
.container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--outline);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-m);
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--tertiary));
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 26%, transparent);
}
.brand-copy {
  display: grid;
  gap: 2px;
}
.brand-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}
.search {
  flex: 1 1 360px;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  border-radius: 9999px;
  border: 1px solid var(--outline);
  background: var(--surface-2);
  padding: 0 16px;
}
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fg);
  width: 100%;
  min-width: 0;
}
.search input::placeholder {
  color: var(--muted);
}
.nav-buttons,
.utility-buttons,
.hero-actions,
.card-actions,
.detail-actions,
.detail-stats,
.detail-tags,
.faq-list,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn,
.icon-btn,
.chip,
.drawer-qty,
.mini-btn {
  border: 1px solid var(--outline);
  background: var(--surface-2);
  color: var(--fg);
  border-radius: 9999px;
  height: 48px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}
.btn:hover,
.icon-btn:hover,
.chip:hover,
.drawer-qty:hover,
.mini-btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--outline));
  background: var(--primary);
  color: var(--primary-contrast);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 22%, transparent);
}
.btn-secondary {
  background: var(--surface-3);
}
.icon-btn {
  width: 48px;
  padding: 0;
  flex: 0 0 auto;
}
.btn-small {
  height: 40px;
  padding: 0 14px;
  font-size: 13px;
}
.chip.active {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  border-color: color-mix(in srgb, var(--secondary-container) 80%, var(--outline));
}
.hero {
  padding: 24px 0 10px;
}
.hero-card {
  border: 1px solid var(--outline);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface) 92%, transparent),
      var(--surface));
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  padding: 28px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 9999px;
  border: 1px solid var(--outline);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 700;
  max-width: 12ch;
}
.hero-copy {
  margin: 16px 0 0;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.75;
  color: var(--muted);
  max-width: 62ch;
}
.hero-panel {
  border: 1px solid var(--outline);
  border-radius: var(--radius-l);
  background: var(--surface-2);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 390px;
}
.hero-preview {
  min-height: 250px;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--primary) 26%, transparent),
      color-mix(in srgb, var(--tertiary) 18%, transparent)),
    var(--surface-3);
}
.hero-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-info {
  padding: 18px;
  display: grid;
  gap: 10px;
}
.section {
  padding: 26px 0 10px;
}
.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.section-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}
.section-title {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 1;
}
.muted {
  color: var(--muted);
}
.grid {
  display: grid;
  gap: 18px;
}
.grid-8 {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.grid-2 {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}
.product-card {
  border: 1px solid var(--outline);
  border-radius: var(--radius-l);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  display: grid;
}
.product-card-main {
  padding: 14px 14px 12px;
  display: grid;
  gap: 12px;
}
.product-preview {
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--radius-l) - 8px);
  overflow: hidden;
  background: var(--surface-3);
  border: 1px solid var(--outline);
  position: relative;
}
.product-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-pill {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  border: 1px solid var(--outline);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.product-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-transform: uppercase;
}
.product-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  min-height: 44px;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.product-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.product-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 13px;
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 9999px;
  border: 1px solid var(--outline);
  background: var(--surface-2);
  color: var(--fg);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.card-actions {
  padding: 0 14px 14px;
}
.card-actions .btn {
  flex: 1 1 0;
}
.loading-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.skeleton {
  border: 1px solid var(--outline);
  border-radius: var(--radius-l);
  background: var(--surface);
  overflow: hidden;
  min-height: 360px;
}
.skeleton-preview,
.skeleton-line,
.skeleton-chip,
.skeleton-pill {
  position: relative;
  overflow: hidden;
  background: var(--surface-3);
}
.skeleton-preview {
  aspect-ratio: 16/10;
  margin: 14px 14px 12px;
  border-radius: calc(var(--radius-l) - 8px);
}
.skeleton-line {
  height: 16px;
  border-radius: 9999px;
}
.skeleton-chip {
  height: 28px;
  border-radius: 9999px;
}
.skeleton-pill {
  height: 44px;
  border-radius: 9999px;
}
.skeleton-shimmer::after,
.skeleton-preview::after,
.skeleton-line::after,
.skeleton-chip::after,
.skeleton-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.12),
      transparent);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}
.offer-banner {
  border: 1px solid var(--outline);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--primary) 22%, var(--surface)),
      color-mix(in srgb, var(--secondary) 16%, var(--surface)));
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}
.offer-banner h3 {
  font-family: var(--font-display);
  margin: 10px auto 12px;
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.offer-banner p {
  max-width: 64ch;
  margin: 0 auto 20px;
  color: var(--muted);
  line-height: 1.7;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
  align-items: start;
}
.detail-hero {
  border: 1px solid var(--outline);
  border-radius: var(--radius-xl);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}
.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.gallery-thumb {
  width: 84px;
  height: 56px;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--outline);
  background: var(--surface-2);
  cursor: pointer;
  padding: 0;
}
.gallery-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-panel {
  position: sticky;
  top: 94px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: 20px;
}
.detail-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}
.detail-price {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.2vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.06em;
}
.detail-copy {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.feature-item,
.faq-item,
.spec-item {
  border: 1px solid var(--outline);
  border-radius: var(--radius-m);
  background: var(--surface-2);
  padding: 12px 14px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
}
.faq-item {
  margin-bottom: 10px;
}
.faq-item h4 {
  margin: 0 0 6px;
  font-size: 14px;
}
.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.spec-item {
  min-height: 92px;
  display: grid;
  align-content: start;
  gap: 8px;
}
.spec-key {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.spec-val {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .44);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 120;
}
.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  right: 16px;
  top: 16px;
  bottom: 16px;
  width: min(420px, calc(100vw - 32px));
  border-radius: var(--radius-xl);
  border: 1px solid var(--outline);
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
  transform: translateX(calc(100% + 24px));
  transition: transform 220ms ease;
  z-index: 130;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.drawer.open {
  transform: translateX(0);
}
.drawer-header,
.drawer-footer {
  padding: 18px 20px;
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--outline);
}
.drawer-items {
  padding: 16px 20px;
  overflow: auto;
  display: grid;
  gap: 12px;
}
.drawer-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--outline);
  border-radius: var(--radius-m);
  background: var(--surface-2);
  padding: 10px;
}
.drawer-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--outline);
}
.drawer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.drawer-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.drawer-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.drawer-qty {
  height: 34px;
  padding: 0 10px;
}
.drawer-summary {
  padding: 18px 20px;
  border-top: 1px solid var(--outline);
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
}
.drawer-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.drawer-total .label {
  color: var(--muted);
  font-size: 13px;
}
.drawer-total .value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.drawer-cta {
  width: 100%;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 6px;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
}
@media (max-width: 1080px) {
  .hero-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-panel {
    position: static;
  }
}
@media (max-width: 820px) {
  .topbar-inner {
    flex-wrap: wrap;
  }
  .nav-wrap {
    width: 100%;
    order: 3;
    justify-content: stretch;
  }
  .search {
    flex-basis: 100%;
  }
  .container {
    width: min(100% - 24px, 1280px);
  }
  .hero-grid {
    padding: 20px;
  }
  .hero-title {
    max-width: 9ch;
  }
  .spec-grid {
    grid-template-columns: 1fr;
  }
  .drawer {
    right: 8px;
    top: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
  }
}
:root {
  --font-display:
    "Google Sans Flex",
    "Roboto Flex",
    sans-serif;
  --font-body: "Roboto Flex", sans-serif;
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
  --radius-xl: 36px;
}
html,
body,
#root {
  min-height: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
}
body,
button,
input,
textarea,
select {
  font-family: var(--font-body);
}
img {
  display: block;
  max-width: 100%;
}
.container {
  width: min(1200px, calc(100% - 80px));
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.topbar-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0 22px;
}
.brand,
.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--outline);
  background: var(--surface);
  flex: none;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.brand-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-wrap {
  min-width: 0;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  border-radius: 9999px;
  border: 1px solid var(--outline);
  background: var(--surface-2);
  padding: 0 14px;
}
.search-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  flex: none;
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fg);
  font-size: 14px;
}
.nav-buttons,
.utility-buttons,
.hero-actions,
.preview-actions,
.hero-panel-actions,
.card-actions,
.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav-buttons,
.utility-buttons {
  justify-content: flex-end;
}
.mode-fab {
  position: static;
  justify-self: end;
  width: 48px;
  min-width: 48px;
  padding: 0;
}
.mode-fab svg {
  width: 18px;
  height: 18px;
}
.btn {
  border-radius: 9999px;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}
.btn:hover,
.chip:hover,
.drawer-qty:hover,
.preview-action:hover,
.gallery-thumb:hover,
.preview-thumb:hover {
  transform: none;
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--primary) 90%, white 10%);
}
.btn-secondary:hover {
  background: color-mix(in srgb, var(--surface-3) 90%, var(--primary) 10%);
}
.section {
  padding: 12px 0 8px;
}
.hero {
  padding: 12px 0 8px;
}
.hero-card,
.product-card,
.offer-banner,
.detail-gallery,
.detail-panel,
.preview-dialog,
.drawer,
.faq-item,
.spec-item {
  border: 1px solid var(--outline);
  background: var(--surface);
  box-shadow: var(--shadow-medium);
}
.hero-card {
  border-radius: 32px;
  padding: 22px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}
.hero-copy-stack {
  display: grid;
  gap: 16px;
}
.hero-kicker,
.section-kicker {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--primary);
}
.hero-title,
.section-title,
.detail-title,
.hero-feature-title,
.product-title,
.drawer-name,
.preview-dialog-title,
.empty-title {
  font-family: var(--font-display);
  text-transform: uppercase;
}
.hero-title {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: .92;
  letter-spacing: -0.06em;
  font-weight: 700;
}
.hero-copy,
.section-copy,
.offer-banner p,
.detail-copy,
.preview-dialog-subtitle,
.footer-brand p {
  color: var(--muted);
  line-height: 1.75;
}
.hero-copy {
  max-width: 56ch;
  font-size: 18px;
  margin: 0;
}
.section-copy {
  max-width: 64ch;
  font-size: 16px;
  margin: 10px 0 16px;
}
.section-copy-inline {
  margin-top: -4px;
}
.hero-bullets,
.detail-chip-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stat-card {
  min-height: 92px;
  padding: 16px;
  border-radius: 22px;
  background: var(--surface-2);
  border: 1px solid var(--outline);
  display: grid;
  gap: 8px;
}
.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hero-panel {
  border-radius: 30px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}
.hero-preview {
  position: relative;
  min-height: 280px;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--primary) 18%, var(--surface)),
      color-mix(in srgb, var(--secondary) 16%, var(--surface)));
}
.hero-preview img,
.product-preview img,
.preview-stage img,
.detail-hero img,
.drawer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-stage iframe,
.widget-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--surface);
}
.preview-chip {
  position: absolute;
  top: 14px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 9999px;
  border: 1px solid var(--outline);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}
.preview-chip-left {
  left: 14px;
}
.preview-chip-right {
  right: 14px;
}
.hero-panel-copy {
  padding: 18px;
  display: grid;
  gap: 12px;
  background: var(--surface);
}
.hero-feature-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 12px 0 14px;
  flex-wrap: wrap;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip,
.results-pill,
.tag,
.drawer-qty,
.preview-action,
.preview-thumb,
.gallery-thumb {
  border: 1px solid var(--outline);
}
.chip {
  height: 42px;
  padding: 0 16px;
  border-radius: 9999px;
  background: var(--surface-2);
  color: var(--fg);
}
.chip.active {
  background: var(--primary);
  color: var(--primary-contrast);
  border-color: transparent;
}
.results-pill {
  height: 42px;
  padding: 0 14px;
  border-radius: 9999px;
  background: var(--surface-2);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  font-size: 13px;
}
.grid {
  display: grid;
  gap: 16px;
}
.grid-8 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-widgets {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-faq {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.product-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
.product-card:hover {
  border-color: color-mix(in srgb, var(--primary) 28%, var(--outline));
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}
.product-card,
.offer-banner,
.detail-gallery,
.detail-panel,
.preview-dialog,
.drawer,
.faq-item,
.spec-item,
.empty-state {
  border: 1px solid var(--outline);
}
.product-preview,
.preview-stage,
.detail-hero {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--outline);
  background: var(--surface-2);
}
.preview-action {
  position: absolute;
  bottom: 12px;
  right: 12px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--fg);
  font-size: 12px;
}
.card-body {
  display: grid;
  gap: 10px;
}
.card-headline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 9999px;
  background: var(--surface-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.tag-hot {
  background: color-mix(in srgb, var(--primary) 22%, var(--surface));
  border-color: color-mix(in srgb, var(--primary) 30%, var(--outline));
}
.tag-tone {
  background: color-mix(in srgb, var(--secondary) 20%, var(--surface));
}
.product-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.06;
}
.product-desc {
  margin: 0;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.rating-row strong {
  color: var(--fg);
  font-family: var(--font-display);
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.product-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.product-old-price {
  color: var(--muted);
  font-size: 13px;
  text-decoration: line-through;
}
.card-actions {
  display: flex;
  gap: 10px;
}
.card-actions .btn {
  flex: 1 1 0;
}
.offer-banner {
  border-radius: 32px;
  padding: 28px;
  text-align: center;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--primary) 20%, var(--surface)),
      color-mix(in srgb, var(--secondary) 16%, var(--surface)));
}
.offer-banner h3 {
  margin: 10px auto 12px;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.offer-banner p {
  max-width: 64ch;
  margin: 0 auto 20px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
}
.detail-gallery,
.detail-panel {
  padding: 20px;
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow-medium);
}
.detail-hero img {
  cursor: pointer;
}
.preview-action-floating {
  position: absolute;
  top: 14px;
  right: 14px;
}
.gallery-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.gallery-thumb {
  height: 72px;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-2);
}
.gallery-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}
.detail-title {
  margin: 12px 0 0;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: .98;
  letter-spacing: -0.06em;
}
.detail-copy {
  margin: 14px 0 0;
  font-size: 16px;
}
.detail-price {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}
.detail-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 24px;
  margin-top: 28px;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.spec-item,
.faq-item {
  border-radius: 24px;
  background: var(--surface);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.spec-item {
  min-height: 92px;
  display: grid;
  align-content: start;
  gap: 8px;
}
.spec-key {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.spec-val {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.faq-item h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}
.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.related-block {
  margin-top: 52px;
}
.empty-state {
  grid-column: 1 / -1;
  border-radius: 28px;
  background: var(--surface);
  padding: 32px;
  text-align: center;
}
.empty-title {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.skeleton {
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.skeleton-preview {
  aspect-ratio: 16 / 10;
  margin: 14px 14px 12px;
  border-radius: 22px;
  background: var(--surface-2);
}
.skeleton-body {
  padding: 0 14px 14px;
  display: grid;
  gap: 12px;
}
.skeleton-line {
  border-radius: 9999px;
  background: var(--surface-2);
}
.skeleton-shimmer {
  position: relative;
  overflow: hidden;
}
.skeleton-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.12),
      transparent);
  animation: shimmer 1.2s infinite;
}
.footer {
  margin-top: 72px;
  padding: 40px 0 28px;
  border-top: 1px solid var(--outline);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.footer-brand {
  display: grid;
  gap: 12px;
}
.footer-label {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
}
.footer-tags,
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social-btn {
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  border: 1px solid var(--outline);
  background: var(--surface-2);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}
.social-btn:hover {
  background: color-mix(in srgb, var(--surface-3) 90%, var(--primary) 10%);
  transform: translateY(-1px);
}
.social-btn svg {
  width: 20px;
  height: 20px;
}
.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--outline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
}
.preview-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, .56);
}
.preview-dialog {
  position: relative;
  width: min(1180px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  border-radius: 36px;
  padding: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-strong);
}
.preview-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.preview-dialog-title {
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 700;
}
.preview-dialog-subtitle {
  margin-top: 8px;
  max-width: 70ch;
}
.preview-dialog-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}
.preview-stage-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 9999px;
  border: 1px solid var(--outline);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.preview-sidebar {
  display: grid;
  gap: 14px;
}
.preview-dialog-price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}
.preview-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.preview-thumb {
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-2);
  display: grid;
  gap: 6px;
}
.preview-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}
.preview-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.preview-thumb-frame-label {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--outline);
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--primary) 16%, var(--surface-2)),
      color-mix(in srgb, var(--secondary) 12%, var(--surface-2)));
  color: var(--fg);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.preview-thumb span {
  padding: 0 8px 8px;
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  border: 0;
  background: rgba(0, 0, 0, .44);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  right: 16px;
  top: 16px;
  bottom: 16px;
  width: min(420px, calc(100vw - 32px));
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow-strong);
  transform: translateX(calc(100% + 24px));
  transition: transform 220ms ease;
  z-index: 160;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.drawer.open {
  transform: translateX(0);
}
.drawer-header,
.drawer-footer {
  padding: 18px 20px;
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--outline);
}
.drawer-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.drawer-items {
  padding: 16px 20px;
  overflow: auto;
  display: grid;
  gap: 12px;
}
.drawer-empty {
  padding: 20px;
  color: var(--muted);
  line-height: 1.7;
}
.drawer-empty-title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.drawer-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-radius: 24px;
  border: 1px solid var(--outline);
  background: var(--surface-2);
  padding: 10px;
}
.drawer-thumb {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--outline);
}
.drawer-copy {
  min-width: 0;
}
.drawer-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.drawer-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.drawer-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}
.drawer-qty-row {
  display: flex;
  gap: 8px;
}
.drawer-qty {
  height: 34px;
  padding: 0 10px;
  border-radius: 9999px;
  background: var(--surface);
  color: var(--fg);
}
.drawer-footer {
  border-top: 1px solid var(--outline);
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
}
.drawer-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.drawer-total-row strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.drawer-cta {
  width: 100%;
}
@media (max-width: 1200px) {
  .topbar-inner {
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  }
  .grid-8,
  .grid-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .hero-grid,
  .detail-layout,
  .detail-stack,
  .preview-dialog-main,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .preview-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gallery-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .topbar-inner {
    grid-template-columns: 1fr;
    padding-bottom: 22px;
  }
  .nav-wrap,
  .nav-buttons,
  .utility-buttons,
  .mode-fab {
    width: 100%;
    justify-self: stretch;
  }
  .mode-fab {
    justify-self: start;
  }
}
@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1200px);
  }
  .nav-wrap,
  .nav-buttons {
    grid-column: 1 / -1;
  }
  .nav-buttons,
  .utility-buttons {
    justify-content: flex-start;
  }
  .topbar-inner {
    grid-template-columns: 1fr;
  }
  .mode-fab {
    position: static;
    justify-self: start;
  }
  .hero-card,
  .offer-banner,
  .detail-gallery,
  .detail-panel,
  .preview-dialog,
  .drawer {
    border-radius: 24px;
  }
  .hero-title {
    max-width: 10ch;
  }
  .grid-8,
  .grid-widgets,
  .grid-faq,
  .spec-grid,
  .preview-thumbs,
  .gallery-row {
    grid-template-columns: 1fr;
  }
  .product-card {
    padding: 12px;
  }
  .drawer {
    right: 8px;
    top: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
  }
  .preview-dialog {
    width: calc(100vw - 16px);
  }
}
