:root {
  color-scheme: dark;
  --bg: #050505;
  --surface: #0d0d0d;
  --surface-strong: #141414;
  --ink: #f5f5f0;
  --muted: #9a9a92;
  --line: #252525;
  --accent: #ffffff;
  --accent-soft: #202020;
  --success: #85d6b2;
}

* {
  box-sizing: border-box;
}

html {
  background: #000000;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 260px),
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.06), transparent 320px);
}

button {
  font: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 64px;
  position: relative;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.brand-logo {
  display: block;
  width: 92px;
  height: auto;
  margin: 0 0 14px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(34px, 6vw, 68px);
  line-height: 0.95;
  letter-spacing: 0;
}

.last-update {
  color: var(--muted);
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}

.header-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.catalog-controls {
  position: sticky;
  z-index: 10;
  top: 12px;
  margin: 28px 0 36px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(13, 13, 13, 0.86);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.category-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-button {
  flex: 0 0 auto;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.category-button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
}

.category-button.is-active {
  background: #29292c;
  color: var(--ink);
}

.catalog-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.filters {
  display: flex;
  flex: 0 0 auto;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: #1c1c1e;
}

.filter-button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.filter-button:hover {
  color: var(--ink);
}

.filter-button.is-active {
  background: var(--ink);
  color: #050505;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.34);
}

.currency-toggle .filter-button {
  padding: 0 12px;
}

.search-input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  outline: 0;
  background: transparent;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-size: 15px;
}

.search-input::placeholder {
  color: #74746f;
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.045);
}

.price-section {
  margin-top: 34px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: 15px;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.price-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 13, 13, 0.82);
  overflow: hidden;
}

.phone-row {
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.phone-row:hover {
  background: var(--surface-strong);
}

.phone-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.phone-title {
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.badge {
  flex: 0 0 auto;
  width: 54px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--muted);
  padding: 3px 0;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.badge-nuevo {
  border-color: rgba(74, 222, 128, 0.34);
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.badge-usado {
  border-color: rgba(96, 165, 250, 0.34);
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
}

.phone-detail {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.phone-price {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 5px;
  flex: 0 0 auto;
  text-align: right;
}

.price {
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
}

.offer,
.open-box-label,
.warranty-label {
  color: var(--success);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.open-box-label {
  color: #f0c36a;
}

.warranty-label {
  color: #9fc4ff;
}

.is-hidden {
  display: none;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

@media (max-width: 680px) {
  body {
    background: #000000;
  }

  body::before {
    display: none;
  }

  .page-shell {
    width: min(100% - 24px, 1120px);
    padding-top: 28px;
  }

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

  .last-update {
    text-align: left;
    white-space: normal;
  }

  .header-meta {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .header-meta .last-update {
    min-width: 0;
    font-size: 12px;
  }

  .catalog-controls {
    position: static;
    margin: 18px 0 28px;
    padding: 4px 0 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .category-nav {
    gap: 2px;
    padding: 0;
  }

  .category-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .category-button.is-active {
    background: var(--ink);
    color: var(--bg);
  }

  .catalog-tools {
    gap: 5px;
    margin-top: 8px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(20, 20, 20, 0.82);
  }

  .filters {
    gap: 2px;
    padding: 2px;
  }

  .filter-button {
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  .currency-toggle .filter-button {
    padding: 0 8px;
  }

  .search-input {
    min-height: 38px;
    padding: 0 9px;
    font-size: 14px;
  }

  .phone-row {
    align-items: flex-start;
    flex-direction: row;
    gap: 10px;
    min-height: 64px;
    padding: 12px;
  }

  .phone-main {
    align-items: flex-start;
    gap: 8px;
  }

  .badge {
    width: 42px;
    margin-top: 2px;
    padding: 2px 0;
    font-size: 8px;
  }

  .phone-price {
    align-items: flex-end;
    min-width: 84px;
    text-align: right;
  }

  .price {
    font-size: 16px;
    white-space: nowrap;
  }

  .phone-title {
    font-size: 14px;
  }

  .phone-detail {
    font-size: 12px;
    line-height: 1.3;
  }

  .offer,
  .open-box-label,
  .warranty-label {
    font-size: 9px;
  }

}
