﻿@font-face {
  font-display: swap;
  font-family: "Speda";
  font-style: normal;
  font-weight: 400 600;
  src: url("/fonts/speda/Speda.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "Speda";
  font-style: normal;
  font-weight: 700 950;
  src: url("/fonts/speda/Speda-Bold.ttf") format("truetype");
}

:root {
  color-scheme: dark;
  --bg: #070a0a;
  --surface: #121716;
  --surface-2: #192120;
  --surface-3: #202928;
  --text: #f7faf9;
  --muted: #9ca8a6;
  --line: rgba(255, 255, 255, 0.1);
  --cyan: #17d7f3;
  --cyan-dark: #0eb4cf;
  --green: #24d478;
  --red: #ff5a6a;
  --amber: #ffc247;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  font-family: "Speda", "Noto Sans Arabic", "Noto Naskh Arabic", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

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

.topbar {
  align-items: center;
  background: rgba(12, 13, 13, 0.96);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(260px, 560px) auto;
  min-height: 70px;
  padding: 0 7vw;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 900;
  gap: 10px;
  white-space: nowrap;
}

.brand-mark {
  align-items: center;
  background: var(--cyan);
  border-radius: 8px;
  color: #061010;
  display: inline-flex;
  font-size: 13px;
  font-weight: 950;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.brand-logo {
  height: 48px;
  object-fit: contain;
  width: 138px;
}

.footer-logo {
  height: 88px;
  object-fit: contain;
  width: 160px;
}

.top-icons,
.top-actions,
.admin-nav,
.form-actions,
.hero-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.top-actions {
  justify-content: flex-end;
}

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

.nav-link:hover {
  color: var(--text);
}

.icon-link,
.ghost-button,
.primary-button,
.icon-button,
.cart-toggle,
.admin-tab,
.link-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
}

.icon-link,
.ghost-button,
.icon-button,
.admin-tab {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.primary-button {
  background: var(--cyan);
  color: #061010;
  font-weight: 950;
}

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

.primary-button.disabled,
.primary-button[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.ghost-button:hover,
.icon-link:hover,
.icon-button:hover,
.admin-tab:hover {
  background: rgba(255, 255, 255, 0.08);
}

.icon-button {
  height: 42px;
  padding: 0;
  position: relative;
  width: 42px;
}

.cart-toggle span {
  align-items: center;
  background: var(--cyan);
  border-radius: 999px;
  color: #061010;
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  height: 18px;
  justify-content: center;
  min-width: 18px;
  padding: 0 5px;
  position: absolute;
  right: -5px;
  top: -5px;
}

.icon-link svg,
.ghost-button svg,
.primary-button svg,
.icon-button svg,
.cart-toggle svg,
.admin-tab svg,
.link-button svg {
  height: 18px;
  width: 18px;
}

.search-box {
  align-items: center;
  background: #181818;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
}

.search-box svg {
  color: var(--muted);
  height: 18px;
  width: 18px;
}

input,
select,
textarea {
  background: #111615;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: #77817f;
}

.search-box input {
  background: transparent;
  border: 0;
  min-height: auto;
  outline: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

.storefront-shell {
  margin: 0 auto;
  max-width: 1280px;
  min-height: calc(100vh - 70px);
  padding: 20px 24px 72px;
}

.cart-page-shell {
  margin: 0 auto;
  max-width: 1180px;
  min-height: calc(100vh - 70px);
  padding: 28px 24px 72px;
}

.page-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.page-heading h1 {
  font-size: clamp(32px, 4.5vw, 54px);
}

.store-hero {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 260px;
  padding: 28px 0;
}

.hero-copy {
  display: grid;
  gap: 18px;
  max-width: 720px;
}

.eyebrow {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.98;
  margin-bottom: 0;
  max-width: 820px;
}

h2 {
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.1;
  margin-bottom: 0;
}

.hero-text {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 640px;
}

.hero-showcase {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  min-height: 240px;
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.showcase-orbit {
  background:
    linear-gradient(90deg, rgba(23, 215, 243, 0.16) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  inset: 0;
  opacity: 0.35;
  position: absolute;
}

.hero-showcase img {
  background: #f7f7f7;
  border-radius: 8px;
  justify-self: center;
  max-height: 190px;
  object-fit: contain;
  position: relative;
  width: min(100%, 290px);
}

.showcase-card {
  align-items: flex-start;
  background: rgba(7, 10, 10, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 14px;
  display: grid;
  gap: 3px;
  left: 14px;
  padding: 12px 14px;
  position: absolute;
}

.showcase-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.showcase-card strong {
  color: var(--cyan);
}

.promo-band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0;
  overflow: hidden;
}

.promo-band > div {
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 4px;
  padding: 18px;
}

.promo-band span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.promo-band strong {
  font-size: 16px;
}

.catalog-pane {
  display: grid;
  gap: 18px;
  scroll-margin-top: 96px;
}

.catalog-header,
.panel-heading,
.admin-header {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 0;
}

.catalog-header select {
  max-width: 240px;
}

.catalog-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.result-count {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.category-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 2px;
  scrollbar-width: none;
  scroll-padding-inline: 8px;
  scroll-snap-type: inline proximity;
}

.category-chips::-webkit-scrollbar,
.product-row::-webkit-scrollbar {
  display: none;
}

.category-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  flex: 0 0 auto;
  font-weight: 850;
  min-height: 40px;
  padding: 0 16px;
  scroll-snap-align: start;
  white-space: nowrap;
}

.category-chip.active,
.category-chip:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #061010;
}

.filter-chip {
  display: none;
}

.product-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.product-section {
  display: grid;
  gap: 16px;
  min-width: 0;
}

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

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

.link-button {
  background: var(--cyan);
  color: #061010;
  font-size: 14px;
  font-weight: 950;
  min-height: 38px;
}

.product-row {
  display: grid;
  gap: 16px;
  grid-auto-columns: 224px;
  grid-auto-flow: column;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.section-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  transition: border-color 160ms ease, transform 160ms ease;
}

.product-card:hover {
  border-color: rgba(23, 215, 243, 0.58);
  transform: translateY(-3px);
}

.product-link-card {
  color: inherit;
}

.favorite-badge {
  align-items: center;
  background: rgba(7, 10, 10, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #d9dfde;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  left: 10px;
  position: absolute;
  top: 10px;
  width: 34px;
  z-index: 1;
}

.favorite-badge svg {
  height: 18px;
  width: 18px;
}

.new-badge {
  background: var(--green);
  border-radius: 999px;
  color: #061010;
  font-size: 12px;
  font-weight: 950;
  padding: 6px 10px;
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 1;
}

.product-media {
  aspect-ratio: 1 / 1.02;
  background: #f8f8f8;
  border: 0;
  border-radius: 0;
  display: block;
  min-height: auto;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.product-media img {
  height: 100%;
  object-fit: contain;
  padding: 16px;
  width: 100%;
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  text-align: center;
}

.product-title-row {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.product-title-row h3 {
  display: -webkit-box;
  font-size: 17px;
  line-height: 1.25;
  margin-bottom: 0;
  min-height: 44px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.price-row {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.price {
  color: var(--cyan);
  font-size: 19px;
  font-weight: 950;
}

.old-price {
  color: var(--muted);
  font-size: 13px;
  text-decoration: line-through;
}

.product-meta {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 0;
  min-height: 18px;
}

.product-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.details-pill {
  align-items: center;
  background: var(--cyan);
  border-radius: 8px;
  color: #061010;
  display: inline-flex;
  font-size: 14px;
  font-weight: 950;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
  padding: 0 10px;
}

.details-pill svg {
  height: 16px;
  width: 16px;
}

.tag {
  align-items: center;
  background: rgba(36, 212, 120, 0.1);
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  padding: 5px 9px;
  white-space: nowrap;
}

.tag.warn {
  background: rgba(255, 194, 71, 0.12);
  color: var(--amber);
}

.tag.off {
  background: rgba(255, 90, 106, 0.12);
  color: var(--red);
}

.cart-backdrop {
  background: rgba(0, 0, 0, 0.58);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 160ms ease;
  z-index: 50;
}

.cart-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.filter-backdrop {
  background: rgba(0, 0, 0, 0.58);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 160ms ease;
  z-index: 50;
}

.filter-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.filter-drawer {
  background: #0f1413;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  height: 100dvh;
  max-width: calc(100vw - 24px);
  overflow: auto;
  padding: 22px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(110%);
  transition: transform 180ms ease;
  width: 390px;
  z-index: 60;
}

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

.filter-check {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 18px 0 0;
}

.page-button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-weight: 850;
  min-height: 38px;
  min-width: 42px;
  padding: 0 12px;
}

.page-button.active,
.page-button:hover:not(:disabled) {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #061010;
}

.order-pane {
  background: #0f1413;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  height: 100dvh;
  max-width: calc(100vw - 24px);
  overflow: auto;
  padding: 22px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(110%);
  transition: transform 180ms ease;
  width: 430px;
  z-index: 60;
}

.order-pane.open {
  transform: translateX(0);
}

.cart-items {
  display: grid;
  gap: 10px;
}

.empty-state {
  align-items: center;
  background: var(--surface-2);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  min-height: 88px;
  padding: 18px;
}

.cart-item {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  padding: 8px;
}

.cart-item img {
  aspect-ratio: 1;
  background: #f8f8f8;
  border-radius: 6px;
  object-fit: contain;
  padding: 5px;
}

.cart-item h3 {
  font-size: 14px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.cart-item .price-row {
  justify-content: flex-start;
}

.qty-controls {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.qty-controls button {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.total-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  font-size: 18px;
  justify-content: space-between;
  padding-top: 16px;
}

.cart-layout,
.checkout-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

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

.cart-list,
.checkout-items,
.summary-lines {
  display: grid;
  gap: 12px;
}

.cart-item-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  padding: 12px;
}

.cart-item-media {
  aspect-ratio: 1;
  background: #f8f8f8;
  border-radius: 8px;
  display: grid;
  overflow: hidden;
  place-items: center;
}

.cart-item-media img {
  height: 100%;
  object-fit: contain;
  padding: 10px;
  width: 100%;
}

.cart-item-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.cart-item-title {
  display: block;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.3;
  margin-bottom: 5px;
}

.cart-item-main p,
.form-heading p {
  color: var(--muted);
  margin-bottom: 0;
}

.cart-item-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cart-item-meta > span:last-child {
  color: var(--cyan);
  font-weight: 950;
}

.cart-item-side {
  align-items: flex-end;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.remove-button {
  min-height: 36px;
  padding: 0 10px;
}

.cart-empty {
  min-height: 260px;
}

.cart-empty > div {
  display: grid;
  gap: 12px;
}

.cart-empty h2,
.cart-empty p {
  margin-bottom: 0;
}

.summary-card,
.checkout-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  padding: 20px;
}

.summary-card {
  position: sticky;
  top: 92px;
}

.summary-card h2,
.checkout-form h2 {
  font-size: 23px;
}

.summary-line {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 12px;
}

.summary-line strong {
  color: var(--text);
}

.grand-total {
  border-bottom: 0;
  color: var(--text);
  font-size: 18px;
  padding-bottom: 0;
}

.grand-total strong {
  color: var(--cyan);
  font-size: 24px;
}

.checkout-link,
.continue-link {
  width: 100%;
}

.checkout-form {
  box-shadow: none;
}

.form-heading {
  display: grid;
  gap: 6px;
}

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

.checkout-item {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 62px minmax(0, 1fr);
  padding: 8px;
}

.checkout-item img {
  aspect-ratio: 1;
  background: #f8f8f8;
  border-radius: 6px;
  object-fit: contain;
  padding: 6px;
  width: 62px;
}

.checkout-item div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

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

.success-panel {
  align-items: start;
  display: grid;
  gap: 14px;
}

.success-panel svg {
  color: var(--green);
  height: 42px;
  width: 42px;
}

.stacked-form,
.track-form,
.product-form {
  display: grid;
  gap: 12px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 850;
  gap: 6px;
}

.form-message {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  min-height: 20px;
}

.form-message.success {
  color: var(--green);
}

.form-message.error {
  color: var(--red);
}

.product-dialog {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
  color: var(--text);
  max-width: 790px;
  padding: 0;
  width: min(calc(100vw - 28px), 790px);
}

.product-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 1;
}

.dialog-layout {
  display: grid;
  grid-template-columns: 46% 1fr;
}

.dialog-layout img {
  background: #f8f8f8;
  height: 100%;
  min-height: 390px;
  object-fit: contain;
  padding: 22px;
  width: 100%;
}

.dialog-content {
  display: grid;
  gap: 16px;
  padding: 32px;
}

.dialog-content .price-row {
  justify-content: flex-start;
}

.spec-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.spec-list li {
  background: var(--surface-2);
  border-radius: 8px;
  list-style: none;
  padding: 9px 10px;
}

.product-page-shell {
  margin: 0 auto;
  max-width: 1280px;
  min-height: calc(100vh - 70px);
  padding: 28px 24px 72px;
}

.breadcrumbs {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.breadcrumbs a:hover {
  color: var(--cyan);
}

.breadcrumbs svg {
  height: 15px;
  width: 15px;
}

.product-detail-layout {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
}

.detail-gallery,
.detail-info {
  min-width: 0;
}

.main-gallery-frame {
  align-items: center;
  aspect-ratio: 1 / 0.82;
  background: #f8f8f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  justify-items: center;
  overflow: hidden;
  position: relative;
}

.main-gallery-frame img {
  height: 100%;
  object-fit: contain;
  padding: 26px;
  width: 100%;
}

.detail-heart {
  border: 0;
  left: 14px;
  top: 14px;
}

.gallery-arrow {
  align-items: center;
  background: rgba(7, 10, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  z-index: 2;
}

.gallery-arrow.left {
  left: 14px;
}

.gallery-arrow.right {
  right: 14px;
}

.gallery-arrow svg {
  height: 22px;
  width: 22px;
}

.gallery-thumbs {
  display: grid;
  gap: 10px;
  grid-auto-columns: 86px;
  grid-auto-flow: column;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  aspect-ratio: 1;
  background: #f8f8f8;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
}

.gallery-thumb.active {
  border-color: var(--cyan);
}

.gallery-thumb img {
  height: 100%;
  object-fit: contain;
  padding: 8px;
  width: 100%;
}

.detail-info {
  display: grid;
  gap: 18px;
}

.detail-info h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.detail-price {
  justify-content: flex-start;
}

.detail-price .price {
  font-size: 34px;
}

.detail-stock-line {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.purchase-button {
  min-height: 50px;
  padding: 0 22px;
}

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

.detail-panels article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 14px;
}

.detail-panels span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-description {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding-top: 20px;
}

.detail-description p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

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

.related-section {
  margin-top: 44px;
}

.center-shell {
  display: grid;
  min-height: calc(100vh - 70px);
  padding: 28px;
  place-items: start center;
}

.track-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 760px;
  padding: 24px;
  width: 100%;
}

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

.track-result {
  margin-top: 22px;
}

.status-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.track-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.track-summary div {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.track-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.timeline {
  border-left: 2px solid var(--line);
  display: grid;
  gap: 18px;
  margin: 18px 0 0 8px;
  padding-left: 20px;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  background: var(--cyan);
  border: 3px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--cyan);
  content: "";
  height: 12px;
  left: -27px;
  position: absolute;
  top: 4px;
  width: 12px;
}

.timeline-item h3 {
  font-size: 15px;
  margin: 0 0 4px;
}

.timeline-item p,
.timeline-item time {
  color: var(--muted);
  font-size: 13px;
}

.hidden {
  display: none !important;
}

.admin-body {
  --bg: #eef3f7;
  --surface: #ffffff;
  --surface-2: #eef3f7;
  --surface-3: #e1e9f0;
  --text: #14212b;
  --muted: #617081;
  --line: #dbe3ea;
  --cyan: #0f766e;
  --cyan-dark: #0b5f59;
  --green: #0f766e;
  --red: #dc2626;
  --amber: #b45309;
  --shadow: 0 18px 45px rgba(20, 33, 43, 0.08);
  color-scheme: light;
  background: var(--bg);
}

.admin-body input,
.admin-body select,
.admin-body textarea {
  background: #fff;
  color: var(--text);
}

.admin-login {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.login-card,
.product-form,
.table-wrap,
.orders-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-card {
  display: grid;
  gap: 14px;
  max-width: 390px;
  padding: 28px;
  width: 100%;
}

.admin-app {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  background: #17212b;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px;
}

.admin-sidebar .brand-mark {
  background: #fff;
  color: #17212b;
}

.admin-sidebar .ghost-button,
.admin-tab {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  justify-content: flex-start;
  width: 100%;
}

.admin-tab.active {
  background: var(--cyan);
  color: #fff;
}

.admin-sidebar .ghost-button {
  margin-top: auto;
}

.admin-main {
  padding: 24px;
}

.admin-header {
  align-items: flex-start;
}

.stat-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.stat-card span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 850;
}

.stat-card strong {
  display: block;
  font-size: 24px;
}

.admin-section {
  display: grid;
  gap: 18px;
}

.product-form,
.table-wrap,
.orders-list {
  padding: 18px;
}

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

.checkbox-row {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  gap: 8px;
}

.checkbox-row input {
  min-height: auto;
  width: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

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

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

.table-product {
  align-items: center;
  display: flex;
  gap: 10px;
}

.table-product img {
  background: #f8f8f8;
  border-radius: 6px;
  height: 52px;
  object-fit: contain;
  padding: 4px;
  width: 52px;
}

.row-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.orders-list {
  display: grid;
  gap: 12px;
}

.order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.order-card-header,
.order-card-footer {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.order-items {
  color: var(--muted);
  display: grid;
  gap: 4px;
  font-size: 14px;
}

.order-update {
  display: grid;
  gap: 8px;
  grid-template-columns: 180px minmax(0, 1fr) auto;
}

.mobile-only {
  display: none;
}

.site-footer {
  background: #0c1110;
  border-top: 1px solid var(--line);
  padding: 34px 7vw 20px;
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 1fr));
  margin: 0 auto;
  max-width: 1280px;
}

.site-footer h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.site-footer a,
.site-footer p {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--cyan);
}

.footer-grid > div {
  align-content: start;
  display: grid;
  gap: 8px;
}

.footer-brand {
  gap: 14px;
}

.footer-brand p {
  max-width: 520px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin: 26px auto 0;
  max-width: 1280px;
  padding-top: 16px;
  text-align: center;
}

html[dir="rtl"] .timeline {
  border-left: 0;
  border-right: 2px solid var(--line);
  margin: 18px 8px 0 0;
  padding-left: 0;
  padding-right: 20px;
}

html[dir="rtl"] .timeline-item::before {
  left: auto;
  right: -27px;
}

@media (max-width: 1100px) {
  .topbar {
    padding: 0 22px;
  }

  .nav-link {
    display: none;
  }

  .store-hero {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: 220px;
  }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: auto 1fr;
    min-height: auto;
    padding: 12px 14px;
  }

  .top-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .top-actions {
    justify-content: flex-end;
  }

  .top-actions .icon-link span,
  .brand span:first-child {
    display: none;
  }

  .storefront-shell {
    padding: 16px 14px 64px;
  }

  .promo-band {
    grid-template-columns: 1fr;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }

  .catalog-header {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .catalog-pane {
    scroll-margin-top: 158px;
  }

  .catalog-header select {
    max-width: none;
  }

  .catalog-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: stretch;
  }

  .result-count {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: inline-flex;
    min-height: 44px;
    padding: 0 12px;
  }

  .catalog-actions .ghost-button {
    min-height: 44px;
  }

  .category-chips {
    background: rgba(7, 10, 10, 0.92);
    border-block: 1px solid var(--line);
    gap: 8px;
    margin-inline: -14px;
    padding: 10px 14px;
    position: sticky;
    top: 135px;
    z-index: 25;
  }

  .category-chips::before {
    align-items: center;
    color: var(--muted);
    content: "پۆلەکان";
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 950;
    min-height: 44px;
    padding-inline-end: 4px;
  }

  .category-chip {
    border-color: rgba(255, 255, 255, 0.14);
    font-size: 14px;
    min-height: 44px;
    padding: 0 18px;
  }

  .filter-chip {
    background: var(--surface-3);
    box-shadow: -12px 0 18px rgba(7, 10, 10, 0.88);
    display: inline-flex;
    gap: 7px;
    left: 14px;
    position: sticky;
    z-index: 2;
  }

  .filter-chip svg {
    height: 17px;
    width: 17px;
  }

  .filter-chip:hover {
    background: var(--cyan);
    color: #061010;
  }

  .category-chip.active {
    box-shadow: 0 0 0 3px rgba(23, 215, 243, 0.14);
  }

  .filter-drawer {
    border-left: 0;
    border-radius: 18px 18px 0 0;
    border-top: 1px solid var(--line);
    bottom: 0;
    gap: 14px;
    height: auto;
    max-height: 86dvh;
    max-width: none;
    padding: 18px 16px 22px;
    right: 0;
    top: auto;
    transform: translateY(110%);
    width: 100%;
  }

  .filter-drawer::before {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    content: "";
    height: 4px;
    justify-self: center;
    width: 44px;
  }

  .filter-drawer.open {
    transform: translateY(0);
  }

  .filter-drawer label {
    font-size: 14px;
  }

  .filter-drawer select,
  .filter-check {
    min-height: 50px;
  }

  .filter-drawer .ghost-button {
    min-height: 48px;
    width: 100%;
  }

  .track-form,
  .order-update {
    grid-template-columns: 1fr;
  }

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

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

  .admin-sidebar {
    position: static;
  }

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

@media (max-width: 560px) {
  h1 {
    font-size: 34px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-showcase {
    min-height: 190px;
  }

  .hero-showcase img {
    max-height: 150px;
  }

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

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

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

  .product-row {
    grid-auto-columns: 178px;
  }

  .product-info {
    padding: 12px;
  }

  .cart-page-shell {
    padding: 18px 14px 64px;
  }

  .cart-item-card {
    align-items: start;
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .cart-item-side {
    align-items: stretch;
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto auto;
    justify-items: stretch;
  }

  .cart-item-side > strong {
    align-self: center;
  }

  .checkout-grid,
  .track-summary {
    grid-template-columns: 1fr;
  }

  .product-title-row h3 {
    font-size: 14px;
    min-height: 38px;
  }

  .price {
    font-size: 16px;
  }

  .product-footer .primary-button {
    min-height: 38px;
    padding: 0 8px;
  }

  .order-pane {
    max-width: none;
    width: 100%;
  }

  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .dialog-layout img {
    min-height: 220px;
  }

  .product-page-shell {
    padding: 18px 14px 64px;
  }

  .main-gallery-frame {
    aspect-ratio: 1 / 0.9;
  }

  .detail-panels,
  .detail-specs {
    grid-template-columns: 1fr;
  }

  .admin-main {
    padding: 14px;
  }

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

  .stat-strip,
  .form-grid,
  .section-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .order-card-header,
  .order-card-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Anas-inspired TechLand customer storefront */
:root {
  color-scheme: light;
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef3f8;
  --text: #202833;
  --muted: #667085;
  --line: #dfe5ec;
  --cyan: #ff9818;
  --cyan-dark: #d97706;
  --green: #16a34a;
  --red: #e53935;
  --amber: #f59e0b;
  --shadow: 0 10px 28px rgba(30, 42, 58, 0.1);
}

html,
body,
body.shop-body,
body.anas-page {
  background: var(--bg);
  color: var(--text);
}

body.anas-page {
  min-width: 320px;
}

.anas-page .topbar,
.anas-header {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(30, 42, 58, 0.08);
  display: grid;
  gap: 10px 18px;
  grid-template-areas:
    "brand search tools"
    "nav nav nav";
  grid-template-columns: 190px minmax(260px, 1fr) auto;
  min-height: 96px;
  padding: 10px clamp(18px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.anas-brand {
  align-items: center;
  background: #050507;
  border-radius: 6px;
  grid-area: brand;
  height: 76px;
  justify-self: end;
  overflow: hidden;
  width: 76px;
}

.anas-page .brand-logo {
  height: 76px;
  object-fit: contain;
  transform: scale(1.34);
  width: 76px;
}

.anas-page .footer-logo {
  height: 74px;
  object-fit: contain;
  width: 150px;
}

.anas-header .top-search,
.anas-page .top-search {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  grid-area: search;
  height: 44px;
  min-width: 0;
  padding: 0 12px;
}

.anas-header .top-search input,
.anas-page .top-search input {
  color: var(--text);
}

.anas-header .top-search input::placeholder,
.anas-page .top-search input::placeholder {
  color: #8a95a3;
}

.anas-tools {
  grid-area: tools;
  justify-content: flex-end;
}

.anas-page .icon-button,
.anas-page .ghost-button,
.anas-page .icon-link,
.anas-page .link-button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  min-height: 40px;
}

.anas-page .icon-button:hover,
.anas-page .ghost-button:hover,
.anas-page .icon-link:hover,
.anas-page .link-button:hover {
  background: #eef6fd;
  border-color: #bfddf5;
  color: var(--cyan-dark);
}

.anas-page .primary-button {
  background: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 6px;
  color: #fff;
  font-weight: 900;
}

.anas-page .primary-button:hover {
  background: var(--cyan-dark);
  border-color: var(--cyan-dark);
  color: #fff;
}

.anas-page .cart-toggle span {
  background: var(--red);
  color: #fff;
}

.anas-nav {
  border-top: 1px solid #edf1f5;
  gap: 0;
  grid-area: nav;
  justify-content: flex-start;
  overflow-x: auto;
  padding-top: 8px;
  scrollbar-width: thin;
}

.anas-nav .nav-link {
  border-radius: 5px;
  color: #3f4b5a;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 12px;
  white-space: nowrap;
}

.anas-nav .nav-link:hover,
.anas-nav .nav-link.active {
  background: #eef6fd;
  color: var(--cyan-dark);
}

.anas-storefront,
.anas-inner-page {
  margin: 0 auto;
  max-width: 1240px;
  padding: 22px 16px 56px;
  width: 100%;
}

.anas-home-grid {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 210px;
}

.anas-category-menu,
.anas-side-promos a,
.anas-hero,
.anas-benefits > div,
.anas-catalog,
.summary-card,
.checkout-form,
.track-panel,
.status-card,
.detail-gallery,
.detail-info,
.product-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.anas-category-menu {
  align-self: start;
  overflow: hidden;
}

.anas-category-menu h2 {
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  margin: 0;
  padding: 14px 16px;
}

.anas-category-menu a {
  align-items: center;
  border-bottom: 1px solid #edf1f5;
  color: #344054;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  min-height: 42px;
  padding: 10px 16px;
}

.anas-category-menu a:last-child {
  border-bottom: 0;
}

.anas-category-menu a:hover,
.anas-category-menu a.active {
  background: #eef6fd;
  color: var(--cyan-dark);
}

.anas-hero {
  align-items: center;
  background: #eaf6ff;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.55), var(--shadow);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
  min-height: 330px;
  overflow: hidden;
  padding: clamp(22px, 4vw, 42px);
}

.anas-hero h1 {
  color: #172233;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  margin: 8px 0 12px;
  max-width: 680px;
}

.anas-hero .hero-text {
  color: #51606f;
  font-size: 17px;
  margin: 0 0 20px;
  max-width: 620px;
}

.anas-page .eyebrow {
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
}

.anas-hero .hero-actions {
  flex-wrap: wrap;
}

.anas-hero .hero-showcase {
  align-items: center;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(22, 136, 216, 0.16);
  border-radius: 8px;
  display: grid;
  justify-items: center;
  min-height: 260px;
  padding: 18px;
  position: relative;
}

.anas-hero .hero-showcase img {
  max-height: 220px;
  object-fit: contain;
  width: min(100%, 340px);
}

.anas-hero .showcase-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  bottom: 16px;
  box-shadow: 0 10px 22px rgba(30, 42, 58, 0.12);
  color: var(--text);
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  position: absolute;
  right: 16px;
}

.anas-hero .showcase-card span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.anas-side-promos {
  display: grid;
  gap: 16px;
}

.anas-side-promos a {
  align-content: center;
  box-shadow: var(--shadow);
  color: var(--text);
  display: grid;
  gap: 8px;
  min-height: 157px;
  padding: 18px;
}

.anas-side-promos span,
.anas-benefits span {
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 900;
}

.anas-side-promos strong {
  font-size: 20px;
  line-height: 1.25;
}

.anas-benefits {
  background: transparent;
  border: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0;
  padding: 0;
}

.anas-benefits > div {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
}

.anas-benefits strong {
  color: var(--text);
}

.anas-catalog {
  padding: 18px;
}

.catalog-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.catalog-header h2,
.page-heading h1,
.panel-heading h1,
.track-panel h1 {
  color: var(--text);
}

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

.result-count {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #344054;
  min-height: 40px;
}

.category-chips {
  background: transparent;
  border: 0;
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  overflow-x: auto;
  padding: 0 0 2px;
  position: static;
}

.category-chips::before {
  display: none;
}

.category-chip {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #344054;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 800;
  min-height: 38px;
  padding: 0 12px;
}

.category-chip:hover,
.category-chip.active {
  background: #eef6fd;
  border-color: #b9d9f2;
  color: var(--cyan-dark);
}

.filter-chip {
  display: none;
}

.product-grid,
.section-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
}

.product-card,
.anas-product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.product-card:hover,
.anas-product-card:hover {
  border-color: #b8d7f2;
  box-shadow: 0 12px 24px rgba(30, 42, 58, 0.12);
  transform: translateY(-2px);
}

.product-media {
  align-items: center;
  aspect-ratio: 1 / 0.78;
  background: #fff;
  border-bottom: 1px solid #edf1f5;
  display: flex;
  justify-content: center;
  min-height: 142px;
  padding: 16px;
  position: relative;
}

.product-media img {
  height: 100%;
  max-height: 150px;
  object-fit: contain;
  width: 100%;
}

.sale-badge,
.new-badge {
  align-items: center;
  border-radius: 5px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  min-height: 24px;
  padding: 0 8px;
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
}

.sale-badge {
  background: var(--red);
}

.new-badge {
  background: var(--cyan);
  left: 10px;
  right: auto;
}

.product-info {
  color: var(--text);
  display: grid;
  gap: 7px;
  padding: 12px;
}

.product-info h3,
.product-title-row h3 {
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  margin: 0;
  min-height: 40px;
}

.product-category,
.product-meta {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.price-row {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.price {
  color: var(--red);
  font-size: 18px;
  font-weight: 950;
}

.old-price {
  color: #98a2b3;
  font-size: 13px;
  text-decoration: line-through;
}

.product-footer {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 2px;
}

.tag {
  background: #e9f9ef;
  border: 1px solid #bfeccf;
  border-radius: 5px;
  color: var(--green);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  min-height: 28px;
  padding: 4px 8px;
  white-space: nowrap;
}

.tag.warn {
  background: #fff7e8;
  border-color: #f9dfaa;
  color: #b26a00;
}

.tag.off {
  background: #fff0f0;
  border-color: #ffd0d0;
  color: var(--red);
}

.details-pill {
  align-items: center;
  color: var(--cyan-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 4px;
  white-space: nowrap;
}

.details-pill svg {
  height: 15px;
  width: 15px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}

.page-button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-weight: 800;
  min-height: 36px;
  min-width: 38px;
  padding: 0 12px;
}

.page-button.active,
.page-button:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
}

.filter-backdrop {
  background: rgba(15, 23, 42, 0.38);
}

.filter-drawer {
  background: var(--surface);
  border-left: 1px solid var(--line);
  color: var(--text);
  box-shadow: -20px 0 50px rgba(30, 42, 58, 0.16);
}

.filter-drawer label {
  color: var(--text);
}

.filter-drawer select,
.filter-drawer input,
.filter-drawer textarea,
.checkout-form input,
.checkout-form textarea,
.track-form input {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
}

.filter-check {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
}

.breadcrumbs {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.breadcrumbs a:hover {
  color: var(--cyan-dark);
}

.product-detail-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.detail-gallery,
.detail-info,
.product-section,
.checkout-form,
.summary-card,
.track-panel,
.status-card {
  padding: 18px;
}

.main-gallery-frame {
  align-items: center;
  aspect-ratio: 1 / 0.82;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.main-gallery-frame img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.detail-sale {
  right: 14px;
  top: 14px;
}

.gallery-arrow {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(30, 42, 58, 0.12);
  color: var(--text);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  z-index: 3;
}

.gallery-arrow.left {
  left: 12px;
}

.gallery-arrow.right {
  right: 12px;
}

.gallery-thumbs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.gallery-thumb {
  aspect-ratio: 1 / 0.75;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--cyan);
}

.gallery-thumb img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.detail-info {
  display: grid;
  gap: 14px;
}

.detail-info h1 {
  color: var(--text);
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15;
  margin: 0;
}

.detail-price .price {
  font-size: 28px;
}

.detail-stock-line,
.detail-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-panels,
.detail-specs,
.track-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-panels article,
.track-summary > div {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.detail-panels span,
.track-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-description {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.detail-description h2 {
  color: var(--text);
  font-size: 20px;
  margin: 0 0 8px;
}

.spec-list {
  margin: 12px 0 0;
  padding: 0;
}

.spec-list li {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  list-style: none;
  padding: 10px 12px;
}

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

.page-heading h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 6px 0 0;
}

.cart-layout,
.checkout-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.cart-list {
  display: grid;
  gap: 12px;
}

.cart-item-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--text);
  display: grid;
  gap: 14px;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  padding: 12px;
}

.cart-item-media {
  align-items: center;
  aspect-ratio: 1;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  justify-content: center;
  padding: 10px;
}

.cart-item-media img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.cart-item-main {
  display: grid;
  gap: 10px;
}

.cart-item-title {
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
}

.cart-item-main p,
.cart-item-meta {
  color: var(--muted);
}

.cart-item-meta,
.cart-item-side {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cart-item-side {
  justify-content: flex-end;
  min-width: 220px;
}

.qty-controls {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  overflow: hidden;
}

.qty-controls button {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 20px;
  height: 36px;
  width: 38px;
}

.qty-controls strong {
  min-width: 32px;
  text-align: center;
}

.summary-card {
  position: sticky;
  top: 118px;
}

.summary-card h2,
.checkout-form h2 {
  color: var(--text);
  margin-top: 0;
}

.summary-lines {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.summary-line {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
}

.summary-line strong {
  color: var(--text);
}

.grand-total {
  border-bottom: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.checkout-link,
.continue-link {
  margin-top: 10px;
  width: 100%;
}

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

.checkout-form,
.checkout-form label,
.track-form label {
  color: var(--text);
}

.form-heading p {
  color: var(--muted);
}

.checkout-items {
  display: grid;
  gap: 10px;
}

.checkout-item {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 10px;
  grid-template-columns: 62px minmax(0, 1fr);
  padding: 8px;
}

.checkout-item img {
  aspect-ratio: 1;
  object-fit: contain;
}

.checkout-item span {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.success-panel {
  align-items: center;
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 24px;
  text-align: center;
}

.success-panel svg {
  color: var(--green);
  height: 54px;
  width: 54px;
}

.center-shell {
  margin: 0 auto;
  max-width: 980px;
  padding: 22px 16px 56px;
}

.track-panel {
  padding: 20px;
}

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

.track-form button {
  align-self: end;
}

.track-result {
  margin-top: 18px;
}

.status-card {
  display: grid;
  gap: 16px;
}

.order-card-header,
.order-card-footer {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.order-card-header h2 {
  color: var(--text);
  margin: 4px 0 0;
}

.order-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-items span {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
}

.timeline {
  border-right: 2px solid #cfe4f6;
  display: grid;
  gap: 14px;
  padding-right: 16px;
}

.timeline-item {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  position: relative;
}

.timeline-item::before {
  background: var(--cyan);
  border: 3px solid #fff;
  border-radius: 999px;
  content: "";
  height: 12px;
  position: absolute;
  right: -24px;
  top: 16px;
  width: 12px;
}

.timeline-item h3 {
  color: var(--text);
  margin: 0;
}

.timeline-item p {
  color: var(--muted);
  margin: 6px 0;
}

.timeline-item time {
  color: #98a2b3;
  font-size: 12px;
}

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

.anas-footer {
  background: #202b38;
  border-top: 0;
  color: #d8e0ea;
  margin-top: 28px;
}

.anas-footer .footer-grid {
  gap: 24px;
}

.anas-footer h3 {
  color: #fff;
}

.anas-footer a {
  color: #d8e0ea;
}

.anas-footer a:hover {
  color: #fff;
}

.anas-footer p {
  color: #c3ccd8;
}

.anas-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #b9c3cf;
}

.form-message.error {
  background: #fff0f0;
  border: 1px solid #ffd0d0;
  border-radius: 6px;
  color: var(--red);
  padding: 10px 12px;
}

.filters-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .anas-home-grid {
    grid-template-columns: 1fr;
  }

  .anas-side-promos {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .anas-side-promos a {
    min-height: 120px;
  }

  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }
}

@media (max-width: 860px) {
  .anas-page .topbar,
  .anas-header {
    gap: 9px 12px;
    grid-template-areas:
      "brand tools"
      "search search"
      "nav nav";
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 136px;
    padding: 8px 12px;
  }

  .anas-page .brand-logo {
    height: 58px;
    transform: scale(1.34);
    width: 58px;
  }

  .anas-brand {
    height: 58px;
    width: 58px;
  }

  .anas-header .top-search,
  .anas-page .top-search {
    height: 42px;
  }

  .anas-nav {
    padding-bottom: 2px;
    padding-top: 6px;
  }

  .anas-nav .nav-link {
    font-size: 13px;
    min-height: 34px;
    padding: 7px 10px;
  }

  .anas-storefront,
  .anas-inner-page,
  .center-shell {
    padding: 14px 10px 42px;
  }

  .anas-home-grid {
    grid-template-columns: 1fr;
  }

  .anas-category-menu {
    box-shadow: none;
  }

  .anas-category-menu h2 {
    padding: 12px 14px;
  }

  .anas-category-menu {
    display: block;
  }

  .anas-category-menu a {
    display: inline-flex;
    min-height: 38px;
    white-space: nowrap;
  }

  .anas-category-menu {
    overflow-x: auto;
    white-space: nowrap;
  }

  .anas-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 20px;
  }

  .anas-hero h1 {
    font-size: 30px;
  }

  .anas-hero .hero-text {
    font-size: 15px;
  }

  .anas-hero .hero-showcase {
    min-height: 210px;
  }

  .anas-hero .hero-showcase img {
    max-height: 170px;
  }

  .anas-benefits,
  .anas-side-promos {
    grid-template-columns: 1fr;
  }

  .catalog-header {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-actions {
    justify-content: space-between;
  }

  .category-chips {
    background: var(--surface);
    border-block: 1px solid var(--line);
    margin: 0 -18px 14px;
    padding: 10px 18px;
    position: sticky;
    top: 136px;
    z-index: 30;
  }

  .filter-chip {
    display: inline-flex;
    gap: 7px;
    position: sticky;
    left: 10px;
    z-index: 2;
  }

  .product-detail-layout,
  .detail-panels,
  .detail-specs,
  .track-summary,
  .track-form {
    grid-template-columns: 1fr;
  }

  .cart-item-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .cart-item-side {
    grid-column: 1 / -1;
    justify-content: space-between;
    min-width: 0;
  }

  .filter-drawer {
    border-left: 0;
    border-radius: 16px 16px 0 0;
    border-top: 1px solid var(--line);
    bottom: 0;
    height: auto;
    max-height: 86dvh;
    max-width: none;
    padding: 18px 16px 22px;
    right: 0;
    top: auto;
    transform: translateY(110%);
    width: 100%;
  }

  .filter-drawer::before {
    background: #c9d2dc;
    border-radius: 999px;
    content: "";
    height: 4px;
    justify-self: center;
    width: 44px;
  }

  .filter-drawer.open {
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .anas-tools {
    gap: 6px;
  }

  .anas-page .icon-button {
    height: 38px;
    width: 38px;
  }

  .anas-hero h1 {
    font-size: 27px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .product-media {
    min-height: 118px;
    padding: 10px;
  }

  .product-info {
    gap: 5px;
    padding: 10px;
  }

  .product-info h3,
  .product-title-row h3 {
    font-size: 13px;
    min-height: 38px;
  }

  .product-meta {
    display: none;
  }

  .price {
    font-size: 15px;
  }

  .old-price,
  .product-category,
  .details-pill {
    font-size: 11px;
  }

  .product-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .tag {
    font-size: 11px;
    min-height: 25px;
    padding: 3px 7px;
  }

  .sale-badge,
  .new-badge {
    font-size: 10px;
    min-height: 21px;
    padding: 0 6px;
  }

  .cart-item-card {
    grid-template-columns: 78px minmax(0, 1fr);
    padding: 10px;
  }

  .cart-item-title {
    font-size: 15px;
  }

  .cart-item-side {
    align-items: stretch;
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr auto auto;
  }

  .remove-button span {
    display: none;
  }

  .detail-gallery,
  .detail-info,
  .product-section,
  .checkout-form,
  .summary-card,
  .track-panel,
  .status-card {
    padding: 14px;
  }

  .main-gallery-frame {
    aspect-ratio: 1 / 0.92;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .detail-info h1,
  .page-heading h1 {
    font-size: 26px;
  }

  .detail-price .price {
    font-size: 24px;
  }

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

/* Storefront refinements based on the selected retail reference. */
.anas-page {
  overflow-x: clip;
}

.anas-home-grid > *,
.anas-hero > *,
.anas-catalog,
.reference-section,
.product-detail-layout > *,
.cart-layout > *,
.checkout-layout > * {
  min-width: 0;
  max-width: 100%;
}

.anas-hero {
  position: relative;
}

.hero-copy,
.hero-visual-stage,
#heroImage {
  transition: opacity 180ms ease, transform 180ms ease;
}

.anas-hero:not(.hero-ready) .hero-copy,
.anas-hero:not(.hero-ready) .hero-visual-stage {
  opacity: 0.3;
  transform: translateY(4px);
}

.hero-visual-stage {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.hero-arrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(30, 42, 58, 0.12);
  color: var(--text);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  z-index: 4;
}

.hero-arrow:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
}

.hero-arrow svg {
  height: 17px;
  width: 17px;
}

.hero-arrow-prev {
  right: 10px;
}

.hero-arrow-next {
  left: 10px;
}

.hero-dots {
  align-items: center;
  bottom: 12px;
  display: flex;
  gap: 6px;
  justify-content: center;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  z-index: 5;
}

.hero-dots button {
  background: #c6d3df;
  border: 0;
  border-radius: 999px;
  height: 7px;
  padding: 0;
  transition: background 160ms ease, width 160ms ease;
  width: 7px;
}

.hero-dots button.active {
  background: var(--cyan);
  width: 22px;
}

.anas-benefits > div {
  align-items: center;
  column-gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr);
}

.anas-benefits > div > svg {
  color: var(--cyan-dark);
  grid-row: 1 / 3;
  height: 28px;
  width: 28px;
}

.anas-benefits > div > span,
.anas-benefits > div > strong {
  grid-column: 2;
}

.reference-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 16px 0;
  padding: 18px;
  scroll-margin-top: 116px;
}

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

.reference-section-heading h2 {
  color: var(--text);
  font-size: 26px;
  margin: 5px 0 0;
}

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

.category-tiles a {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 142px;
  padding: 12px 8px;
  text-align: center;
}

.category-tiles a:hover {
  border-color: #b8d7f2;
  box-shadow: 0 9px 20px rgba(30, 42, 58, 0.09);
  color: var(--cyan-dark);
}

.category-tiles img {
  height: 82px;
  object-fit: contain;
  width: 100%;
}

.category-tiles strong {
  font-size: 14px;
}

.brand-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.brand-strip span {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #536070;
  display: flex;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  justify-content: center;
  min-height: 58px;
}

#products,
#contact {
  scroll-margin-top: 116px;
}

@media (max-width: 860px) {
  .anas-page .topbar,
  .anas-header {
    min-height: 0;
    width: 100%;
  }

  .anas-brand {
    justify-self: start;
  }

  .anas-header .anas-nav,
  .anas-header:has([data-menu-toggle]) .anas-nav {
    display: none;
  }

  .anas-header:has([data-menu-toggle]).nav-open .anas-nav {
    align-items: stretch;
    background: var(--surface);
    border-top: 1px solid var(--line);
    display: grid;
    gap: 2px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 50dvh;
    overflow-y: auto;
    padding: 10px 0 4px;
  }

  .anas-header:has([data-menu-toggle]).nav-open .anas-nav .nav-link {
    display: flex;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .anas-home-grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .anas-category-menu,
  .anas-hero,
  .anas-side-promos,
  .anas-catalog,
  .reference-section {
    width: 100%;
  }

  .anas-category-menu {
    max-width: calc(100vw - 20px);
  }

  .anas-category-menu h2 {
    position: sticky;
    right: 0;
  }

  .anas-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .anas-hero .hero-copy,
  .anas-hero .hero-text,
  .anas-hero h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

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

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

  .category-chips {
    max-width: calc(100vw - 20px);
    top: 126px;
  }
}

@media (max-width: 560px) {
  .anas-storefront,
  .anas-inner-page,
  .center-shell {
    max-width: 100vw;
    overflow: clip;
  }

  .anas-home-grid {
    gap: 12px;
  }

  .anas-category-menu {
    border-radius: 7px;
  }

  .anas-category-menu h2 {
    font-size: 15px;
    min-height: 42px;
    padding: 10px 12px;
  }

  .anas-category-menu a {
    font-size: 13px;
    min-height: 36px;
    padding: 8px 11px;
  }

  .anas-hero {
    gap: 16px;
    padding: 18px;
  }

  .anas-hero h1 {
    font-size: 25px;
    line-height: 1.22;
  }

  .anas-hero .hero-text {
    font-size: 14px;
    line-height: 1.65;
  }

  .anas-hero .hero-showcase {
    min-height: 190px;
  }

  .anas-hero .hero-showcase img {
    max-height: 150px;
  }

  .hero-arrow {
    height: 32px;
    width: 32px;
  }

  .hero-arrow-prev {
    right: 6px;
  }

  .hero-arrow-next {
    left: 6px;
  }

  .anas-benefits > div {
    min-height: 76px;
  }

  .reference-section {
    margin: 12px 0;
    padding: 14px;
  }

  .reference-section-heading h2 {
    font-size: 22px;
  }

  .reference-section-heading .link-button {
    min-height: 36px;
    padding: 0 10px;
  }

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

  .category-tiles a {
    min-height: 124px;
  }

  .category-tiles img {
    height: 68px;
  }

  .brand-strip span {
    font-size: 12px;
    min-height: 48px;
  }

  .catalog-header h2 {
    font-size: 24px;
  }

  .catalog-actions .ghost-button {
    min-height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-visual-stage,
  #heroImage,
  .hero-dots button {
    transition: none;
  }
}

/* Sorani storefront theme switcher. */
.theme-icon-dark {
  display: none;
}

html[data-theme="dark"] .theme-icon-light {
  display: none;
}

html[data-theme="dark"] .theme-icon-dark {
  display: block;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #181818;
  --surface: #0b0b0b;
  --surface-2: #202020;
  --surface-3: #2a2a2a;
  --text: #f8f8f8;
  --muted: #b8b8b8;
  --line: #3d3d3d;
  --cyan: #ff9818;
  --cyan-dark: #ffad42;
  --green: #35c977;
  --red: #ff6767;
  --amber: #f5b84b;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] body,
html[data-theme="dark"] body.shop-body,
html[data-theme="dark"] body.anas-page {
  background: var(--bg);
  color: var(--text);
}

html[data-theme="dark"] .anas-page .topbar,
html[data-theme="dark"] .anas-header,
html[data-theme="dark"] .anas-header:has([data-menu-toggle]).nav-open .anas-nav {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .anas-nav {
  border-color: var(--line);
}

html[data-theme="dark"] .anas-nav .nav-link,
html[data-theme="dark"] .anas-category-menu a,
html[data-theme="dark"] .category-chip,
html[data-theme="dark"] .result-count {
  color: #cbd5e1;
}

html[data-theme="dark"] .anas-page .icon-button:hover,
html[data-theme="dark"] .anas-page .ghost-button:hover,
html[data-theme="dark"] .anas-page .icon-link:hover,
html[data-theme="dark"] .anas-page .link-button:hover,
html[data-theme="dark"] .anas-nav .nav-link:hover,
html[data-theme="dark"] .anas-nav .nav-link.active,
html[data-theme="dark"] .anas-category-menu a:hover,
html[data-theme="dark"] .anas-category-menu a.active,
html[data-theme="dark"] .category-chip:hover,
html[data-theme="dark"] .category-chip.active {
  background: #1c3142;
  border-color: #355875;
  color: #8bcef8;
}

html[data-theme="dark"] .anas-category-menu h2,
html[data-theme="dark"] .anas-header .top-search,
html[data-theme="dark"] .anas-page .top-search,
html[data-theme="dark"] .category-chip,
html[data-theme="dark"] .result-count,
html[data-theme="dark"] .brand-strip span {
  background: var(--surface-2);
}

html[data-theme="dark"] .anas-category-menu h2,
html[data-theme="dark"] .anas-category-menu a,
html[data-theme="dark"] .product-media,
html[data-theme="dark"] .catalog-header {
  border-color: var(--line);
}

html[data-theme="dark"] .anas-hero {
  background: #142334;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.03), var(--shadow);
}

html[data-theme="dark"] .anas-hero h1,
html[data-theme="dark"] .anas-side-promos strong,
html[data-theme="dark"] .anas-benefits strong,
html[data-theme="dark"] .reference-section-heading h2 {
  color: var(--text);
}

html[data-theme="dark"] .anas-hero .hero-text {
  color: #b8c5d3;
}

html[data-theme="dark"] .anas-hero .hero-showcase {
  background: rgba(8, 15, 24, 0.45);
  border-color: #2d4962;
}

html[data-theme="dark"] .anas-hero .showcase-card,
html[data-theme="dark"] .hero-arrow,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .anas-product-card,
html[data-theme="dark"] .product-media,
html[data-theme="dark"] .category-tiles a,
html[data-theme="dark"] .main-gallery-frame,
html[data-theme="dark"] .gallery-arrow,
html[data-theme="dark"] .gallery-thumb,
html[data-theme="dark"] .cart-item-card {
  background: var(--surface-2);
  color: var(--text);
}

html[data-theme="dark"] .product-card:hover,
html[data-theme="dark"] .anas-product-card:hover,
html[data-theme="dark"] .category-tiles a:hover {
  border-color: #416987;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .brand-strip span {
  color: #c8d3df;
}

html[data-theme="dark"] .tag {
  background: #173527;
  border-color: #285d41;
}

html[data-theme="dark"] .tag.warn {
  background: #3a2d16;
  border-color: #675127;
  color: #f3c56a;
}

html[data-theme="dark"] .tag.off,
html[data-theme="dark"] .form-message.error {
  background: #3b2025;
  border-color: #65313a;
}

html[data-theme="dark"] .timeline {
  border-color: #31536e;
}

html[data-theme="dark"] .timeline-item::before {
  border-color: var(--surface);
}

html[data-theme="dark"] .empty-state {
  border-color: #455363;
}

html[data-theme="dark"] .filter-backdrop {
  background: rgba(0, 0, 0, 0.62);
}

html[data-theme="dark"] .anas-footer {
  background: #090d12;
}

html[data-theme="dark"] .anas-footer p,
html[data-theme="dark"] .anas-footer a {
  color: #bdc8d5;
}

/* Anas-style catalog page. */
.anas-page:not(.catalog-route) .anas-catalog {
  display: none;
}

.catalog-route .latest-product-slider,
.catalog-route .home-category-shelves {
  display: none;
}

.latest-product-slider {
  border-block: 1px solid var(--line);
  margin: 26px 0;
  overflow: hidden;
  padding: 26px 0 30px;
}

.latest-product-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.latest-product-heading h2 {
  font-size: 25px;
  margin: 0;
}

.latest-product-viewport {
  direction: rtl;
  overflow: hidden;
}

.latest-product-track {
  animation: techland-product-marquee 44s linear infinite;
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
}

.latest-product-viewport:hover .latest-product-track,
.latest-product-viewport:focus-within .latest-product-track {
  animation-play-state: paused;
}

.home-product-slide {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  flex: 0 0 220px;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease;
}

.home-product-slide:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
}

.home-product-image {
  align-items: center;
  aspect-ratio: 5 / 4;
  background: #fff;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
  position: relative;
}

.home-product-image img {
  height: 100%;
  object-fit: contain;
  transition: transform 220ms ease;
  width: 100%;
}

.home-product-slide:hover img {
  transform: scale(1.04);
}

.home-discount-badge {
  background: var(--red);
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 7px;
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 1;
}

.home-product-copy {
  padding: 11px 12px 13px;
}

.home-product-copy h3 {
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 8px;
  min-height: 41px;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-product-price .price {
  color: var(--cyan-dark);
  font-size: 15px;
}

.anas-product-card .product-media {
  aspect-ratio: 1;
  min-height: 0;
}

.anas-product-card .product-info {
  gap: 9px;
}

.anas-product-card .product-info h3 {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-warranty {
  align-items: center;
  color: var(--green);
  display: flex;
  font-size: 11px;
  gap: 5px;
  margin: 0;
  min-height: 20px;
}

.product-warranty svg {
  height: 14px;
  width: 14px;
}

@keyframes techland-product-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(50% + 7px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .latest-product-track {
    animation: none;
  }

  .latest-product-viewport {
    overflow-x: auto;
  }
}

.home-category-shelves {
  margin: 30px 0 42px;
}

.home-product-shelf + .home-product-shelf {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 28px;
}

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

.home-shelf-heading h2 {
  font-size: 22px;
  margin: 0;
}

.home-shelf-scroller {
  position: relative;
}

.home-shelf-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 3px 1px 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.home-shelf-track::-webkit-scrollbar {
  display: none;
}

.home-shelf-track .home-product-slide,
.home-shelf-more {
  flex-basis: 210px;
  scroll-snap-align: start;
}

.home-shelf-more {
  align-items: center;
  align-self: stretch;
  background: rgba(255, 152, 24, 0.06);
  border: 1px dashed rgba(255, 152, 24, 0.5);
  border-radius: 7px;
  color: var(--cyan-dark);
  display: flex;
  flex: 0 0 210px;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-height: 250px;
  padding: 20px;
  text-align: center;
}

.home-shelf-more svg {
  height: 28px;
  width: 28px;
}

.home-shelf-more span {
  color: var(--muted);
  font-size: 12px;
}

.shelf-arrow {
  align-items: center;
  background: rgba(11, 11, 11, 0.9);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  display: flex;
  height: 38px;
  justify-content: center;
  opacity: 0;
  position: absolute;
  top: 43%;
  transform: translateY(-50%);
  transition: opacity 150ms ease, background 150ms ease;
  width: 38px;
  z-index: 3;
}

.home-shelf-scroller:hover .shelf-arrow,
.shelf-arrow:focus-visible {
  opacity: 1;
}

.shelf-arrow:hover {
  background: var(--cyan);
  color: #171717;
}

.shelf-arrow-right {
  right: 8px;
}

.shelf-arrow-left {
  left: 8px;
}

.shelf-arrow svg {
  height: 18px;
  width: 18px;
}

@media (max-width: 860px) {
  .shelf-arrow {
    display: none;
  }

  .home-category-shelves {
    margin-bottom: 28px;
  }
}

@media (max-width: 560px) {
  .latest-product-slider {
    margin-block: 18px;
    padding-block: 20px;
  }

  .latest-product-heading h2,
  .home-shelf-heading h2 {
    font-size: 19px;
  }

  .home-product-slide,
  .home-shelf-track .home-product-slide,
  .home-shelf-more {
    flex-basis: 168px;
  }

  .home-shelf-more {
    flex-basis: 168px;
    min-height: 220px;
  }

  .home-product-image {
    aspect-ratio: 1;
  }

  .home-product-copy {
    padding: 9px 10px 11px;
  }

  .home-product-copy h3 {
    font-size: 12px;
    min-height: 36px;
  }

  .home-product-price .price {
    font-size: 13px;
  }

  .home-product-shelf + .home-product-shelf {
    margin-top: 24px;
    padding-top: 22px;
  }
}

.catalog-route .anas-home-grid,
.catalog-route .anas-benefits,
.catalog-route .category-showcase,
.catalog-route .brands-section {
  display: none;
}

.catalog-route .anas-catalog {
  margin-top: 0;
}

.view-switcher {
  align-items: center;
  display: flex;
  gap: 6px;
}

.view-switcher .icon-button.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
}

.catalog-workspace {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 235px minmax(0, 1fr);
}

.catalog-category-browser {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.catalog-category-heading {
  align-items: center;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 48px;
  padding: 9px 12px;
}

.catalog-category-browser h3 {
  font-size: 16px;
  margin: 0;
}

.mobile-category-title,
.mobile-category-toggle,
.mobile-category-close {
  display: none;
}

.catalog-category-group {
  border-bottom: 1px solid var(--line);
}

.catalog-category-group:last-child {
  border-bottom: 0;
}

.catalog-category-group > button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--text);
  display: grid;
  font-weight: 800;
  gap: 9px;
  grid-template-columns: 20px minmax(0, 1fr) 16px;
  min-height: 42px;
  padding: 9px 12px;
  text-align: start;
  width: 100%;
}

.catalog-category-group > button > svg {
  color: var(--muted);
  height: 17px;
  width: 17px;
}

.catalog-category-group.active > button,
.catalog-category-group > button:hover {
  background: #eef6fd;
  color: var(--cyan-dark);
}

.catalog-category-group.active > button > svg {
  color: var(--cyan-dark);
}

.catalog-subcategories {
  display: none;
  padding: 0 39px 9px 8px;
}

.catalog-category-group.active .catalog-subcategories {
  display: grid;
}

.catalog-subcategory-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-inline-start: 2px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 12px;
  gap: 8px;
  justify-content: space-between;
  min-height: 34px;
  padding: 6px 10px;
  text-align: start;
  width: 100%;
}

.catalog-subcategory-button span {
  overflow-wrap: anywhere;
}

.catalog-subcategory-button small {
  color: inherit;
  font-size: 11px;
}

.catalog-subcategory-button:hover,
.catalog-subcategory-button.active {
  border-inline-start-color: var(--cyan);
  color: var(--cyan-dark);
}

.mobile-subcategory-chips {
  display: none;
}

.mobile-subcategory-chips[hidden] {
  display: none;
}

.details-pill {
  background: transparent;
  border-radius: 0;
  color: var(--cyan-dark);
  min-height: auto;
  padding: 0;
}

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

.active-filter-line {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  min-height: 42px;
  padding: 6px 10px 6px 12px;
}

.active-filter-line[hidden] {
  display: none;
}

.active-filter-line .icon-button {
  height: 30px;
  min-height: 30px;
  width: 30px;
}

.product-reference-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  gap: 5px 10px;
}

.product-reference-meta span,
.product-info h3 {
  overflow-wrap: anywhere;
}

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

.product-grid.list-view .product-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
}

.product-grid.list-view .product-media {
  aspect-ratio: auto;
  border-bottom: 0;
  border-left: 1px solid var(--line);
  min-height: 180px;
}

.product-grid.list-view .product-info h3 {
  font-size: 18px;
  min-height: 0;
}

html[data-theme="dark"] .catalog-category-group.active > button,
html[data-theme="dark"] .catalog-category-group > button:hover {
  background: #302313;
  color: var(--cyan-dark);
}

html[data-theme="dark"] .anas-nav .nav-link.active {
  background: transparent;
  border-bottom: 2px solid var(--cyan);
  border-radius: 0;
  color: var(--cyan);
}

html[data-theme="dark"] .category-chip:hover,
html[data-theme="dark"] .category-chip.active,
html[data-theme="dark"] .view-switcher .icon-button.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #171717;
}

html[data-theme="dark"] .catalog-subcategory-button {
  color: #d1d1d1;
}

html[data-theme="dark"] .catalog-subcategory-button:hover,
html[data-theme="dark"] .catalog-subcategory-button.active {
  background: #302313;
  color: #ffc16f;
}

html[data-theme="dark"] .anas-page .primary-button,
html[data-theme="dark"] .view-switcher .icon-button.active {
  color: #171717;
}

@media (max-width: 860px) {
  .anas-category-menu {
    display: none !important;
  }

  .anas-category-menu h2 {
    display: none;
  }

  .desktop-category-title {
    display: none;
  }

  .mobile-category-title,
  .mobile-category-toggle,
  .mobile-category-close {
    display: inline-flex;
  }

  html,
  body,
  body.catalog-route {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
  }

  .catalog-route .anas-header,
  .catalog-route .anas-inner-page,
  .catalog-route .anas-catalog,
  .catalog-header,
  .catalog-actions,
  .catalog-workspace,
  .catalog-results,
  .product-grid {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .catalog-route .anas-inner-page {
    overflow: hidden;
  }

  .catalog-workspace {
    grid-template-columns: 1fr;
  }

  .catalog-category-browser {
    background: var(--surface);
    border-radius: 0;
    bottom: 0;
    display: block;
    max-width: 290px;
    overflow-y: auto;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(105%);
    transition: transform 180ms ease;
    width: min(76vw, 290px);
    z-index: 80;
  }

  .catalog-category-browser.open {
    transform: translateX(0);
  }

  .catalog-category-heading {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .catalog-category-group > button {
    font-size: 13px;
    min-height: 39px;
    padding-block: 7px;
  }

  .category-backdrop {
    z-index: 70;
  }

  .category-browser-open {
    overflow: hidden;
  }

  .mobile-subcategory-chips {
    display: none;
  }

  .subcategory-chip {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--text);
    flex: 0 0 auto;
    min-height: 36px;
    padding: 6px 12px;
  }

  .subcategory-chip.active {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #171717;
  }

  .catalog-route .anas-catalog {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .view-switcher {
    display: none;
  }

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

  .product-grid.list-view .product-card {
    display: flex;
  }

  .product-grid.list-view .product-media {
    border-bottom: 1px solid var(--line);
    border-left: 0;
    min-height: 118px;
  }

  .catalog-route .category-chips {
    margin-inline: 0;
    max-width: 100%;
    padding-inline: 0;
    width: 100%;
  }

  .catalog-route .product-grid,
  .catalog-route .product-grid.list-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Anas-IQ inspired visual polish for the standalone shop. */
html[data-theme="dark"] {
  --bg: #151515;
  --surface: #0a0a0a;
  --surface-2: #1b1b1b;
  --surface-3: #242424;
  --line: #343434;
  --cyan: #ff9818;
  --cyan-dark: #ffae42;
  --shadow: none;
}

body.anas-page {
  background:
    linear-gradient(180deg, #070707 0, #151515 210px, #151515 100%);
}

.anas-page .topbar,
.anas-header {
  background: #070707;
  border-bottom: 1px solid #2b2b2b;
  box-shadow: none;
  grid-template-columns: 96px minmax(300px, 1fr) auto;
  min-height: 118px;
  padding: 12px clamp(18px, 4.4vw, 64px);
}

.anas-brand {
  background: transparent;
  border-radius: 0;
  height: 74px;
  width: 96px;
}

.anas-page .brand-logo {
  height: 74px;
  transform: none;
  width: 96px;
}

.anas-header .top-search,
.anas-page .top-search {
  background: #f7f7f7;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  height: 50px;
  margin-inline: auto;
  max-width: 560px;
  width: 100%;
}

.anas-header .top-search svg,
.anas-page .top-search svg {
  color: #202020;
}

.anas-header .top-search input,
.anas-page .top-search input {
  color: #202020;
}

.anas-header .top-search input::placeholder,
.anas-page .top-search input::placeholder {
  color: #7a7a7a;
}

.anas-page .icon-button,
.anas-page .ghost-button,
.anas-page .icon-link,
.anas-page .link-button {
  background: #151515;
  border-color: #333;
  border-radius: 6px;
  color: #f5f5f5;
}

.anas-page .icon-button svg,
.anas-page .ghost-button svg,
.anas-page .link-button svg,
.anas-page .search-box svg,
.anas-page i[data-lucide] svg {
  display: block;
  height: 19px;
  stroke-width: 2.25;
  width: 19px;
}

.anas-page .icon-button:hover,
.anas-page .ghost-button:hover,
.anas-page .icon-link:hover,
.anas-page .link-button:hover {
  background: #222;
  border-color: #ff9818;
  color: #ff9818;
}

.anas-nav {
  border-top: 1px solid #2b2b2b;
  justify-content: flex-start;
  padding-top: 10px;
}

.anas-nav .nav-link {
  color: #d0d0d0;
  padding: 8px 18px;
}

html[data-theme="dark"] .anas-nav .nav-link:hover,
html[data-theme="dark"] .anas-nav .nav-link.active {
  background: transparent;
  border-bottom: 2px solid #ff9818;
  color: #ff9818;
}

.anas-storefront,
.anas-inner-page {
  max-width: 1200px;
  padding-top: 28px;
}

.anas-home-grid {
  grid-template-columns: minmax(0, 1fr) 270px;
}

.anas-category-menu,
.anas-side-promos a,
.anas-hero,
.anas-benefits > div,
.anas-catalog,
.summary-card,
.checkout-form,
.track-panel,
.status-card,
.detail-gallery,
.detail-info,
.product-section {
  border-color: #343434;
  border-radius: 7px;
  box-shadow: none;
}

.anas-category-menu h2,
.catalog-category-heading {
  background: #ff9818;
  border: 0;
  color: #171717;
}

.anas-category-menu a,
.catalog-category-group > button {
  min-height: 44px;
}

html[data-theme="dark"] .anas-category-menu a:hover,
html[data-theme="dark"] .anas-category-menu a.active,
html[data-theme="dark"] .catalog-category-group.active > button,
html[data-theme="dark"] .catalog-category-group > button:hover {
  background: #21170d;
  color: #ffb052;
}

.anas-hero {
  background: #111;
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 1.1fr);
  min-height: 410px;
  padding: clamp(22px, 3vw, 34px);
}

html[data-theme="dark"] .anas-hero {
  background: #111;
}

.anas-hero h1 {
  font-size: clamp(34px, 4vw, 54px);
}

.anas-hero .hero-showcase {
  background: #1b1b1b;
  border-color: #333;
  min-height: 300px;
}

.anas-hero .hero-showcase img {
  max-height: 250px;
}

.anas-side-promos a,
.anas-benefits > div {
  background: #0b0b0b;
}

.catalog-route .anas-inner-page {
  padding-top: 20px;
}

.catalog-route .anas-catalog {
  padding: 14px;
}

.catalog-header {
  align-items: center;
  background: #0b0b0b;
  border: 1px solid #343434;
  border-radius: 7px;
  margin-bottom: 14px;
  min-height: 0;
  padding: 16px;
}

.catalog-header h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
}

.catalog-actions {
  gap: 8px;
}

.catalog-workspace {
  gap: 16px;
  grid-template-columns: 260px minmax(0, 1fr);
}

.category-chips {
  margin-bottom: 12px;
}

.category-chip,
.result-count {
  background: #1b1b1b;
  color: #e8e8e8;
}

.product-grid,
.section-grid {
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
}

html[data-theme="dark"] .product-card,
html[data-theme="dark"] .anas-product-card {
  background: #0f0f0f;
  border-color: #363636;
}

.product-card,
.anas-product-card {
  border-radius: 8px;
}

.product-card:hover,
.anas-product-card:hover {
  border-color: #ff9818;
  box-shadow: 0 0 0 1px rgba(255, 152, 24, 0.22);
}

.product-media {
  aspect-ratio: 1 / 0.9;
  background: #fff;
  min-height: 148px;
  padding: 12px;
}

.product-media img {
  max-height: 166px;
}

.sale-badge,
.new-badge {
  border-radius: 6px;
  font-size: 11px;
  min-height: 22px;
  padding: 0 7px;
}

.product-info {
  gap: 8px;
  padding: 12px 12px 14px;
}

.product-info h3,
.product-title-row h3 {
  font-size: 14px;
  line-height: 1.45;
  min-height: 42px;
}

.product-price,
.price-current,
.grand-total strong {
  color: #ff9818;
}

.checkout-steps {
  background: #0b0b0b;
  border: 1px solid #343434;
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 16px;
  padding: 10px;
}

.checkout-steps span {
  background: #1b1b1b;
  border: 1px solid #333;
  border-radius: 6px;
  color: #cfcfcf;
  font-size: 13px;
  font-weight: 900;
  min-height: 38px;
  padding: 9px 10px;
  text-align: center;
}

.checkout-steps span.active {
  background: #ff9818;
  border-color: #ff9818;
  color: #171717;
}

.checkout-layout {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
}

.checkout-form {
  padding: clamp(18px, 2.4vw, 28px);
}

.checkout-form .form-heading {
  border-bottom: 1px solid #343434;
  margin-bottom: 18px;
  padding-bottom: 14px;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  border-radius: 7px;
}

.checkout-form .primary-button {
  min-height: 50px;
  width: 100%;
}

.checkout-summary {
  background: #0b0b0b;
  position: sticky;
  top: 138px;
}

.checkout-item {
  background: #151515;
  border: 1px solid #343434;
  border-radius: 7px;
  padding: 8px;
}

.checkout-item img {
  background: #fff;
  border-radius: 6px;
}

@media (max-width: 860px) {
  .anas-page .topbar,
  .anas-header {
    grid-template-areas:
      "tools brand"
      "search search";
    grid-template-columns: minmax(0, 1fr) 78px;
    min-height: 116px;
    padding: 10px 12px 12px;
  }

  .anas-brand {
    height: 66px;
    justify-self: end;
    width: 78px;
  }

  .anas-page .brand-logo {
    height: 66px;
    width: 78px;
  }

  .anas-tools {
    display: flex;
    flex-direction: row-reverse;
    justify-self: start;
  }

  .anas-page .icon-button {
    height: 40px;
    min-height: 40px;
    width: 40px;
  }

  .anas-header .top-search,
  .anas-page .top-search {
    height: 42px;
    max-width: none;
  }

  .anas-header:has([data-menu-toggle]).nav-open .anas-nav {
    top: 116px;
  }

  .anas-storefront,
  .anas-inner-page {
    padding: 12px 10px 38px;
  }

  .anas-home-grid {
    gap: 12px;
  }

  .anas-side-promos {
    display: none;
  }

  .anas-hero {
    gap: 14px;
    min-height: 0;
    padding: 16px;
  }

  .anas-hero h1 {
    font-size: 24px;
    line-height: 1.28;
  }

  .anas-hero .hero-text {
    font-size: 13px;
    line-height: 1.55;
  }

  .anas-hero .hero-actions {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .anas-hero .hero-showcase {
    min-height: 174px;
  }

  .anas-hero .hero-showcase img {
    max-height: 132px;
  }

  .anas-benefits {
    grid-template-columns: 1fr;
  }

  .anas-benefits > div {
    min-height: 62px;
    padding: 12px 14px;
  }

  .catalog-route .anas-inner-page {
    padding-top: 10px;
  }

  .catalog-route .anas-catalog {
    border: 0;
    padding: 0;
  }

  .catalog-header {
    margin-bottom: 10px;
    padding: 12px;
  }

  .catalog-header h2 {
    font-size: 25px;
  }

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

  .catalog-actions > * {
    min-width: 0;
    width: 100%;
  }

  .category-chips {
    top: 116px;
  }

  .catalog-workspace {
    gap: 10px;
  }

  .catalog-category-browser {
    max-width: 320px;
    width: min(84vw, 320px);
  }

  .product-grid,
  .section-grid,
  .catalog-route .product-grid,
  .catalog-route .product-grid.list-view {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-media {
    min-height: 128px;
    padding: 10px;
  }

  .product-media img {
    max-height: 132px;
  }

  .product-info {
    padding: 10px;
  }

  .product-info h3,
  .product-title-row h3 {
    font-size: 12.5px;
    line-height: 1.45;
    min-height: 38px;
  }

  .product-reference-meta,
  .product-category,
  .product-meta {
    font-size: 10.5px;
  }

  .product-price {
    font-size: 14px;
  }

  .checkout-steps {
    grid-template-columns: 1fr;
  }

  .checkout-layout {
    gap: 12px;
  }

  .checkout-summary {
    order: -1;
    position: static;
  }
}

@media (max-width: 430px) {
  .anas-page .topbar,
  .anas-header {
    grid-template-columns: minmax(0, 1fr) 64px;
  }

  .anas-brand,
  .anas-page .brand-logo {
    height: 56px;
    width: 64px;
  }

  .anas-tools {
    gap: 6px;
  }

  .anas-page .icon-button {
    height: 36px;
    min-height: 36px;
    width: 36px;
  }

  .anas-page .icon-button svg,
  .anas-page .ghost-button svg,
  .anas-page .link-button svg,
  .anas-page .search-box svg {
    height: 17px;
    width: 17px;
  }

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

  .product-media {
    min-height: 118px;
  }

  .product-media img {
    max-height: 122px;
  }
}
