:root {
  --blue: #2563eb;
  --blue-dark: #174ea6;
  --cyan: #0891b2;
  --red: #e43d4b;
  --green: #059669;
  --ink: #172033;
  --muted: #667085;
  --line: #e3e9f2;
  --paper: #ffffff;
  --soft: #f4f8fb;
  --yellow: #ffd24a;
  --shopify-green: #008060;
  --medical-mint: #e9fbf5;
  --medical-blue: #eef6ff;
  --cream: #fffaf0;
  --shadow: 0 14px 32px rgba(23, 32, 51, 0.11);
  --card-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f3f9ff 0, #fafafa 280px);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #d8e8f8;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.06);
  backdrop-filter: blur(14px);
}

.topbar__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 210px minmax(280px, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.search {
  position: relative;
}

.search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  color: var(--blue);
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 700;
}

.search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dedede;
  border-radius: 8px;
  padding: 0 18px 0 48px;
  outline: 3px solid transparent;
  background: #f7f7f7;
  font-weight: 650;
}

.search input:focus {
  border-color: var(--blue);
  outline-color: rgba(37, 99, 235, 0.14);
  background: #fff;
}

.quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  white-space: nowrap;
}

.quick-actions a,
.account-button,
.cart-button {
  min-height: 40px;
  border: 1px solid #dedede;
  border-radius: 8px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  background: white;
  font-weight: 800;
}

.cart-button {
  cursor: pointer;
  color: white;
  border-color: var(--blue-dark);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.account-button {
  cursor: pointer;
}

.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: white;
  font-size: 12px;
}

.hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7, 51, 105, 0.88), rgba(7, 51, 105, 0.58), rgba(7, 51, 105, 0.2)),
    url("https://images.unsplash.com/photo-1587854692152-cbe660dbde88?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.hero__content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 96px;
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

.hero .eyebrow {
  color: var(--yellow);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 800;
}

h2 {
  margin-bottom: 0;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: 0;
  font-weight: 800;
}

.hero__text {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.55;
}

.hero__actions,
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__stats {
  margin-top: 34px;
}

.hero__stats span {
  min-width: 190px;
  border-left: 3px solid var(--yellow);
  padding-left: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.hero__stats strong {
  display: block;
  color: white;
  font-size: 24px;
}

.button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
}

.button--primary {
  color: #12315f;
  background: var(--yellow);
}

.button--ghost {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.button--dark {
  color: white;
  background: var(--ink);
}

.service-strip,
.category-drawer,
.section,
.consult,
.store-band,
footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.category-drawer {
  padding-top: 18px;
}

.category-toggle {
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: var(--ink);
  background: linear-gradient(90deg, #ffffff, var(--medical-blue));
  box-shadow: none;
  text-align: left;
}

.category-toggle strong,
.category-toggle small {
  display: block;
}

.category-toggle small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.category-toggle__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: white;
  background: var(--blue);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.category-toggle[aria-expanded="true"] .category-toggle__icon {
  background: var(--green);
}

.category-toggle[aria-expanded="true"] .category-toggle__icon::before {
  content: "-";
}

.category-toggle[aria-expanded="true"] .category-toggle__icon {
  font-size: 0;
}

.category-toggle[aria-expanded="true"] .category-toggle__icon::before {
  font-size: 22px;
}

.category-drawer .category-grid {
  margin-top: 10px;
}

.service-strip {
  margin-top: -56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.section--first {
  padding-top: 18px;
}

.hero--compact {
  min-height: 380px;
  margin-top: 54px;
}

.hero--compact .hero__content {
  padding: 46px 0 74px;
}

.hero--compact h1 {
  max-width: 720px;
  font-size: clamp(32px, 4.8vw, 52px);
}

.hero--compact .hero__text {
  max-width: 760px;
}

.service-strip article {
  min-height: 118px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.service-strip span,
.category-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: white;
  background: var(--green);
  font-weight: 900;
}

.service-strip p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.section {
  padding: 34px 0 0;
}

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

.section__header select {
  min-height: 42px;
  border: 1px solid #dedede;
  border-radius: 8px;
  padding: 0 12px;
  background: white;
}

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

.category-grid[hidden] {
  display: none;
}

.category-card {
  min-height: 92px;
  border: 1px solid #dedede;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-card.is-active {
  border-color: var(--blue);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.14);
  transform: translateY(-2px);
}

.category-card:nth-child(2) span,
.category-card:nth-child(5) span {
  background: var(--blue);
}

.category-card:nth-child(3) span {
  background: var(--red);
}

.category-card:nth-child(4) span {
  background: var(--cyan);
}

.category-card:nth-child(6) span {
  background: #7a56d8;
}

.shop-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.catalog-toolbar {
  margin-bottom: 20px;
  min-height: 48px;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  background: transparent;
}

.catalog-toolbar strong {
  color: var(--blue-dark);
  white-space: nowrap;
}

.page-size-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.page-size-control select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
  background: white;
}

.search-suggestions {
  margin: -8px 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.search-suggestions span {
  font-weight: 800;
  color: var(--blue-dark);
}

.search-suggestions button {
  min-height: 32px;
  border: 1px solid #dedede;
  border-radius: 999px;
  padding: 0 12px;
  cursor: pointer;
  color: #111827;
  background: white;
  font-weight: 700;
}

.search-suggestions button:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: var(--medical-blue);
}

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

.pagination button {
  min-width: 38px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  cursor: pointer;
  color: var(--ink);
  background: white;
  font-weight: 800;
}

.pagination button.is-active {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

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

.filters {
  position: sticky;
  top: 96px;
  height: fit-content;
  border: 0;
  border-radius: 0;
  padding: 0 16px 0 0;
  background: transparent;
}

.filters h3 {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dedede;
  font-size: 18px;
}

.filters label {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2f3645;
  font-size: 15px;
}

.filters input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

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

.product-card {
  min-height: 0;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: white;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  border-color: #cfcfcf;
  box-shadow: var(--card-shadow);
  transform: translateY(-2px);
}

.product-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 0.92;
  background: linear-gradient(180deg, #f8fcff, #f2f7f6);
}

.product-card__media img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-image-button,
.product-title-button {
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  background: transparent;
  text-align: left;
}

.product-image-button {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.product-title-button {
  font-weight: 700;
  line-height: 1.4;
}

.product-title-button:hover {
  color: var(--blue);
}

.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: white;
  background: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.badge--muted {
  background: #64748b;
}

.product-card__body {
  padding: 14px 14px 16px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-card__top {
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-card__top span {
  border-radius: 999px;
  padding: 4px 8px;
  color: #047857;
  background: var(--medical-mint);
  font-size: 11px;
  font-weight: 800;
}

.product-card h3 {
  min-height: 44px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.34;
  font-weight: 700;
}

.product-card__meta {
  margin: -2px 0 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-card__meta span {
  min-height: 24px;
  border: 1px solid #e4e4e4;
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--blue-dark);
  background: var(--medical-blue);
  font-size: 12px;
  font-weight: 800;
}

.product-card p {
  margin-bottom: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.spec-list {
  margin: 0 0 10px;
  display: grid;
  gap: 6px;
}

.spec-list div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.spec-list div:has(dd:empty),
.detail-list div:has(dd:empty) {
  display: none;
}

.spec-list dt,
.spec-list dd {
  margin: 0;
}

.spec-list dt {
  font-weight: 800;
  color: var(--ink);
}

.price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.stock-line {
  margin-top: 3px;
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.stock-line.is-manual {
  color: var(--shopify-green);
}

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

.product-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dedede;
  border-radius: 8px;
  padding: 4px 6px;
  background: white;
}

.product-qty button {
  width: 24px;
  height: 24px;
  border: 1px solid #dedede;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--blue);
  background: white;
  font-weight: 900;
}

.product-qty strong,
.product-qty input {
  min-width: 34px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.product-qty input {
  width: 58px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  padding: 0 4px;
  background: #f5f5f5;
  outline: 2px solid transparent;
}

.product-qty input:focus {
  outline-color: rgba(7, 87, 200, 0.18);
}

.order-card-button {
  width: 100%;
  min-height: 40px;
  margin-top: 12px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--green), #0d9488);
  font-weight: 900;
}

.order-card-button:hover {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.manage-card-button {
  width: 100%;
  min-height: 32px;
  margin-top: 8px;
  border: 1px solid #dedede;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
  background: white;
  font-size: 13px;
  font-weight: 800;
}

.detail-order-button {
  width: 100%;
  margin-top: 14px;
}


.add-button {
  width: 100%;
  margin-top: 14px;
  color: white;
  background: var(--blue);
}

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

.consult,
.store-band {
  margin-top: 60px;
  padding: 36px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: center;
}

.consult {
  color: white;
  background:
    linear-gradient(90deg, rgba(6, 67, 154, 0.95), rgba(6, 67, 154, 0.82)),
    url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1400&q=80") center / cover;
}

.consult p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.consult__form,
.store-search {
  display: grid;
  gap: 12px;
}

.consult__form input,
.consult__form textarea,
.store-search input {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 14px;
  outline: 3px solid transparent;
}

.consult__form textarea {
  min-height: 108px;
  resize: vertical;
}

.store-band {
  background: white;
  border: 1px solid var(--line);
}

.store-band p {
  margin-bottom: 0;
  color: var(--muted);
}

.cart-panel {
  position: fixed;
  right: 0;
  top: 0;
  z-index: 30;
  width: min(460px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: white;
  box-shadow: -20px 0 40px rgba(16, 32, 51, 0.18);
  transform: translateX(105%);
  transition: transform 0.25s ease;
}

.cart-panel.is-open {
  transform: none !important;
  transition: none;
}

.cart-panel__header,
.cart-panel__footer {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-panel__header h2 {
  font-size: 24px;
}

.cart-panel__header button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  background: var(--soft);
  font-size: 26px;
}

.cart-panel__items {
  flex: 1;
  overflow: auto;
  padding: 14px 18px;
}

.cart-summary {
  border-top: 1px solid var(--line);
  padding: 12px 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  background: var(--medical-blue);
}

.cart-summary:empty {
  display: none;
}

.cart-summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.cart-summary .cart-account {
  grid-column: 1 / -1;
  border-color: #fde68a;
  background: var(--cream);
}

.cart-summary .cart-account.is-ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.cart-summary strong,
.cart-summary span {
  display: block;
}

.cart-summary span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cart-summary button {
  grid-column: 1 / -1;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: #e8f2ff;
  color: var(--blue);
  font-weight: 900;
}

.mobile-cart-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 26;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.24);
  font-weight: 900;
}

.mobile-cart-bar strong {
  color: #ffd24a;
}

.cart-item {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.quantity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.quantity input {
  width: 62px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 6px;
  text-align: center;
  color: var(--muted);
  background: var(--soft);
}

.cart-panel__footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  display: grid;
  align-items: stretch;
}

.cart-panel__footer div {
  display: grid;
  gap: 4px;
}

.cart-panel__footer span {
  color: var(--muted);
}

.checkout-form {
  display: grid;
  gap: 8px;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  outline: 2px solid transparent;
  background: var(--soft);
}

.checkout-form textarea {
  min-height: 68px;
  resize: vertical;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  border-color: var(--blue);
  outline-color: rgba(7, 87, 200, 0.14);
}

.order-summary {
  margin: 20px 0;
  display: grid;
  gap: 10px;
}

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

.order-summary strong,
.order-summary span {
  display: block;
}

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

.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(16, 32, 51, 0.44);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.toast-stack {
  position: fixed;
  top: 92px;
  right: 18px;
  z-index: 50;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 36px));
}

.toast {
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  color: var(--ink);
  background: white;
  box-shadow: var(--shadow);
  animation: toastIn 0.2s ease;
}

.toast span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: white;
  background: var(--green);
  font-weight: 900;
}

.toast strong,
.toast small {
  display: block;
}

.toast small {
  margin-top: 2px;
  color: var(--muted);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-modal,
.register-modal {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.product-modal.is-open,
.register-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.product-modal__dialog,
.register-modal__dialog {
  position: relative;
  width: min(860px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow);
}

.register-modal__dialog {
  width: min(520px, 100%);
  padding: 28px;
}

.product-modal__close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  background: var(--soft);
  font-size: 24px;
}

.product-modal__content {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 24px;
  padding: 28px;
}

.product-modal__content h2 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
}

.product-modal__image {
  display: grid;
  place-items: center;
  min-height: 320px;
  border-radius: 8px;
  background: linear-gradient(145deg, #edf7ff, #ffffff);
}

.product-modal__image img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.detail-list {
  margin: 18px 0;
  display: grid;
  gap: 10px;
}

.detail-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.detail-list dt,
.detail-list dd {
  margin: 0;
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  font-weight: 800;
}

.manual-product-form {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  background: var(--soft);
}

.manual-product-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.manual-product-close:hover {
  background: #e8f1ff;
}

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

.admin-product-form__wide {
  grid-column: 1 / -1;
}

.inline-check {
  align-items: center;
  flex-direction: row;
  gap: 10px;
}

.inline-check input {
  width: auto;
}

.product-visibility-actions {
  border-top: 1px solid #e5e7eb;
  margin-top: 4px;
  padding-top: 10px;
}

.manual-product-form h3 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 16px;
}

.manual-product-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.manual-product-form input,
.manual-product-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
  outline: 3px solid transparent;
}

.manual-product-form input:focus,
.manual-product-form select:focus {
  border-color: var(--blue);
  outline-color: rgba(17, 103, 216, 0.14);
}

.manual-product-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.manual-product-actions button:not(.button) {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  cursor: pointer;
  color: var(--ink);
  background: white;
  font-weight: 800;
}

.detail-cart-control {
  margin-top: 18px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--soft);
}

.detail-cart-control > span {
  color: var(--muted);
  font-weight: 800;
}

.register-form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.register-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.register-form label[hidden] {
  display: none !important;
}

.register-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  outline: 3px solid transparent;
}

.register-form input:focus {
  border-color: var(--blue);
  outline-color: rgba(7, 87, 200, 0.15);
}

.register-modal__note,
.form-message {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.form-message.is-success {
  color: var(--green);
  font-weight: 800;
}

.form-message.is-error {
  color: var(--red);
  font-weight: 800;
}

.account-switch {
  margin: 2px 0 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.account-switch button {
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--blue);
  background: transparent;
  font-weight: 900;
}

.admin-orders-dialog {
  width: min(920px, 100%);
}

.telegram-form {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 10px;
  align-items: end;
  background: var(--soft);
}

.telegram-form h3,
.telegram-form .form-message {
  grid-column: 1 / -1;
  margin: 0;
}

.telegram-form input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
}

.telegram-form button:not(.button) {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  cursor: pointer;
  background: white;
  font-weight: 800;
}

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

.admin-order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
}

.admin-order-card__head,
.admin-order-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.admin-order-card__head span,
.admin-order-customer,
.admin-order-card li {
  color: var(--muted);
}

.admin-order-card mark {
  border-radius: 999px;
  padding: 4px 8px;
  color: white;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.order-status-select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
  font-weight: 900;
}

.admin-order-customer {
  margin: 10px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 800;
}

.admin-order-card ul {
  margin: 0 0 12px;
  padding-left: 18px;
}

.admin-order-total strong {
  color: var(--blue);
}

footer {
  min-height: 118px;
  margin-top: 60px;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer p {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .topbar__inner {
    grid-template-columns: 1fr;
    padding: 12px 0;
  }

  .quick-actions {
    justify-content: space-between;
    overflow-x: auto;
    gap: 8px;
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    padding: 52px 0 110px;
  }

  .hero--compact {
    margin-top: 38px;
  }

  .hero--compact .hero__content {
    padding: 38px 0 86px;
  }

  .service-strip,
  .category-grid,
  .shop-layout,
  .consult,
  .store-band {
    grid-template-columns: 1fr;
  }

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

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

  .filters {
    position: static;
    padding-right: 0;
  }
}

@media (max-width: 620px) {
  body {
    padding-bottom: 72px;
  }

  .mobile-cart-bar {
    display: flex;
  }

  .category-drawer {
    padding-top: 14px;
  }

  .category-toggle {
    min-height: 56px;
    padding: 10px 12px;
  }

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

  .category-drawer .category-card {
    min-height: 70px;
    padding: 10px;
  }

  .category-drawer .category-card span {
    width: 34px;
    height: 34px;
  }

  .topbar__inner {
    min-height: 0;
    gap: 10px;
    padding: 10px 0;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
  }

  .search input {
    min-height: 42px;
  }

  .quick-actions a {
    display: none;
  }

  .quick-actions button {
    flex: 0 0 auto;
  }

  h1 {
    font-size: 40px;
  }

  .hero--compact h1 {
    font-size: 32px;
  }

  .hero--compact .hero__text {
    font-size: 16px;
  }

  h2 {
    font-size: 26px;
  }

  .hero__stats span {
    min-width: 100%;
  }

  .section__header,
  .catalog-toolbar,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .section--first {
    padding-top: 20px;
  }

  .section--shop .section__header {
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .section--shop .section__header .eyebrow {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .section--shop .section__header h2 {
    font-size: 24px;
  }

  .section--shop .section__header select {
    min-height: 38px;
    max-width: 118px;
  }

  .catalog-toolbar {
    min-height: 0;
    margin-bottom: 10px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6px 10px;
    font-size: 14px;
  }

  .catalog-toolbar strong {
    grid-column: 1;
  }

  .catalog-toolbar #pageRange {
    grid-column: 1 / -1;
  }

  .page-size-control {
    grid-column: 2;
    grid-row: 1;
  }

  .filters {
    margin-bottom: 10px;
    padding: 8px 0 10px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .filters h3 {
    display: none;
  }

  .filters label {
    min-height: 30px;
    flex: 0 0 auto;
    font-size: 14px;
  }

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

  .product-card {
    min-height: 0;
    border-radius: 9px;
  }

  .product-card__media {
    aspect-ratio: 1 / 0.82;
  }

  .product-card__body {
    padding: 9px;
  }

  .product-card__top {
    display: none;
  }

  .product-card h3 {
    min-height: 36px;
    margin-bottom: 6px;
    font-size: 12.8px;
    line-height: 1.25;
  }

  .product-card__meta {
    margin-bottom: 7px;
    gap: 4px;
  }

  .product-card__meta span {
    max-width: 100%;
    min-height: 22px;
    padding: 2px 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
  }

  .product-card p,
  .spec-list {
    display: none;
  }

  .price-row {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
  }

  .price {
    font-size: 14px;
  }

  .stock-line {
    font-size: 11px;
  }

  .product-qty {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
    padding: 3px 5px;
  }

  .product-qty button {
    width: 22px;
    height: 22px;
  }

  .product-qty input {
    width: 44px;
    height: 24px;
    min-width: 32px;
  }

  .order-card-button {
    min-height: 34px;
    margin-top: 8px;
    font-size: 13px;
  }

  .manage-card-button {
    min-height: 30px;
    margin-top: 6px;
    font-size: 12px;
  }

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

  .manual-product-form {
    grid-template-columns: 1fr;
  }

  .telegram-form {
    grid-template-columns: 1fr;
  }

  .admin-order-card__head,
  .admin-order-total {
    flex-direction: column;
  }

  .consult,
  .store-band {
    padding: 24px;
  }
}
