:root {
  --ink: #101820;
  --muted: #64707d;
  --line: rgba(16, 24, 32, 0.12);
  --paper: #fbfaf7;
  --white: #ffffff;
  --indigo: #183f73;
  --indigo-deep: #102846;
  --indigo-soft: #e8f0f8;
  --clay: #a86f3b;
  --success: #267451;
  --danger: #ad3f33;
  --shadow: 0 18px 42px rgba(16, 24, 32, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8f8f4 0%, #eef4f7 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-shell {
  width: 100%;
  padding: 0 0 40px;
}

.site-header {
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 72px;
  padding: 14px 40px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 16px rgba(16, 24, 32, 0.07);
}

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

.brand-badge {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--indigo);
  font-weight: 800;
}

.brand-copy,
.admin-brand div {
  display: grid;
  gap: 2px;
}

.brand-copy small,
.admin-brand small,
.site-footer,
.product-content p,
.hero-panel p,
.info-panel p,
.page-header p,
.detail-summary,
.cart-item-info span,
.summary-item span,
.admin-table-row small {
  color: var(--muted);
}

.site-nav,
.header-actions,
.hero-actions,
.cart-actions,
.row-actions,
.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-nav { justify-content: center; }

.site-nav a,
.admin-nav a {
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 2px solid transparent;
}

.site-nav a.active,
.site-nav a:hover,
.admin-nav a.active,
.admin-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--indigo);
}

.header-search input {
  width: 190px;
  min-height: 40px;
}

.language-switcher {
  margin: 0;
}

.language-switcher select {
  width: auto;
  min-width: 120px;
  min-height: 40px;
  padding: 8px 32px 8px 12px;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--indigo-deep);
  color: var(--white);
  font-size: 14px;
}

.cart-pill span {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

main {
  display: grid;
  gap: 28px;
  padding-top: 24px;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.flash {
  padding: 13px 15px;
  border-radius: 8px;
  color: var(--indigo-deep);
  background: var(--indigo-soft);
  border: 1px solid rgba(24, 63, 115, 0.18);
}

.flash-danger {
  background: rgba(173, 63, 51, 0.08);
  border-color: rgba(173, 63, 51, 0.2);
  color: var(--danger);
}

.hero-band,
.section-band,
.page-header,
.product-detail-shell,
.cart-table,
.checkout-form,
.summary-card,
.info-panel,
.admin-panel,
.empty-panel,
.success-card,
.filter-panel,
.catalog-results {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 1.05fr);
  min-height: 620px;
  gap: 28px;
  padding: 44px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, rgba(16, 40, 70, 0.96), rgba(24, 63, 115, 0.88));
}

.blueprint-hero {
  position: relative;
}

.blueprint-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 42%;
  height: 42%;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-copy h1,
.page-header h1,
.success-card h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-text {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.btn-primary {
  background: var(--indigo);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(24, 63, 115, 0.18);
}

.btn-secondary {
  background: rgba(16, 24, 32, 0.05);
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero-band .btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-block { width: 100%; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.hero-metrics div {
  display: grid;
  gap: 5px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-metrics strong { font-size: 30px; }
.hero-metrics span { color: rgba(255, 255, 255, 0.72); font-size: 13px; }

.hero-panel {
  position: relative;
  z-index: 1;
  align-self: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.hero-panel-blueprint {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.hero-panel-text {
  display: grid;
  gap: 12px;
  padding: 22px 22px 18px;
}

.hero-panel-blueprint .hero-image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
}

.hero-panel h2,
.section-head h2,
.detail-body h2,
.summary-card h2,
.admin-header h1,
.catalog-head h2,
.info-panel h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.section-band,
.page-header,
.product-detail-shell,
.cart-table,
.checkout-form,
.summary-card,
.success-card,
.admin-panel,
.filter-panel,
.catalog-results {
  padding: 28px;
}

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

.text-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--indigo);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.danger-link { color: var(--danger); }

.category-grid,
.product-grid,
.detail-specs,
.form-grid,
.admin-stat-grid {
  display: grid;
  gap: 16px;
}

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

.category-tile {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 22px;
  border-radius: 8px;
  background: var(--indigo-soft);
  border: 1px solid rgba(24, 63, 115, 0.12);
}

.category-tile span {
  font-size: 20px;
  font-weight: 800;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(16, 24, 32, 0.06);
}

.product-media,
.product-gallery {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--indigo-soft);
  overflow: hidden;
}

.product-media img,
.product-gallery .gallery-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery {
  display: grid;
  gap: 12px;
  aspect-ratio: auto;
  background: transparent;
}

.gallery-main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: var(--indigo-soft);
  object-fit: cover;
}

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

.gallery-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

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

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

.product-media-placeholder,
.product-stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--indigo);
  font-weight: 800;
}

.product-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 18px;
}

.product-meta,
.price-row,
.detail-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-meta span {
  color: var(--muted);
  font-size: 12px;
}

.tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--indigo-soft);
  color: var(--indigo);
  font-weight: 700;
}

.product-content h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
}

.product-content p {
  margin: 0;
  line-height: 1.65;
  min-height: 74px;
}

.product-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.product-badges span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(16, 24, 32, 0.05);
  color: var(--muted);
  font-size: 12px;
}

.price-row { justify-content: flex-start; }
.price-row strong,
.detail-price strong { font-size: 26px; }
.price-row small,
.detail-price small { color: var(--muted); text-decoration: line-through; }
.card-actions { margin-top: auto; }

.split-band,
.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.info-panel {
  padding: 28px;
}

.accent-panel {
  background: linear-gradient(135deg, var(--indigo-soft), #fff7ed);
}

.feature-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
  line-height: 1.7;
}

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

.filter-panel {
  position: sticky;
  top: 104px;
}

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

.related-links {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.related-links span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.related-links a {
  color: var(--indigo);
  font-weight: 700;
}

.catalog-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
}

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

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

.checkbox-inline,
.checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checkbox-inline input,
.checkbox-item input {
  width: auto;
  min-height: auto;
}

.product-detail-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

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

.product-detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.06;
}

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

.assurance-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.assurance-strip div,
.detail-specs div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(16, 24, 32, 0.04);
  border: 1px solid var(--line);
}

.assurance-strip span,
.detail-specs span {
  color: var(--muted);
  font-size: 12px;
}

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

.purchase-box,
.form-stack {
  display: grid;
  gap: 14px;
}

.purchase-box {
  padding: 18px;
  border-radius: 8px;
  background: rgba(16, 24, 32, 0.04);
  border: 1px solid var(--line);
}

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

.cart-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 110px 110px 110px 70px;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-row:last-of-type { border-bottom: 0; }
.cart-item-info { display: grid; gap: 6px; }

.summary-line,
.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.summary-line.total {
  border-bottom: 0;
  font-size: 18px;
}

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

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

.success-shell {
  display: grid;
  place-items: center;
  min-height: 60vh;
}

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

.inline-summary {
  margin: 24px 0;
  text-align: left;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr);
  gap: 34px;
  padding: 34px 4px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.footer-grid span {
  color: var(--ink);
  font-weight: 800;
}

.footer-grid a {
  color: var(--muted);
  font-size: 14px;
}

.admin-body,
.admin-login-body {
  background: linear-gradient(180deg, #eef4f7, #f8f8f4);
}

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

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  position: sticky;
  top: 0;
  padding: 24px 18px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--indigo-deep);
}

.admin-sidebar .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.18);
}

.admin-nav {
  display: grid;
  gap: 10px;
}

.admin-nav a {
  color: rgba(255, 255, 255, 0.72);
}

.admin-nav a.active,
.admin-nav a:hover {
  color: var(--white);
  border-bottom-color: var(--clay);
}

.admin-main { padding: 26px; }

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

.admin-content {
  display: grid;
  gap: 20px;
}

.admin-stat-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-stat-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.admin-stat-card span {
  color: var(--muted);
  font-size: 13px;
}

.admin-stat-card strong {
  font-size: 32px;
}

.admin-table {
  display: grid;
}

.admin-table-head,
.admin-table-row {
  display: grid;
  align-items: center;
  gap: 14px;
}

.admin-table-head {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 12px;
}

.admin-table-row {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.admin-table-row span {
  display: grid;
  gap: 4px;
}

.admin-table-head-products,
.admin-table-row-products {
  grid-template-columns: 2fr 1.1fr 0.8fr 0.7fr 0.9fr 0.9fr;
}

.admin-table-head-orders,
.admin-table-row-orders {
  grid-template-columns: 1.05fr 1.05fr 1.25fr 0.75fr 0.8fr 0.85fr 0.95fr;
}

.row-actions form { margin: 0; }

.status-form select {
  min-height: 38px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--indigo-deep);
  background: var(--indigo-soft);
  font-size: 12px;
  font-weight: 800;
}

.status-shipped,
.status-completed {
  color: var(--success);
  background: rgba(38, 116, 81, 0.1);
}

.status-cancelled {
  color: var(--danger);
  background: rgba(173, 63, 51, 0.1);
}

.status-paid,
.status-pending,
.status-processing {
  color: var(--indigo);
  background: rgba(24, 63, 115, 0.1);
}

.refund-requested {
  color: #8a5a10;
  background: rgba(168, 111, 59, 0.16);
}

.refund-approved {
  color: var(--success);
  background: rgba(38, 116, 81, 0.1);
}

.refund-rejected {
  color: var(--danger);
  background: rgba(173, 63, 51, 0.1);
}

.muted-text {
  color: var(--muted);
}

.order-row-link {
  color: inherit;
}

.order-row-link:hover {
  background: rgba(24, 63, 115, 0.04);
}

.fulfillment-form {
  margin-top: 18px;
}

.refund-panel,
.refund-admin-panel {
  margin-top: 18px;
}

.refund-request-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.refund-request-card > div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.refund-request-card span {
  color: var(--muted);
  font-size: 12px;
}

.refund-review-form,
.refund-form {
  margin-top: 14px;
}

.dashboard-orders-panel {
  overflow: hidden;
}

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

.recent-order-card {
  display: grid;
  gap: 16px;
  min-height: 168px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--white), #f7fafb);
  box-shadow: 0 10px 26px rgba(16, 24, 32, 0.05);
}

.recent-order-card:hover {
  border-color: rgba(24, 63, 115, 0.34);
  transform: translateY(-1px);
}

.recent-order-top,
.recent-order-main,
.recent-order-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.recent-order-main > div {
  display: grid;
  gap: 5px;
}

.recent-order-main span,
.recent-order-main small,
.recent-order-meta span {
  color: var(--muted);
  font-size: 12px;
}

.recent-order-main strong {
  font-size: 18px;
}

.recent-order-meta {
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.recent-order-meta b {
  color: #8a5a10;
  font-size: 12px;
}

.empty-panel {
  display: grid;
  place-items: center;
  min-height: 180px;
  text-align: center;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  padding: 24px;
  background: rgba(16, 24, 32, 0.55);
  backdrop-filter: blur(8px);
}

.modal-overlay.open {
  display: grid;
  place-items: center;
}

.modal {
  width: min(880px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 8px;
  background: var(--white);
}

.modern-modal { box-shadow: 0 28px 54px rgba(16, 24, 32, 0.24); }

.modal-head,
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
}

.modal-body {
  padding: 0 22px 22px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  background: rgba(16, 24, 32, 0.06);
}

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

.admin-login-card {
  display: grid;
  gap: 18px;
  width: min(460px, 100%);
  padding: 30px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-login-card h1 {
  margin: 0;
  font-size: 34px;
}

@media (max-width: 1120px) {
  .site-header,
  .hero-band,
  .product-detail-shell,
  .catalog-layout,
  .cart-layout,
  .checkout-layout,
  .split-band,
  .detail-info-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-nav { justify-content: flex-start; }
  .product-grid,
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-panel { position: static; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recent-order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .refund-request-card { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100%, calc(100% - 24px));
    padding-top: 12px;
  }

  .site-header,
  .hero-band,
  .section-band,
  .page-header,
  .product-detail-shell,
  .cart-table,
  .checkout-form,
  .summary-card,
  .success-card,
  .admin-panel,
  .filter-panel,
  .catalog-results {
    padding: 18px;
  }

  .hero-band { min-height: auto; }
  .hero-copy h1,
  .page-header h1,
  .product-detail-copy h1,
  .success-card h1 { font-size: 34px; }

  .hero-metrics,
  .assurance-strip,
  .detail-specs,
  .product-grid,
  .category-grid,
  .form-grid,
  .footer-grid,
  .admin-stat-grid,
  .cart-row,
  .admin-table-head,
  .admin-table-row {
    grid-template-columns: 1fr;
  }

  .recent-order-grid,
  .recent-order-main,
  .recent-order-top,
  .recent-order-meta {
    grid-template-columns: 1fr;
  }

  .recent-order-grid {
    display: grid;
  }

  .recent-order-main,
  .recent-order-top,
  .recent-order-meta {
    display: grid;
  }

  .header-actions {
    align-items: stretch;
  }

  .header-search input {
    width: 100%;
  }

  .cart-pill {
    justify-content: space-between;
  }

}


/* ---------------- User menu + auth ---------------- */

.auth-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  transition: border-color 150ms ease, color 150ms ease;
}

.auth-link:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}

.auth-link-primary {
  background: var(--indigo);
  border-color: var(--indigo);
  color: var(--white);
}

.auth-link-primary:hover {
  background: var(--indigo-deep);
  border-color: var(--indigo-deep);
  color: var(--white);
}

.user-menu {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
}

.user-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--indigo-soft);
  color: var(--indigo-deep);
  font-size: 13px;
  font-weight: 700;
}

.user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
}

.link-btn:hover {
  color: var(--danger);
}

.login-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--indigo-deep);
  background: var(--indigo-soft);
  border: 1px solid rgba(24, 63, 115, 0.16);
}

.login-banner a {
  font-weight: 600;
  color: var(--indigo);
}

/* ---------------- Auth pages ---------------- */

.auth-shell {
  display: grid;
  place-items: center;
  padding: clamp(32px, 6vw, 72px) 16px;
}

.auth-card {
  width: min(440px, 100%);
  display: grid;
  gap: 22px;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.auth-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  border-radius: 12px;
  background: var(--indigo-deep);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
}

.auth-head h1 {
  margin: 0;
  font-size: 26px;
}

.auth-sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--ink);
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
}

.auth-foot {
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.auth-foot a {
  color: var(--indigo);
  font-weight: 600;
}

/* ---------------- Verify notice ---------------- */

.verify-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--indigo-soft);
  color: var(--indigo-deep);
  font-size: 26px;
}

.verify-email {
  font-weight: 600;
  color: var(--ink);
}

.verify-resend {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-fullbleed {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  background: #f4f3ef;
}

.hero-text-side {
  position: relative;
  z-index: 2;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 28px;
  padding: 56px 64px 72px;
  min-height: calc(100vh - 72px);
}

.hero-text-side h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 62px);
  line-height: 1.08;
  color: var(--ink);
}

.hero-text-side .eyebrow { color: var(--muted); }

.hero-desc {
  margin: 0;
  max-width: 420px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.hero-img-side {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(244,243,239,0.96) 0%, rgba(244,243,239,0.75) 38%, rgba(244,243,239,0.1) 62%, transparent 75%);
  z-index: 1;
  pointer-events: none;
}

.hero-img-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-float-card {
  position: absolute;
  top: 28px;
  right: 48px;
  width: 240px;
  padding: 24px;
  display: grid;
  gap: 10px;
  background: #808080;
  backdrop-filter: blur(16px);
  color: var(--ink);
  opacity: 0.5;
  z-index: 4;
}

.float-eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.hero-float-card h3 { margin: 0; font-size: 22px; line-height: 1.22; }

.hero-float-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
}

.hero-float-card a {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  padding-top: 10px;
  border-top: 1px solid rgba(16, 24, 32, 0.36);
}

.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(16,24,32,0.12);
}

.trust-item { display: flex; align-items: center; gap: 8px; }
.trust-icon { font-size: 16px; color: var(--indigo); }
.trust-copy { display: grid; gap: 2px; }
.trust-copy strong { font-size: 13px; }
.trust-copy small { font-size: 12px; color: var(--muted); }

@media (max-width: 1120px) {
  .hero-text-side { width: 65%; padding: 40px 40px 56px; }
  .hero-float-card { top: 16px; right: 16px; width: 200px; padding: 16px; }
}

@media (max-width: 720px) {
  .hero-text-side {
    width: 100%;
    padding: 24px 20px 32px;
    gap: 20px;
    min-height: 0;
  }
  .hero-img-side { position: relative; height: 55vw; }
  .hero-float-card { display: none; }
  .hero-fullbleed { display: flex; flex-direction: column; }
}
