:root {
  --navy: #071535;
  --blue: #1238a6;
  --bright-blue: #1769ff;
  --yellow: #ffd52a;
  --ink: #09142c;
  --muted: #5d6679;
  --line: #dfe4ed;
  --soft: #f4f7fb;
  --white: #ffffff;
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
}

.storeLogo {
  border-radius: 8px;
  object-fit: contain;
}

.heroImage img,
.productImage img,
.detailImage img,
.orderItemImage img,
.adminProductImage img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.detailImage img {
  position: absolute;
  inset: 0;
}

.honeypot {
  height: 1px !important;
  left: -10000px !important;
  overflow: hidden !important;
  position: absolute !important;
  width: 1px !important;
}

.formAlert {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  line-height: 1.5;
  margin: 0 0 22px;
  padding: 14px 16px;
}

.formAlert.success {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}

.formAlert.error {
  background: #fff1f2;
  border-color: #fda4af;
  color: #9f1239;
}

.formAlert.warning {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #854d0e;
}

.installerBody,
.adminLoginBody {
  align-items: center;
  background: linear-gradient(135deg, #071535, #1238a6);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 28px;
}

.installerCard,
.adminLoginCard {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  padding: clamp(28px, 5vw, 58px);
  width: 100%;
}

.adminLoginCard {
  max-width: 500px;
}

.installerCard h1,
.adminLoginCard h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.055em;
  line-height: 1;
  margin: 12px 0 18px;
}

.installerCard > p,
.adminLoginCard > p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 30px;
}

.installerCard hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}

.installerCard label,
.adminLoginCard label,
.adminEditorCard label,
.orderManagementCard label {
  color: #303b51;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
}

.installerCard input,
.adminLoginCard input,
.adminEditorCard input,
.adminEditorCard select,
.adminEditorCard textarea,
.orderManagementCard input,
.orderManagementCard select,
.orderManagementCard textarea {
  background: #fff;
  border: 1px solid #cfd6e2;
  border-radius: 9px;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.installerButton,
.adminLoginCard .button {
  margin-top: 28px;
  width: 100%;
}

.adminLoginCard .adminBrand {
  color: var(--ink);
  margin-bottom: 38px;
}

.adminLoginCard form {
  display: grid;
  gap: 18px;
}

.adminLoginCard .backLink {
  display: inline-block;
  margin-top: 24px;
}

.adminSidebar nav a {
  align-items: center;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
}

.adminSidebar nav a:hover,
.adminSidebar nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.adminSidebar nav a strong {
  background: rgba(255, 255, 255, 0.13);
  border-radius: 99px;
  font-size: 11px;
  padding: 4px 8px;
}

.adminEditorCard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(10, 28, 66, 0.08);
  margin-bottom: 28px;
  padding: clamp(22px, 4vw, 38px);
}

.adminEditorCard h2 {
  font-size: 26px;
  margin: 0 0 26px;
}

.adminEditorCard .checkboxField {
  align-items: center;
  flex-direction: row;
  padding-top: 28px;
}

.adminEditorCard .checkboxField input {
  min-height: auto;
  width: auto;
}

.adminEditorCard small {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.editorFooter a.cancelButton {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.adminRowActions a,
.storeCardActions a {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
}

.adminRowActions form {
  margin: 0;
}

.orderAdminCard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}

.orderAdminCard summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1.3fr auto auto;
  list-style: none;
  padding: 18px 20px;
}

.orderAdminCard summary::-webkit-details-marker {
  display: none;
}

.orderAdminCard summary > span:not(.orderStatus) {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

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

.orderAdminDetails {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(180px, 0.7fr) minmax(280px, 1.3fr) minmax(240px, 0.8fr);
  padding: 24px;
}

.orderAdminDetails > dl {
  margin: 0;
}

.orderAdminDetails > dl div {
  margin-bottom: 18px;
}

.orderAdminDetails dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.orderAdminDetails dd {
  line-height: 1.5;
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}

.orderAdminDetails .orderLinesCard,
.orderAdminDetails .orderManagementCard {
  border: 0;
  padding: 0;
}

.orderAdminDetails .orderLinesCard article {
  grid-template-columns: 1fr auto;
}

.orderAdminDetails .orderManagementCard {
  display: grid;
  gap: 14px;
}

.settingsForm {
  max-width: 1100px;
}

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

@media (max-width: 720px) {
  .installerBody,
  .adminLoginBody {
    padding: 0;
  }

  .installerCard,
  .adminLoginCard {
    border-radius: 0;
    min-height: 100vh;
  }

  .orderAdminCard summary {
    align-items: start;
    grid-template-columns: 1fr auto;
  }

  .orderAdminCard summary > span:nth-child(2) {
    grid-column: 1 / -1;
  }

  .adminSidebar nav a {
    font-size: 0;
    justify-content: center;
  }

  .adminSidebar nav a span {
    font-size: 11px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

.siteHeader {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr auto 1fr;
  min-height: 84px;
  padding: 14px clamp(20px, 5vw, 76px);
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.brand > span:last-child,
.footerBrand > div {
  display: flex;
  flex-direction: column;
}

.brand strong,
.footerBrand strong {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.brand small,
.footerBrand span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brandMark {
  display: grid;
  gap: 3px;
  height: 42px;
  position: relative;
  width: 42px;
}

.brandMark i {
  background: linear-gradient(135deg, #2b84db, #0f2d8d);
  border-radius: 2px 10px 2px 10px;
  display: block;
  height: 9px;
  transform: skewX(12deg);
  width: 30px;
}

.brandMark i:nth-child(2) {
  margin-left: 7px;
  width: 34px;
}

.brandMark i:nth-child(3) {
  height: 10px;
  margin-left: 15px;
  position: relative;
  width: 27px;
}

.brandMark i:nth-child(3)::after {
  background: var(--yellow);
  border-radius: 2px;
  content: "";
  height: 12px;
  position: absolute;
  right: 0;
  top: -14px;
  width: 12px;
}

.siteHeader nav {
  display: flex;
  gap: 34px;
}

.siteHeader nav a {
  color: #36415a;
  font-size: 14px;
  font-weight: 700;
}

.siteHeader nav a:hover,
.textLink:hover,
.productBody > a:hover {
  color: var(--bright-blue);
}

.button {
  align-items: center;
  background: var(--yellow);
  border: 1px solid var(--yellow);
  border-radius: 10px;
  color: var(--navy);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 12px;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  box-shadow: 0 12px 24px rgba(8, 28, 77, 0.14);
  transform: translateY(-2px);
}

.buttonSmall {
  justify-self: end;
  min-height: 44px;
  padding: 0 18px;
}

.cartButton {
  align-items: center;
  background: var(--yellow);
  border-radius: 10px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  justify-self: end;
  min-height: 44px;
  padding: 0 12px 0 18px;
}

.cartButton strong {
  align-items: center;
  background: var(--navy);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  font-size: 11px;
  height: 25px;
  justify-content: center;
  min-width: 25px;
}

.siteHeaderCompact {
  position: relative;
}

.hero {
  background:
    radial-gradient(circle at 15% 18%, rgba(26, 102, 255, 0.3), transparent 30%),
    linear-gradient(128deg, #061331 0%, #0c2f86 58%, #146bff 100%);
  color: var(--white);
  display: grid;
  gap: clamp(40px, 6vw, 88px);
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  min-height: 680px;
  overflow: hidden;
  padding: clamp(64px, 7vw, 104px) clamp(20px, 6vw, 92px);
  position: relative;
}

.hero::after {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
  height: 620px;
  position: absolute;
  right: -270px;
  top: -260px;
  width: 620px;
}

.heroCopy {
  align-self: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--bright-blue);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

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

.hero h1 {
  font-size: clamp(52px, 6vw, 88px);
  letter-spacing: -0.065em;
  line-height: 0.94;
  margin: 0;
  max-width: 720px;
}

.heroCopy > p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.7;
  margin: 28px 0 0;
  max-width: 610px;
}

.heroActions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 34px;
}

.textLink {
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-weight: 800;
  padding-bottom: 5px;
}

.heroFacts {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  gap: 42px;
  margin-top: 54px;
  padding-top: 28px;
}

.heroFacts div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.heroFacts strong {
  font-size: 14px;
}

.heroFacts span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.heroVisual {
  min-height: 520px;
  position: relative;
  z-index: 2;
}

.heroImage {
  border: 10px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  bottom: 0;
  box-shadow: 0 40px 70px rgba(0, 0, 0, 0.3);
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
  transform: rotate(1.5deg);
}

.heroImage img {
  object-fit: cover;
  object-position: center 28%;
}

.floatingCard {
  background: var(--white);
  border-radius: 16px;
  bottom: 28px;
  box-shadow: 0 18px 50px rgba(3, 14, 43, 0.3);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  left: -36px;
  min-width: 210px;
  padding: 20px 22px;
  position: absolute;
}

.floatingCard span,
.floatingCard small {
  color: var(--muted);
  font-size: 11px;
}

.floatingCard strong {
  color: var(--blue);
  font-size: 38px;
  letter-spacing: -0.04em;
  margin: 4px 0;
}

.benefitStrip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 clamp(20px, 6vw, 92px);
}

.benefitStrip article {
  align-items: center;
  border-right: 1px solid var(--line);
  display: flex;
  gap: 20px;
  min-height: 136px;
  padding: 26px clamp(18px, 3vw, 46px);
}

.benefitStrip article:first-child {
  padding-left: 0;
}

.benefitStrip article:last-child {
  border: 0;
}

.benefitStrip article > span {
  color: var(--bright-blue);
  font-size: 12px;
  font-weight: 800;
}

.benefitStrip strong {
  font-size: 15px;
}

.benefitStrip p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 6px 0 0;
}

.catalog {
  background: var(--soft);
  padding: 100px clamp(20px, 6vw, 92px) 116px;
}

.sectionHeading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 44px;
}

.sectionHeading h2,
.contact h2 {
  font-size: clamp(36px, 4.6vw, 58px);
  letter-spacing: -0.055em;
  line-height: 1.02;
  margin: 0;
  max-width: 720px;
}

.sectionHeading > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 5px 40px;
  max-width: 360px;
}

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

.productCard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(13, 31, 72, 0.05);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.productCard:hover {
  box-shadow: 0 20px 42px rgba(13, 31, 72, 0.11);
  transform: translateY(-5px);
}

.productImage {
  aspect-ratio: 0.92;
  background: #dbe4f4;
  overflow: hidden;
  position: relative;
}

.productImage img {
  object-fit: cover;
  transition: transform 300ms ease;
}

.productCard:hover .productImage img {
  transform: scale(1.025);
}

.categoryTag {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  left: 14px;
  padding: 8px 11px;
  position: absolute;
  text-transform: uppercase;
  top: 14px;
}

.sourcePriceCover {
  align-items: center;
  background: var(--blue);
  border: 4px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  font-size: 17px;
  font-weight: 800;
  height: 64px;
  justify-content: center;
  left: 6px;
  position: absolute;
  top: 86px;
  width: 64px;
}

.productBody {
  padding: 22px;
}

.productTitle {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.productTitle h3 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
}

.productTitle strong {
  color: var(--bright-blue);
  font-size: 18px;
  white-space: nowrap;
}

.productBody > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 14px 0;
}

.productBody ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.productBody li {
  background: var(--soft);
  border-radius: 999px;
  color: #465168;
  font-size: 10px;
  padding: 7px 9px;
}

.productBody > a {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: space-between;
  padding-top: 16px;
}

.contact {
  align-items: center;
  background: var(--navy);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  padding: 90px clamp(20px, 7vw, 110px);
}

.contact p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
  max-width: 620px;
}

.eyebrowLight {
  color: var(--yellow);
}

.buttonLight {
  flex: 0 0 auto;
  margin-left: 50px;
}

footer {
  align-items: center;
  background: #040c20;
  color: var(--white);
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr auto 1fr;
  padding: 36px clamp(20px, 6vw, 92px);
}

.brandMarkSmall {
  transform: scale(0.76);
  transform-origin: left center;
  width: 35px;
}

.footerInfo {
  color: rgba(255, 255, 255, 0.62);
  display: flex;
  font-size: 11px;
  gap: 24px;
}

footer > p {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  justify-self: end;
  margin: 0;
}

/* Product detail */
.productPage,
.orderPage {
  background: var(--soft);
  min-height: 720px;
  padding: 34px clamp(20px, 6vw, 92px) 100px;
}

.breadcrumbs {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 9px;
  margin-bottom: 32px;
}

.breadcrumbs a:hover {
  color: var(--bright-blue);
}

.breadcrumbs strong {
  color: var(--ink);
}

.productDetailGrid {
  align-items: start;
  display: grid;
  gap: clamp(34px, 5vw, 78px);
  grid-template-columns: minmax(380px, 0.95fr) minmax(420px, 1.05fr);
}

.detailImage {
  aspect-ratio: 0.92;
  background: #dfe6f1;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(13, 31, 72, 0.11);
  overflow: hidden;
  position: sticky;
  top: 26px;
}

.detailImage img {
  object-fit: cover;
}

.detailImage > span {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  left: 18px;
  padding: 9px 13px;
  position: absolute;
  text-transform: uppercase;
  top: 18px;
}

.detailInfo {
  padding: 28px 0;
}

.detailInfo h1,
.orderHeading h1 {
  font-size: clamp(42px, 5vw, 68px);
  letter-spacing: -0.06em;
  line-height: 0.98;
  margin: 0;
}

.detailInfo > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin: 24px 0;
}

.detailPrice {
  align-items: baseline;
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.detailPrice strong {
  color: var(--bright-blue);
  font-size: 38px;
}

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

.detailFeatures {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}

.detailFeatures li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #465168;
  font-size: 11px;
  padding: 8px 11px;
}

.configurator {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(13, 31, 72, 0.07);
  padding: 26px;
}

.choiceGroup + .choiceGroup {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 22px;
}

.choiceHeading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.choiceHeading strong,
.quantityRow strong {
  font-size: 13px;
}

.choiceHeading span {
  color: var(--bright-blue);
  font-size: 11px;
  font-weight: 700;
}

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

.choiceButtons button {
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 9px;
  color: #3f4a60;
  cursor: pointer;
  font-size: 12px;
  min-height: 39px;
  padding: 0 13px;
}

.choiceButtons button:hover,
.choiceButtons button.selected {
  background: #edf3ff;
  border-color: var(--bright-blue);
  color: var(--blue);
}

.sizeButtons button {
  min-width: 43px;
}

.quantityRow {
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  padding: 20px 0;
}

.quantityRow > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.quantityRow span {
  color: var(--muted);
  font-size: 10px;
}

.quantityControl {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  height: 42px;
  overflow: hidden;
}

.quantityControl button {
  background: var(--soft);
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
  height: 100%;
  width: 39px;
}

.quantityControl button:disabled {
  color: #aab1bf;
  cursor: not-allowed;
}

.quantityControl output {
  font-size: 13px;
  font-weight: 800;
  min-width: 40px;
  text-align: center;
}

.configTotal {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
}

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

.configTotal strong {
  color: var(--blue);
  font-size: 28px;
}

.addButton {
  border: 0;
  cursor: pointer;
  width: 100%;
}

.secondaryAction {
  border: 1px solid var(--line);
  border-radius: 10px;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 9px;
  padding: 14px;
  text-align: center;
}

.secondaryAction:hover {
  border-color: var(--bright-blue);
  color: var(--bright-blue);
}

.configNote {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  margin: 14px 0 0;
  text-align: center;
}

/* Order */
.orderHeading {
  margin: 38px 0 46px;
  max-width: 760px;
}

.orderHeading p {
  color: var(--muted);
  line-height: 1.7;
}

.emptyCart {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  padding: 70px 24px;
  text-align: center;
}

.emptyCart > span {
  align-items: center;
  background: var(--navy);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  font-size: 28px;
  font-weight: 800;
  height: 76px;
  justify-content: center;
  width: 76px;
}

.emptyCart h2 {
  font-size: 30px;
  margin: 24px 0 8px;
}

.emptyCart p {
  color: var(--muted);
  margin: 0 0 24px;
}

.orderGrid {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.5fr);
}

.orderItems,
.orderSummary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.orderItems {
  overflow: hidden;
}

.orderItem {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: 92px minmax(150px, 1fr) auto auto;
  padding: 22px;
  position: relative;
}

.orderItemImage {
  aspect-ratio: 1;
  border-radius: 11px;
  overflow: hidden;
  position: relative;
}

.orderItemImage img {
  object-fit: cover;
}

.orderItemInfo {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.orderItemInfo a {
  font-size: 14px;
  font-weight: 800;
}

.orderItemInfo a:hover {
  color: var(--bright-blue);
}

.orderItemInfo span,
.orderItemInfo small {
  color: var(--muted);
  font-size: 11px;
}

.orderQuantity {
  height: 38px;
}

.itemSubtotal {
  color: var(--blue);
  font-size: 17px;
  min-width: 65px;
  text-align: right;
}

.removeItem {
  background: transparent;
  border: 0;
  bottom: 16px;
  color: #9b3c46;
  cursor: pointer;
  font-size: 10px;
  position: absolute;
  right: 22px;
}

.continueShopping {
  color: var(--blue);
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 20px 22px;
}

.orderSummary {
  padding: 26px;
  position: sticky;
  top: 22px;
}

.orderSummary h2 {
  font-size: 20px;
  margin: 0 0 22px;
}

.orderSummary label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-top: 16px;
}

.orderSummary label span {
  color: var(--muted);
  font-weight: 400;
}

.orderSummary input,
.orderSummary textarea {
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  display: block;
  font: inherit;
  margin-top: 7px;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

.orderSummary input:focus,
.orderSummary textarea:focus {
  border-color: var(--bright-blue);
  outline: 2px solid rgba(23, 105, 255, 0.12);
}

.summaryTotal {
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin: 24px 0;
  padding: 20px 0;
}

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

.summaryTotal strong {
  color: var(--blue);
  font-size: 28px;
}

.whatsappOrder {
  border: 0;
  cursor: pointer;
  width: 100%;
}

.orderSummary > p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  margin: 14px 0 0;
  text-align: center;
}

/* Administrator */
.adminShell {
  background: #f4f6fa;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}

.adminSidebar {
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 28px 18px;
  position: sticky;
  top: 0;
}

.adminBrand {
  align-items: center;
  display: flex;
  gap: 10px;
  padding: 0 8px 32px;
}

.adminBrand .brandMark {
  transform: scale(0.8);
  transform-origin: left center;
  width: 36px;
}

.adminBrand > span:last-child {
  display: flex;
  flex-direction: column;
}

.adminBrand strong {
  font-size: 18px;
}

.adminBrand small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  letter-spacing: 0.12em;
  margin-top: 2px;
  text-transform: uppercase;
}

.adminSidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adminSidebar nav button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.67);
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 13px;
  text-align: left;
}

.adminSidebar nav button:hover,
.adminSidebar nav button.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.adminSidebar nav button strong {
  align-items: center;
  background: var(--yellow);
  border-radius: 999px;
  color: var(--navy);
  display: flex;
  font-size: 9px;
  height: 21px;
  justify-content: center;
  min-width: 21px;
}

.adminAccount {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding: 18px 10px 0;
}

.adminAccount span {
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adminAccount a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.adminMain {
  padding: 52px clamp(24px, 5vw, 72px) 90px;
  position: relative;
}

.adminHeading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 34px;
}

.adminHeading > div > span {
  color: var(--bright-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.adminHeading h1 {
  font-size: clamp(40px, 5vw, 62px);
  letter-spacing: -0.06em;
  line-height: 1;
  margin: 9px 0 11px;
}

.adminHeading p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.adminHeading .button {
  border: 0;
  cursor: pointer;
}

.adminProductList,
.settingsCard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(13, 31, 72, 0.06);
  overflow: hidden;
}

.adminProductList article {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: 76px minmax(180px, 1fr) 80px 90px auto;
  padding: 18px 20px;
}

.adminProductList article:last-child {
  border-bottom: 0;
}

.adminProductList article.inactive {
  background: #fafbfc;
  opacity: 0.72;
}

.adminProductImage {
  align-items: center;
  aspect-ratio: 1;
  background: var(--soft);
  border-radius: 9px;
  color: var(--muted);
  display: flex;
  font-size: 9px;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.adminProductImage img,
.editorPreview img {
  object-fit: cover;
}

.adminProductName {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.adminProductName strong {
  font-size: 13px;
}

.adminProductName span {
  color: var(--muted);
  font-size: 10px;
}

.adminPrice {
  color: var(--blue);
  font-size: 15px;
}

.statusPill {
  background: #f0f2f6;
  border: 0;
  border-radius: 999px;
  color: #697286;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  padding: 8px 10px;
}

.statusPill.active {
  background: #def7e9;
  color: #147443;
}

.adminRowActions {
  display: flex;
  gap: 7px;
}

.adminRowActions button,
.cancelButton {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 10px;
  min-height: 34px;
  padding: 0 12px;
}

.adminRowActions button:hover {
  border-color: var(--bright-blue);
  color: var(--bright-blue);
}

.adminRowActions button.danger:hover {
  border-color: #bd4651;
  color: #a92b37;
}

.adminLoading {
  background: var(--white);
  border-radius: 16px;
  color: var(--muted);
  padding: 60px;
  text-align: center;
}

.adminToast {
  background: var(--navy);
  border-radius: 9px;
  box-shadow: 0 12px 36px rgba(4, 16, 46, 0.25);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 13px 17px;
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 80;
}

.settingsCard {
  padding: 30px;
}

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

.formGrid label,
.editorImageBlock > label:last-child {
  color: #34405a;
  display: block;
  font-size: 10px;
  font-weight: 800;
}

.formGrid label small {
  color: var(--muted);
  font-weight: 400;
}

.formGrid input,
.formGrid textarea,
.formGrid select,
.editorImageBlock > label:last-child input {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: block;
  font: inherit;
  margin-top: 7px;
  min-height: 43px;
  padding: 10px 12px;
  width: 100%;
}

.formGrid textarea {
  resize: vertical;
}

.formGrid input:focus,
.formGrid textarea:focus,
.formGrid select:focus,
.editorImageBlock input:focus {
  border-color: var(--bright-blue);
  outline: 2px solid rgba(23, 105, 255, 0.1);
}

.formWide {
  grid-column: 1 / -1;
}

.settingsSave {
  border: 0;
  cursor: pointer;
  margin-top: 24px;
}

.orderAdminToolbar {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(240px, 1fr) 220px;
  margin-bottom: 18px;
}

.orderAdminToolbar label,
.orderManagementCard label {
  color: #34405a;
  display: block;
  font-size: 10px;
  font-weight: 800;
}

.orderAdminToolbar input,
.orderAdminToolbar select,
.orderManagementCard select,
.orderManagementCard textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  display: block;
  font: inherit;
  margin-top: 7px;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.orderAdminList {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(13, 31, 72, 0.06);
  overflow: hidden;
}

.orderAdminRow {
  align-items: center;
  background: var(--white);
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 18px;
  grid-template-columns: 1.05fr 1.2fr 0.8fr 70px 105px;
  padding: 20px;
  text-align: left;
  width: 100%;
}

.orderAdminRow:last-child {
  border-bottom: 0;
}

.orderAdminRow:hover {
  background: #f8faff;
}

.orderAdminRow > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.orderAdminRow > div strong {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.orderStatus {
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  padding: 8px 10px;
  text-align: center;
}

.orderStatus.new { background: #fff2c8; color: #7a5a00; }
.orderStatus.in_process { background: #e3efff; color: #1454a1; }
.orderStatus.production { background: #ece7ff; color: #5434a0; }
.orderStatus.shipped { background: #daf5f3; color: #126b65; }
.orderStatus.delivered { background: #def7e9; color: #147443; }
.orderStatus.cancelled { background: #fde5e8; color: #a92b37; }

.adminEmpty {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 70px 24px;
  text-align: center;
}

.adminEmpty strong {
  color: var(--ink);
  font-size: 16px;
}

.adminEmpty span {
  font-size: 10px;
}

.orderEditor {
  background: var(--soft);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  max-width: 780px;
  overflow-y: auto;
  width: min(780px, 94vw);
}

.orderEditor > header {
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 24px 28px;
}

.orderEditor > header span {
  color: var(--bright-blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.orderEditor > header h2 {
  font-size: 24px;
  margin: 6px 0 0;
}

.orderEditor > header > button {
  background: var(--soft);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  height: 38px;
  width: 38px;
}

.orderEditorBody {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.orderCustomerCard,
.orderLinesCard,
.orderManagementCard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 22px;
}

.orderEditorBody h3 {
  font-size: 15px;
  margin: 0 0 18px;
}

.orderCustomerCard dl {
  display: grid;
  gap: 14px 24px;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}

.orderCustomerCard dl div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.orderCustomerCard dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.orderCustomerCard dd {
  font-size: 11px;
  margin: 0;
}

.customerNote {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}

.customerNote strong,
.customerNote p {
  font-size: 10px;
  margin: 0;
}

.customerNote p {
  color: var(--muted);
  line-height: 1.65;
  margin-top: 6px;
}

.orderLinesCard article {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto 70px;
  padding: 13px 0;
}

.orderLinesCard article > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.orderLinesCard article strong,
.orderLinesCard article span {
  font-size: 10px;
}

.orderLinesCard article > div span {
  color: var(--muted);
  font-size: 9px;
}

.orderLinesCard article > strong {
  text-align: right;
}

.orderEditorTotal {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
}

.orderEditorTotal span { font-size: 11px; font-weight: 700; }
.orderEditorTotal strong { color: var(--blue); font-size: 20px; }

.orderManagementCard {
  display: grid;
  gap: 16px;
  grid-template-columns: 190px 1fr;
}

.orderManagementCard h3 {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.orderManagementCard textarea {
  min-height: 86px;
  resize: vertical;
}

.orderEditor .editorFooter {
  background: var(--white);
}

.orderFeedback {
  background: #fde5e8;
  border-radius: 8px;
  color: #a92b37 !important;
  font-size: 10px !important;
  font-weight: 700;
  margin: 14px 0 0 !important;
  padding: 11px 12px;
}

.orderFeedback.success {
  background: #def7e9;
  color: #147443 !important;
}

.editorOverlay {
  align-items: stretch;
  background: rgba(3, 12, 33, 0.62);
  display: flex;
  inset: 0;
  justify-content: flex-end;
  position: fixed;
  z-index: 90;
}

.productEditor {
  background: var(--white);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  max-width: 920px;
  overflow-y: auto;
  width: min(920px, 92vw);
}

.productEditor > header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 24px 28px;
}

.productEditor > header span {
  color: var(--bright-blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.productEditor > header h2 {
  font-size: 24px;
  margin: 6px 0 0;
}

.productEditor > header > button {
  background: var(--soft);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  height: 38px;
  width: 38px;
}

.editorBody {
  display: grid;
  gap: 28px;
  grid-template-columns: 240px 1fr;
  padding: 28px;
}

.editorImageBlock {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.editorPreview {
  align-items: center;
  aspect-ratio: 0.92;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  display: flex;
  font-size: 11px;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.uploadButton {
  background: var(--navy);
  border-radius: 8px;
  color: var(--white) !important;
  cursor: pointer;
  font-size: 10px !important;
  padding: 12px;
  text-align: center;
}

.uploadButton input {
  display: none;
}

.checkboxField {
  align-items: center;
  display: flex !important;
  gap: 9px;
}

.checkboxField input {
  display: inline-block;
  margin: 0;
  min-height: 16px;
  width: 16px;
}

.editorFooter {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: auto;
  padding: 20px 28px;
}

.editorFooter .button {
  border: 0;
  cursor: pointer;
}

.adminDenied {
  align-items: center;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

.adminDenied h1 {
  font-size: 48px;
  margin: 0 0 12px;
}

.adminDenied p {
  color: rgba(255, 255, 255, 0.65);
}

.adminDenied a {
  background: var(--yellow);
  border-radius: 9px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  margin-top: 14px;
  padding: 14px 18px;
}

.storeLogo {
  border-radius: 10px;
  object-fit: contain;
}

.heroImagePlaceholder {
  align-items: center;
  background: linear-gradient(145deg, var(--navy), #26498c);
  color: var(--white);
  display: flex;
  font-size: clamp(32px, 6vw, 76px);
  font-weight: 900;
  height: 100%;
  justify-content: center;
  padding: 30px;
  text-align: center;
  width: 100%;
}

.adminStorePicker {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 20px;
}

.adminStorePicker label {
  color: rgba(255, 255, 255, 0.55);
  display: block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.adminStorePicker select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--white);
  font-size: 10px;
  min-height: 40px;
  padding: 0 10px;
  width: 100%;
}

.adminStorePicker option {
  color: var(--ink);
}

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

.storeCards article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(13, 31, 72, 0.06);
  display: grid;
  gap: 18px;
  grid-template-columns: 54px 1fr;
  padding: 22px;
}

.storeCards article.inactive {
  opacity: 0.65;
}

.storeAvatar {
  align-items: center;
  background: var(--navy);
  border-radius: 12px;
  color: var(--yellow);
  display: flex;
  font-size: 15px;
  font-weight: 900;
  height: 54px;
  justify-content: center;
}

.storeCardMain h2 {
  font-size: 20px;
  margin: 7px 0 4px;
}

.storeCardMain > p {
  color: var(--muted);
  font-size: 10px;
  margin: 0;
}

.storeState {
  background: #f0f2f6;
  border-radius: 999px;
  color: #697286;
  display: inline-block;
  font-size: 8px;
  font-weight: 800;
  padding: 6px 9px;
}

.storeState.active {
  background: #def7e9;
  color: #147443;
}

.storeCardMain dl {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 100px;
  margin: 18px 0 0;
  padding-top: 16px;
}

.storeCardMain dl div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.storeCardMain dt {
  color: var(--muted);
  font-size: 8px;
}

.storeCardMain dd {
  font-size: 10px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storeCardActions {
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
}

.storeCardActions button {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 9px;
  min-height: 36px;
  padding: 0 12px;
}

.storeCardActions button:first-child {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.storeEditor {
  background: var(--white);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  max-width: 620px;
  overflow-y: auto;
  width: min(620px, 94vw);
}

.storeEditor > header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 24px 28px;
}

.storeEditor > header span {
  color: var(--bright-blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.storeEditor > header h2 {
  font-size: 24px;
  margin: 6px 0 0;
}

.storeEditor > header > button {
  background: var(--soft);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  height: 38px;
  width: 38px;
}

.storeEditorBody {
  padding: 28px;
}

.settingsCard > h2,
.settingsSection h2 {
  font-size: 16px;
  margin: 0 0 18px;
}

.settingsSection {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 26px;
}

.settingsUpload {
  align-self: end;
  display: inline-block !important;
  justify-self: start;
  min-width: 170px;
}

.legalPage {
  margin: 0 auto;
  max-width: 920px;
  min-height: 60vh;
  padding: 90px 5vw;
}

.legalPage h1 {
  font-size: clamp(42px, 7vw, 78px);
  margin: 16px 0 38px;
}

.legalContent {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(13, 31, 72, 0.06);
  padding: 34px;
}

.legalContent p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 16px;
}

@media (max-width: 1120px) {
  .productGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .siteHeader {
    grid-template-columns: 1fr auto;
  }

  .siteHeader nav {
    display: none;
  }

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

  .footerInfo {
    flex-direction: column;
    gap: 7px;
  }

  footer > p {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .productDetailGrid {
    grid-template-columns: minmax(330px, 0.9fr) minmax(390px, 1.1fr);
  }

  .adminProductList article {
    grid-template-columns: 68px minmax(160px, 1fr) 70px auto;
  }

  .adminProductList .statusPill {
    display: none;
  }

  .orderAdminRow {
    grid-template-columns: 1fr 1.2fr 80px 100px;
  }

  .orderAdminRow > div:nth-child(3) {
    display: none;
  }
}

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

  .heroVisual {
    min-height: 620px;
  }

  .floatingCard {
    left: 20px;
  }

  .benefitStrip {
    grid-template-columns: 1fr;
  }

  .benefitStrip article,
  .benefitStrip article:first-child {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    padding: 22px 0;
  }

  .sectionHeading,
  .contact {
    align-items: start;
    flex-direction: column;
  }

  .sectionHeading > p {
    margin: 22px 0 0;
  }

  .buttonLight {
    margin: 24px 0 0;
  }

  .productDetailGrid,
  .orderGrid {
    grid-template-columns: 1fr;
  }

  .detailImage,
  .orderSummary {
    position: relative;
    top: auto;
  }

  .adminShell {
    display: block;
  }

  .adminSidebar {
    align-items: center;
    flex-direction: row;
    min-height: auto;
    padding: 12px 18px;
    position: relative;
  }

  .adminBrand {
    padding: 0;
  }

  .adminSidebar nav {
    flex-direction: row;
    margin-left: auto;
  }

  .adminAccount {
    border: 0;
    margin: 0 0 0 12px;
    padding: 0;
  }

  .adminAccount span {
    display: none;
  }

  .adminMain {
    padding-top: 38px;
  }

  .adminStorePicker {
    border: 0;
    margin-left: 16px;
    max-width: 190px;
    padding: 0;
  }

  .adminStorePicker label {
    display: none;
  }

  .storeCards {
    grid-template-columns: 1fr;
  }

  .orderAdminToolbar {
    grid-template-columns: 1fr 180px;
  }
}

@media (max-width: 620px) {
  .siteHeader {
    min-height: 74px;
  }

  .brand small {
    display: none;
  }

  .buttonSmall {
    font-size: 0;
    min-height: 42px;
    padding: 0 14px;
  }

  .buttonSmall::after {
    content: "WhatsApp";
    font-size: 12px;
  }

  .cartButton {
    padding-left: 13px;
  }

  .cartButton > span {
    font-size: 0;
  }

  .cartButton > span::after {
    content: "Pedido";
    font-size: 11px;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .heroFacts {
    flex-direction: column;
    gap: 20px;
  }

  .heroVisual {
    min-height: 430px;
  }

  .heroImage {
    border-width: 6px;
  }

  .productGrid {
    grid-template-columns: 1fr;
  }

  .catalog {
    padding-bottom: 78px;
    padding-top: 74px;
  }

  .contact {
    padding-bottom: 68px;
    padding-top: 68px;
  }

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

  footer > p {
    grid-column: auto;
  }

  .productPage,
  .orderPage {
    padding-bottom: 72px;
  }

  .detailInfo {
    padding-top: 0;
  }

  .detailInfo h1,
  .orderHeading h1 {
    font-size: 42px;
  }

  .configurator {
    padding: 20px;
  }

  .orderItem {
    align-items: start;
    grid-template-columns: 76px 1fr;
  }

  .orderQuantity {
    grid-column: 2;
  }

  .itemSubtotal {
    position: absolute;
    right: 20px;
    top: 24px;
  }

  .orderItemInfo {
    padding-right: 72px;
  }

  .adminSidebar nav button {
    min-height: 40px;
    padding: 0 9px;
  }

  .adminSidebar nav button span {
    font-size: 9px;
  }

  .adminSidebar nav button span::after {
    content: none !important;
  }

  .adminAccount {
    display: none;
  }

  .adminHeading {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }

  .adminProductList article {
    align-items: start;
    grid-template-columns: 62px 1fr auto;
  }

  .adminPrice {
    grid-column: 3;
    grid-row: 1;
  }

  .adminRowActions {
    grid-column: 2 / -1;
  }

  .formGrid,
  .editorBody {
    grid-template-columns: 1fr;
  }

  .formWide {
    grid-column: auto;
  }

  .editorImageBlock {
    max-width: 260px;
  }

  .productEditor {
    width: 100vw;
  }

  .orderAdminToolbar,
  .orderManagementCard {
    grid-template-columns: 1fr;
  }

  .orderAdminRow {
    align-items: start;
    grid-template-columns: 1fr auto;
    padding: 16px;
  }

  .orderAdminRow > div:nth-child(2),
  .orderAdminRow > div:nth-child(3) {
    display: none;
  }

  .orderAdminRow > .adminPrice {
    grid-column: 2;
    grid-row: 1;
  }

  .orderAdminRow > .orderStatus {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .orderEditor {
    width: 100vw;
  }

  .orderCustomerCard dl {
    grid-template-columns: 1fr;
  }

  .orderLinesCard article {
    grid-template-columns: 1fr auto;
  }

  .orderLinesCard article > strong {
    grid-column: 2;
    grid-row: 1;
  }

  .adminStorePicker {
    display: none;
  }

  .adminSidebar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .adminSidebar nav {
    justify-content: space-between;
    margin: 10px 0 0;
    order: 3;
    width: 100%;
  }

  .adminSidebar nav button {
    flex: 1;
  }

  .storeEditor {
    width: 100vw;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Etapa 4: usuarios y roles por tienda */
.adminAccount small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
  font-weight: 700;
}

.storeUserList {
  display: grid;
  gap: 14px;
}

.storeUserCard {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(13, 31, 72, 0.05);
  display: grid;
  gap: 18px;
  grid-template-columns: 52px minmax(180px, 1fr) auto minmax(260px, auto);
  padding: 18px 20px;
}

.storeUserCard.inactive {
  opacity: 0.65;
}

.storeUserAvatar {
  align-items: center;
  background: var(--navy);
  border-radius: 11px;
  color: var(--yellow);
  display: flex;
  font-size: 13px;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.storeUserIdentity,
.storeUserMeta,
.storeUserActions {
  display: flex;
  flex-direction: column;
}

.storeUserIdentity {
  gap: 4px;
  min-width: 0;
}

.storeUserIdentity strong {
  font-size: 13px;
}

.storeUserIdentity span,
.storeUserIdentity small {
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storeUserMeta {
  align-items: flex-start;
  gap: 7px;
}

.rolePill,
.userState {
  border-radius: 999px;
  display: inline-flex;
  font-size: 8px;
  font-weight: 800;
  padding: 6px 9px;
  white-space: nowrap;
}

.rolePill {
  background: #e7efff;
  color: #244d91;
}

.userState {
  background: #f0f2f6;
  color: #697286;
}

.userState.active {
  background: #def7e9;
  color: #147443;
}

.storeUserActions {
  align-items: stretch;
  gap: 8px;
  min-width: 260px;
}

.storeUserActions form {
  margin: 0;
}

.inlineRoleForm,
.resetPasswordForm {
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(120px, 1fr) auto;
}

.inlineRoleForm select,
.resetPasswordForm input {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 10px;
  min-height: 36px;
  padding: 0 10px;
  width: 100%;
}

.storeUserActions button {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  min-height: 36px;
  padding: 0 11px;
}

.storeUserActions button:hover {
  border-color: var(--bright-blue);
  color: var(--bright-blue);
}

.storeUserActions button.danger:hover {
  border-color: #bd4651;
  color: #a92b37;
}

.protectedAccess {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.adminHint {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  margin: 16px 2px 0;
}

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

  .storeUserActions {
    grid-column: 1 / -1;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .storeUserCard {
    align-items: start;
    grid-template-columns: 46px 1fr;
    padding: 16px;
  }

  .storeUserAvatar {
    height: 46px;
    width: 46px;
  }

  .storeUserMeta,
  .storeUserActions {
    grid-column: 1 / -1;
  }

  .inlineRoleForm,
  .resetPasswordForm {
    grid-template-columns: 1fr;
  }
}

/* Etapa 7: panel SaaS, productos y navegación accesible. */
.productCardLink { color: inherit; cursor: pointer; display: block; text-decoration: none; }
.productCardLink:focus-visible { outline: 3px solid var(--bright-blue); outline-offset: 4px; }
.productCardAction { color: var(--bright-blue); display: inline-flex; font-weight: 900; gap: 8px; margin-top: auto; }
.clientFilters { align-items: end; background: var(--white); border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 10px; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(120px, 1fr)) auto auto; margin-bottom: 18px; padding: 14px; }
.clientFilters label, .quickCategoryPanel label { color: var(--muted); display: grid; font-size: 10px; font-weight: 800; gap: 5px; }
.clientFilters input, .clientFilters select, .quickCategoryPanel input, .quickCategoryPanel textarea, .suspensionForm input, .clientNoteForm textarea, .clientNotesList textarea { border: 1px solid var(--line); border-radius: 9px; font: inherit; min-height: 38px; padding: 8px 10px; width: 100%; }
.clientFilters button, .clientFilters a, .clientPagination a { align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); display: inline-flex; font-size: 10px; font-weight: 900; justify-content: center; min-height: 38px; padding: 8px 12px; text-decoration: none; }
.clientPagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.clientPagination a.active { background: var(--bright-blue); color: var(--white); }
.storeMetrics { display: grid; gap: 7px; grid-template-columns: repeat(2, 1fr); margin-top: 12px; }
.storeMetrics span { background: #f5f7fb; border-radius: 8px; color: var(--muted); display: flex; font-size: 9px; justify-content: space-between; padding: 7px; }
.usageExceeded { color: #a92b37 !important; font-weight: 900; }
.clientDetailPanel { display: grid; gap: 16px; }
.clientDetailHeading { align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 16px; display: flex; justify-content: space-between; padding: 18px; }
.clientDetailHeading h2 { margin: 7px 0 3px; }
.clientDetailHeading p { color: var(--muted); margin: 0; }
.clientDetailGrid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.clientDetailGrid > article, .clientNotesPanel, .clientActionsPanel { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.clientDetailGrid h3, .clientNotesPanel h3, .clientActionsPanel h3 { margin-top: 0; }
.clientDetailGrid dl { display: grid; gap: 9px; margin: 0; }
.clientDetailGrid dl div { display: flex; gap: 12px; justify-content: space-between; }
.clientDetailGrid dt { color: var(--muted); }
.clientDetailGrid dd { font-weight: 800; margin: 0; text-align: right; }
.usageList { display: grid; gap: 8px; }
.usageList > div { align-items: center; background: #f5f7fb; border-radius: 9px; display: flex; justify-content: space-between; padding: 9px; }
.clientUserList, .clientNotesList { display: grid; gap: 9px; margin-bottom: 12px; }
.clientUserList > div { border-bottom: 1px solid var(--line); display: grid; gap: 3px; padding-bottom: 8px; }
.clientUserList span, .clientNotesList small { color: var(--muted); font-size: 9px; }
.clientNoteForm { display: grid; gap: 9px; margin-bottom: 16px; }
.clientNotesList article { align-items: end; border-top: 1px solid var(--line); display: grid; gap: 9px; grid-template-columns: minmax(0, 1fr) auto; padding-top: 12px; }
.clientNotesList article form:first-child { display: grid; gap: 7px; }
.clientActionsPanel > div { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.suspensionForm { align-items: center; display: flex; flex: 1 1 320px; gap: 8px; }
.quickCategoryPanel { background: #f7f9fc; border: 1px dashed var(--line); border-radius: 10px; padding: 10px; }
.quickCategoryPanel summary { color: var(--bright-blue); cursor: pointer; font-size: 10px; font-weight: 900; }
.quickCategoryPanel > div { display: grid; gap: 9px; margin-top: 10px; }
.productTrashList article { opacity: .82; }
@media (max-width: 900px) { .clientFilters { grid-template-columns: 1fr 1fr; } .clientDetailGrid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .clientFilters { grid-template-columns: 1fr; } .clientDetailHeading { align-items: start; display: grid; gap: 12px; } .clientNotesList article { grid-template-columns: 1fr; } .suspensionForm { align-items: stretch; display: grid; } }

/* Etapa 6: categorías, campos y editores visuales controlados */
.catalogAdminNav {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
  padding: 6px;
}

.catalogAdminNav a {
  border-radius: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  padding: 11px 16px;
  text-decoration: none;
}

.catalogAdminNav a.active {
  background: var(--navy);
  color: var(--white);
}

.visualEditorHeading {
  margin-bottom: 22px;
}

.visualEditorHeading > span {
  color: var(--bright-blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.visualEditorHeading h2 {
  margin: 5px 0 6px;
}

.visualEditorHeading p {
  color: var(--muted);
  margin: 0;
}

.productVisualEditor {
  max-width: none;
}

.adminProductTemplate {
  align-items: start;
  background: #f5f7fb;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.adminVisualMedia {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.adminProductVisualFields {
  background: var(--white);
  border-radius: 16px;
  padding: 22px;
}

.visualField {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.visualField > span,
.adminStructuredFields label > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.visualField input,
.visualField textarea,
.visualField select,
.adminStructuredFields input,
.adminStructuredFields select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  padding: 11px 12px;
  width: 100%;
}

.visualTitle input {
  color: var(--navy);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 900;
}

.visualPrice input {
  color: var(--navy);
  font-size: 22px;
  font-weight: 900;
  max-width: 230px;
}

.visualProductOptions,
.visualAdditionalFields {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.visualProductOptions h3,
.visualAdditionalFields h3 {
  margin: 0 0 14px;
}

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

.adminStructuredFields label {
  display: grid;
  gap: 7px;
}

.adminStructuredFields small,
.visualProductOptions small {
  color: var(--muted);
  font-size: 9px;
}

.visualEditorEmpty {
  color: var(--muted);
  font-size: 11px;
}

.productTechnicalSettings {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 18px;
  padding: 14px 16px;
}

.productTechnicalSettings summary {
  cursor: pointer;
  font-weight: 900;
}

.productTechnicalSettings .formGrid {
  margin-top: 15px;
}

.productStructuredFields {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  margin: 24px 0;
}

.productStructuredFields > div {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(110px, .45fr) 1fr;
  padding: 11px 0;
}

.productStructuredFields > div + div {
  border-top: 1px solid var(--line);
}

.productStructuredFields dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.productStructuredFields dd {
  font-size: 11px;
  margin: 0;
}

.compactCatalogEditor {
  margin-bottom: 18px;
}

.catalogManagerList {
  display: grid;
  gap: 10px;
}

.catalogManagerList > article {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 14px 16px;
}

.catalogManagerList > article.inactive {
  opacity: .64;
}

.catalogManagerList > article > div:first-child strong,
.catalogManagerList > article > div:first-child span {
  display: block;
}

.catalogManagerList > article > div:first-child span {
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}

.homeVisualEditor {
  background: #f4f5f7;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.homeVisualEditor label {
  display: grid;
  gap: 5px;
  font-size: 9px;
  font-weight: 900;
}

.homeVisualEditor input,
.homeVisualEditor textarea {
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(15,23,42,.16);
  border-radius: 9px;
  color: #111827;
  font: inherit;
  padding: 9px 10px;
  width: 100%;
}

.homeEditorHero {
  background: #fff;
  border-radius: 14px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, .9fr);
  padding: 22px;
}

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

.homeEditorTitle input,
.homeEditorTitle textarea {
  color: var(--preview-primary);
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 900;
}

.homeEditorImage {
  align-content: center;
  background: color-mix(in srgb, var(--preview-primary) 10%, white);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  min-height: 220px;
  overflow: hidden;
  padding: 12px;
}

.homeEditorImage img {
  border-radius: 8px;
  height: 200px;
  object-fit: cover;
  width: 100%;
}

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

.homeEditorBenefits > h3 {
  margin: 6px 0;
}

.homeEditorBenefits article {
  background: var(--preview-primary);
  border-radius: 12px;
  color: #fff;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.homeEditorBenefits article > span {
  color: var(--preview-secondary);
  font-weight: 900;
}

.homeEditorCatalog {
  background: #fff;
  border-radius: 14px;
  display: grid;
  gap: 10px;
  padding: 20px;
}

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

.homeEditorCardSamples i {
  background: #e8ebf0;
  border-radius: 10px;
  display: block;
  height: 80px;
}

.homeEditorContact {
  align-items: center;
  background: var(--preview-primary);
  border-radius: 14px;
  color: #fff;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr auto;
  padding: 20px;
}

.homeEditorContact > div {
  display: grid;
  gap: 9px;
}

.homeEditorContact > strong {
  background: var(--preview-secondary);
  border-radius: 10px;
  color: var(--preview-primary);
  padding: 12px 15px;
}

.settingsGroup {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 24px;
}

@media (max-width: 900px) {
  .adminProductTemplate,
  .homeEditorHero {
    grid-template-columns: 1fr;
  }

  .homeEditorBenefits > div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .catalogAdminNav {
    display: grid;
  }

  .adminProductTemplate,
  .adminProductVisualFields,
  .homeEditorHero,
  .homeEditorCatalog,
  .homeEditorContact {
    padding: 13px;
  }

  .adminStructuredFields,
  .catalogManagerList > article,
  .homeEditorContact {
    grid-template-columns: 1fr;
  }

  .catalogManagerList .adminRowActions {
    justify-content: flex-start;
  }

  .productStructuredFields > div {
    gap: 4px;
    grid-template-columns: 1fr;
  }
}

/* Etapa 5: galería de producto */
.detailGallery {
  min-width: 0;
}

.detailImagePlaceholder {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-height: 420px;
}

.productThumbnails {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  margin-top: 12px;
}

.productThumbnails button {
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  padding: 3px;
}

.productThumbnails button.selected {
  border-color: var(--bright-blue);
}

.productThumbnails img {
  aspect-ratio: 1;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.galleryUploadField input[type="file"] {
  margin-top: 8px;
}

.productGalleryAdmin {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 18px 0 28px;
  padding: 22px;
}

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

.galleryAdminHeading span {
  color: var(--bright-blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.galleryAdminHeading h2 {
  margin: 5px 0;
}

.galleryAdminHeading p {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
}

.galleryAdminHeading > strong {
  background: #eef3ff;
  border-radius: 999px;
  color: #244d91;
  font-size: 10px;
  padding: 7px 10px;
  white-space: nowrap;
}

.productGalleryAdminGrid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.productGalleryAdminCard {
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.productGalleryAdminCard.primary {
  box-shadow: inset 0 0 0 1px var(--bright-blue);
}

.galleryAdminPreview {
  aspect-ratio: 4 / 3;
  background: #f4f6fa;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

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

.galleryAdminPreview span {
  background: var(--bright-blue);
  border-radius: 999px;
  color: var(--white);
  font-size: 9px;
  font-weight: 900;
  left: 9px;
  padding: 6px 9px;
  position: absolute;
  top: 9px;
}

.galleryAdminPosition {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.galleryAltForm,
.galleryReplaceForm {
  display: grid;
  gap: 7px;
}

.galleryAltForm label,
.galleryReplaceForm label {
  color: var(--muted);
  display: grid;
  font-size: 9px;
  font-weight: 800;
  gap: 5px;
}

.galleryAltForm input,
.galleryReplaceForm input {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 10px;
  min-height: 36px;
  padding: 7px 9px;
  width: 100%;
}

.galleryAdminActions,
.galleryTrashActions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.galleryAdminActions form,
.galleryTrashActions form,
.galleryTrashForm {
  margin: 0;
}

.productGalleryAdmin button,
.galleryTrashPanel button {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  min-height: 34px;
  padding: 7px 10px;
}

.productGalleryAdmin button:hover,
.galleryTrashPanel button:hover {
  border-color: var(--bright-blue);
  color: var(--bright-blue);
}

.productGalleryAdmin button.danger:hover,
.galleryTrashPanel button.danger:hover {
  border-color: #bd4651;
  color: #a92b37;
}

.galleryTrashPanel {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 16px;
}

.galleryTrashPanel summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.galleryTrashGrid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.galleryTrashGrid > article {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  padding: 10px;
}

.galleryTrashGrid img {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  width: 76px;
}

.galleryTrashGrid div > strong,
.galleryTrashGrid div > small {
  display: block;
}

.galleryTrashGrid div > small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .detailImagePlaceholder {
    min-height: 300px;
  }

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

  .galleryAdminHeading {
    display: grid;
  }

  .productGalleryAdmin {
    padding: 14px;
  }

  .galleryTrashGrid > article {
    grid-template-columns: 64px 1fr;
  }

  .galleryTrashGrid img {
    width: 64px;
  }

  .galleryTrashActions {
    grid-column: 1 / -1;
  }
}


/* Etapa 7R: catálogo adaptable y categoría rápida. */
.catalogCategoryGroups { display: grid; gap: 42px; }
.catalogCategoryGroup { display: grid; gap: 18px; }
.catalogCategoryHeading { align-items: end; border-bottom: 1px solid var(--line); display: flex; gap: 18px; justify-content: space-between; padding-bottom: 12px; }
.catalogCategoryHeading h3 { color: var(--navy); font-size: clamp(22px, 2.4vw, 34px); margin: 0; }
.catalogCategoryHeading p { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; max-width: 620px; }
.quickCategoryPanel .buttonSmall { margin-top: 8px; width: fit-content; }
.quickCategoryPanel [data-quick-category-status] { display: block; margin-top: 8px; }
@media (max-width: 720px) {
  .catalogCategoryHeading { align-items: start; flex-direction: column; gap: 6px; }
}

/* Etapa 7R2: galerías horizontales en ficha pública y editor administrativo. */
.detailGallery {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.detailImage {
  position: relative;
}

.galleryMainArrow,
.galleryRailArrow,
.adminGalleryArrow {
  align-items: center;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(7, 21, 53, .12);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(7, 21, 53, .16);
  color: var(--navy);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 28px;
  font-weight: 700;
  height: 44px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  width: 44px;
  z-index: 4;
}

.galleryMainArrow:hover,
.galleryRailArrow:hover,
.adminGalleryArrow:hover {
  background: #fff;
  border-color: var(--bright-blue);
  transform: scale(1.04);
}

.galleryMainArrow:focus-visible,
.galleryRailArrow:focus-visible,
.adminGalleryArrow:focus-visible,
.productThumbnails button:focus-visible,
.productGalleryAdminGrid:focus-visible {
  outline: 3px solid rgba(23, 105, 255, .35);
  outline-offset: 3px;
}

.galleryMainArrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.galleryMainArrow:hover {
  transform: translateY(-50%) scale(1.04);
}

.galleryMainArrowPrev { left: 14px; }
.galleryMainArrowNext { right: 14px; }

.galleryImageCounter {
  background: rgba(7, 21, 53, .78) !important;
  bottom: 14px;
  color: #fff !important;
  font-size: 10px !important;
  left: auto !important;
  padding: 7px 10px !important;
  position: absolute;
  right: 14px;
  top: auto !important;
  z-index: 3;
}

.galleryThumbRailWrap {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  min-width: 0;
}

.galleryRailArrow {
  box-shadow: none;
  font-size: 22px;
  height: 38px;
  width: 38px;
}

.productThumbnails {
  display: flex;
  gap: 10px;
  margin-top: 0;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 2px 8px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.productThumbnails button {
  flex: 0 0 84px;
  height: 84px;
  scroll-snap-align: center;
}

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

.productThumbnails button.selected {
  border-color: var(--bright-blue);
  box-shadow: 0 0 0 2px rgba(23, 105, 255, .12);
}

/* El editor usa la misma vista principal, pero nunca deja que las miniaturas se conviertan en imágenes grandes. */
.adminVisualMedia .detailGallery {
  max-width: 100%;
  overflow: hidden;
}

.adminVisualMedia .detailImage {
  position: relative;
  top: auto;
  width: 100%;
}

.adminVisualMedia .productThumbnails button {
  flex-basis: 72px;
  height: 72px;
  max-width: 72px;
}

.adminGalleryCarousel {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  min-width: 0;
}

.productGalleryAdminGrid {
  display: flex;
  gap: 14px;
  grid-template-columns: none;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 3px 3px 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.productGalleryAdminCard {
  align-self: stretch;
  flex: 0 0 clamp(270px, 31vw, 340px);
  max-width: 340px;
  scroll-snap-align: start;
}

.galleryAdminPreview {
  aspect-ratio: 4 / 3;
  max-height: 240px;
  width: 100%;
}

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

.adminGalleryArrow {
  align-self: center;
  box-shadow: 0 8px 22px rgba(7, 21, 53, .12);
  position: sticky;
  top: 50%;
}

.galleryAdminHint {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  margin: 10px 0 0;
}

@media (max-width: 760px) {
  .galleryMainArrow {
    height: 38px;
    width: 38px;
  }

  .galleryMainArrowPrev { left: 9px; }
  .galleryMainArrowNext { right: 9px; }

  .galleryThumbRailWrap {
    gap: 5px;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }

  .galleryRailArrow {
    font-size: 20px;
    height: 34px;
    width: 34px;
  }

  .productThumbnails {
    gap: 8px;
  }

  .productThumbnails button,
  .adminVisualMedia .productThumbnails button {
    flex-basis: 68px;
    height: 68px;
    max-width: 68px;
  }

  .adminGalleryCarousel {
    gap: 6px;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }

  .adminGalleryArrow {
    font-size: 22px;
    height: 34px;
    width: 34px;
  }

  .productGalleryAdminCard {
    flex-basis: min(82vw, 310px);
  }
}

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

  .galleryRailArrow {
    display: none;
  }

  .productThumbnails {
    padding-inline: 2px;
  }

  .adminGalleryCarousel {
    grid-template-columns: 1fr;
  }

  .adminGalleryArrow {
    display: none;
  }

  .productGalleryAdminCard {
    flex-basis: 88vw;
  }
}
.detailGallery .detailImage { touch-action: pan-y; }

/* Etapa 8: componente de galería aislado. Solo existe una imagen activa en el viewport. */
.productMedia {
  display: grid;
  gap: 14px;
  min-width: 0;
  outline: none;
}

.productMedia:focus-visible {
  border-radius: 22px;
  box-shadow: 0 0 0 3px rgba(23, 105, 255, .28);
}

.productMedia__viewport {
  aspect-ratio: .92;
  background: #edf1f6;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(13, 31, 72, .11);
  min-width: 0;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}

.productMedia__activeImage {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: contain;
  position: absolute;
  width: 100%;
}

.productMedia__placeholder {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-weight: 800;
  height: 100%;
  justify-content: center;
  padding: 24px;
  position: absolute;
  text-align: center;
  width: 100%;
}

.productMedia__category {
  background: rgba(255,255,255,.94);
  border-radius: 999px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  left: 18px;
  padding: 9px 13px;
  position: absolute;
  text-transform: uppercase;
  top: 18px;
  z-index: 2;
}

.productMedia__arrow,
.productMedia__railArrow {
  align-items: center;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(7,21,53,.14);
  border-radius: 999px;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 28px;
  height: 46px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 46px;
}

.productMedia__arrow {
  box-shadow: 0 10px 28px rgba(7,21,53,.16);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.productMedia__arrow--prev { left: 14px; }
.productMedia__arrow--next { right: 14px; }
.productMedia__arrow:hover { transform: translateY(-50%) scale(1.05); }
.productMedia__railArrow:hover { border-color: var(--bright-blue); transform: scale(1.05); }
.productMedia__arrow:focus-visible,
.productMedia__railArrow:focus-visible,
.productMedia__thumb:focus-visible,
.adminImageThumb:focus-visible { outline: 3px solid rgba(23,105,255,.32); outline-offset: 3px; }

.productMedia__counter {
  background: rgba(7,21,53,.8);
  border-radius: 999px;
  bottom: 14px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 7px 10px;
  position: absolute;
  right: 14px;
  z-index: 2;
}

.productMedia__railWrap {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 38px minmax(0,1fr) 38px;
  min-width: 0;
}

.productMedia__railArrow { box-shadow: none; font-size: 22px; height: 38px; width: 38px; }
.productMedia__thumbs {
  display: flex;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.productMedia__thumb {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  flex: 0 0 82px;
  height: 82px;
  overflow: hidden;
  padding: 3px;
  scroll-snap-align: center;
}

.productMedia__thumb.is-active { border-color: var(--bright-blue); box-shadow: 0 0 0 2px rgba(23,105,255,.12); }
.productMedia__thumbImage { border-radius: 8px; display: block; height: 100%; object-fit: cover; width: 100%; }
.adminVisualMedia .productMedia__viewport { aspect-ratio: 4 / 3; }
.adminVisualMedia .productMedia__thumb { flex-basis: 68px; height: 68px; }

/* Administración compacta: miniaturas y un único panel para la selección. */
.adminImageManager { display: grid; gap: 16px; }
.adminImageThumbRail { display: flex; gap: 10px; min-width: 0; overflow-x: auto; padding: 4px 3px 10px; scrollbar-width: thin; }
.adminImageThumb { background: #fff; border: 2px solid transparent; border-radius: 12px; cursor: pointer; flex: 0 0 92px; height: 92px; overflow: hidden; padding: 3px; position: relative; }
.adminImageThumb.is-active { border-color: var(--bright-blue); box-shadow: 0 0 0 2px rgba(23,105,255,.12); }
.adminImageThumb img { border-radius: 8px; display: block; height: 100%; object-fit: cover; width: 100%; }
.adminImageThumb > span { background: rgba(7,21,53,.82); border-radius: 999px; bottom: 7px; color: #fff; font-size: 9px; left: 7px; min-width: 21px; padding: 4px 6px; position: absolute; }
.adminImageThumb > strong { background: var(--bright-blue); border-radius: 999px; color: #fff; font-size: 8px; padding: 4px 6px; position: absolute; right: 7px; top: 7px; }
.adminImageSelectedPanel { align-items: start; border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 14px; grid-template-columns: minmax(180px,260px) minmax(220px,1fr); padding: 16px; }
.adminImageSelectedPreview { aspect-ratio: 4 / 3; background: #f4f6fa; border-radius: 12px; grid-row: 1 / span 4; overflow: hidden; position: relative; }
.adminImageSelectedPreview img { display: block; height: 100%; object-fit: contain; width: 100%; }
.adminImageSelectedPreview span { background: var(--bright-blue); border-radius: 999px; color: #fff; font-size: 9px; font-weight: 900; left: 9px; padding: 6px 9px; position: absolute; top: 9px; }
.adminImageSelectedMeta { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between; }
.adminImageSelectedMeta span { color: var(--muted); font-size: 10px; }
.adminImageSelectedPanel button:disabled { cursor: not-allowed; opacity: .45; }

/* Páginas legales por tienda. */
.footerLegalLinks:empty { display: none; }
.legalVersion { color: var(--muted); font-size: 11px; margin-top: 20px; }
.legalTypeTabs { display: grid; gap: 10px; grid-template-columns: repeat(5,minmax(140px,1fr)); margin-bottom: 22px; overflow-x: auto; }
.legalTypeTabs a { background: #fff; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 5px; min-width: 145px; padding: 13px; }
.legalTypeTabs a.active { border-color: var(--bright-blue); box-shadow: 0 0 0 2px rgba(23,105,255,.1); }
.legalTypeTabs span { font-size: 11px; font-weight: 900; }
.legalTypeTabs small { color: var(--muted); font-size: 9px; }
.legalAdminGrid { align-items: start; display: grid; gap: 20px; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); }
.legalEditorCard { margin: 0; }
.legalEditorCard form, .legalEditorCard label { display: grid; gap: 7px; }
.legalEditorCard form { gap: 16px; }
.legalEditorCard label { color: var(--muted); font-size: 10px; font-weight: 800; }
.legalEditorCard input, .legalEditorCard textarea { border: 1px solid var(--line); border-radius: 10px; font: inherit; line-height: 1.6; padding: 11px 13px; width: 100%; }
.legalAdminSide { display: grid; gap: 16px; }
.legalPreviewCard, .legalHistoryCard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.legalPreviewCard > span { color: var(--bright-blue); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.legalPreviewCard h2, .legalHistoryCard h2 { margin: 7px 0 16px; }
.legalPreviewText { max-height: 520px; overflow-y: auto; }
.legalPreviewText p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.legalHistoryCard article { align-items: center; border-top: 1px solid var(--line); display: grid; gap: 8px; grid-template-columns: 1fr auto; padding: 12px 0; }
.legalHistoryCard article small { color: var(--muted); font-size: 9px; grid-column: 1 / -1; }

@media (max-width: 900px) {
  .legalAdminGrid { grid-template-columns: 1fr; }
  .adminImageSelectedPanel { grid-template-columns: 1fr; }
  .adminImageSelectedPreview { grid-row: auto; max-width: 340px; width: 100%; }
}

@media (max-width: 520px) {
  .productMedia__arrow { height: 40px; width: 40px; }
  .productMedia__arrow--prev { left: 9px; }
  .productMedia__arrow--next { right: 9px; }
  .productMedia__railWrap { grid-template-columns: 1fr; }
  .productMedia__railArrow { display: none; }
  .productMedia__thumb { flex-basis: 68px; height: 68px; }
  .adminImageThumb { flex-basis: 76px; height: 76px; }
}

/* Etapa 9: actividad y soporte controlado. */
.supportBanner{align-items:center;background:#fff4cf;border:2px solid #e5a900;border-radius:14px;display:flex;gap:18px;justify-content:space-between;margin-bottom:20px;padding:14px 18px;position:sticky;top:8px;z-index:20}.supportBanner div{display:grid;gap:3px}.supportBanner strong{color:#805600;letter-spacing:.08em}.supportBanner span{font-weight:900}.supportBanner small{color:#765f23}.supportBanner form{margin:0}.supportBanner button{background:#805600;border:0;border-radius:9px;color:#fff;cursor:pointer;font-weight:900;padding:10px 14px}.supportStartPanel,.clientActivityPanel,.supportHistoryPanel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px}.supportStartPanel form,.supportStartPanel label{display:grid;gap:8px}.supportStartPanel textarea{border:1px solid var(--line);border-radius:9px;font:inherit;padding:10px}.clientActivityPanel>div{align-items:center;display:flex;justify-content:space-between}.clientActivityPanel ol{display:grid;gap:10px;list-style:none;margin:14px 0 0;padding:0}.clientActivityPanel li{border-top:1px solid var(--line);display:grid;gap:4px;padding-top:10px}.clientActivityPanel li span,.supportHistoryPanel small{color:var(--muted);font-size:.78rem}.supportHistoryPanel>div{display:grid;gap:10px}.supportHistoryPanel article{border-top:1px solid var(--line);display:grid;gap:4px;padding-top:10px}.activityFilters{align-items:end;background:#fff;border:1px solid var(--line);border-radius:16px;display:grid;gap:12px;grid-template-columns:repeat(4,minmax(150px,1fr));margin-bottom:20px;padding:16px}.activityFilters label{color:var(--muted);display:grid;font-size:.74rem;font-weight:900;gap:5px}.activityFilters input,.activityFilters select{border:1px solid var(--line);border-radius:8px;font:inherit;min-height:38px;padding:8px}.activitySearch{grid-column:span 2}.activityList{display:grid;gap:10px}.activityList>article{background:#fff;border:1px solid var(--line);border-radius:13px;display:grid;gap:12px;padding:15px}.activityList>article>div{align-items:start;display:flex;gap:12px;justify-content:space-between}.activityList code{background:#eef3ff;border-radius:6px;color:#244d91;font-size:.72rem;padding:5px 7px}.activityList dl{display:flex;flex-wrap:wrap;gap:10px 24px;margin:0}.activityList dl div{display:grid;gap:3px}.activityList dt{color:var(--muted);font-size:.68rem;font-weight:900;text-transform:uppercase}.activityList dd{font-size:.82rem;margin:0}.adminPagination{display:flex;flex-wrap:wrap;gap:6px;margin-top:18px}.adminPagination a{background:#fff;border:1px solid var(--line);border-radius:7px;padding:7px 10px}.adminPagination a.active{background:var(--bright-blue);color:#fff}@media(max-width:900px){.activityFilters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.supportBanner{align-items:stretch;display:grid}.activityFilters{grid-template-columns:1fr}.activitySearch{grid-column:auto}.activityList>article>div{display:grid}}

/* Etapa 10R: administrador responsive definitivo */
.adminMobileHeader,
.adminSidebarBackdrop,
.adminSidebarClose { display: none; }

.adminMain { min-width: 0; }
.adminMain > * { min-width: 0; }
.adminProductTemplate > *,
.adminProductVisualFields,
.productVisualEditor,
.adminEditorCard { min-width: 0; }

@media (min-width: 901px) {
  .adminVisualMedia {
    position: sticky;
    top: 24px;
  }
  .adminProductTemplate {
    grid-template-columns: minmax(320px, 0.82fr) minmax(480px, 1.18fr);
  }
}

.customFileControl {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: flex;
  gap: 10px;
  min-height: 48px;
  overflow: hidden;
  padding: 7px;
  position: relative;
}
.customFileControl input[type="file"] {
  cursor: pointer;
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
}
.customFileButton {
  background: var(--navy);
  border-radius: 8px;
  color: #fff;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 900;
  padding: 10px 12px;
}
.customFileStatus {
  color: var(--muted);
  font-size: 10px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.galleryReplaceForm input[type="file"]::file-selector-button {
  background: var(--navy);
  border: 0;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  margin-right: 10px;
  padding: 9px 11px;
}

@media (max-width: 900px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .adminShell {
    display: block;
    min-height: 100vh;
    width: 100%;
  }
  .adminMobileHeader {
    align-items: center;
    background: var(--navy);
    display: flex;
    justify-content: space-between;
    min-height: 64px;
    padding: 10px 14px;
    position: sticky;
    top: 0;
    z-index: 70;
  }
  .adminMobileBrand {
    align-items: center;
    color: #fff;
    display: flex;
    gap: 9px;
    text-decoration: none;
  }
  .adminMobileBrand .brandMark { transform: scale(.72); transform-origin: left center; width: 31px; }
  .adminMobileBrand > span:last-child { display: flex; flex-direction: column; }
  .adminMobileBrand strong { font-size: 16px; }
  .adminMobileBrand small { color: rgba(255,255,255,.55); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
  .adminMobileMenuButton {
    align-items: center;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    color: #fff;
    display: inline-flex;
    gap: 8px;
    min-height: 42px;
    padding: 0 13px;
  }
  .adminMobileMenuButton span { font-size: 20px; line-height: 1; }
  .adminMobileMenuButton strong { font-size: 11px; }

  .adminSidebar {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    inset: 0 auto 0 0;
    max-width: min(86vw, 330px);
    min-height: 0;
    overflow-y: auto;
    padding: 22px 16px;
    position: fixed;
    transform: translateX(-105%);
    transition: transform .22s ease;
    width: 100%;
    z-index: 100;
  }
  .adminMenuOpen .adminSidebar { transform: translateX(0); }
  .adminSidebarBackdrop {
    background: rgba(3,12,33,.48);
    border: 0;
    display: block;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity .2s ease;
    z-index: 90;
  }
  .adminMenuOpen .adminSidebarBackdrop { opacity: 1; pointer-events: auto; }
  .adminSidebarClose {
    align-items: center;
    background: rgba(255,255,255,.1);
    border: 0;
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 26px;
    height: 38px;
    justify-content: center;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 38px;
  }
  .adminSidebar .adminBrand { padding: 0 48px 22px 4px; }
  .adminSidebar .adminStorePicker {
    border: 1px solid rgba(255,255,255,.13);
    display: block;
    margin: 0 0 14px;
    max-width: none;
    padding: 10px;
  }
  .adminSidebar .adminStorePicker label { display: block; }
  .adminSidebar nav {
    display: grid;
    gap: 5px;
    margin: 0;
    order: initial;
    width: 100%;
  }
  .adminSidebar nav a {
    min-height: 46px;
    padding: 0 13px;
    width: 100%;
  }
  .adminSidebar nav a span {
    font-size: 12px;
    line-height: 1.25;
  }
  .adminAccount {
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    margin: auto 0 0;
    padding: 18px 8px 0;
  }
  .adminAccount span { display: block; }

  .adminMain {
    box-sizing: border-box;
    max-width: 100%;
    padding: 28px 20px 72px;
    width: 100%;
  }
  .adminHeading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
  }
  .adminHeading h1 {
    font-size: clamp(34px, 10vw, 48px);
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
  }
  .adminHeading .button { width: auto; }

  .productVisualEditor { padding: 18px; }
  .adminProductTemplate {
    border-radius: 14px;
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr !important;
    padding: 12px;
  }
  .adminVisualMedia {
    position: static;
    width: 100%;
  }
  .adminVisualMedia .productMedia__viewport { aspect-ratio: 1 / 1; }
  .adminProductVisualFields {
    border: 1px solid var(--line);
    padding: 16px;
    width: 100%;
  }
  .visualTitle input { font-size: clamp(22px, 7vw, 31px); }
  .visualPrice input { max-width: none; }
  .visualField input,
  .visualField textarea,
  .visualField select,
  .adminStructuredFields input,
  .adminStructuredFields select { min-width: 0; max-width: 100%; }

  .formGrid { grid-template-columns: 1fr !important; }
  .formWide { grid-column: auto !important; }
  .catalogAdminNav {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    padding: 5px;
    scrollbar-width: none;
  }
  .catalogAdminNav::-webkit-scrollbar { display: none; }
  .catalogAdminNav a { flex: 0 0 auto; white-space: nowrap; }
  .legalTypeTabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(145px, 70%); }

  .adminProductList article {
    gap: 12px;
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 14px;
  }
  .adminProductImage { grid-column: 1; grid-row: 1 / span 2; }
  .adminProductName { min-width: 0; }
  .adminPrice { grid-column: 2; grid-row: 2; justify-self: start; }
  .adminRowActions { grid-column: 1 / -1; }
  .adminRowActions form,
  .adminRowActions a,
  .adminRowActions button { min-width: 0; }

  .adminImageSelectedPanel { padding: 12px; }
  .adminImageSelectedPreview { max-width: none; }
  .galleryAdminActions { flex-wrap: wrap; }
  .galleryAltForm,
  .galleryReplaceForm { min-width: 0; }
  .galleryAltForm input,
  .galleryReplaceForm input { max-width: 100%; min-width: 0; }

  .storeCards,
  .clientDetailGrid,
  .legalAdminGrid { grid-template-columns: 1fr !important; }
  .storeCards article { min-width: 0; }
  .storeCardActions { flex-wrap: wrap; }
  .clientFilters,
  .activityFilters { grid-template-columns: 1fr 1fr; }
  .activitySearch { grid-column: 1 / -1; }
  .orderAdminToolbar,
  .orderManagementCard { grid-template-columns: 1fr !important; }
}

@media (max-width: 560px) {
  .adminMain { padding: 22px 12px 60px; }
  .adminHeading h1 { font-size: 36px; }
  .adminHeading p { line-height: 1.5; }
  .adminEditorCard,
  .productVisualEditor { border-radius: 14px; padding: 14px; }
  .visualEditorHeading h2 { font-size: 27px; }
  .visualEditorHeading p { line-height: 1.45; }
  .adminProductTemplate { padding: 8px; }
  .adminProductVisualFields { padding: 13px; }
  .adminVisualMedia .productMedia__viewport { aspect-ratio: 4 / 3; }
  .customFileControl { align-items: stretch; flex-direction: column; }
  .customFileButton { text-align: center; }
  .customFileStatus { padding: 2px 4px; text-align: center; }
  .clientFilters,
  .activityFilters { grid-template-columns: 1fr; }
  .activitySearch { grid-column: auto; }
  .editorFooter {
    align-items: stretch;
    flex-direction: column-reverse;
    padding: 16px 0 0;
  }
  .editorFooter .button,
  .editorFooter .cancelButton { justify-content: center; text-align: center; width: 100%; }
  .supportBanner { top: 70px; }
}
