:root {
  color-scheme: light;
  --ink: #111317;
  --muted: #626a76;
  --line: #dfe4ea;
  --surface: #f3f5f7;
  --panel: #ffffff;
  --blue: #1f5bff;
  --blue-deep: #153eb3;
  --lime: #b8e63a;
  --orange: #ff6b2c;
  --danger: #c53d34;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px rgba(20, 30, 50, 0.09);
  --content: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  border: 0;
}

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

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

:focus-visible {
  outline: 3px solid rgba(31, 91, 255, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

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

#site-header {
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-header {
  border-bottom: 1px solid rgba(223, 228, 234, 0.88);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner,
.footer-inner,
.page-shell,
.section-shell {
  width: var(--content);
  margin-inline: auto;
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 78px;
  gap: 28px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
}

.brand-link img {
  width: 225px;
  height: 50px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-link,
.account-link,
.cart-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 16px;
  color: #3e4651;
  font-weight: 650;
}

.account-link {
  min-height: 44px;
  white-space: nowrap;
  color: var(--blue);
  font-weight: 750;
}

.account-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: #edf2ff;
  color: var(--blue);
}

.cart-link {
  gap: 9px;
  background: var(--ink);
  color: #fff;
}

.cart-icon {
  display: none;
  font-weight: 800;
}

.cart-count {
  display: inline-grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.announcement {
  background: var(--ink);
  color: #fff;
}

.announcement-inner {
  width: var(--content);
  margin-inline: auto;
  padding: 9px 0;
  color: #dbe2ec;
  font-size: 14px;
  text-align: center;
}

.hero {
  padding: 52px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 22px;
}

.hero-main,
.hero-aside {
  min-height: 410px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(32px, 5vw, 64px);
  background:
    linear-gradient(120deg, rgba(17, 19, 23, 0.98) 5%, rgba(17, 19, 23, 0.75) 48%, rgba(17, 19, 23, 0.14) 100%),
    url("/public/products/p08-laptop-dark.jpg") center / cover no-repeat;
  color: #fff;
}

.hero-main::before {
  position: absolute;
  top: 34px;
  right: 34px;
  width: 76px;
  height: 76px;
  border-top: 3px solid var(--lime);
  border-right: 3px solid var(--lime);
  content: "";
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--lime);
  content: "";
}

.hero-main .eyebrow {
  color: #c7d7ff;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero h1 span {
  color: var(--lime);
}

.hero-copy {
  max-width: 580px;
  margin: 22px 0 0;
  color: #dbe2ec;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  padding: 0 22px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 750;
}

.button:hover {
  background: var(--blue-deep);
}

.button-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.button-secondary:hover {
  background: #f5f7fa;
}

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

.button-light:hover {
  background: var(--lime);
}

.button-danger {
  background: #fff0ef;
  color: var(--danger);
}

.button-danger:hover {
  background: #ffe1df;
}

.button-block {
  width: 100%;
}

.hero-aside {
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--blue);
  color: #fff;
}

.signal-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
}

.signal-card strong {
  display: block;
  max-width: 330px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.17;
}

.signal-bars {
  display: flex;
  height: 82px;
  align-items: flex-end;
  gap: 8px;
}

.signal-bars i {
  display: block;
  width: 18px;
  border-radius: 4px 4px 0 0;
  background: var(--lime);
}

.signal-bars i:nth-child(1) { height: 24%; }
.signal-bars i:nth-child(2) { height: 45%; }
.signal-bars i:nth-child(3) { height: 68%; }
.signal-bars i:nth-child(4) { height: 100%; }

.hero-stat {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat div {
  padding: 21px 28px;
}

.hero-stat div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat strong,
.hero-stat span {
  display: block;
}

.hero-stat strong {
  font-size: 25px;
}

.hero-stat span {
  color: #d7e1ff;
  font-size: 14px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 auto 66px;
}

.benefit {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 15px;
  min-height: 106px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.benefit-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: #edf2ff;
  color: var(--blue);
  font-size: 21px;
  font-weight: 800;
}

.benefit strong,
.benefit > div > span {
  display: block;
}

.benefit > div > span {
  color: var(--muted);
  font-size: 14px;
}

.catalog-section {
  padding: 6px 0 90px;
}

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

.section-heading h2,
.page-title {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.search-box {
  position: relative;
}

.search-box input,
.sort-select,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.search-box input {
  padding: 0 18px 0 48px;
}

.search-box span {
  position: absolute;
  top: 50%;
  left: 18px;
  color: var(--muted);
  transform: translateY(-50%);
}

.tool-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-select {
  min-width: 158px;
  padding: 0 38px 0 14px;
}

.category-tabs {
  display: flex;
  gap: 9px;
  margin-bottom: 26px;
  overflow-x: auto;
  padding: 2px 2px 9px;
  scrollbar-width: thin;
}

.category-tab {
  flex: 0 0 auto;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.category-tab:hover,
.category-tab.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.catalog-meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.product-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}

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

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 10px;
  background: #eef1f4;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}

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

.product-category {
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.product-name {
  margin: 6px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.product-summary {
  display: -webkit-box;
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.price {
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
}

.icon-button:hover {
  background: var(--blue-deep);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 70px 24px;
  border: 1px dashed #b9c2ce;
  border-radius: var(--radius-md);
  background: #fff;
  text-align: center;
}

.empty-state h2,
.empty-state h3 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0 auto 22px;
  color: var(--muted);
}

.page-hero {
  padding: 54px 0 30px;
}

.page-hero .eyebrow {
  margin-bottom: 12px;
}

.page-lead {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(30px, 5vw, 72px);
  padding: 52px 0 88px;
}

.detail-image {
  position: sticky;
  top: 110px;
  align-self: start;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: #e9edf1;
  overflow: hidden;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-content {
  padding-top: 20px;
}

.detail-content h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.detail-summary {
  color: var(--muted);
  font-size: 18px;
}

.detail-price {
  margin: 26px 0;
  font-size: 34px;
  font-weight: 850;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.spec-list li {
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.quantity-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 17px;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 44px 48px 44px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.quantity-control button {
  min-height: 44px;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
}

.quantity-control button:hover {
  background: #edf2ff;
}

.quantity-control output {
  text-align: center;
  font-weight: 800;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service-note {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  margin-top: 24px;
  padding: 18px;
  border-radius: 14px;
  background: #edf2ff;
  color: #304056;
}

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

.checkout-layout.is-complete {
  grid-template-columns: 1fr;
}

.checkout-layout.is-complete > * {
  width: min(780px, 100%);
}

.cart-list,
.form-card,
.summary-card,
.content-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.cart-list {
  overflow: hidden;
}

.cart-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.cart-item + .cart-item {
  border-top: 1px solid var(--line);
}

.cart-thumb {
  width: 112px;
  height: 112px;
  border-radius: 14px;
  background: #eef1f4;
  object-fit: cover;
}

.cart-item h2 {
  margin: 0 0 5px;
  font-size: 18px;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}

.text-button {
  min-height: 44px;
  padding: 0 10px;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-weight: 650;
}

.item-total {
  white-space: nowrap;
  font-size: 18px;
  font-weight: 800;
}

.summary-card {
  position: sticky;
  top: 110px;
  padding: 24px;
}

.summary-card h2,
.form-card h2 {
  margin: 0 0 20px;
  font-size: 22px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  color: var(--muted);
}

.summary-total {
  margin: 10px 0 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 21px;
  font-weight: 850;
}

.summary-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-card {
  padding: clamp(22px, 4vw, 36px);
}

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

.field {
  display: grid;
  gap: 7px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  padding: 11px 13px;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field small {
  color: var(--muted);
}

.checkbox-field {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}

.checkbox-field input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
}

.form-error {
  margin: 18px 0 0;
  padding: 13px 15px;
  border-radius: 10px;
  background: #fff0ef;
  color: var(--danger);
}

.order-success {
  padding: 36px;
  border: 1px solid #cbd8a8;
  border-radius: var(--radius-md);
  background: #f7fce9;
}

.order-success h2 {
  margin: 0 0 10px;
}

.order-success code {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 9px;
  border-radius: 7px;
  background: #e6f3c1;
  font-size: 15px;
}

.content-wrap {
  padding: 8px 0 88px;
}

.error-page {
  display: grid;
  min-height: 62svh;
  place-items: center;
  padding: 64px 0 90px;
}

.error-page .empty-state {
  width: min(680px, 100%);
}

.content-card {
  padding: clamp(25px, 5vw, 54px);
}

.content-card h2 {
  margin: 34px 0 10px;
  font-size: 24px;
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card p,
.content-card li {
  color: #4f5865;
}

.content-card a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.company-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.company-panel {
  min-height: 260px;
  padding: 30px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: #fff;
}

.company-panel img {
  width: 250px;
  height: auto;
  margin-bottom: 42px;
}

.company-panel p {
  color: #c9d1dc;
}

.contact-placeholder {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.contact-placeholder h2 {
  margin-top: 0;
}

.site-footer {
  border-top: 1px solid #252a31;
  background: var(--ink);
  color: #fff;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, 0.7fr);
  gap: 50px;
  padding: 52px 0 38px;
}

.footer-brand img {
  width: 230px;
  height: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 430px;
  margin: 0;
  color: #aeb7c3;
}

.footer-column h2 {
  margin: 0 0 13px;
  color: #fff;
  font-size: 15px;
}

.footer-column a {
  display: block;
  width: fit-content;
  min-height: 36px;
  color: #aeb7c3;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0 24px;
  border-top: 1px solid #2b3038;
  color: #8f99a7;
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  max-width: min(380px, calc(100% - 40px));
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--ink);
  box-shadow: var(--shadow);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.auth-page {
  display: grid;
  min-height: 68svh;
  place-items: center;
  padding: 54px 20px 80px;
}

.auth-card,
.account-guest {
  width: min(100%, 520px);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-card-wide { width: min(100%, 720px); }
.auth-card h1 { margin: 0; font-size: clamp(32px, 5vw, 46px); line-height: 1.1; }
.auth-card > p:not(.eyebrow, .auth-switch, .form-error) { margin: 12px 0 28px; color: var(--muted); }
.auth-card form { display: grid; gap: 18px; }
.auth-switch { margin: 22px 0 0; text-align: center; color: var(--muted); }
.auth-switch a { color: var(--blue); font-weight: 750; }

.account-loading,
.admin-loading,
.admin-error,
.admin-empty {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--muted);
}

.account-guest { margin: 0 auto; text-align: center; }
.account-guest h2 { margin-top: 0; }
.account-guest > div { display: flex; justify-content: center; gap: 10px; }
.account-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.account-profile { position: sticky; top: 110px; padding: 28px; border-radius: var(--radius-md); background: var(--ink); color: #fff; }
.account-profile h2 { margin: 18px 0 2px; }
.account-profile p { margin: 4px 0; color: #b6c0cc; overflow-wrap: anywhere; }
.account-profile .text-button { margin-top: 20px; color: #ffb3ad; }
.account-avatar { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 18px; background: var(--lime); color: var(--ink); font-size: 28px; font-weight: 900; }
.section-heading.compact { margin-bottom: 16px; }
.section-heading.compact h2 { font-size: 30px; }
.account-orders { display: grid; gap: 12px; }
.account-order { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 20px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.account-order div { display: grid; }
.account-order span { color: var(--muted); font-size: 14px; }
.account-order em { padding: 6px 11px; border-radius: 999px; background: #edf2ff; color: var(--blue); font-style: normal; font-weight: 750; }
.account-empty { padding: 42px; border: 1px dashed #b9c2ce; border-radius: var(--radius-md); background: #fff; text-align: center; }

.admin-login-page { min-height: 100svh; background: linear-gradient(135deg, #0e1117 0 44%, #edf2ff 44%); }
.admin-login-page main { display: grid; min-height: 100svh; place-items: center; padding: 32px 20px; }
.admin-login-brand { position: fixed; top: 26px; left: 30px; }
.admin-login-brand img { width: 220px; height: auto; }
.admin-login-card { width: min(100%, 460px); padding: 42px; border-radius: 22px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.24); }
.admin-login-card h1 { margin: 0; font-size: 34px; }
.admin-login-card > p:not(.eyebrow, .form-error) { margin: 10px 0 26px; color: var(--muted); }
.admin-login-card .field { margin-bottom: 16px; }

.admin-page { background: #eef1f5; font-size: 15px; }
.admin-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100svh; }
.admin-sidebar { position: sticky; top: 0; display: flex; min-width: 0; height: 100svh; flex-direction: column; padding: 28px 18px 20px; background: var(--ink); color: #fff; }
.admin-brand img { width: 205px; height: auto; }
.admin-sidebar nav { display: grid; gap: 6px; margin-top: 44px; }
.admin-sidebar nav button { min-height: 48px; border-radius: 10px; padding: 0 16px; background: transparent; color: #b6c0cc; cursor: pointer; text-align: left; font-size: 15px; font-weight: 700; }
.admin-sidebar nav button:hover, .admin-sidebar nav button.is-active { background: #252b35; color: #fff; }
.admin-user { display: grid; gap: 8px; margin-top: auto; padding: 16px; border-radius: 12px; background: #20252d; }
.admin-user button { min-height: 44px; background: transparent; color: #ffb3ad; cursor: pointer; text-align: left; }
.admin-main { min-width: 0; padding: 30px clamp(20px, 4vw, 52px) 60px; }
.admin-topbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.admin-topbar p { margin: 0; color: var(--muted); }
.admin-topbar h1 { margin: 4px 0 0; font-size: 34px; }
.admin-topbar a { min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--blue); font-weight: 700; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.admin-stats article { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.admin-stats span, .admin-stats strong { display: block; }
.admin-stats span { color: var(--muted); }
.admin-stats strong { margin-top: 8px; font-size: 34px; }
.admin-welcome { margin-top: 18px; padding: 30px; border-radius: 16px; background: #163fc4; color: #fff; }
.admin-welcome h2 { margin-top: 0; }
.admin-welcome p { margin-bottom: 0; color: #dce5ff; }
.admin-table-wrap { max-width: 100%; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow-x: auto; }
.admin-table-wrap table { width: 100%; min-width: 900px; border-collapse: collapse; }
.admin-table-wrap th, .admin-table-wrap td { padding: 15px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: left; }
.admin-table-wrap th { background: #f7f8fa; color: #4f5865; font-size: 14px; }
.admin-table-wrap td { font-size: 14px; }
.admin-table-wrap small { display: block; max-width: 320px; margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.admin-table-wrap input, .admin-table-wrap select { min-height: 44px; max-width: 240px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; font-size: 14px; }
.admin-action { min-height: 44px; border-radius: 8px; padding: 0 14px; background: var(--blue); color: #fff; cursor: pointer; font-weight: 700; }
.admin-action.is-off { background: #e8ebef; color: #555e69; }
.admin-error { color: var(--danger); }
.admin-error button { min-height: 44px; margin-left: 12px; padding: 0 16px; border-radius: 8px; background: var(--blue); color: #fff; }

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    margin-top: -14px;
    padding-bottom: 10px;
  }

  .account-link { grid-column: 2; grid-row: 1; }
  .cart-link { grid-column: 3; grid-row: 1; }

  .hero-grid,
  .detail-layout,
  .company-grid {
    grid-template-columns: 1fr;
  }

  .hero-main,
  .hero-aside {
    min-height: 360px;
  }

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

  .detail-image,
  .summary-card {
    position: static;
  }

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

  .summary-card {
    grid-row: auto;
  }

  .account-layout { grid-template-columns: 1fr; }
  .account-profile { position: static; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root {
    --content: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 68px;
    gap: 10px;
  }

  .brand-link img {
    width: 166px;
    height: 42px;
  }

  .cart-link {
    padding: 0 12px;
  }

  .account-link { padding: 0 6px; font-size: 14px; }

  .cart-label {
    display: none;
  }

  .cart-icon {
    display: inline;
  }

  .main-nav {
    width: 100%;
    max-width: 100%;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .nav-link {
    flex: 0 0 auto;
    padding: 0 12px;
  }

  .announcement-inner {
    text-align: left;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-main,
  .hero-aside {
    min-height: 330px;
  }

  .hero-main {
    padding: 29px;
  }

  .hero h1 {
    font-size: clamp(39px, 13vw, 57px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .benefits {
    grid-template-columns: 1fr;
    margin-bottom: 48px;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 12px;
  }

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

  .tool-right,
  .sort-select {
    width: 100%;
  }

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

  .product-body {
    padding: 14px;
  }

  .product-name {
    font-size: 16px;
  }

  .product-summary {
    display: none;
  }

  .product-bottom {
    margin-top: 12px;
  }

  .price {
    font-size: 18px;
  }

  .product-badge {
    top: 13px;
    left: 13px;
  }

  .detail-layout {
    padding-top: 26px;
  }

  .detail-content {
    padding-top: 0;
  }

  .spec-list,
  .detail-actions,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: auto;
  }

  .cart-item {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 13px;
  }

  .cart-thumb {
    width: 86px;
    height: 86px;
  }

  .item-total {
    grid-column: 2;
  }

  .cart-item-actions {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    display: block;
  }

  .account-order { grid-template-columns: 1fr auto; }
  .account-order em { grid-column: 2; grid-row: 1; }
  .admin-login-brand { position: static; margin-bottom: 20px; }
  .admin-login-page main { display: flex; align-items: center; flex-direction: column; justify-content: center; }
  .admin-login-card { padding: 30px 22px; }
  .admin-login-card input { font-size: 16px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; width: 100%; min-width: 0; height: auto; padding: 18px 14px; overflow: hidden; }
  .admin-brand img { width: 180px; }
  .admin-sidebar nav { width: 100%; max-width: 100%; grid-template-columns: repeat(4, max-content); margin-top: 18px; overflow-x: auto; }
  .admin-sidebar nav button { padding: 0 13px; }
  .admin-user { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
  .admin-main { padding: 22px 14px 50px; }
  .admin-topbar { align-items: start; }
  .admin-topbar h1 { font-size: 28px; }
  .admin-topbar a { display: none; }
  .admin-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .admin-stats article { padding: 18px; }
  .admin-stats strong { font-size: 28px; }
  .admin-table-wrap input, .admin-table-wrap select { font-size: 16px; }
}

@media (max-width: 390px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-summary {
    display: -webkit-box;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .toast {
    transition: none;
  }
}
