:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --text: #18202f;
  --muted: #647084;
  --line: #dfe4ee;
  --accent: #137a5b;
  --accent-dark: #0e6048;
  --danger: #b42318;
  --warning: #b76e00;
  --ok-bg: #dff7eb;
  --off-bg: #eef1f6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.brand.logo-only {
  line-height: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px;
  background: #162033;
  color: #ffffff;
  border-radius: 8px;
}

.hero h1,
.page-title h1,
.panel h1,
.panel h2 {
  margin: 0;
}

.hero p {
  margin: 8px 0 0;
  color: #d8dfeb;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.stat,
.panel,
.auth-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat {
  padding: 18px;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stat strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
}

.split {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 18px;
}

.panel,
.auth-panel {
  padding: 18px;
}

.narrow,
.auth-panel {
  max-width: 560px;
  margin: 0 auto;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.page-title {
  margin-bottom: 18px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td small,
.muted {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.form {
  display: grid;
  gap: 14px;
}

.form-fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.form-fieldset legend {
  padding: 0 6px;
  color: var(--text);
  font-weight: 800;
}

.category-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 14px;
}

.category-check-grid .check {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
}

.uploaded-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.uploaded-preview-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  font: inherit;
  color: var(--text);
}

textarea {
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.check {
  display: flex !important;
  align-items: center;
  grid-template-columns: none !important;
}

.check input {
  width: 18px;
  min-height: 18px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.button.primary,
button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.button.primary:hover,
button.primary:hover {
  background: var(--accent-dark);
}

.button-row,
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.inline-form {
  display: inline;
  margin: 0;
}

.danger-link {
  color: var(--danger);
}

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: 700;
}

.alert.success {
  background: var(--ok-bg);
  color: #075337;
}

.alert.danger {
  background: #fde8e7;
  color: var(--danger);
}

.badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge.ok {
  background: var(--ok-bg);
  color: #075337;
}

.badge.off {
  background: var(--off-bg);
  color: var(--muted);
}

.alert-item {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.alert-item span {
  color: var(--muted);
  font-size: 14px;
}

.storefront-body {
  background: #f4f6f8;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}

.public-header-inner,
.storefront-hero-inner,
.storefront-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.public-header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-search {
  flex: 1;
  max-width: 620px;
  display: grid;
  grid-template-columns: 1fr auto;
}

.header-search input {
  border-radius: 6px 0 0 6px;
}

.header-search button {
  border-color: #172033;
  border-radius: 0 6px 6px 0;
  background: #172033;
  color: #ffffff;
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
}

.public-brand.logo-only {
  line-height: 0;
}

.brand-logo {
  width: 260px;
  height: 61px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.brand-logo.small {
  width: 286px;
  height: 67px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #ffb000;
  color: #172033;
  font-size: 18px;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.public-nav > a:not(.button) {
  color: var(--muted);
  font-weight: 700;
}

.button.compact {
  min-height: 36px;
  padding: 7px 12px;
}

.storefront-hero {
  background: #172033;
  color: #ffffff;
  border-bottom: 5px solid #ffb000;
}

.storefront-hero-inner {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
}

.compact-hero .storefront-hero-inner {
  min-height: 300px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #ffca52;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow.dark {
  color: var(--accent);
}

.storefront-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 18px 0 0;
  color: #ccd4e1;
  font-size: 18px;
  line-height: 1.6;
}

.hero-metrics {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 30px;
  color: #d9e0e9;
}

.hero-metrics span {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.hero-metrics strong {
  color: #ffffff;
  font-size: 25px;
}

.storefront-section {
  padding: 46px 0 64px;
}

.results-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.results-toolbar h2 {
  margin: 0;
  font-size: 28px;
}

.toolbar-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.sort-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sort-form select {
  min-width: 205px;
}

.filter-toggle {
  display: none;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 98px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.filter-panel-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  font-size: 19px;
}

.filter-panel-header > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.filter-symbol {
  color: #f47b20;
}

.filter-close {
  display: none;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 0;
  font-size: 30px;
  font-weight: 400;
}

.filter-form {
  display: grid;
  gap: 18px;
  padding: 16px;
}

.filter-form > label,
.filter-two-col label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.filter-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.filter-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.filter-form legend {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 800;
}

.discount-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.discount-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.discount-option span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 7px 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8f9fb;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.discount-option input:checked + span {
  border-color: #f47b20;
  background: #f47b20;
  color: #ffffff;
}

.price-filter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.apply-filter {
  width: 100%;
}

.reset-filter {
  display: block;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.filter-backdrop {
  display: none;
}

.catalog-results {
  min-width: 0;
}

.deal-grid.filtered-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-meta {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: 30px;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
}

.category-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.filter-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.filter-pill span {
  color: var(--muted);
}

.filter-pill.active {
  border-color: #172033;
  background: #172033;
  color: #ffffff;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.deal-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.deal-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef0f3;
}

.deal-image-slider {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.deal-image-slider::-webkit-scrollbar {
  display: none;
}

.deal-image {
  width: 100%;
  min-width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  scroll-snap-align: start;
}

.gallery-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(17, 24, 39, .76);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.deal-image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.pending-placeholder {
  padding: 22px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 176, 0, 0.18), transparent 32%),
    linear-gradient(135deg, #eef1f6, #f8fafc);
  color: #667085;
  text-align: center;
  font-size: 13px;
  letter-spacing: 1px;
}

.pending-placeholder span {
  display: inline-flex;
  max-width: 170px;
  line-height: 1.35;
}

.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 9px;
  border-radius: 5px;
  background: #d92d20;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.pending-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #172033;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.deal-card-body {
  padding: 16px;
}

.asin {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.deal-card h3 {
  min-height: 44px;
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 16px;
}

.price-row strong {
  font-size: 23px;
}

.pending-price strong {
  color: #667085;
  font-size: 18px;
}

.price-row del {
  color: var(--muted);
  font-size: 14px;
}

.saving {
  min-height: 18px;
  margin: 7px 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.detail-button {
  width: 100%;
  border-color: #ffb000;
  background: #ffb000;
  color: #172033;
}

.empty-storefront {
  padding: 44px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
}

.empty-storefront h3 {
  margin-top: 0;
}

.empty-storefront p {
  color: var(--muted);
}

.public-footer {
  padding: 24px 16px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 760px) {
  .topbar,
  .hero,
  .split,
  .stats-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .hero {
    align-items: center;
  }

  .topbar,
  .nav,
  .hero,
  .split {
    display: grid;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .brand-logo.small {
    width: min(260px, 78vw);
    height: auto;
  }

  .hero .button,
  .page-title .button {
    width: 100%;
  }

  .panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-brand span:last-child {
    display: none;
  }

  .public-header-inner {
    gap: 8px;
  }

  .header-search {
    max-width: none;
  }

  .header-search button {
    padding: 8px 10px;
  }

  .public-header .button.compact {
    display: none;
  }

  .storefront-hero-inner {
    min-height: 330px;
  }

  .storefront-hero h1 {
    font-size: 39px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .deal-grid {
    grid-template-columns: 1fr;
  }

  .results-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .filter-toggle {
    display: inline-flex;
  }

  .sort-form select {
    min-width: 0;
  }

  .catalog-layout {
    display: block;
  }

  .filter-panel {
    position: fixed;
    z-index: 50;
    inset: 0 0 0 auto;
    width: min(420px, 92vw);
    max-height: none;
    border: 0;
    border-radius: 0;
    transform: translateX(105%);
    transition: transform .2s ease;
  }

  .filter-panel-header {
    min-height: 68px;
  }

  .filter-close {
    display: inline-flex;
  }

  .filter-backdrop {
    position: fixed;
    z-index: 49;
    inset: 0;
    background: rgba(16, 24, 40, .48);
  }

  .filter-is-open {
    overflow: hidden;
  }

  .filter-is-open .filter-panel {
    transform: translateX(0);
  }

  .filter-is-open .filter-backdrop {
    display: block;
  }

  .deal-grid.filtered-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .deal-grid.filtered-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.app-shell {
  --app-bg: #fff3e8;
  --app-card: #ffffff;
  --app-text: #111827;
  --app-muted: #8a90a0;
  --app-line: #edf0f5;
  --app-orange: #ff6b18;
  background: linear-gradient(180deg, #fff1e5 0, #f6f7fb 360px);
  padding-bottom: 104px;
  color: var(--app-text);
}

.app-shell[data-theme="dark"] {
  --app-bg: #111827;
  --app-card: #1f2937;
  --app-text: #f8fafc;
  --app-muted: #a8b0bf;
  --app-line: #374151;
  background: #111827;
}

.mobile-app-header {
  position: sticky;
  top: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  backdrop-filter: blur(14px);
}

.mobile-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.mobile-search input {
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
}

.mobile-search button[type="submit"] {
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
}

.plus-button {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--app-orange);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
}

.app-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.app-page-title {
  padding: 34px 0 24px;
}

.app-page-title h1,
.settings-title h1,
.legal-page h1 {
  margin: 0;
  color: var(--app-text);
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
}

.app-page-title p {
  max-width: 680px;
  color: var(--app-muted);
  font-size: 18px;
}

.app-metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.app-metrics span {
  padding: 10px 13px;
  border: 1px solid var(--app-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--app-muted);
  font-weight: 700;
}

.app-metrics strong {
  color: var(--app-text);
}

.app-content {
  padding-bottom: 24px;
}

.app-toolbar {
  align-items: center;
  margin-bottom: 16px;
}

.app-filter-panel,
.app-shell .deal-card,
.settings-card,
.notification-card,
.legal-page,
.product-modal-card {
  border-color: var(--app-line);
  background: var(--app-card);
  box-shadow: 0 16px 38px rgba(17, 24, 39, .08);
}

.reset-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--app-muted);
  font-weight: 800;
}

.app-deal-card {
  position: relative;
}

.deal-card-link {
  display: block;
  color: inherit;
}

.deal-card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 0 16px 16px;
}

.whatsapp-button {
  border-color: #20c065;
  background: #20c065;
  color: #ffffff;
}

.whatsapp-outline-button {
  border-color: #20c065;
  background: #eafaf1;
  color: #0f7a3f;
}

.favorite-form {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.favorite-button {
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #111827;
  font-size: 23px;
  box-shadow: 0 8px 20px rgba(17, 24, 39, .16);
}

.favorite-button.is-favorite {
  background: #111827;
  color: #ffffff;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(560px, calc(100% - 28px));
  min-height: 72px;
  padding: 8px;
  border: 1px solid rgba(17, 24, 39, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 42px rgba(17, 24, 39, .2);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.bottom-nav a {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  border-radius: 999px;
  color: #18130f;
  font-weight: 900;
}

.bottom-nav a.active {
  background: #ece9df;
  color: var(--app-orange);
}

.bottom-nav span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 25px;
  line-height: 1;
}

.bottom-nav strong {
  display: none;
  font-size: 11px;
}

.bottom-nav em {
  position: absolute;
  top: 0;
  right: 14%;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--app-orange);
  color: #ffffff;
  font-style: normal;
  font-size: 12px;
  line-height: 24px;
  text-align: center;
}

.nav-icon {
  position: relative;
}

.svg-icon {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.bottom-nav .svg-icon {
  width: 30px;
  height: 30px;
}

.round-icon-button .svg-icon {
  width: 22px;
  height: 22px;
  margin: auto;
}

.settings-icon .svg-icon {
  width: 28px;
  height: 28px;
}

.tag-icon::before,
.tag-icon::after,
.bell-icon::before,
.bell-icon::after,
.user-icon::before,
.mini-heart-icon::before,
.mini-heart-icon::after,
.heart-icon::before,
.heart-icon::after,
.mini-share-icon::before,
.mini-share-icon::after,
.moon-setting-icon::before {
  content: none !important;
}

.tag-icon::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 7px 7px 7px 2px;
  background: currentColor;
  transform: rotate(-35deg);
}

.tag-icon::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
}

.bell-icon::before {
  content: "";
  width: 22px;
  height: 20px;
  border-radius: 12px 12px 7px 7px;
  background: currentColor;
}

.bell-icon::after {
  content: "";
  position: absolute;
  bottom: 1px;
  width: 8px;
  height: 5px;
  border-radius: 0 0 8px 8px;
  background: currentColor;
}

.user-icon::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 18px 0 5px currentColor;
}

.product-modal {
  display: none;
}

.product-modal-is-open {
  overflow: hidden;
}

.product-modal-is-open .product-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .58);
}

.product-modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  padding: 22px;
  border: 1px solid var(--app-line);
  border-radius: 16px;
}

.modal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-title-row h2 {
  margin: 0;
}

.icon-close {
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font-size: 30px;
}

.settings-main {
  max-width: 920px;
}

.settings-title {
  padding: 42px 0 30px;
}

.settings-title span {
  display: block;
  width: 72px;
  height: 7px;
  margin-top: 22px;
  border-radius: 999px;
  background: var(--app-orange);
}

.settings-section {
  margin-bottom: 30px;
}

.settings-section h2 {
  margin: 0 0 14px;
  color: #687083;
  font-size: 26px;
  letter-spacing: 3px;
}

.settings-card {
  overflow: hidden;
  border: 1px solid var(--app-line);
  border-radius: 28px;
}

.settings-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 112px;
  padding: 18px 28px;
  border: 0;
  border-bottom: 1px solid var(--app-line);
  border-radius: 0;
  background: transparent;
  color: var(--app-text);
  text-align: left;
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-row strong {
  display: block;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.05;
}

.settings-row small {
  display: block;
  margin-top: 6px;
  color: var(--app-muted);
  font-size: clamp(17px, 3vw, 30px);
  font-weight: 800;
}

.settings-row em {
  color: #9ca3af;
  font-style: normal;
  font-size: 40px;
  font-weight: 600;
}

.invite-tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 18px 18px 108px;
  border-bottom: 1px solid var(--app-line);
}

.invite-tools a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid #f0d8c7;
  border-radius: 999px;
  background: #fff8f2;
  color: #172033;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.settings-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  font-size: 32px;
  font-weight: 900;
}

.settings-icon.purple { background: #f1eaff; color: #8958e8; }
.settings-icon.blue { background: #e9f3ff; color: #2581d8; }
.settings-icon.orange { background: #fff0e4; color: #f47b20; }
.settings-icon.teal { background: #e9fbf8; color: #14b8a6; }
.settings-icon.green { background: #e9fbef; color: #22c55e; }
.settings-icon.gray { background: #f3f4f6; color: #6b7280; }

@media (max-width: 560px) {
  .invite-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 16px 16px;
  }
}

.notification-list {
  display: grid;
  gap: 14px;
}

.notification-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--app-line);
  border-radius: 18px;
}

.notification-thumb {
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 16px;
  background: #f3f4f6;
}

.notification-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notification-thumb span {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--app-orange);
  font-size: 34px;
  font-weight: 900;
}

.notification-card h2 {
  margin: 0;
  font-size: 20px;
}

.notification-card p {
  margin: 7px 0;
  color: var(--app-muted);
}

.notification-card strong,
.notification-card a {
  display: block;
  margin-top: 7px;
}

.legal-page {
  max-width: 840px;
  margin: 28px auto;
  padding: 28px;
  border: 1px solid var(--app-line);
  border-radius: 22px;
}

.legal-page p {
  color: var(--app-muted);
  font-size: 18px;
  line-height: 1.65;
}

.back-link {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--app-orange);
  font-weight: 900;
}

@media (max-width: 760px) {
  .app-shell {
    padding-bottom: 104px;
  }

  .mobile-app-header {
    grid-template-columns: 1fr;
  }

  .mobile-app-header .public-brand span:last-child {
    display: inline;
  }

  .mobile-app-header .brand-logo {
    width: min(260px, 100%);
    height: auto;
  }

  .mobile-search {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mobile-search button[type="submit"] {
    display: none;
  }

  .app-page-title {
    padding-top: 18px;
  }

  .app-page-title h1,
  .settings-title h1,
  .legal-page h1 {
    font-size: 42px;
  }

  .app-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .app-toolbar .filter-toggle {
    display: inline-flex;
    width: 100%;
  }

  .settings-section h2 {
    font-size: 20px;
  }

  .settings-card {
    border-radius: 22px;
  }

  .settings-row {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 14px;
    min-height: 88px;
    padding: 14px 16px;
  }

  .settings-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 24px;
  }

  .settings-row strong {
    font-size: 24px;
  }

  .settings-row small {
    font-size: 17px;
  }

  .notification-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .notification-thumb {
    width: 72px;
    height: 72px;
  }

  .bottom-nav {
    min-height: 68px;
  }
}

/* Mobile polish overrides */
.app-shell {
  font-size: 15px;
}

.mobile-app-header {
  gap: 10px;
}

.mobile-app-header .public-brand {
  font-size: clamp(18px, 4.8vw, 28px);
}

.mobile-search input {
  min-height: 48px;
  font-size: 16px;
}

.plus-button {
  width: 52px;
  min-height: 52px;
  font-size: 32px;
}

.app-page-title h1,
.settings-title h1,
.legal-page h1 {
  font-size: clamp(30px, 8vw, 48px);
}

.settings-title {
  padding: 26px 0 20px;
}

.settings-title span {
  width: 54px;
  height: 5px;
  margin-top: 12px;
}

.settings-section {
  margin-bottom: 22px;
}

.settings-section h2 {
  font-size: clamp(15px, 4.2vw, 20px);
  letter-spacing: 2px;
}

.settings-card {
  border-radius: 20px;
}

.settings-row {
  grid-template-columns: 54px minmax(0, 1fr) 28px;
  min-height: 78px;
  gap: 12px;
  padding: 12px 16px;
}

.settings-row strong {
  font-size: clamp(19px, 5.6vw, 26px);
  line-height: 1.14;
}

.settings-row small {
  margin-top: 3px;
  font-size: clamp(13px, 4vw, 17px);
  line-height: 1.25;
}

.settings-row em,
.settings-chevron {
  font-size: 24px;
  text-align: right;
}

.settings-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 21px;
}

.moon-setting-icon::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 8px -4px 0 0 #f1eaff;
}

.card-action-stack {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.card-action-stack .favorite-form {
  position: static;
  inset: auto;
  display: block;
}

.round-icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #111827;
  box-shadow: 0 8px 20px rgba(17, 24, 39, .16);
}

.round-icon-button.is-favorite {
  background: #111827;
  color: #ffffff;
}

.share-copied {
  background: #137a5b;
  color: #ffffff;
}

.mini-heart-icon,
.mini-share-icon,
.heart-icon {
  display: none;
}

.legacy-css-icon-unused {
  position: relative;
  display: block;
}

.mini-heart-icon::before,
.heart-icon::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 19px;
  border-radius: 12px 12px 0 0;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: 0 100%;
}

.mini-heart-icon::after,
.heart-icon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 19px;
  border-radius: 12px 12px 0 0;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: 100% 100%;
}

.mini-heart-icon {
  width: 22px;
  height: 22px;
  transform: translate(1px, 1px);
}

.heart-icon {
  width: 26px;
  height: 26px;
  transform: translate(1px, 2px) scale(1.08);
}

.mini-share-icon {
  width: 21px;
  height: 21px;
}

.mini-share-icon::before {
  content: "";
  position: absolute;
  inset: 4px 5px 5px 4px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(45deg);
}

.mini-share-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 13px;
  height: 11px;
  border: 3px solid currentColor;
  border-top: 0;
  border-radius: 3px;
}

.bottom-nav {
  width: min(480px, calc(100% - 28px));
  min-height: 66px;
}

.bottom-nav a {
  color: #14100d;
}

.bottom-nav a.active {
  background: #ece9df;
}

.bottom-nav span {
  width: 30px;
  height: 30px;
}

.bottom-nav .svg-icon {
  width: 31px;
  height: 31px;
}

@media (max-width: 760px) {
  .app-main,
  .mobile-app-header {
    width: min(100% - 24px, 520px);
  }

  .mobile-app-header {
    padding: 12px 0;
  }

  .app-page-title {
    padding: 18px 0 16px;
  }

  .app-page-title p {
    font-size: 15px;
    line-height: 1.45;
  }

  .settings-row {
    grid-template-columns: 50px minmax(0, 1fr) 22px;
    min-height: 74px;
    padding: 11px 14px;
  }

  .settings-icon {
    width: 50px;
    height: 50px;
  }

  .settings-row strong {
    font-size: 21px;
  }

  .settings-row small {
    font-size: 14px;
  }

  .settings-row em {
    font-size: 22px;
  }

  .deal-card h3 {
    min-height: 0;
    font-size: 15px;
  }

  .price-row strong {
    font-size: 20px;
  }

  .bottom-nav {
    min-height: 64px;
    padding: 7px;
  }
}

.product-detail-main {
  padding-bottom: 24px;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: stretch;
  margin: 18px 0;
}

.product-detail-gallery {
  min-width: 0;
}

.product-detail-media,
.product-detail-info,
.detail-panel,
.detail-metric-grid article {
  border: 1px solid var(--app-line);
  border-radius: 20px;
  background: var(--app-card);
  box-shadow: 0 16px 38px rgba(17, 24, 39, .08);
}

.product-detail-media {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.product-detail-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.product-gallery-strip a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--app-line);
  border-radius: 12px;
  background: var(--app-card);
}

.product-gallery-strip img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.product-detail-info h1 {
  margin: 0;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.08;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.detail-price-row strong {
  font-size: clamp(30px, 6vw, 56px);
}

.detail-price-row del {
  color: var(--app-muted);
  font-size: 18px;
}

.detail-saving {
  margin: 10px 0 20px;
  color: var(--accent);
  font-weight: 800;
}

.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-actions form {
  display: contents;
}

.product-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-feature-list li {
  position: relative;
  padding: 12px 14px 12px 34px;
  border: 1px solid var(--app-line);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--app-text);
  font-weight: 800;
}

.product-feature-list li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #20c065;
}

.detail-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.detail-metric-grid article {
  padding: 14px;
}

.detail-metric-grid span {
  display: block;
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-metric-grid strong {
  display: block;
  margin-top: 7px;
  font-size: 19px;
}

.detail-panel {
  margin-top: 18px;
  padding: 18px;
}

.history-list,
.alert-history-list {
  display: grid;
  gap: 10px;
}

.history-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--app-line);
}

.history-row:last-child {
  border-bottom: 0;
}

.history-row strong,
.alert-history-list strong {
  display: block;
}

.history-row span,
.alert-history-list span {
  display: block;
  margin-top: 4px;
  color: var(--app-muted);
  font-size: 13px;
}

.history-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef1f6;
}

.history-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #137a5b, #ffb000);
}

.alert-history-list article {
  padding: 12px 0;
  border-bottom: 1px solid var(--app-line);
}

.alert-history-list article:last-child {
  border-bottom: 0;
}

@media (max-width: 980px) {
  .product-detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .category-check-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-media {
    min-height: 230px;
  }

  .product-gallery-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-detail-info {
    padding: 18px;
  }

  .product-detail-info h1 {
    font-size: 25px;
  }

  .detail-price-row strong {
    font-size: 32px;
  }

  .detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .detail-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-feature-list {
    grid-template-columns: 1fr;
  }

  .detail-metric-grid strong {
    font-size: 16px;
  }

  .history-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
