:root {
  --ink: #11151c;
  --muted: #65717d;
  --line: #dce3e2;
  --paper: #f7f8f5;
  --surface: #ffffff;
  --mist: #eaf1ef;
  --teal: #2f8f83;
  --gold: #c7a15a;
  --coral: #c35d4b;
  --focus: #153f8f;
  --shadow: 0 18px 60px rgba(17, 21, 28, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(247, 248, 245, 0.92);
  border-bottom: 1px solid rgba(220, 227, 226, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  min-width: max-content;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 20px);
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a:hover,
.text-button:hover,
.link-button:hover {
  color: var(--teal);
}

.count-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--mist);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pill {
  min-height: 28px;
  color: #35424c;
}

.status-pill.active {
  background: rgba(47, 143, 131, 0.14);
  color: #14635a;
}

.status-pill.muted {
  background: #eef0f1;
  color: #707b86;
}

.inline-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

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

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 740;
}

.primary-button {
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 0 10px 28px rgba(17, 21, 28, 0.16);
}

.primary-button:hover {
  background: var(--teal);
  border-color: var(--teal);
}

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

.text-button {
  min-height: 0;
  padding: 0;
  color: var(--teal);
}

.wide-button {
  width: 100%;
}

.hero-carousel {
  position: relative;
  height: clamp(420px, 62vh, 640px);
  overflow: hidden;
  background: var(--ink);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  padding: clamp(28px, 6vw, 70px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms ease, visibility 700ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-image-link,
.hero-image-link::after {
  position: absolute;
  inset: 0;
}

.hero-image-link::after {
  content: "";
  background: linear-gradient(90deg, rgba(17, 21, 28, 0.72), rgba(17, 21, 28, 0.22) 54%, rgba(17, 21, 28, 0.04));
}

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

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  color: #fff;
}

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

.hero-copy .eyebrow {
  color: #b9f1e8;
}

h1,
h2 {
  margin: 0;
  line-height: 1.02;
}

.hero-copy h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 7vw, 6rem);
}

.hero-dots {
  position: absolute;
  right: clamp(20px, 4vw, 54px);
  bottom: 24px;
  display: flex;
  gap: 8px;
}

.hero-dots span {
  width: 30px;
  height: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-dots span.is-active {
  background: var(--gold);
}

.product-section,
.content-page,
.detail-layout,
.article-detail,
.auth-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.product-section {
  padding: clamp(36px, 6vw, 78px) 0;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 26px;
}

.section-heading h1,
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

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

.product-card,
.article-card,
.auth-card,
.checkout-panel,
.admin-panel,
.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-card,
.article-card {
  overflow: hidden;
}

.product-media,
.article-media {
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--mist);
  overflow: hidden;
}

.article-media {
  aspect-ratio: 16 / 10;
}

.product-media img,
.article-media img,
.table-product img,
.cart-item img,
.thumb-grid img,
.main-product-image,
.article-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body,
.article-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.product-card p,
.article-card p,
.detail-summary,
.muted {
  color: var(--muted);
  line-height: 1.6;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-weight: 800;
}

.price-stack {
  display: grid;
  gap: 4px;
  min-width: max-content;
}

.sale-price {
  font-weight: 850;
}

.compare-price {
  color: var(--muted);
  font-weight: 760;
  text-decoration: line-through;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 2px 8px;
  color: var(--coral);
  background: rgba(195, 93, 75, 0.12);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.62fr);
  gap: clamp(30px, 4vw, 56px);
  width: min(1280px, calc(100% - 36px));
  padding: clamp(24px, 4vw, 54px) 0;
}

.gallery-panel {
  display: grid;
  grid-template-columns: clamp(72px, 8vw, 96px) minmax(0, 1fr);
  grid-template-areas: "thumbs main";
  align-items: start;
  gap: clamp(12px, 1.6vw, 18px);
}

.main-image-shell {
  grid-area: main;
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f6f3ed;
  border: 1px solid #ece8df;
  border-radius: 4px;
}

.main-product-image {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f6f3ed;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 58px;
  padding: 0;
  color: #111;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 21, 28, 0.14);
  border-radius: 2px;
  box-shadow: 0 4px 18px rgba(17, 21, 28, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
}

.gallery-nav:hover {
  background: #111;
  color: #fff;
}

.gallery-nav-prev {
  left: 14px;
}

.gallery-nav-next {
  right: 14px;
}

.thumb-grid {
  grid-area: thumbs;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-height: min(720px, calc(100vh - 120px));
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.thumb-button {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  background: #f6f3ed;
  border: 1px solid #e2dfd7;
  border-radius: 4px;
  cursor: pointer;
}

.thumb-button.is-active {
  border-color: #111;
}

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

.purchase-panel {
  align-self: start;
  display: grid;
  gap: 20px;
  padding-top: 4px;
  position: sticky;
  top: 92px;
}

.purchase-panel h1 {
  font-size: clamp(1.6rem, 2.3vw, 2.8rem);
  line-height: 1.08;
}

.detail-price-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-price {
  margin: 0;
  font-size: 1.95rem;
  font-weight: 880;
}

.detail-compare-price {
  font-size: 1rem;
}

.spec-row,
.cart-summary,
.mini-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.purchase-form,
.admin-form,
.auth-card {
  display: grid;
  gap: 18px;
}

.purchase-form {
  gap: 16px;
}

.purchase-form .primary-button {
  min-height: 52px;
  border-radius: 2px;
  box-shadow: none;
  text-transform: uppercase;
}

.purchase-form .primary-button:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
}

.quantity-block {
  display: grid;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #ece8df;
}

.quantity-block > span {
  color: #333;
  font-size: 0.9rem;
  font-weight: 760;
}

.quantity-stepper {
  display: inline-grid;
  grid-template-columns: 42px 58px 42px;
  width: max-content;
  height: 38px;
  border: 1px solid #cfcfcf;
  background: #fff;
}

.quantity-stepper button,
.quantity-stepper input {
  width: 100%;
  min-height: 0;
  height: 36px;
  padding: 0;
  color: #111;
  background: #fff;
  border: 0;
  border-radius: 0;
  text-align: center;
}

.quantity-stepper button {
  cursor: pointer;
  font-size: 1.08rem;
}

.quantity-stepper button:hover {
  background: #f3f3f3;
}

.quantity-stepper input {
  border-right: 1px solid #cfcfcf;
  border-left: 1px solid #cfcfcf;
  font-weight: 760;
  -moz-appearance: textfield;
}

.quantity-stepper input::-webkit-outer-spin-button,
.quantity-stepper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.variant-fieldset {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
}

.variant-fieldset legend,
.quantity-label,
.admin-form label,
.auth-card label {
  display: grid;
  gap: 8px;
  color: #34414d;
  font-size: 0.92rem;
  font-weight: 760;
}

.variant-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.sku-option {
  min-height: 58px;
}

.sku-option-image {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
}

.sku-option span {
  min-width: 0;
}

.sku-option strong {
  margin-left: auto;
  white-space: nowrap;
}

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

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-height: auto;
  accent-color: var(--teal);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(21, 63, 143, 0.18);
  border-color: var(--focus);
}

.product-copy,
.long-form {
  color: #2d3842;
  line-height: 1.75;
  white-space: pre-line;
}

.purchase-panel .product-copy {
  padding-top: 18px;
  border-top: 1px solid #ece8df;
  color: #3a3a3a;
  font-size: 0.94rem;
}

.content-page,
.article-detail,
.auth-page {
  padding: clamp(34px, 7vw, 86px) 0;
}

.narrow-page {
  width: min(860px, calc(100% - 36px));
}

.article-detail {
  display: grid;
  gap: 32px;
  width: min(920px, calc(100% - 36px));
}

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

.article-detail h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.article-hero {
  aspect-ratio: 16 / 8;
  border-radius: 8px;
  background: var(--mist);
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: clamp(26px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

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

.cart-item img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}

.cart-item h2 {
  font-size: 1rem;
}

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

.qty-form {
  display: grid;
  grid-template-columns: 78px auto;
  gap: 8px;
}

.cart-summary {
  margin-top: 10px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-summary.compact {
  margin: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.checkout-panel {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.auth-page {
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(440px, 100%);
  padding: 28px;
}

.auth-card h1 {
  font-size: 2.2rem;
}

.notice {
  margin: 0;
  padding: 10px 12px;
  color: var(--coral);
  background: rgba(195, 93, 75, 0.1);
  border-radius: 8px;
}

.notice.success {
  color: #14635a;
  background: rgba(47, 143, 131, 0.12);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  padding: clamp(28px, 5vw, 58px) clamp(18px, 4vw, 54px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.site-footer p {
  margin: 6px 0;
}

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

.admin-title-row h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.admin-title-actions,
.import-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.file-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.file-button input {
  display: none;
}

.admin-alert {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-alert.success {
  color: #14635a;
  background: rgba(47, 143, 131, 0.12);
  border-color: rgba(47, 143, 131, 0.24);
}

.admin-alert.danger {
  color: #8d3023;
  background: rgba(195, 93, 75, 0.12);
  border-color: rgba(195, 93, 75, 0.24);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.metric-card {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.metric-card span {
  color: var(--muted);
  font-weight: 760;
}

.metric-card strong {
  font-size: 2.4rem;
}

.admin-panel {
  overflow-x: auto;
  padding: 18px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.admin-table th,
.admin-table td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.admin-table th:last-child {
  text-align: center;
}

.table-product {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
}

.table-product img {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  background: var(--mist);
}

.action-cell {
  text-align: center;
  white-space: nowrap;
  min-width: 260px;
}

.action-cell .inline-form {
  display: inline-flex;
  justify-content: center;
}

.action-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 62px;
}

.admin-form {
  width: min(860px, 100%);
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.check-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.upload-field {
  align-content: start;
}

.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 72px);
  gap: 10px;
  min-height: 72px;
}

.upload-preview-grid.single {
  grid-template-columns: 96px;
}

.upload-preview,
.sku-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
}

.upload-preview {
  width: 72px;
  height: 72px;
}

.upload-preview-grid.single .upload-preview {
  width: 96px;
  height: 96px;
}

.upload-preview img,
.sku-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview.is-empty,
.sku-preview.is-empty {
  border-style: dashed;
}

.sku-editor {
  display: grid;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.sku-editor-heading h2 {
  font-size: 1.12rem;
}

.sku-editor-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

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

.sku-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(132px, 0.5fr) minmax(190px, 1fr) 60px 52px;
  align-items: end;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.sku-row:first-child {
  border-top: 0;
}

.sku-preview {
  width: 58px;
  height: 58px;
}

.sku-remove-button {
  min-height: 42px;
  align-self: end;
  justify-self: center;
}

.admin-body {
  min-height: 100vh;
  background: #f3f6f8;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 248px;
  color: #d6dde6;
  background: #202a36;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 8px 0 26px rgba(17, 21, 28, 0.16);
  overflow-y: auto;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 62px;
  padding: 0 18px;
  color: #fff;
  background: #17212b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-logo .brand-mark {
  background: var(--teal);
}

.admin-logo strong,
.admin-logo small {
  display: block;
}

.admin-logo strong {
  font-size: 0.98rem;
}

.admin-logo small {
  margin-top: 2px;
  color: #8fa0b2;
  font-size: 0.72rem;
}

.sidebar-section-title {
  padding: 18px 20px 8px;
  color: #75869a;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-menu {
  display: grid;
  gap: 2px;
  padding: 0 10px;
}

.admin-menu-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  color: #cbd5df;
  border-radius: 4px;
  font-size: 0.94rem;
}

.admin-menu-item:hover {
  color: #fff;
  background: #2a3645;
}

.admin-menu-item.is-active {
  color: #fff;
  background: #1d8f82;
}

.admin-menu-item.is-active::before {
  content: "";
  position: absolute;
  left: -10px;
  width: 3px;
  height: 26px;
  background: var(--gold);
  border-radius: 0 4px 4px 0;
}

.admin-menu-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: #9fb0c2;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 850;
}

.admin-menu-item.is-active .admin-menu-icon,
.admin-menu-item:hover .admin-menu-icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.admin-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 248px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #dfe6ea;
  box-shadow: 0 1px 8px rgba(17, 21, 28, 0.06);
  backdrop-filter: blur(14px);
}

.admin-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #35424c;
  border-radius: 3px;
}

.admin-breadcrumb {
  display: grid;
  gap: 2px;
  margin-right: auto;
}

.admin-breadcrumb span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
}

.admin-breadcrumb strong {
  color: #1d2730;
  font-size: 1rem;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.admin-main {
  width: auto;
  min-height: 100vh;
  margin-left: 248px;
  padding: 88px 28px 70px;
}

.admin-title-row h1 {
  line-height: 1.15;
}

.admin-panel,
.metric-card,
.admin-form {
  box-shadow: 0 8px 28px rgba(17, 21, 28, 0.07);
}

.admin-backdrop {
  display: none;
}

@media (max-width: 920px) {
  .product-grid,
  .article-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .gallery-panel {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .purchase-panel {
    position: static;
  }

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

  .qty-form,
  .cart-item .inline-form {
    grid-column: 1 / -1;
  }

  .sku-row {
    grid-template-columns: minmax(160px, 1fr) minmax(132px, 0.6fr) minmax(180px, 1fr);
  }

  .sku-row .sku-preview,
  .sku-row .sku-remove-button {
    justify-self: start;
  }

  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 220ms ease;
  }

  .admin-body.admin-menu-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-topbar {
    left: 0;
  }

  .admin-menu-toggle {
    display: block;
  }

  .admin-main {
    margin-left: 0;
    padding-right: 18px;
    padding-left: 18px;
  }

  .admin-body.admin-menu-open .admin-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: block;
    background: rgba(17, 21, 28, 0.42);
    border: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-carousel {
    height: 520px;
  }

  .hero-copy h1 {
    max-width: 10ch;
  }

  .product-grid,
  .article-grid,
  .metric-grid,
  .form-grid,
  .sku-row {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    width: min(100% - 24px, 640px);
    padding-top: 18px;
  }

  .gallery-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "thumbs";
  }

  .thumb-grid {
    grid-template-columns: repeat(4, minmax(64px, 1fr));
    gap: 10px;
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }

  .gallery-nav {
    width: 36px;
    height: 48px;
  }

  .gallery-nav-prev {
    left: 8px;
  }

  .gallery-nav-next {
    right: 8px;
  }

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

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

  .article-hero {
    aspect-ratio: 4 / 3;
  }

  .admin-title-row,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-topbar {
    padding: 0 14px;
  }

  .admin-actions .secondary-button {
    display: none;
  }

  .admin-main {
    padding-top: 82px;
  }
}
