@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #000000;
  --ink-2: #1d1d1f;
  --text-2: #555555;
  --text-3: #767676;
  --bg: #ffffff;
  --bg-soft: #f4f4f4;
  --bg-softer: #f8f8f8;
  --line: #e4e4e4;
  --line-strong: #cfcfcf;
  --brand: #1428a0;
  --brand-soft: #eef1fb;
  --success: #0a7c42;
  --danger: #c4221a;
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.14);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --container: 1280px;
  --gutter: 16px;
  --header-h: 60px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: "Outfit", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

html[lang="ar"] body {
  font-family: "Noto Sans Arabic", "Outfit", system-ui, sans-serif;
}

body.no-scroll {
  overflow: hidden;
}

main {
  flex: 1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  letter-spacing: -0.01em;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
  letter-spacing: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  top: 10px;
}

.ui-icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[dir="rtl"] .icon-flip {
  transform: scaleX(-1);
}

/* ---------- buttons & chips ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.button:hover {
  background: #2b2b2b;
}

.button:active {
  transform: scale(0.98);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--ink);
  color: #fff;
}

.button-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.icon-button:hover {
  background: var(--bg-soft);
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button-sm {
  width: 34px;
  height: 34px;
}

.icon-button-sm svg {
  width: 17px;
  height: 17px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--ink);
}

.chip span {
  color: var(--text-3);
  font-size: 12px;
}

.chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.chip.is-active span {
  color: rgba(255, 255, 255, 0.7);
}

.chip-soft {
  min-height: 30px;
  padding: 0 12px;
  border-color: transparent;
  background: var(--bg-soft);
  font-size: 13px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link .ui-icon {
  width: 16px;
  height: 16px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.logo img {
  width: 104px;
  height: auto;
}

.header-nav {
  display: none;
  gap: 4px;
  margin-inline-start: 24px;
}

.header-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s var(--ease);
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  background: var(--bg-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}

.lang-toggle {
  min-width: 56px;
  height: 36px;
  padding: 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-toggle:hover {
  background: var(--ink);
  color: #fff;
}

/* ---------- search overlay ---------- */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.45);
  animation: fade-in 0.2s var(--ease);
}

.search-overlay[hidden] {
  display: none;
}

.search-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  max-height: 100%;
  background: #fff;
  animation: slide-down 0.25s var(--ease);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 10px 16px;
  border-bottom: 1px solid var(--line);
}

html[dir="rtl"] .search-bar {
  padding: 10px 16px 10px 8px;
}

.search-bar > svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: var(--text-2);
  stroke-width: 2;
  stroke-linecap: round;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 17px;
}

.search-bar input::-webkit-search-cancel-button {
  display: none;
}

.search-results {
  overflow-y: auto;
  padding: 8px 8px 16px;
  overscroll-behavior: contain;
}

.search-hint,
.search-empty {
  margin: 8px 8px 12px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
}

.search-empty {
  padding: 24px 0;
  font-size: 15px;
  text-align: center;
}

.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 8px;
}

.search-result,
.feedback-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.15s var(--ease);
}

.search-result:hover,
.search-result:focus-visible {
  background: var(--bg-soft);
}

.search-result > .ui-icon {
  color: var(--text-3);
  width: 18px;
}

.search-thumb {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg-soft);
}

.search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  mix-blend-mode: multiply;
}

.search-text {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.search-text strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.search-text span {
  color: var(--text-3);
  font-size: 13px;
  text-align: start;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(20, 40, 160, 0.55), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(80, 90, 140, 0.25), transparent 60%),
    #000;
  color: #fff;
}

.hero-inner {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding-block: 48px 40px;
}

.hero-eyebrow {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(32px, 8vw, 64px);
  font-weight: 700;
  line-height: 1.08;
}

.hero p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 2.5vw, 20px);
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 560px;
  height: 56px;
  margin-top: 10px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--text-3);
  font-size: 15px;
  text-align: start;
  cursor: text;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.hero-search[hidden] {
  display: none;
}

.hero-search .ui-icon {
  color: var(--ink);
}

.hero-search span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.hero-stats b {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

/* ---------- sections ---------- */

.section {
  padding-block: 40px;
}

.section-alt {
  background: var(--bg-softer);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.2;
}

.page {
  padding-block: 20px 48px;
}

.page-narrow {
  max-width: 820px;
}

.page-head {
  margin: 8px 0 20px;
}

.page-title {
  margin: 0;
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 700;
  line-height: 1.12;
}

.page-lead {
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 15px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--text-2);
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.breadcrumb > span:last-child {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- category cards ---------- */

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

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.category-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 0.85;
  padding: 16px 16px 0;
}

.category-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.4s var(--ease);
}

.category-card:hover .category-media img {
  transform: scale(1.05);
}

.category-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
}

.category-icon svg {
  width: 36px;
  height: 36px;
}

.category-text {
  display: grid;
  gap: 2px;
  padding: 12px 14px 14px;
}

.category-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.category-count {
  color: var(--text-3);
  font-size: 13px;
}

.category-arrow {
  display: none;
}

/* ---------- product cards ---------- */

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

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.product-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.product-card-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 14px;
  background: var(--bg-softer);
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.4s var(--ease);
}

.product-card:hover .product-card-media img {
  transform: scale(1.04);
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 12px 12px 14px;
}

.eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}

.product-card-title {
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.model-tag {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.product-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 600;
}

.product-card-cta .ui-icon {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease);
}

.product-card:hover .product-card-cta .ui-icon {
  transform: translateX(3px);
}

html[dir="rtl"] .product-card:hover .product-card-cta .ui-icon {
  transform: scaleX(-1) translateX(3px);
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 46%;
  gap: 12px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.scroll-row > * {
  scroll-snap-align: start;
}

/* skeletons */

.is-skeleton .product-card-media,
.is-skeleton .product-gallery,
.is-skeleton span {
  background: linear-gradient(90deg, #f1f1f1 25%, #e8e8e8 37%, #f1f1f1 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

.product-card.is-skeleton .product-card-body span {
  display: block;
  height: 12px;
  border-radius: 6px;
}

.product-card.is-skeleton .product-card-body span:last-child {
  width: 60%;
}

.product-hero.is-skeleton .product-info span {
  display: block;
  height: 22px;
  margin-bottom: 14px;
  border-radius: 8px;
}

.product-hero.is-skeleton .product-gallery {
  aspect-ratio: 1 / 1;
}

/* ---------- category page ---------- */

.toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 calc(var(--gutter) * -1) 16px;
  padding: 10px var(--gutter);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.chip-scroller {
  display: flex;
  flex: 1;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.chip-scroller::-webkit-scrollbar {
  display: none;
}

.chip-scroller[hidden] {
  display: none;
}

.sort-control {
  flex: none;
  margin-inline-start: auto;
}

.sort-control select {
  height: 38px;
  max-width: 150px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
}

html[dir="rtl"] .sort-control select {
  padding: 0 14px 0 34px;
  background-position: left 12px center;
}

/* ---------- product page ---------- */

.product-hero {
  display: grid;
  gap: 20px;
  margin-top: 14px;
}

.product-gallery {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: var(--bg-softer);
}

.product-hero-image {
  width: 100%;
  height: 100%;
  padding: 8%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-info {
  display: grid;
  align-content: start;
  gap: 14px;
}

.product-title {
  margin: 0;
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 700;
  line-height: 1.25;
}

.model-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  justify-self: start;
  font-size: 14px;
}

html[dir="rtl"] .model-row {
  padding: 6px 14px 6px 6px;
}

.model-label {
  color: var(--text-2);
}

.model-row b {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.model-row .icon-button {
  background: #fff;
}

.product-description {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
}

.key-features {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.key-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}

.key-features .ui-icon {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  stroke-width: 3;
}

.product-actions {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
}

.product-actions .ui-icon {
  width: 18px;
  height: 18px;
}

.section-block {
  padding-top: 40px;
}

.highlight-grid {
  display: grid;
  gap: 12px;
}

.highlight-card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-softer);
}

.highlight-index {
  display: block;
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.highlight-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.highlight-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  white-space: pre-line;
}

.actionbar {
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.actionbar[hidden] {
  display: none;
}

.actionbar-info {
  display: grid;
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.actionbar-info strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.actionbar-info span {
  color: var(--text-3);
  font-size: 12px;
  text-align: start;
}

.actionbar-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.actionbar .icon-button {
  border: 1.5px solid var(--line-strong);
  width: 40px;
  height: 40px;
}

.actionbar .icon-button svg {
  width: 18px;
  height: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 70;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- feedback ---------- */

.feedback-product {
  margin-bottom: 16px;
  border: 1px solid var(--line);
}

.feedback-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-softer);
}

.feedback-frame {
  display: block;
  width: 100%;
  min-height: 900px;
  border: 0;
}

/* ---------- empty states ---------- */

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--bg-softer);
  text-align: center;
}

.empty-state p {
  margin: 0;
  color: var(--text-2);
}

.empty-state h1 {
  margin: 0;
  font-size: clamp(22px, 5vw, 32px);
  line-height: 1.25;
}

.empty-state-large {
  margin: 32px 0;
  padding: 64px 20px;
}

.big-code {
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 40px;
  background: var(--bg-soft);
  font-size: 14px;
}

.footer-top {
  display: grid;
  gap: 28px;
  padding-block: 36px 28px;
}

.footer-brand img {
  width: 110px;
  height: auto;
}

.footer-brand p {
  margin: 12px 0 0;
  color: var(--text-2);
}

.footer-links h2 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.footer-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--text-2);
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-links a[hidden] {
  display: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-block: 18px;
  border-top: 1px solid var(--line-strong);
  color: var(--text-3);
  font-size: 13px;
}

/* ---------- animations ---------- */

@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- breakpoints ---------- */

@media (min-width: 600px) {
  :root {
    --gutter: 24px;
  }

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

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

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

  .product-card-title {
    font-size: 15px;
  }

  .scroll-row {
    grid-auto-columns: 30%;
    gap: 16px;
  }

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

  .search-overlay {
    padding: 72px 16px 16px;
  }

  .search-panel {
    max-height: calc(100vh - 120px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
  }

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

@media (min-width: 900px) {
  :root {
    --header-h: 68px;
  }

  .header-nav {
    display: flex;
  }

  .logo img {
    width: 118px;
  }

  .hero-inner {
    padding-block: 88px 72px;
  }

  .section {
    padding-block: 64px;
  }

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

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

  .scroll-row {
    grid-auto-columns: calc((100% - 60px) / 4);
    gap: 20px;
    margin-inline: 0;
    padding-inline: 0;
  }

  .toolbar {
    position: static;
    margin-inline: 0;
    padding-inline: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .product-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    margin-top: 20px;
  }

  .product-gallery {
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }

  .product-info {
    gap: 18px;
    padding-top: 12px;
  }

  .product-actions {
    display: flex;
  }

  .actionbar {
    display: none;
  }

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

  .highlight-card {
    padding: 24px;
  }
}
