:root {
  color-scheme: light;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #1f2937;
  background: #f3f4f6;
  --yellow: #111318;
  --blue: #d71920;
  --blue-dark: #a40f16;
  --border: #d6d9df;
  --muted: #667085;
  --surface: #ffffff;
  --shadow: 0 8px 24px rgba(17, 19, 24, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f3f4f6;
  color: #111827;
}

body.has-drawer-open {
  overflow: hidden;
}

body[data-page="account"] {
  background:
    radial-gradient(circle at top left, rgba(52, 131, 250, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 241, 89, 0.34), transparent 22%),
    linear-gradient(180deg, #eef4ff 0%, #f8fafc 22%, #f3f4f6 100%);
}

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

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

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

button {
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

textarea {
  resize: vertical;
}

.container {
  width: min(1280px, calc(100% - 24px));
  margin: 0 auto;
}

.top-strip {
  padding: 8px 12px;
  background: #111318;
  color: #fff;
  text-align: center;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-strip p,
.section-label,
.eyebrow,
.site-footer p,
.muted {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #111318;
  box-shadow: 0 2px 18px rgba(9, 10, 13, 0.12);
}

.header-main {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  background: transparent;
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand strong {
  display: block;
  font-size: 1.05rem;
}

.brand small {
  display: block;
  color: #c8ccd4;
}

.brand__logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(72, 162, 255, 0.45);
  box-shadow: 0 0 22px rgba(0, 145, 255, 0.22);
}

.header-search {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

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

.header-search button {
  border: 0;
  min-width: 120px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-links a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #eef2f7;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #d71920;
  color: #fff;
}

.cart-pill span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 0.8rem;
}

.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.category-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0 12px;
  background: transparent;
}

.category-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #d6dae2;
}

.category-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.page-stack {
  display: grid;
  gap: 24px;
  padding: 24px 0 48px;
}

.hero,
.catalog-layout,
.cart-layout,
.account-layout,
.contact-layout,
.checkout-layout {
  display: grid;
  gap: 20px;
}

.hero {
  grid-template-columns: 1.35fr 0.85fr;
}

.hero__content,
.hero__panel,
.section-block,
.info-card,
.filters-card,
.summary-card,
.form-card,
.profile-card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero__content,
.hero__panel,
.section-block,
.filters-card,
.summary-card,
.form-card,
.profile-card {
  padding: 24px;
}

.eyebrow,
.section-label {
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero h1,
.section-head h1,
.section-head h2,
.info-card h2,
.info-card h3,
.form-card h3,
.summary-card h2,
.profile-card h2,
.empty-state h2 {
  margin: 0;
  line-height: 1.15;
}

.hero h1 {
  font-size: clamp(2rem, 2.2vw + 1.2rem, 3.2rem);
}

.hero__content p:not(.eyebrow),
.hero__metric span,
.info-card p,
.muted,
.product-card p,
.footer-grid p,
.plain-list,
.summary-card p,
.empty-state p {
  color: var(--muted);
  line-height: 1.6;
}

.hero__actions,
.button-row,
.payment-badges,
.footer-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.hero__metric {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.hero__metric strong {
  font-size: 1.05rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 120ms ease, background 120ms ease;
}

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

.button--primary {
  background: var(--blue);
  color: #fff;
}

.button--light {
  background: #fff;
  color: #111827;
  border-color: var(--border);
}

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

.category-grid,
.info-grid,
.faq-grid,
.product-grid {
  display: grid;
  gap: 18px;
}

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

.category-card,
.info-card {
  padding: 20px;
}

.category-card {
  display: grid;
  gap: 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f9fafb);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.category-card strong {
  font-size: 1.1rem;
}

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

.payment-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
  box-shadow: var(--shadow);
}

.payment-strip .section-label,
.payment-strip p {
  color: #cbd5e1;
}

.payment-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.catalog-layout {
  grid-template-columns: 1fr;
  align-items: start;
}

.filters-card {
  display: grid;
  gap: 14px;
}

.filters-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.42);
  padding: 20px;
}

.filters-card--drawer {
  width: min(380px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin-left: auto;
}

.filters-head,
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.catalog-toolbar {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.catalog-filter-button {
  min-width: 132px;
}

.hamburger-lines {
  display: inline-grid;
  gap: 4px;
  margin-right: 8px;
}

.hamburger-lines span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.filters-card h3 {
  margin: 0 0 4px;
}

.filters-card label,
.form-card label {
  display: grid;
  gap: 8px;
  color: #374151;
}

.catalog-results {
  display: grid;
  gap: 18px;
}

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

.product-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-card__image {
  color: inherit;
}

.product-card__image {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  background: #e5e7eb;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  display: grid;
  gap: 8px;
}

.product-card__body h3 {
  margin: 0;
  font-size: 1.05rem;
}

.product-rating {
  color: #d71920;
  font-weight: 700;
}

.product-rating span {
  color: var(--muted);
  font-weight: 500;
}

.product-card__category {
  color: var(--blue-dark);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-card__price {
  display: grid;
}

.product-card__price strong {
  font-size: 1.35rem;
}

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

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue-dark);
  font-size: 0.84rem;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: start;
}

.product-detail__media,
.product-detail__info,
.detail-block,
.comment-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-detail__media {
  overflow: hidden;
}

.product-detail__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-detail__info {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.product-detail__info h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.12;
}

.product-detail__price {
  font-size: 1.8rem;
}

.detail-block {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.detail-block h3 {
  margin: 0;
}

.review-form {
  margin-top: 16px;
}

.comments-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.comment-item {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.comment-item > div,
.admin-order-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.comment-actions {
  display: flex;
  justify-content: flex-end;
}

.purchase-ok {
  color: #047857;
  font-weight: 800;
}

.cart-layout {
  grid-template-columns: 1.3fr 0.8fr;
  align-items: start;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.cart-item img {
  width: 140px;
  height: 110px;
  border-radius: 14px;
  object-fit: cover;
}

.cart-item__body {
  display: grid;
  gap: 8px;
}

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

.qty-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f3f4f6;
}

.qty-row button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.summary-card {
  position: sticky;
  top: 132px;
  display: grid;
  gap: 14px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.summary-line strong {
  color: #111827;
}

.empty-state {
  padding: 32px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.account-layout {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: stretch;
}

.auth-hero-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(17, 24, 39, 0.97), rgba(30, 41, 59, 0.96)),
    #111827;
  color: #fff;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.24);
}

.auth-hero-card .section-label,
.auth-hero-card .auth-copy,
.auth-hero-card .auth-feature span {
  color: rgba(255, 255, 255, 0.78);
}

.auth-hero-card h1 {
  margin: 0;
  font-size: clamp(2.4rem, 3vw + 1rem, 4.2rem);
  line-height: 1.02;
  max-width: 12ch;
}

.auth-copy {
  max-width: 52ch;
  line-height: 1.7;
}

.auth-feature-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.auth-feature {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.auth-panel-stack {
  display: grid;
  gap: 18px;
}

.auth-shell.is-hidden {
  display: none;
}

.auth-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.auth-card__head {
  display: grid;
  gap: 6px;
}

.auth-card__head h2,
.auth-card__head p {
  margin: 0;
}

.auth-form {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

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

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

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

.profile-update-form {
  display: grid;
  gap: 14px;
}

.profile-card {
  display: grid;
  gap: 12px;
}

.profile-card.is-hidden {
  display: none;
}

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

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

.history-grid section {
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.history-grid h3 {
  margin: 0 0 12px;
}

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

.admin-panel {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}

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

.admin-form {
  background: #f8fafc;
}

.admin-form-title {
  display: grid;
  gap: 4px;
}

.admin-form-title span {
  color: var(--muted);
  font-size: 0.94rem;
}

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

.admin-upload-note {
  padding: 14px 16px;
  border-radius: 14px;
  background: #eff6ff;
  color: var(--blue-dark);
}

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

.admin-image-card {
  margin: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.admin-image-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.admin-image-card figcaption {
  font-size: 0.84rem;
  color: var(--muted);
}

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

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

.admin-order-item {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.admin-product-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.admin-product-item p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

.history-item {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid #e5e7eb;
}

.history-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.history-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-layout {
  grid-template-columns: 0.85fr 1.15fr;
}

.checkout-layout {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

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

.payment-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.payment-option {
  flex: 1 1 220px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  text-align: left;
}

.payment-option.is-selected {
  border-color: var(--blue);
  background: #eff6ff;
}

.payment-option span {
  color: var(--muted);
}

.payment-status-layout {
  display: grid;
  place-items: center;
  min-height: 55vh;
}

.payment-status-card {
  width: min(760px, 100%);
  text-align: center;
}

.contact-form .button {
  width: 100%;
}

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

.plain-list {
  margin: 0;
  padding-left: 18px;
}

.status-message {
  padding: 14px 16px;
  border-radius: 14px;
  background: #ecfdf5;
  color: #065f46;
}

.status-message.is-error {
  background: #fef2f2;
  color: #991b1b;
}

.site-footer {
  padding: 24px 0 36px;
  color: var(--muted);
}

.footer-grid {
  justify-content: space-between;
  align-items: start;
}

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

@media (max-width: 1080px) {
  .hero,
  .product-detail,
  .catalog-layout,
  .cart-layout,
  .auth-shell,
  .account-layout,
  .contact-layout,
  .checkout-layout,
  .account-panels,
  .product-grid,
  .info-grid,
  .history-grid,
  .faq-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .header-main {
    grid-template-columns: 1fr;
  }

  .header-links {
    justify-content: flex-start;
  }

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

  .header-search button {
    min-height: 46px;
  }

  .cart-item,
  .profile-grid,
  .auth-form-grid,
  .admin-grid,
  .admin-content-grid {
    grid-template-columns: 1fr;
  }

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

  .payment-strip {
    display: grid;
  }
}

/* Premium dark marketplace skin */
:root {
  color-scheme: dark;
  --blue: #0b84ff;
  --blue-dark: #0874e8;
  --border: rgba(138, 170, 210, 0.2);
  --muted: #9aa7ba;
  --surface: rgba(15, 20, 29, 0.82);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

body,
body[data-page="account"] {
  background:
    radial-gradient(circle at 82% 8%, rgba(0, 132, 255, 0.18), transparent 30%),
    radial-gradient(circle at 12% 24%, rgba(0, 132, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #070b11 0%, #0d121a 42%, #0a0e15 100%);
  color: #f4f7fb;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.76), transparent 78%);
}

.container {
  width: min(1440px, calc(100% - 72px));
}

.top-strip {
  display: flex;
  justify-content: center;
  background: #070b11;
  color: #e8edf5;
  border-bottom: 0;
  font-weight: 700;
}

.top-strip p::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border: 2px solid #12e76f;
  border-radius: 50%;
  color: #12e76f;
  font-size: 0.78rem;
}

.site-header {
  position: sticky;
  background:
    linear-gradient(180deg, rgba(9, 13, 20, 0.98), rgba(9, 13, 20, 0.92)),
    #090d14;
  border-bottom: 1px solid rgba(138, 170, 210, 0.17);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
}

.header-main {
  grid-template-columns: 310px minmax(280px, 1fr) auto;
  gap: 34px;
  padding: 26px 0 20px;
}

.brand {
  gap: 16px;
}

.brand__logo {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  border-color: rgba(35, 143, 255, 0.58);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 30px rgba(0, 132, 255, 0.24);
}

.brand strong {
  font-size: clamp(1.35rem, 1vw + 1rem, 1.85rem);
  letter-spacing: -0.04em;
}

.brand small {
  color: #aab4c3;
  font-size: 1rem;
}

.header-search {
  min-height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: #f5f7fb;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.header-search::before {
  content: "⌕";
  align-self: center;
  padding-left: 20px;
  color: #111827;
  font-size: 1.5rem;
}

.header-search {
  grid-template-columns: auto 1fr auto;
}

.header-search input {
  color: #111827;
  font-size: 1rem;
  background: transparent;
}

.header-search button {
  min-width: 140px;
  background: linear-gradient(135deg, #0d8bff, #006fe8);
  font-size: 1rem;
}

.header-links a {
  min-height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.js-account-link::before {
  content: "♙";
  font-size: 1.05rem;
}

.cart-pill {
  background: rgba(255, 255, 255, 0.08);
}

.cart-pill::before {
  content: "🛒";
  filter: grayscale(1) brightness(2);
}

.cart-pill span {
  background: var(--blue);
  color: #fff;
}

.category-nav {
  gap: 22px;
  padding: 14px 0 4px;
}

.category-nav a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 0 14px;
  border-radius: 18px 18px 0 0;
  color: #eef4ff;
  font-weight: 800;
}

.category-nav a:nth-child(1)::before { content: "▦"; color: var(--blue); }
.category-nav a:nth-child(2)::before { content: "▱"; }
.category-nav a:nth-child(3)::before { content: "▰"; }
.category-nav a:nth-child(4)::before { content: "⌂"; }
.category-nav a:nth-child(5)::before { content: "♧"; }
.category-nav a:nth-child(6)::before { content: "✧"; }
.category-nav a:nth-child(7)::before { content: "◇"; }
.category-nav a:nth-child(8)::before { content: "◎"; }
.category-nav a:nth-child(9)::before { content: "•••"; }
.category-nav a:nth-child(10)::before { content: "✉"; }

.category-nav a:first-child,
.category-nav a:hover {
  background: rgba(18, 28, 42, 0.95);
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--blue), 0 12px 30px rgba(0, 0, 0, 0.18);
}

.page-stack {
  gap: 28px;
  padding-top: 26px;
}

.hero__content,
.hero__panel,
.section-block,
.info-card,
.filters-card,
.summary-card,
.form-card,
.profile-card,
.empty-state,
.product-detail__media,
.product-detail__info,
.detail-block,
.comment-item,
.cart-item,
.admin-order-item,
.admin-product-item,
.auth-card,
.history-grid section {
  background:
    linear-gradient(180deg, rgba(18, 25, 36, 0.88), rgba(10, 15, 23, 0.88)),
    rgba(12, 17, 25, 0.88);
  border: 1px solid rgba(138, 170, 210, 0.18);
  color: #f5f8ff;
  box-shadow: var(--shadow);
}

.section-block {
  border-radius: 26px;
}

.eyebrow,
.section-label {
  color: var(--blue);
  letter-spacing: 0.06em;
}

.section-head h1,
.section-head h2,
.hero h1 {
  color: #fff;
  letter-spacing: -0.05em;
}

body[data-page="catalog"] main > .section-block:first-child {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 36px 48px;
  background:
    radial-gradient(circle at 68% 38%, rgba(0, 132, 255, 0.42), transparent 18%),
    radial-gradient(circle at 84% 42%, rgba(0, 132, 255, 0.22), transparent 22%),
    linear-gradient(100deg, rgba(11, 17, 27, 0.98) 0%, rgba(9, 15, 24, 0.96) 44%, rgba(8, 37, 72, 0.86) 100%);
}

body[data-page="catalog"] main > .section-block:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(0, 132, 255, 0.12) 38% 39%, transparent 39%),
    radial-gradient(circle at 72% 70%, rgba(0, 132, 255, 0.18), transparent 20%);
  opacity: 0.9;
}

body[data-page="catalog"] main > .section-block:first-child::after {
  content: "";
  position: absolute;
  right: 8%;
  top: 24px;
  width: min(430px, 38vw);
  aspect-ratio: 1.75;
  background:
    url("./assets/gray-c-shop-logo.png") center / contain no-repeat,
    radial-gradient(circle, rgba(0, 132, 255, 0.22), transparent 62%);
  opacity: 0.34;
  filter: drop-shadow(0 0 38px rgba(0, 132, 255, 0.8));
}

body[data-page="catalog"] main > .section-block:first-child .section-head {
  position: relative;
  z-index: 1;
  width: 100%;
  align-items: center;
}

body[data-page="catalog"] main > .section-block:first-child h1 {
  max-width: 470px;
  font-size: clamp(2.4rem, 3.4vw, 4.2rem);
}

body[data-page="catalog"] main > .section-block:first-child h1::first-line {
  color: #fff;
}

body[data-page="catalog"] main > .section-block:first-child h1 {
  background: linear-gradient(180deg, #fff 0 48%, #158cff 49% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-page="catalog"] .catalog-toolbar {
  align-self: stretch;
  display: grid;
  justify-items: end;
  align-content: space-between;
}

body[data-page="catalog"] .catalog-toolbar .muted {
  max-width: 460px;
}

.catalog-filter-button {
  min-width: 150px;
  min-height: 58px;
  background: rgba(11, 25, 45, 0.74);
  border-color: rgba(57, 145, 255, 0.45);
  color: #fff;
}

.catalog-results > .section-head {
  align-items: end;
}

.catalog-results .section-head h2 {
  font-size: clamp(1.5rem, 1vw + 1rem, 2rem);
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.catalog-results .product-grid {
  grid-template-columns: repeat(auto-fit, minmax(480px, 560px));
}

.product-card {
  border: 1px solid rgba(138, 170, 210, 0.18);
  background:
    linear-gradient(135deg, rgba(18, 25, 36, 0.9), rgba(11, 15, 23, 0.92)),
    rgba(12, 17, 25, 0.92);
  color: #fff;
}

.catalog-results .product-card {
  grid-template-columns: 255px 1fr;
  grid-template-areas:
    "image body"
    "image footer";
  align-items: stretch;
}

.product-card__image {
  grid-area: image;
  background: #070b11;
  border-radius: 16px;
}

.product-card__body {
  grid-area: body;
  align-content: start;
}

.product-card__footer {
  grid-area: footer;
  align-items: end;
}

.product-card__body h3,
.product-card__price strong {
  color: #fff;
}

.product-card__category {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 132, 255, 0.16);
  color: #46a5ff;
}

.product-rating {
  color: #ffca1a;
}

.product-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button--primary {
  background: linear-gradient(135deg, #128cff, #006fe8);
  box-shadow: 0 12px 28px rgba(0, 111, 232, 0.32);
}

.button--light {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
}

.filters-card label,
.form-card label,
.admin-form-title span,
.history-item span,
.summary-line,
.payment-option span,
.muted,
.product-card p,
.footer-grid p,
.plain-list,
.empty-state p,
.hero__content p:not(.eyebrow),
.hero__metric span,
.info-card p,
.summary-card p {
  color: #aab4c3;
}

.category-card,
.hero__metric,
.payment-option,
.admin-form,
.admin-image-card,
.qty-row {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(138, 170, 210, 0.18);
  color: #fff;
}

.tag {
  background: rgba(0, 132, 255, 0.14);
  color: #7fc1ff;
}

.site-footer {
  border-top: 1px solid rgba(138, 170, 210, 0.14);
  background: rgba(7, 11, 17, 0.58);
}

@media (max-width: 1080px) {
  .container {
    width: min(100% - 28px, 1280px);
  }

  .header-main {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body[data-page="catalog"] main > .section-block:first-child::after {
    opacity: 0.18;
    width: 70vw;
  }

  .catalog-results .product-grid,
  .catalog-results .product-card {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .catalog-results .product-card > * {
    grid-area: auto;
  }
}

@media (max-width: 680px) {
  .brand__logo {
    width: 64px;
    height: 64px;
  }

  .category-nav {
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }

  .category-nav a {
    white-space: nowrap;
  }

  body[data-page="catalog"] main > .section-block:first-child {
    padding: 28px 22px;
  }

  body[data-page="catalog"] main > .section-block:first-child .section-head {
    display: grid;
  }

  body[data-page="catalog"] .catalog-toolbar {
    justify-items: start;
    gap: 18px;
  }
}

/* Mixed red + dark accent pass */
:root {
  --accent-red: #d71920;
  --accent-red-soft: rgba(215, 25, 32, 0.18);
}

body,
body[data-page="account"] {
  background:
    radial-gradient(circle at 82% 8%, rgba(0, 132, 255, 0.16), transparent 30%),
    radial-gradient(circle at 14% 20%, rgba(215, 25, 32, 0.11), transparent 24%),
    linear-gradient(180deg, #070b11 0%, #0d121a 42%, #0a0e15 100%);
}

.brand__logo {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 18px rgba(215, 25, 32, 0.18),
    0 0 26px rgba(0, 132, 255, 0.2);
}

.section-label {
  color: #ff5a53;
}

.button--primary {
  background: linear-gradient(135deg, #d71920 0%, #0b84ff 100%);
  box-shadow: 0 12px 28px rgba(105, 62, 115, 0.24);
}

.button--light:hover,
.button--primary:hover {
  filter: saturate(1.08);
}

.cart-pill {
  background: linear-gradient(135deg, rgba(215, 25, 32, 0.32), rgba(11, 132, 255, 0.2));
  border-color: rgba(255, 255, 255, 0.12);
}

.cart-pill span {
  background: linear-gradient(135deg, #d71920, #0b84ff);
}

.category-nav a:first-child,
.category-nav a:hover {
  box-shadow: inset 0 -2px 0 #ff5a53, 0 12px 30px rgba(0, 0, 0, 0.18);
}

.catalog-filter-button {
  border-color: rgba(215, 25, 32, 0.28);
  box-shadow: inset 0 0 0 1px rgba(11, 132, 255, 0.12);
}

.product-card__category {
  background: linear-gradient(135deg, rgba(215, 25, 32, 0.18), rgba(11, 132, 255, 0.14));
  color: #ff8c86;
}

.product-card__image {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Compact responsive pass: closer to the reference mockup */
.top-strip {
  padding: 6px 10px;
  font-size: 0.8rem;
}

.top-strip p::before {
  content: "";
  width: 13px;
  height: 13px;
  margin-right: 6px;
}

.header-main {
  grid-template-columns: 255px minmax(320px, 1fr) auto;
  gap: 20px;
  padding: 14px 0 10px;
}

.brand__logo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
}

.brand strong {
  font-size: 1.35rem;
}

.brand small {
  font-size: 0.86rem;
}

.header-search {
  min-height: 46px;
  border-radius: 16px;
}

.header-search::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-left: 14px;
  padding-left: 0;
  border: 2px solid #1f2937;
  border-radius: 50%;
  box-shadow: 6px 6px 0 -5px #1f2937;
}

.header-search input {
  padding: 8px 10px;
  font-size: 0.92rem;
}

.header-search button {
  min-width: 104px;
  font-size: 0.9rem;
}

.header-links a {
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.js-account-link::before,
.cart-pill::before {
  content: "";
}

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

.category-nav a {
  min-height: 42px;
  padding: 0 10px;
  border-radius: 12px 12px 0 0;
  font-size: 0.9rem;
}

.category-nav a:nth-child(n)::before {
  font-size: 1rem;
}

.page-stack {
  gap: 22px;
  padding-top: 22px;
}

body[data-page="catalog"] main > .section-block:first-child {
  min-height: 190px;
  padding: 30px 42px;
  border-radius: 24px;
}

body[data-page="catalog"] main > .section-block:first-child h1 {
  max-width: 420px;
  font-size: clamp(2.15rem, 2.65vw, 3.45rem);
}

body[data-page="catalog"] main > .section-block:first-child::after {
  right: 9%;
  top: 18px;
  width: min(370px, 34vw);
}

.catalog-filter-button {
  min-width: 132px;
  min-height: 50px;
}

.catalog-results {
  gap: 14px;
}

.catalog-results > .section-head {
  margin-top: 2px;
}

.section-label {
  font-size: 0.78rem;
}

.catalog-results .section-head h2 {
  font-size: clamp(1.35rem, 0.9vw + 0.95rem, 1.72rem);
}

.catalog-results .product-grid {
  grid-template-columns: repeat(auto-fit, minmax(430px, 540px));
}

.product-card {
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
}

.catalog-results .product-card {
  grid-template-columns: 220px 1fr;
  min-height: 220px;
}

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

.product-card__body {
  gap: 7px;
  padding-top: 4px;
}

.product-card__body h3 {
  font-size: 1.18rem;
}

.product-card p {
  font-size: 0.9rem;
  line-height: 1.45;
}

.product-card__price strong {
  font-size: 1.35rem;
}

.product-card__category {
  padding: 3px 7px;
  font-size: 0.75rem;
}

.product-card__actions .button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.section-block,
.hero__content,
.hero__panel,
.info-card,
.filters-card,
.summary-card,
.form-card,
.profile-card {
  border-radius: 20px;
}

@media (min-width: 1081px) {
  .catalog-results .product-grid {
    justify-content: start;
  }
}

@media (max-width: 980px) {
  .container {
    width: min(100% - 28px, 920px);
  }

  .top-strip {
    font-size: 0.8rem;
  }

  .header-main {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand links"
      "search search";
    gap: 14px;
    padding: 14px 0 10px;
  }

  .brand {
    grid-area: brand;
  }

  .header-search {
    grid-area: search;
  }

  .header-links {
    grid-area: links;
    justify-content: end;
  }

  .js-account-link {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .category-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 8px 0;
    scrollbar-width: none;
  }

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

  .category-nav a {
    min-height: 42px;
    white-space: nowrap;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
  }

  .category-nav a:first-child,
  .category-nav a:hover {
    box-shadow: inset 0 -2px 0 var(--blue);
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 20px, 560px);
  }

  .top-strip {
    padding: 7px 10px;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .top-strip p::before {
    width: 12px;
    height: 12px;
    border-width: 1.5px;
  }

  .header-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "search"
      "links";
    gap: 10px;
  }

  .brand__logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .brand strong {
    font-size: 1.08rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .header-search {
    min-height: 42px;
    border-radius: 12px;
    grid-template-columns: auto 1fr;
  }

  .header-search button {
    grid-column: 1 / -1;
    min-height: 38px;
    border-radius: 0;
    font-size: 0.84rem;
  }

  .header-links {
    justify-content: space-between;
    gap: 8px;
  }

  .header-links a {
    flex: 1;
    justify-content: center;
    min-height: 38px;
    padding: 0 8px;
    font-size: 0.78rem;
  }

  .page-stack {
    gap: 16px;
    padding-top: 16px;
  }

  body[data-page="catalog"] main > .section-block:first-child {
    min-height: 0;
    padding: 22px 18px;
    border-radius: 18px;
  }

  body[data-page="catalog"] main > .section-block:first-child::after {
    right: -30px;
    top: auto;
    bottom: 8px;
    width: 210px;
    opacity: 0.12;
  }

  body[data-page="catalog"] main > .section-block:first-child h1 {
    max-width: 280px;
    font-size: 2rem;
  }

  body[data-page="catalog"] .catalog-toolbar {
    justify-items: stretch;
  }

  body[data-page="catalog"] .catalog-toolbar .muted {
    font-size: 0.88rem;
  }

  .catalog-filter-button {
    width: fit-content;
    min-width: 118px;
    min-height: 42px;
  }

  .catalog-results > .section-head {
    display: grid;
    gap: 6px;
  }

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

  .catalog-results .product-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "body"
      "footer";
    min-height: 0;
    padding: 8px;
  }

  .catalog-results .product-card .product-card__image {
    aspect-ratio: 1 / 1;
  }

  .product-card__body h3 {
    font-size: 0.88rem;
  }

  .product-card p {
    font-size: 0.72rem;
    line-height: 1.28;
  }

  .product-rating {
    font-size: 0.72rem;
  }

  .product-card__footer {
    display: grid;
    gap: 8px;
    align-items: start;
  }

  .product-card__actions {
    justify-content: stretch;
    gap: 6px;
  }

  .product-card__actions .button {
    flex: 1;
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.7rem;
  }

  .product-card__price strong {
    font-size: 1rem;
  }

  .product-card__price small,
  .product-card__category {
    font-size: 0.66rem;
  }

  .section-block,
  .hero__content,
  .hero__panel,
  .info-card,
  .filters-card,
  .summary-card,
  .form-card,
  .profile-card,
  .empty-state {
    padding: 18px;
    border-radius: 18px;
  }
}
