:root {
  --brand: #f4752b;
  --brand-dark: #cf5818;
  --ink: #f5f6f8;
  --ink-soft: #b2b7be;
  --line: #2a2d31;
  --surface: #141517;
  --surface-soft: #0d0e10;
  --surface-elevated: #1a1d21;
  --surface-dark: #090a0c;
  --success: #41c36e;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.3);
  --shell: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top, rgba(244, 117, 43, 0.12), transparent 28%),
    linear-gradient(180deg, #121316 0%, #0b0c0e 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  display: block;
}

.shell {
  width: min(calc(100% - 32px), var(--shell));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  transform: translateY(-150%);
  background: var(--brand);
  color: #111;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 13, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: block;
  width: min(255px, 58vw);
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #dfdfdf;
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
}

.seller-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(244, 117, 43, 0.18);
  background: rgba(244, 117, 43, 0.08);
  color: #e8ebef;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.seller-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(65, 195, 110, 0.14);
}

.category-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(16, 17, 20, 0.94);
}

.category-nav__scroll {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 10px;
}

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

.category-tab {
  flex: 1 0 max-content;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;
  background: #17191d;
  color: #c4c8cf;
  padding: 10px 15px;
  font-size: 0.83rem;
  font-weight: 850;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.category-tab:hover {
  background: #1d2024;
  color: #fff;
  border-color: rgba(244, 117, 43, 0.22);
}

.category-tab:focus-visible,
.search-clear:focus-visible,
.whatsapp-button:focus-visible,
.search-wrap:focus-within {
  outline: 3px solid rgba(244, 117, 43, 0.25);
  outline-offset: 2px;
}

.category-tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #111;
}

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: end;
  gap: 40px;
  padding-block: 44px 30px;
}

.catalog-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 700px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.8vw, 1.08rem);
}

.search-wrap {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  background: #16181b;
  border: 1px solid #2d3137;
  border-radius: 16px;
  padding: 0 14px 0 17px;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.search-wrap:focus-within {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(244, 117, 43, 0.15);
}

.search-icon {
  display: grid;
  place-items: center;
  color: #8b9097;
}

.search-wrap input {
  width: 100%;
  min-width: 0;
  height: 54px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-wrap input::placeholder {
  color: #80858d;
}

.search-clear {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #282c31;
  color: #d2d6dc;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.catalog-section {
  padding-bottom: 70px;
}

.catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 20px 16px;
}

.catalog-toolbar__label,
.catalog-toolbar__count {
  margin: 0;
}

.catalog-toolbar__label {
  font-size: 1.2rem;
  font-weight: 850;
}

.catalog-toolbar__count {
  margin-top: 2px;
  color: #90959c;
  font-size: 0.91rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}

.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #1a1d21 0%, #14171a 100%);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 117, 43, 0.24);
  box-shadow: var(--shadow-md);
}

.product-image-wrap {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f2f2ef;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 17px;
}

.product-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  max-width: 100%;
  border-radius: 999px;
  background: rgba(244, 117, 43, 0.14);
  color: #ffb48b;
  padding: 5px 9px;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-code {
  color: #8f949a;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.product-title {
  margin: 0;
  color: #fff;
  font-size: 1.13rem;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 9px;
  color: #c0c5cc;
  font-size: 0.84rem;
}

.product-specs span:not(:last-child)::after {
  content: "•";
  margin-left: 10px;
  color: #5f646b;
}

.product-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.9em;
  margin: 10px 0 0;
  color: #9ea4ab;
  font-size: 0.88rem;
}

.whatsapp-button {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 17px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #121212;
  padding: 11px 14px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.whatsapp-button:hover {
  background: #ff8540;
}

.whatsapp-button:active {
  transform: translateY(1px);
}

.whatsapp-button svg {
  flex: 0 0 auto;
}

.loading-state,
.empty-state {
  min-height: 290px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  color: #9ea4ab;
}

.loading-state p {
  margin: 12px 0 0;
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #363a40;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #202328;
  color: #aeb3ba;
  font-size: 2rem;
}

.empty-state h2 {
  margin: 15px 0 3px;
  color: #fff;
  font-size: 1.2rem;
}

.empty-state p {
  max-width: 470px;
  margin: 0;
}

.site-footer {
  background: linear-gradient(180deg, #0d0e10 0%, #070809 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
}

.footer-inner {
  padding-block: 28px 24px;
}

.footer-branding {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 22px;
  padding-bottom: 24px;
}

.footer-branding img {
  width: 220px;
  border-radius: 14px;
  background: #dfdfdf;
  padding: 10px 14px;
}

.footer-branding strong {
  display: block;
  font-size: 1.1rem;
}

.footer-brand-copy {
  margin: 6px 0 0;
  color: #b6bcc4;
}

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

.footer-card {
  min-height: 112px;
  padding: 16px;
  border-radius: 16px;
  background: #15181c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-sm);
}

.footer-label {
  display: block;
  margin-bottom: 8px;
  color: #ffb48b;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-card strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  line-height: 1.25;
}

.footer-card-note {
  margin: 8px 0 0;
  color: #9fa5ac;
  font-size: 0.84rem;
}

.footer-copy {
  margin: 18px 0 0;
  color: #8e949b;
  font-size: 0.84rem;
}

.noscript {
  position: fixed;
  inset: auto 12px 12px;
  z-index: 100;
  max-width: 700px;
  margin: auto;
  border-radius: 12px;
  background: #2c170d;
  border: 1px solid rgba(244, 117, 43, 0.35);
  color: #ffd4bd;
  padding: 12px 15px;
  font-weight: 700;
}

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

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

@media (max-width: 860px) {
  .site-header {
    position: relative;
  }

  .header-inner {
    min-height: 82px;
  }

  .brand {
    width: min(220px, 62vw);
  }

  .footer-branding {
    grid-template-columns: 170px 1fr;
  }

  .footer-branding img {
    width: 170px;
  }
}

@media (max-width: 600px) {
  .shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .header-inner {
    gap: 10px;
    align-items: flex-start;
    padding-block: 14px;
  }

  .brand {
    width: 175px;
  }

  .brand img {
    padding: 8px 10px;
    border-radius: 12px;
  }

  .seller-status {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px 10px;
    font-size: 0.74rem;
  }

  .category-nav__scroll {
    width: 100%;
    padding-inline: 12px;
  }

  .category-tab {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 9px 12px;
    font-size: 0.76rem;
  }

  .catalog-hero {
    padding-block: 34px 28px;
  }

  .catalog-hero h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .search-wrap {
    min-height: 55px;
    padding-left: 14px;
  }

  .product-grid {
    gap: 14px;
  }

  .product-card {
    border-radius: 14px;
  }

  .footer-branding {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-branding img {
    width: min(240px, 75vw);
  }

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

  .footer-card {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
