:root {
  --ink: #131019;
  --paper: #fff7de;
  --cream: #fffaf0;
  --red: #ec174c;
  --yellow: #ffd333;
  --cyan: #03a9d8;
  --blue: #1f3f9d;
  --green: #18b77a;
  --dark: #10131c;
  --panel: #181d2a;
  --panel-2: #202737;
  --line: rgba(255, 255, 255, 0.12);
  --muted: #8e97aa;
  --soft-white: #f2ead7;
  --soft-white-muted: rgba(242, 234, 215, 0.78);
  --soft-border: rgba(242, 234, 215, 0.24);
}

* {
  box-sizing: border-box;
}

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

body.has-photo-viewer {
  overflow: hidden;
}

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

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

main {
  min-height: calc(100vh - 74px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 8px clamp(16px, 3vw, 42px);
  background: rgba(16, 19, 28, 0.94);
  color: var(--soft-white);
  border-bottom: 4px solid var(--yellow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--red);
  color: var(--soft-white);
  border: 3px solid rgba(242, 234, 215, 0.9);
  box-shadow: 3px 3px 0 var(--cyan);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 14px;
}

.top-nav-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.admin-nav {
  margin-left: 4px;
  padding-left: 14px;
  border-left: 2px solid rgba(3, 169, 216, 0.52);
}

.top-nav a {
  color: var(--soft-white-muted);
}

.top-nav a:hover {
  color: var(--yellow);
}

.top-nav .admin-nav a {
  color: #9ee8ff;
  font-weight: 750;
}

.top-nav .admin-nav a:hover {
  color: var(--cyan);
}

.hero {
  position: relative;
  min-height: min(680px, calc(100vh - 74px));
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 6px solid var(--ink);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 18%, rgba(255, 211, 51, 0.36), transparent 24%),
    linear-gradient(90deg, rgba(19, 16, 25, 0.9), rgba(19, 16, 25, 0.4), rgba(19, 16, 25, 0.2));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: clamp(24px, 6vw, 58px) clamp(34px, 8vw, 80px) clamp(46px, 8vw, 80px);
  color: var(--soft-white);
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 5px 5px 0 var(--red);
}

.hero p {
  max-width: 620px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--soft-white);
  text-shadow: 2px 2px 0 rgba(19, 16, 25, 0.72);
}

.hero-actions,
.inline-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button.primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--red);
}

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

.button.ghost {
  background: rgba(242, 234, 215, 0.08);
  color: inherit;
  border-color: var(--soft-border);
}

.button.danger-button {
  background: var(--red);
  color: white;
  box-shadow: 4px 4px 0 var(--ink);
}

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border-bottom: 4px solid var(--ink);
}

.category-strip-top {
  border-top: 0;
}

.category-menu-item {
  position: relative;
  display: flex;
  min-width: 0;
}

.category-card {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 82px;
  padding: 14px 16px;
  border-right: 4px solid var(--ink);
  background: var(--yellow);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.category-card:hover {
  position: relative;
  z-index: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--ink);
}

.category-card.is-active {
  box-shadow: inset 0 -10px 0 rgba(19, 16, 25, 0.28);
}

.section-color-yellow {
  background: var(--yellow);
}

.section-color-cyan {
  background: var(--cyan);
}

.section-color-red {
  background: var(--red);
  color: var(--soft-white);
}

.section-color-green {
  background: var(--green);
}

.section-color-blue {
  background: var(--blue);
  color: var(--soft-white);
}

.section-color-pink {
  background: #ff8fb3;
  color: var(--ink);
}

.section-color-purple {
  background: #9d8cff;
  color: var(--ink);
}

.section-color-orange {
  background: #f5a524;
  color: var(--ink);
}

.section-color-lime {
  background: #8bd36b;
  color: var(--ink);
}

.section-color-gray {
  background: #b7c0d2;
  color: var(--ink);
}

.category-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
  text-transform: uppercase;
}

.category-card span {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.category-submenu {
  position: absolute;
  top: calc(100% - 6px);
  left: 12px;
  right: 16px;
  z-index: 10;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 3px solid var(--ink);
  background: var(--soft-white);
  box-shadow: 5px 5px 0 var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.category-menu-item:hover .category-submenu,
.category-menu-item:focus-within .category-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.category-submenu a {
  display: block;
  padding: 5px 8px;
  border: 2px solid transparent;
  border-radius: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.category-submenu a:hover,
.category-submenu a:focus,
.category-submenu a.is-active {
  border-color: var(--ink);
  background: var(--yellow);
}

.section-hero {
  padding: 24px clamp(18px, 4vw, 54px) 16px;
}

.section-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--cyan);
}

.section-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 1.35;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding: 44px clamp(18px, 4vw, 54px) 20px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
}

.text-link {
  font-weight: 900;
  color: var(--blue);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 280px));
  justify-content: start;
  gap: 18px;
  padding: 0 clamp(18px, 4vw, 54px) 54px;
}

.product-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: white;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--cyan);
}

.product-card-media {
  position: relative;
  display: block;
}

.product-card img,
.image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: repeating-linear-gradient(45deg, #f4f4f4 0 10px, #e2e2e2 10px 20px);
}

.image-placeholder {
  display: grid;
  place-items: center;
  min-height: 240px;
  color: #555;
  font-weight: 800;
}

.image-placeholder.small {
  min-height: 220px;
}

.image-placeholder.tiny {
  width: 86px;
  min-width: 86px;
  height: 104px;
  min-height: 104px;
  border-radius: 6px;
  font-size: 12px;
}

.product-card > span:not(.product-card-media) {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0;
  min-height: 48px;
  font-size: 18px;
}

.product-card strong {
  font-size: 20px;
}

.admin-page {
  color: var(--soft-white);
  background: var(--dark);
  font-weight: 400;
}

.admin-page .site-header {
  border-bottom-color: var(--cyan);
}

.admin-page .button.primary {
  background: var(--cyan);
  color: #071018;
  border-color: rgba(242, 234, 215, 0.28);
  box-shadow: 0 0 0 2px rgba(3, 169, 216, 0.24), 0 10px 24px rgba(3, 169, 216, 0.16);
}

.admin-page .button.primary:hover {
  background: var(--yellow);
  box-shadow: 0 0 0 2px rgba(255, 211, 51, 0.26), 0 12px 26px rgba(255, 211, 51, 0.16);
}

.admin-page .button.ghost {
  background: #263146;
  color: var(--soft-white);
  border-color: var(--soft-border);
}

.admin-page .button.ghost:hover {
  background: #32405b;
  border-color: rgba(242, 234, 215, 0.36);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 24px;
  padding: 28px;
}

.admin-sidebar,
.admin-panel,
.form-panel,
.center-panel,
.config-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.admin-sidebar h1 {
  margin: 0 0 14px;
  font-weight: 750;
  color: var(--soft-white);
}

.admin-action {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 9px 12px;
  border-radius: 6px;
  background: #263146;
  color: var(--soft-white);
  border: 1px solid rgba(242, 234, 215, 0.14);
  border-left: 4px solid var(--cyan);
  font-weight: 650;
  line-height: 1.25;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.admin-action:hover {
  background: #31405d;
  border-color: rgba(3, 169, 216, 0.58);
  color: var(--cream);
  transform: translateX(2px);
}

.admin-action.is-active {
  background: #354765;
  border-color: rgba(255, 211, 51, 0.66);
  border-left-color: var(--red);
  color: var(--soft-white);
}

.action-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  border-radius: 6px;
  color: #071018;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.action-icon.book {
  background: #ffd333;
}

.action-icon.figure {
  background: #ff8fb3;
}

.action-icon.box {
  background: #f5a524;
}

.action-icon.computer {
  background: #03a9d8;
}

.action-icon.products {
  background: #8bd36b;
}

.action-icon.archive {
  background: #b7c0d2;
}

.action-icon.pause {
  background: #ffd333;
  font-size: 13px;
}

.action-icon.trash {
  background: #ec174c;
  color: var(--soft-white);
}

.action-icon.sales {
  background: #18b77a;
}

.action-icon.stats {
  background: #9d8cff;
}

.action-icon.pdf {
  background: #ec174c;
  color: var(--soft-white);
  font-size: 11px;
  letter-spacing: 0;
}

.action-icon.users {
  background: #67e8f9;
}

.action-icon.carts {
  background: #ffd333;
}

.action-icon.config {
  background: #e6edf8;
}

.admin-action.muted {
  color: #c2cada;
  border-left-color: var(--yellow);
}

.dashboard-main {
  display: grid;
  gap: 20px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  padding: 0;
}

.stat-card {
  min-height: 120px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat-card span {
  color: #b7c0d2;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.stat-card strong {
  display: block;
  margin-top: 14px;
  font-size: 30px;
  font-weight: 750;
}

.stat-card small {
  display: block;
  margin-top: 8px;
  color: #b7c0d2;
  font-size: 13px;
  line-height: 1.35;
}

.admin-panel {
  padding: 20px;
}

.admin-panel + .admin-panel {
  margin-top: 20px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.panel-title h2 {
  margin: 0;
  font-weight: 700;
}

.panel-title span,
.panel-title a {
  color: #cbd5e8;
  font-size: 14px;
  font-weight: 600;
}

.views-panel {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}

.views-panel-title {
  align-items: flex-start;
  margin-bottom: 0;
}

.views-panel-title > div:first-child {
  display: grid;
  gap: 6px;
}

.stats-periods {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.stats-periods .button {
  min-height: 40px;
  padding: 10px 16px;
}

.view-stat-row {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.compact-panel-title {
  margin-bottom: -4px;
}

.notification-list,
.compact-list {
  display: grid;
  gap: 10px;
}

.notification-list article,
.compact-list a,
.compact-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.notification-list article {
  display: block;
}

.notification-list p,
.muted-text {
  color: #b6bfce;
  line-height: 1.45;
}

.admin-content {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding-bottom: 54px;
}

.dashboard-main > .admin-content,
.dashboard-main > .center-panel {
  width: 100%;
  margin: 0;
}

.dashboard-main .section-head {
  align-items: center;
  padding: 18px 0 16px;
}

.dashboard-main .section-head .eyebrow {
  margin-bottom: 5px;
}

.dashboard-main .section-head h1,
.dashboard-main .section-head h2 {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.05;
}

.admin-content.narrow {
  width: min(820px, calc(100% - 36px));
}

.filters,
.product-form,
.config-form,
.mini-form {
  display: grid;
  gap: 16px;
}

.filters {
  grid-template-columns: 1fr 220px auto auto;
  margin-bottom: 20px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid rgba(242, 234, 215, 0.14);
  border-radius: 6px;
  color: var(--soft-white);
  background: #0f1420;
  color-scheme: dark;
  font: inherit;
}

select option {
  color: var(--soft-white);
  background: #0f1420;
}

select option:checked {
  color: #071018;
  background: var(--cyan);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--soft-white) !important;
  box-shadow: 0 0 0 1000px #0f1420 inset !important;
  caret-color: var(--soft-white);
}

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

.field {
  display: grid;
  gap: 8px;
  color: var(--soft-white);
}

.field span,
.switch-row strong {
  font-weight: 650;
  line-height: 1.35;
}

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

.field.is-hidden {
  display: none;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.inline-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d8dfec;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.inline-checkbox input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--yellow);
}

.internal-field {
  padding: 12px;
  border: 1px solid rgba(255, 211, 51, 0.34);
  border-radius: 8px;
  background: rgba(255, 211, 51, 0.09);
}

.internal-field input,
.internal-field select,
.internal-field textarea {
  border-color: rgba(255, 211, 51, 0.28);
  background: #1a1b18;
}

.field.is-modified input,
.field.is-modified select,
.field.is-modified textarea {
  border-color: rgba(3, 169, 216, 0.68);
  background: rgba(3, 169, 216, 0.16);
  box-shadow: inset 0 0 0 1px rgba(3, 169, 216, 0.16);
}

.field.is-modified input:-webkit-autofill,
.field.is-modified input:-webkit-autofill:hover,
.field.is-modified input:-webkit-autofill:focus,
.field.is-modified textarea:-webkit-autofill,
.field.is-modified textarea:-webkit-autofill:hover,
.field.is-modified textarea:-webkit-autofill:focus,
.field.is-modified select:-webkit-autofill,
.field.is-modified select:-webkit-autofill:hover,
.field.is-modified select:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--soft-white) !important;
  box-shadow: 0 0 0 1000px #12394a inset, inset 0 0 0 1px rgba(3, 169, 216, 0.16) !important;
  caret-color: var(--soft-white);
}

.checkbox-field.is-modified span {
  color: #9ee8ff;
}

.upload-zone.is-modified {
  border-color: rgba(3, 169, 216, 0.72);
  background:
    linear-gradient(135deg, rgba(3, 169, 216, 0.16), rgba(255, 211, 51, 0.04)),
    rgba(15, 20, 32, 0.72);
}

.price-panel {
  display: grid;
  gap: 16px;
  border-color: rgba(3, 169, 216, 0.46);
  background:
    linear-gradient(135deg, rgba(3, 169, 216, 0.12), rgba(255, 211, 51, 0.08)),
    var(--panel);
}

.price-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(242, 234, 215, 0.12);
}

.price-panel-head h2 {
  margin: 0;
}

.field.is-calculated input {
  border-color: rgba(3, 169, 216, 0.42);
  background: rgba(3, 169, 216, 0.1);
  color: var(--soft-white);
}

input[readonly] {
  cursor: not-allowed;
}

.internal-field.is-waived input {
  border-color: transparent;
  background: transparent;
  color: #8e97aa;
}

.internal-field.is-waived input:disabled {
  cursor: not-allowed;
  opacity: 1;
  background: transparent;
  color: #8e97aa;
}

.checkbox-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  align-items: center;
  gap: 10px;
}

.checkbox-field input {
  width: 20px;
  min-height: 20px;
  margin: 0;
  accent-color: var(--yellow);
}

.checkbox-field span {
  font-size: 14px;
  color: #d8dfec;
  line-height: 1.2;
}

.extra-category-field {
  position: relative;
}

.multi-select-toggle {
  position: relative;
  width: 100%;
  min-height: 44px;
  padding: 11px 38px 11px 12px;
  border: 1px solid rgba(242, 234, 215, 0.14);
  border-radius: 6px;
  background: #0f1420;
  color: var(--soft-white);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.multi-select-toggle::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #b6bfce;
  border-bottom: 2px solid #b6bfce;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.multi-select-toggle[aria-expanded="true"] {
  border-color: rgba(3, 169, 216, 0.68);
  box-shadow: inset 0 0 0 1px rgba(3, 169, 216, 0.16);
}

.multi-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 8;
  display: grid;
  gap: 4px;
  max-height: 240px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(242, 234, 215, 0.16);
  border-radius: 6px;
  background: #111827;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.multi-select-menu[hidden] {
  display: none;
}

.multi-select-menu .checkbox-field {
  padding: 8px;
  border-radius: 6px;
}

.multi-select-menu .checkbox-field:hover {
  background: rgba(3, 169, 216, 0.12);
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, max-content));
  gap: 8px 14px;
  justify-content: start;
}

.upload-zone {
  display: grid;
  gap: 18px;
  min-height: 250px;
  padding: 22px;
  border: 2px dashed var(--soft-border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(3, 169, 216, 0.12), rgba(236, 23, 76, 0.08)),
    #111827;
  color: var(--soft-white);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.upload-zone:hover,
.upload-zone.is-dragging {
  border-color: var(--yellow);
  background:
    linear-gradient(135deg, rgba(255, 211, 51, 0.16), rgba(3, 169, 216, 0.14)),
    #141d2b;
  transform: translateY(-1px);
}

.upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-help {
  display: grid;
  gap: 6px;
}

.upload-help strong {
  font-size: 22px;
}

.upload-help small {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.4;
}

.upload-zone .image-preview {
  width: 100%;
  grid-template-columns: repeat(auto-fill, 118px);
  justify-content: start;
  align-items: start;
}

.image-slot {
  position: relative;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  padding: 0;
  overflow: hidden;
  border: 1px dashed rgba(242, 234, 215, 0.34);
  border-radius: 8px;
  background: rgba(15, 20, 32, 0.78);
  color: var(--soft-white);
  font: inherit;
  text-align: center;
  user-select: none;
  touch-action: none;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.image-slot.is-empty {
  cursor: pointer;
}

.image-slot.is-empty span {
  color: var(--yellow);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.image-slot.is-empty small {
  color: #cbd5e8;
  font-size: 12px;
  font-weight: 650;
}

.image-slot.has-image {
  cursor: grab;
  border-style: solid;
  border-color: rgba(242, 234, 215, 0.18);
}

.image-slot.has-image:active {
  cursor: grabbing;
}

.image-slot.is-moving {
  z-index: 2;
  opacity: 0.72;
  border-color: var(--yellow);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
  transform: scale(1.03);
}

.image-slot img,
.upload-zone .image-preview img {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: 1;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.image-cover-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(7, 16, 24, 0.78);
  color: var(--cream);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.image-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(7, 16, 24, 0.82);
  color: var(--cream);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.image-remove:hover {
  background: var(--red);
}

.form-panel {
  padding: 20px;
}

.form-panel h2 {
  margin-top: 0;
}

.product-form > .form-panel:first-child {
  padding: 16px 20px;
}

.product-form > .form-panel:first-child h2 {
  margin: 0 0 12px;
}

.product-form > .form-panel:first-child .upload-zone {
  gap: 12px;
  min-width: 0;
  min-height: 118px;
  padding: 14px 20px;
}

.product-form > .form-panel:first-child .upload-zone .image-preview {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: repeat(10, 86px);
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.product-form > .form-panel:first-child .image-slot {
  width: 86px;
  height: 86px;
}

.product-form > .form-panel:first-child .image-slot.is-empty span {
  font-size: 24px;
}

.product-form > .form-panel:first-child .image-slot.is-empty small {
  font-size: 10px;
}

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

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

.config-section-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: var(--panel-2);
  border: 1px solid rgba(242, 234, 215, 0.1);
  border-radius: 8px;
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-user-actions a {
  padding: 0;
  border: 0;
  background: transparent;
}

.config-section-panel h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.config-section-panel .muted-text {
  margin: 0;
}

.public-section-editor {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.percentage-editor {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.public-section-head,
.public-section-row {
  display: grid;
  grid-template-columns: 72px minmax(150px, 1fr) minmax(220px, 1.4fr) minmax(150px, 0.85fr) minmax(120px, 0.7fr) minmax(150px, 170px);
  gap: 12px;
  align-items: center;
}

.percentage-head,
.percentage-row {
  display: grid;
  grid-template-columns: 72px minmax(180px, 1fr) minmax(140px, 220px) minmax(150px, 170px);
  gap: 12px;
  align-items: center;
}

.public-section-head {
  padding: 12px 14px 8px;
  color: var(--soft-white);
  font-size: 13px;
  font-weight: 750;
}

.percentage-head {
  padding: 12px 14px 8px;
  color: var(--soft-white);
  font-size: 13px;
  font-weight: 750;
}

.public-section-row {
  padding: 8px 14px;
  border-top: 1px solid rgba(242, 234, 215, 0.08);
}

.percentage-row {
  padding: 8px 14px;
  border-top: 1px solid rgba(242, 234, 215, 0.08);
}

.public-section-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.018);
}

.percentage-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.018);
}

.public-section-order {
  display: flex;
  gap: 6px;
}

.order-button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(242, 234, 215, 0.16);
  border-radius: 6px;
  background: #2b3750;
  color: var(--soft-white);
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.order-button:hover:not(:disabled) {
  background: var(--cyan);
  color: #071018;
  border-color: var(--cyan);
}

.order-button:disabled {
  cursor: not-allowed;
  opacity: 0.34;
}

.compact-field {
  gap: 0;
}

.compact-field span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.public-section-row input,
.public-section-row select,
.percentage-row input {
  min-height: 42px;
}

.public-section-actions,
.percentage-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.visibility-button,
.delete-row-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(242, 234, 215, 0.16);
  border-radius: 6px;
  background: #2b3750;
  color: var(--soft-white);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
}

.visibility-button {
  gap: 7px;
  min-width: 104px;
}

.visibility-button.is-visible {
  background: var(--green);
  color: #071018;
  border-color: rgba(126, 225, 184, 0.68);
  box-shadow: 0 0 0 2px rgba(24, 183, 122, 0.18);
}

.visibility-button:hover:not(:disabled),
.delete-row-button:hover:not(:disabled) {
  background: var(--cyan);
  color: #071018;
  border-color: var(--cyan);
}

.delete-row-button {
  width: 42px;
  min-width: 42px;
  padding: 0;
  font-size: 18px;
  font-weight: 900;
}

.delete-row-button:hover:not(:disabled) {
  background: var(--red);
  color: var(--soft-white);
  border-color: rgba(255, 154, 173, 0.72);
}

.delete-row-button:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.public-section-visible {
  min-height: 44px;
  justify-content: center;
  padding-bottom: 0;
}

.menu-config-panel {
  gap: 14px;
}

.hero-image-config {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 18px;
  align-items: start;
}

.hero-image-options {
  display: grid;
  gap: 12px;
}

.hero-image-option {
  min-height: 44px;
  padding: 12px;
  border: 1px solid rgba(242, 234, 215, 0.14);
  border-radius: 8px;
  background: var(--panel);
}

.hero-image-option input {
  width: 18px;
  min-height: 18px;
}

.hero-image-upload input {
  padding: 9px;
}

.hero-image-preview {
  display: grid;
  gap: 8px;
}

.hero-image-preview span {
  color: var(--soft-white);
  font-weight: 650;
}

.hero-image-preview img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.home-detail-field {
  margin-top: 8px;
}

.home-detail-field textarea {
  min-height: 86px;
}

.save-config-top {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

.menu-config-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.menu-config-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.menu-field {
  gap: 6px;
}

.menu-field span {
  color: var(--soft-white);
  line-height: 1.25;
}

.menu-field small {
  font-size: 0.95em;
  font-weight: 500;
}

.menu-field a {
  color: var(--soft-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.menu-field a:hover,
.menu-field a:focus {
  color: var(--yellow);
}

.menu-field textarea {
  min-height: 108px;
  max-height: 220px;
  line-height: 1.45;
}

.menu-field textarea.category-menu-textarea {
  min-height: 190px;
  max-height: 340px;
}

.category-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.category-fields-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.category-fields-card h3 {
  margin: 0;
  color: var(--soft-white);
  font-size: 18px;
}

.category-fields-card > div {
  display: grid;
  gap: 8px;
}

.compact-checkbox {
  min-height: 28px;
  align-content: center;
}

.compact-checkbox input {
  min-height: 18px;
}

.publisher-other {
  display: none;
}

.publisher-other.is-visible {
  display: grid;
}

.image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.image-preview img {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

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

.pagination-summary {
  margin: -4px 0 16px;
  color: #b6bfce;
  font-size: 14px;
  font-weight: 650;
}

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

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(242, 234, 215, 0.14);
  border-radius: 6px;
  background: #2b3750;
  color: var(--soft-white);
  font-size: 13px;
  font-weight: 750;
}

.pagination a:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #071018;
}

.pagination .is-current {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #071018;
}

.pagination .is-disabled,
.pagination .pagination-gap {
  cursor: default;
  opacity: 0.48;
}

.product-row {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-row img {
  width: 86px;
  height: 104px;
  object-fit: cover;
  border-radius: 6px;
}

.row-title {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.product-row-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-width: 0;
}

.product-row-copy {
  min-width: 0;
}

.product-admin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  min-width: 112px;
}

.product-admin-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border: 2px solid #05070c;
  color: #05070c;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.product-admin-tag.is-used {
  background: var(--cyan);
}

.product-admin-tag.is-sale {
  background: var(--yellow);
  color: var(--red);
}

.product-admin-tag.is-discount {
  background: var(--red);
  color: white;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.product-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: rgba(242, 234, 215, 0.56);
}

.product-meta .product-price {
  color: #03a9d8;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.row-actions form {
  margin: 0;
  display: flex;
}

.row-actions a,
.row-actions button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  min-height: 38px;
  padding: 0;
  border-radius: 6px;
  background: #2b3750;
  color: var(--soft-white);
  border: 1px solid rgba(242, 234, 215, 0.14);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  font-family: inherit;
  cursor: pointer;
}

.row-actions svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.row-actions [data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 4;
  width: max-content;
  max-width: 190px;
  padding: 7px 9px;
  border-radius: 6px;
  background: #071018;
  color: var(--soft-white);
  border: 1px solid rgba(242, 234, 215, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.row-actions [data-tooltip]:hover::after,
.row-actions [data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.row-actions a:hover,
.row-actions button:hover {
  background: var(--cyan);
  color: #071018;
  border-color: var(--cyan);
}

.archived-product-row .row-actions a,
.archived-product-row .row-actions button,
.text-action-row .row-actions a,
.text-action-row .row-actions button {
  width: auto;
  min-width: 40px;
  padding: 0 10px;
}

.row-actions .danger-button {
  background: rgba(236, 23, 76, 0.16);
  border-color: rgba(236, 23, 76, 0.42);
  color: #ffb4c2;
}

.row-actions .danger-button:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--soft-white);
}

.product-list.compact-view {
  gap: 7px;
}

.compact-view .product-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 44px;
  padding: 7px 10px;
  border-radius: 6px;
}

.compact-view .product-row > div:first-child {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.compact-view .product-row > .product-row-main {
  grid-template-columns: minmax(0, 1fr) auto;
}

.compact-view .product-row-copy {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.compact-view .product-admin-tags {
  min-width: 0;
  gap: 6px;
}

.compact-view .product-admin-tag {
  min-height: 20px;
  padding: 2px 6px;
  font-size: 10px;
}

.compact-view .product-row .eyebrow {
  margin: 0;
  color: #b7c0d2;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.compact-view .row-title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--yellow);
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-view .product-meta {
  flex-wrap: nowrap;
  gap: 6px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.compact-view .product-meta span + span::before {
  margin-right: 6px;
}

.compact-view .product-meta .product-price {
  color: #4ddcff;
  font-weight: 800;
}

.compact-view .row-actions {
  flex-wrap: nowrap;
  gap: 5px;
}

.compact-view .row-actions a,
.compact-view .row-actions button {
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  border-radius: 5px;
}

.compact-view .row-actions svg {
  width: 14px;
  height: 14px;
}

.alert {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 6px;
}

.alert.success {
  background: rgba(24, 183, 122, 0.16);
  border: 1px solid rgba(24, 183, 122, 0.5);
}

.alert.error {
  background: rgba(236, 23, 76, 0.16);
  border: 1px solid rgba(236, 23, 76, 0.5);
}

.switch-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--panel-2);
  border-radius: 8px;
}

.switch-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.switch-row input {
  width: 56px;
  min-height: 30px;
}

.editorial-reference-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.editorial-reference-head,
.editorial-reference-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.1fr) 100px 86px 18px minmax(240px, 1.2fr) minmax(116px, 140px) minmax(140px, 150px) 64px;
  gap: 14px;
  align-items: center;
  min-width: 1080px;
}

.editorial-reference-head {
  padding: 0 12px 8px;
  color: #b7c0d2;
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.editorial-reference-list {
  display: grid;
  gap: 8px;
}

.editorial-reference-row {
  min-height: 64px;
  padding: 10px 12px;
  background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.editorial-reference-name {
  color: var(--soft-white);
  font-weight: 650;
  line-height: 1.3;
}

.editorial-reference-row input {
  min-height: 40px;
}

.editorial-reference-row [data-editorial-reference-input] {
  width: 100px;
}

.editorial-reference-divider {
  width: 1px;
  height: 42px;
  margin: 0 auto;
  background: rgba(242, 234, 215, 0.22);
}

.editorial-reference-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.editorial-reference-status.is-saved {
  color: #7ee1b8;
}

.editorial-reference-status.is-error {
  color: #ff9aad;
}

.editorial-reference-price {
  color: var(--soft-white);
  font-weight: 750;
}

.editorial-reference-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(242, 234, 215, 0.16);
  border-radius: 6px;
  background: #2b3750;
  color: var(--soft-white);
  font: inherit;
  font-size: 18px;
  font-weight: 850;
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: var(--cyan);
  color: #071018;
}

.icon-button[disabled] {
  cursor: wait;
  opacity: 0.6;
}

.icon-button[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 3;
  width: max-content;
  max-width: 240px;
  padding: 8px 10px;
  border: 1px solid rgba(242, 234, 215, 0.24);
  border-radius: 6px;
  background: #0f1420;
  color: var(--soft-white);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.icon-button[data-tooltip]:hover::after,
.icon-button[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.editorial-reference-bot-status {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(242, 234, 215, 0.2);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.editorial-reference-bot-status.is-ok {
  border-color: rgba(24, 183, 122, 0.72);
  background: rgba(24, 183, 122, 0.16);
  color: #7ee1b8;
}

.editorial-reference-bot-status.is-changed {
  border-color: rgba(255, 211, 51, 0.86);
  background: rgba(255, 211, 51, 0.16);
  color: var(--yellow);
}

.editorial-reference-bot-status.is-error {
  border-color: rgba(236, 23, 76, 0.78);
  background: rgba(236, 23, 76, 0.16);
  color: #ff9aad;
}

.editorial-reference-bot-status.is-pending {
  color: var(--muted);
}

.log-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: min(720px, calc(100vh - 42px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--soft-white);
}

.log-dialog::backdrop {
  background: rgba(8, 10, 15, 0.72);
}

.log-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.log-dialog-head h2 {
  margin: 0;
  font-size: 22px;
}

.log-dialog-body {
  display: grid;
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  padding: 16px;
}

.log-dialog-body article {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.log-dialog-body time,
.log-dialog-body small {
  color: var(--muted);
}

.log-dialog-body small {
  display: block;
}

.center-panel {
  width: min(720px, calc(100% - 36px));
  margin: 60px auto;
  padding: 28px;
}

.public-empty {
  background: white;
  border: 4px solid var(--ink);
  color: var(--ink);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  background: white;
  border: 4px solid var(--ink);
}

.admin-page .empty-state {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--soft-white);
}

.admin-page .empty-state p {
  color: #b7c0d2;
}

.empty-state h3 {
  margin-top: 0;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 480px) 1fr;
  gap: clamp(22px, 5vw, 54px);
  padding: clamp(28px, 6vw, 72px);
}

.product-gallery,
.product-copy {
  min-width: 0;
}

.product-main-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.product-stickers {
  position: absolute;
  top: 16px;
  right: -10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 16px);
  pointer-events: none;
}

.product-stickers.compact {
  top: 10px;
  right: -8px;
  gap: 6px;
  max-width: calc(100% - 10px);
}

.product-sticker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 3px solid var(--ink);
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

.product-stickers.compact .product-sticker {
  min-height: 28px;
  padding: 5px 8px;
  border-width: 2px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 11px;
}

.product-sticker.is-used {
  background: var(--cyan);
}

.product-sticker.is-sale {
  background: var(--yellow);
  color: var(--red);
  transform: rotate(3deg);
}

.product-sticker.is-discount {
  background: var(--red);
  color: white;
  transform: rotate(5deg);
}

.product-main-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--cyan);
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.thumb-button {
  display: block;
  min-width: 0;
  padding: 0;
  border: 2px solid var(--ink);
  background: white;
  cursor: zoom-in;
}

.thumb-button.is-active {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--yellow);
}

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

.product-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4.3vw, 54px);
  line-height: 0.96;
}

.product-original-title {
  margin: -2px 0 12px;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 800;
  line-height: 1.2;
}

.product-price-stack {
  display: grid;
  gap: 4px;
  margin: 0 0 14px;
}

.price-big {
  margin: 0;
  color: var(--red);
  font-size: 42px;
  font-weight: 900;
}

.price-reference-strike {
  width: fit-content;
  margin: 0;
  color: var(--muted);
  font-size: 24px;
  font-weight: 850;
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
}

.stock-pill {
  display: inline-flex;
  padding: 9px 12px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  font-weight: 900;
}

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

.featured-facts {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-facts div {
  padding: 12px;
  background: white;
  border: 3px solid var(--ink);
}

.product-facts dt {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-facts dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.product-info-list {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
}

.product-info-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(19, 16, 25, 0.18);
}

.product-info-list dt,
.product-topics h2,
.product-copy h2 {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-info-list dd {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
}

.product-topics {
  margin: 0 0 20px;
}

.product-topics h2 {
  margin: 0 0 10px;
}

.product-copy > p:not(.eyebrow):not(.product-original-title):not(.price-big):not(.price-reference-strike) {
  line-height: 1.38;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cyan);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.favorite-button {
  position: relative;
  background: white;
  color: var(--ink);
  border-color: var(--ink);
}

.favorite-help {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: 230px;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--dark);
  color: var(--soft-white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 2;
}

.favorite-help::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 10px;
  height: 10px;
  background: var(--dark);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translate(-50%, -5px) rotate(45deg);
}

.favorite-button:hover .favorite-help,
.favorite-button:focus-visible .favorite-help {
  opacity: 1;
  transform: translate(-50%, 0);
}

.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(8, 10, 15, 0.88);
  cursor: zoom-out;
}

.photo-viewer[hidden] {
  display: none;
}

.photo-viewer img {
  max-width: min(100%, 1400px);
  max-height: calc(100vh - 52px);
  object-fit: contain;
  border: 4px solid var(--soft-white);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  cursor: default;
}

.photo-viewer-close {
  position: fixed;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--soft-white);
  border-radius: 50%;
  background: var(--dark);
  color: var(--soft-white);
  font: inherit;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.photo-viewer-nav {
  position: fixed;
  top: 50%;
  display: grid;
  place-items: center;
  width: 50px;
  height: 64px;
  border: 2px solid var(--soft-white);
  border-radius: 6px;
  background: rgba(16, 19, 28, 0.82);
  color: var(--soft-white);
  font: inherit;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.photo-viewer-nav:hover,
.photo-viewer-close:hover {
  background: var(--red);
}

.photo-viewer-prev {
  left: 18px;
}

.photo-viewer-next {
  right: 18px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline article {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline time {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.maintenance-banner {
  padding: 12px;
  background: var(--yellow);
  color: var(--ink);
  text-align: center;
  font-weight: 900;
}

.maintenance-page main {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 211, 51, 0.22), rgba(3, 169, 216, 0.12) 44%, rgba(236, 23, 76, 0.12)),
    var(--cream);
}

.maintenance-page .site-header {
  display: none;
}

.maintenance-hero {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  width: min(1200px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 0;
}

.maintenance-copy {
  display: grid;
  gap: 18px;
  min-width: 0;
  max-width: 560px;
}

.maintenance-copy .eyebrow {
  margin: 0;
  color: var(--red);
}

.maintenance-copy h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--dark);
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
}

.maintenance-copy p {
  margin: 0;
  color: #3d4350;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
}

.maintenance-copy .button {
  justify-self: start;
}

.maintenance-hero img {
  width: 100%;
  max-height: min(720px, calc(100vh - 120px));
  object-fit: cover;
  border: 4px solid var(--dark);
  border-radius: 8px;
  box-shadow: 12px 12px 0 var(--yellow), 18px 18px 0 var(--cyan);
}

.cart-menu {
  position: relative;
}

.cart-icon-link {
  position: relative;
  display: inline-grid;
  grid-template-rows: 20px auto;
  place-items: center;
  min-width: 58px;
  min-height: 48px;
  padding: 5px 8px 4px;
  border: 1px solid var(--soft-border);
  border-radius: 6px;
  background: rgba(242, 234, 215, 0.08);
  color: var(--soft-white);
}

.cart-symbol {
  font-size: 20px;
  line-height: 1;
}

.cart-icon-link small {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.1;
}

.cart-icon-link strong {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 12px;
}

.cart-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 20;
  display: grid;
  gap: 9px;
  width: 260px;
  padding: 14px;
  border: 1px solid var(--soft-border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--soft-white);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.cart-menu:hover .cart-popover,
.cart-menu:focus-within .cart-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cart-popover p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: #d8dfec;
  font-size: 13px;
  line-height: 1.35;
}

.cart-popover small {
  color: var(--yellow);
  font-weight: 800;
}

.account-page {
  background: var(--paper);
}

.account-shell,
.account-dashboard {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 8px 0 58px;
}

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

.account-head,
.cart-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
}

.account-head h1,
.account-section-head h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  text-transform: uppercase;
}

.account-form,
.account-panel,
.cart-total-panel,
.reset-code {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--cyan);
}

.account-form input,
.account-form select,
.account-form textarea {
  border-color: rgba(19, 16, 25, 0.24);
  background: #fffaf0;
  color: var(--ink);
}

.account-form input:-webkit-autofill,
.account-form input:-webkit-autofill:hover,
.account-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink) !important;
  box-shadow: 0 0 0 1000px #fffaf0 inset !important;
  caret-color: var(--ink);
}

.password-control {
  position: relative;
  display: block;
}

.password-control input {
  width: 100%;
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(19, 16, 25, 0.28);
  border-radius: 6px;
  background: #fffaf0;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: var(--yellow);
  border-color: var(--ink);
}

.account-form .field {
  color: var(--ink);
}

.account-form .field span {
  color: var(--ink);
}

.account-form h2,
.account-panel h2,
.cart-row h2 {
  margin: 0;
}

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

.register-confirm-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(19, 16, 25, 0.16);
  border-radius: 6px;
  background: #fffaf0;
}

.register-confirm-grid .full {
  grid-column: 1 / -1;
}

.register-confirm-grid span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(19, 16, 25, 0.62);
}

.register-confirm-grid strong {
  overflow-wrap: anywhere;
}

.register-result p {
  margin: 0;
}

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

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

.access-card {
  align-content: start;
  min-height: 220px;
}

.admin-access-card {
  border-color: var(--cyan);
  box-shadow: 6px 6px 0 var(--red);
}

.account-profile-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 20px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--cyan);
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 42px;
  font-weight: 900;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-profile-panel h2,
.account-profile-panel p {
  margin: 0;
}

.account-profile-panel > div:last-child {
  align-self: start;
  padding-top: 14px;
}

.account-profile-panel small {
  color: #586070;
}

.profile-upload-form {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.profile-upload-button {
  min-width: 128px;
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.profile-upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 10px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: white;
  box-shadow: 5px 5px 0 var(--red);
}

.account-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  background: #fff3c6;
  color: var(--ink);
  font-weight: 850;
}

.account-nav a.is-active,
.account-nav a:hover {
  background: var(--ink);
  color: white;
}

.account-summary {
  grid-column: 1 / -1;
}

.public-panel-title {
  margin-bottom: 0;
}

.muted-public {
  color: #586070;
}

.account-list-link {
  display: block;
  font-weight: 800;
  color: var(--blue);
}

.dark-ghost {
  background: var(--dark);
  color: var(--soft-white);
}

.reset-code span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.reset-code strong {
  font-size: 30px;
}

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

.cart-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: white;
  box-shadow: 5px 5px 0 var(--cyan);
}

.cart-row img {
  width: 92px;
  height: 116px;
  object-fit: cover;
  border-radius: 6px;
}

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

.cart-total-panel {
  margin-top: 18px;
  margin-left: auto;
  width: min(360px, 100%);
}

.cart-total-panel strong {
  font-size: 34px;
}

.customer-order-list,
.customer-order-items,
.user-log-list {
  display: grid;
  gap: 10px;
}

.customer-order-head,
.customer-order-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(140px, 1fr) minmax(110px, 0.8fr) minmax(100px, 0.8fr) minmax(90px, auto);
  gap: 12px;
  align-items: center;
}

.customer-order-head {
  color: #586070;
  font-size: 13px;
  font-weight: 850;
}

.customer-order-row,
.customer-order-items > div,
.user-log-entry {
  padding: 12px;
  border: 1px solid rgba(19, 16, 25, 0.12);
  border-radius: 8px;
  background: #fffaf0;
}

.customer-order-items > div,
.user-log-entry > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.user-log-entry {
  display: grid;
  gap: 10px;
  color: var(--soft-white);
  background: var(--panel-2);
  border-color: rgba(255, 255, 255, 0.08);
}

.user-log-entry span {
  color: var(--muted);
}

.user-log-entry summary {
  cursor: pointer;
  color: var(--yellow);
  font-weight: 800;
}

.user-log-entry pre {
  max-height: 260px;
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  background: #0f1420;
  color: #d8dfec;
  white-space: pre-wrap;
}

.delete-account-form {
  border-color: var(--red);
  box-shadow: 6px 6px 0 var(--ink);
}

.account-confirm-checkbox span {
  color: var(--ink);
}

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

.cart-admin-row {
  display: grid;
  grid-template-columns: 1fr minmax(140px, 190px) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.cart-admin-row p,
.cart-admin-row small {
  color: var(--muted);
}

.cart-admin-row p {
  margin: 4px 0;
}

.cart-admin-row > div:nth-child(2) {
  display: grid;
  gap: 6px;
}

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

.admin-cart-detail-row {
  display: grid;
  grid-template-columns: 64px 1fr minmax(140px, auto) minmax(100px, auto);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: var(--panel-2);
}

.admin-cart-detail-row img,
.admin-cart-detail-row .image-placeholder {
  width: 64px;
  height: 82px;
  object-fit: cover;
  border-radius: 6px;
}

.admin-cart-detail-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.cart-discount-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

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

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

  .maintenance-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    width: min(100% - 28px, 680px);
    padding: 28px 0 46px;
  }

  .maintenance-copy {
    max-width: none;
  }

  .maintenance-copy h1 {
    max-width: 100%;
    font-size: clamp(34px, 11vw, 48px);
  }

  .maintenance-hero img {
    max-height: none;
    box-shadow: 7px 7px 0 var(--yellow), 11px 11px 0 var(--cyan);
  }

  .category-strip,
  .dashboard-layout,
  .product-detail,
  .grid-form,
  .product-form .grid-form,
  .config-grid,
  .editorial-reference-head,
  .editorial-reference-row,
  .filters,
  .product-row,
  .public-section-row,
  .percentage-row,
  .menu-config-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .editorial-reference-head {
    display: none;
  }

  .public-section-head {
    display: none;
  }

  .percentage-head {
    display: none;
  }

  .public-section-row {
    padding: 14px;
  }

  .percentage-row {
    padding: 14px;
  }

  .compact-field {
    gap: 8px;
  }

  .compact-field span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .public-section-visible {
    justify-content: flex-start;
  }

  .editorial-reference-divider {
    width: 100%;
    height: 1px;
  }

  .admin-sidebar {
    position: static;
  }

  .product-row {
    align-items: start;
  }

  .compact-view .product-row {
    gap: 8px;
    padding: 9px;
  }

  .price-panel .field-label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .hero-image-config {
    grid-template-columns: 1fr;
  }

  .product-form > .form-panel:first-child .upload-zone .image-preview {
    grid-template-columns: repeat(auto-fill, 86px);
    overflow-x: visible;
  }

  .compact-view .product-row > div:first-child {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .product-row-main,
  .compact-view .product-row > .product-row-main,
  .compact-view .product-row-copy {
    grid-template-columns: 1fr;
  }

  .product-admin-tags {
    min-width: 0;
    justify-content: flex-start;
  }

  .compact-view .row-title {
    white-space: normal;
  }

  .compact-view .product-meta {
    flex-wrap: wrap;
    white-space: normal;
  }

  .row-actions {
    justify-content: flex-start;
  }

  .pagination {
    justify-content: flex-start;
  }

  .hero {
    min-height: 620px;
  }

  .thumb-row {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .featured-facts {
    grid-template-columns: 1fr;
  }

  .product-info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .photo-viewer {
    padding: 18px 58px;
  }

  .photo-viewer img {
    max-height: calc(100vh - 36px);
  }

  .photo-viewer-nav {
    width: 38px;
    height: 54px;
    font-size: 28px;
  }

  .photo-viewer-prev {
    left: 10px;
  }

  .photo-viewer-next {
    right: 10px;
  }

  .favorite-help {
    left: 0;
    transform: translate(0, 4px);
  }

  .favorite-button:hover .favorite-help,
  .favorite-button:focus-visible .favorite-help {
    transform: translate(0, 0);
  }

  .account-head,
  .cart-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-grid,
  .access-grid,
  .account-profile-panel,
  .customer-order-head,
  .customer-order-row,
  .cart-row,
  .admin-cart-detail-row,
  .cart-admin-row {
    grid-template-columns: 1fr;
  }

  .admin-user-actions {
    justify-content: flex-start;
  }

  .customer-order-head {
    display: none;
  }

  .account-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .account-nav a {
    flex: 0 0 auto;
  }

  .customer-order-items > div,
  .user-log-entry > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-row-actions {
    justify-items: start;
  }

  .cart-popover {
    left: 0;
    right: auto;
  }
}
