@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --ink: #091321;
  --ink-soft: #17283f;
  --muted: #5f7085;
  --line: #d5dfeb;
  --paper: #ffffff;
  --paper-soft: #fbfdff;
  --soft: #eef4fb;
  --soft-strong: #e2ebf6;
  --navy: #081321;
  --teal: #0a8f86;
  --teal-bright: #24b4a6;
  --blue: #225dd7;
  --coral: #c14c3d;
  --gold: #f2c35b;
  --green: #19784e;
  --radius: 18px;
  --radius-small: 12px;
  --ring: 0 0 0 4px rgba(34, 93, 215, 0.14);
  --shadow: 0 32px 90px rgba(9, 19, 33, 0.18);
  --shadow-soft: 0 14px 34px rgba(9, 19, 33, 0.08);
  --shadow-card: 0 2px 4px rgba(9, 19, 33, 0.04), 0 20px 44px rgba(9, 19, 33, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #edf4ff 0, #f5f8fd 16%, #ffffff 42%, #ffffff 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -18vh -10vw auto;
  z-index: -1;
  height: 52vh;
  background:
    radial-gradient(circle at 12% 28%, rgba(36, 180, 166, 0.2), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(34, 93, 215, 0.18), transparent 28%),
    radial-gradient(circle at 50% 52%, rgba(242, 195, 91, 0.12), transparent 24%);
  pointer-events: none;
  filter: blur(18px);
}

h1,
h2,
h3,
h4,
.brand strong,
.hero-panel span,
.admin-heading h2,
.report-head h3,
.orders-board-head h3,
.section-head h2 {
  font-family: "Space Grotesk", "Manrope", ui-sans-serif, system-ui, sans-serif;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: var(--radius-small);
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

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

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

button {
  border: 0;
  border-radius: var(--radius-small);
  background: var(--navy);
  color: #fff;
  min-height: 44px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 24px rgba(9, 19, 33, 0.14);
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

button:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  filter: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 0;
  box-shadow: var(--ring);
  outline-offset: 2px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(188px, auto) minmax(280px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 13px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid rgba(213, 223, 235, 0.82);
  background: rgba(250, 252, 255, 0.84);
  backdrop-filter: blur(22px) saturate(145%);
  box-shadow: 0 18px 42px rgba(9, 19, 33, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-width: 170px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--teal-bright), #1764a2 60%, #0f2844);
  color: #fff;
  font-family: "Space Grotesk", "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(8, 127, 123, 0.24);
}

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

.brand-mark-art {
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(106, 156, 255, 0.24);
  background:
    radial-gradient(circle at 24% 24%, rgba(53, 135, 255, 0.26), transparent 42%),
    linear-gradient(155deg, #081321, #0d1d33 58%, #081321);
  box-shadow:
    0 18px 34px rgba(5, 17, 31, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.search {
  display: grid;
  grid-template-columns: 170px minmax(120px, 1fr) auto;
  border: 1px solid rgba(213, 223, 235, 0.9);
  border-radius: 15px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(9, 19, 33, 0.06);
}

.search select,
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 0 14px;
  outline: none;
  min-height: 44px;
  background: #fff;
}

.search button {
  border-radius: 0;
  min-height: 44px;
  background: var(--blue);
}

.actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.ghost,
.secondary,
.text-button {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 1px solid var(--line);
}

.ghost:hover,
.secondary:hover,
.text-button:hover {
  border-color: #b8c6d9;
  box-shadow: 0 8px 18px rgba(24, 35, 50, 0.08);
}

.cart-button {
  background: linear-gradient(135deg, var(--teal), #08736f);
  box-shadow: 0 14px 26px rgba(11, 143, 135, 0.22);
}

.cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

main {
  min-width: 0;
}

.hero {
  position: relative;
  min-height: clamp(520px, 72vh, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(26px, 5vw, 64px);
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 16% 20%, rgba(64, 135, 255, 0.22), transparent 24%),
    radial-gradient(circle at 86% 16%, rgba(255, 142, 34, 0.18), transparent 22%),
    radial-gradient(circle at 78% 72%, rgba(35, 188, 173, 0.18), transparent 24%),
    linear-gradient(135deg, #06101d 0%, #0a1828 38%, #07121f 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 18% auto auto 54%;
  width: min(42vw, 560px);
  height: min(42vw, 560px);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(34, 93, 215, 0.26), transparent 60%);
  filter: blur(16px);
  opacity: 0.88;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -18% auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 149, 41, 0.18), transparent 62%);
  filter: blur(22px);
}

.hero-copy,
.hero-showcase,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 760px;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(44px, 6.8vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-text {
  max-width: 720px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-actions button {
  min-height: 48px;
  padding-inline: 22px;
}

.hero-actions button:first-child {
  background: var(--gold);
  color: #2a250d;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-trust span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero-showcase {
  display: grid;
  gap: 18px;
  justify-items: end;
}

.hero-visual-card {
  position: relative;
  width: min(100%, 560px);
  margin: 0;
  padding: 14px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(8, 20, 35, 0.96), rgba(9, 25, 41, 0.82)) padding-box,
    linear-gradient(135deg, rgba(61, 132, 255, 0.54), rgba(255, 139, 31, 0.44)) border-box;
  box-shadow:
    0 32px 74px rgba(1, 7, 18, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-visual-card::before,
.hero-visual-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-visual-card::before {
  inset: -16% 42% auto -10%;
  width: 230px;
  height: 230px;
  background: radial-gradient(circle, rgba(48, 140, 255, 0.2), transparent 64%);
  filter: blur(18px);
}

.hero-visual-card::after {
  inset: auto -14% -12% 48%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 143, 36, 0.22), transparent 64%);
  filter: blur(20px);
}

.hero-art {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  background: #030812;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34);
}

.hero-panel {
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(145%);
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.22);
}

.hero-panel div {
  padding: 24px 18px;
  background: rgba(7, 18, 34, 0.3);
}

.hero-panel span {
  display: block;
  font-size: 34px;
  font-weight: 900;
}

.trust-strip {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 32px), 1380px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: -40px auto 0;
  border: 1px solid rgba(220, 229, 239, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 52px rgba(9, 19, 33, 0.08);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.trust-strip article {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.trust-strip article:last-child {
  border-right: 0;
}

.trust-strip strong,
.trust-strip small {
  display: block;
}

.trust-strip strong {
  font-size: 14px;
}

.trust-strip small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.trust-number {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-panel small {
  color: rgba(255, 255, 255, 0.78);
}

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

.hero .eyebrow {
  color: #ffd66b;
}

.section,
.shop-layout {
  width: min(100%, 1540px);
  margin-inline: auto;
  padding: 44px clamp(16px, 4vw, 56px);
}

.band {
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid rgba(217, 226, 239, 0.72);
}

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

.section-head h2,
.filter-head h2,
.drawer h2,
.modal h2,
.service-panel h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.025em;
}

.section-description {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-head.compact h2 {
  font-size: 28px;
}

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

.category-navigator {
  min-width: 0;
}

.category-card,
.product-card,
.service-panel,
.branch-card,
.filters,
.modal-card,
.drawer {
  border: 1px solid rgba(213, 223, 235, 0.92);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--paper) 0, var(--paper-soft) 100%);
  box-shadow: var(--shadow-card);
}

.category-card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  padding: 14px;
  text-align: left;
  color: #fff;
  background: #17202a;
  isolation: isolate;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-card-all {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.24) 0 8%, transparent 9%),
    radial-gradient(circle at 72% 36%, rgba(255, 255, 255, 0.13) 0 14%, transparent 15%),
    linear-gradient(135deg, var(--teal), #1764a2);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  transition: transform 0.2s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.72));
  z-index: -1;
}

.category-card:hover {
  box-shadow: 0 16px 30px rgba(24, 35, 50, 0.18);
  transform: translateY(-2px);
}

.category-card.active,
.category-card[aria-pressed="true"],
.category-card.active:hover,
.category-card[aria-pressed="true"]:hover {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px rgba(11, 143, 135, 0.72),
    0 16px 30px rgba(24, 35, 50, 0.18);
  transform: translateY(-2px);
}

.category-card:hover img {
  transform: scale(1.04);
}

.category-card span,
.category-card strong {
  position: relative;
  display: block;
}

.category-card strong {
  margin-top: 72px;
  font-size: 18px;
}

.category-card span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
  padding: 20px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.96));
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-head span {
  min-width: 34px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eef7f6;
  color: var(--teal);
  font-weight: 900;
}

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

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

select:hover,
input:hover,
textarea:hover {
  border-color: #b9c7da;
}

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

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}

.check input {
  width: 18px;
  min-height: 18px;
}

.range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.products-area {
  min-width: 0;
}

.view-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(213, 223, 235, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.view-tabs button,
.tabs button {
  min-height: 34px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
}

.view-tabs .active,
.tabs .active {
  background: var(--ink);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 450px;
  background: linear-gradient(180deg, #ffffff 0, #f9fbff 100%);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.product-card:hover {
  border-color: rgba(36, 107, 254, 0.38);
  box-shadow: 0 16px 36px rgba(28, 42, 68, 0.14);
  transform: translateY(-4px);
}

.product-card.is-out {
  background: #fbfcfe;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #edf2f7, #f8fafc);
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.035);
}

.badge-row {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.badge.sale {
  background: var(--coral);
  color: #fff;
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 17px;
  flex: 1;
}

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

.product-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.stock-chip,
.rating-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.stock-chip.ok {
  background: #eaf7ef;
  color: #1f7a50;
}

.stock-chip.low {
  background: #fff7df;
  color: #8a6400;
}

.stock-chip.out {
  background: #fff1f0;
  color: #b42318;
}

.rating-chip {
  background: #eef3ff;
  color: #2453b8;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price {
  font-size: 20px;
  font-weight: 900;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: auto;
}

.product-actions button:first-child {
  background: var(--teal);
}

.product-actions button:last-child {
  padding: 0 12px;
  background: #eef7f6;
  color: var(--teal);
}

.my-orders {
  background: #f8fafc;
  border-top: 1px solid var(--line);
}

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

.customer-order-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

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

.order-card-head h3 {
  margin: 0;
}

.order-card-meta,
.tracking-box,
.fulfillment-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-card-meta span,
.tracking-box span,
.tracking-box a,
.fulfillment-dates span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.tracking-box a {
  color: var(--teal);
  font-weight: 800;
}

.fulfillment-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 6px;
}

.fulfillment-step {
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.fulfillment-step.done {
  border-color: rgba(33, 134, 91, 0.2);
  background: #edf8f1;
  color: var(--green);
}

.fulfillment-step.current {
  border-color: rgba(8, 116, 123, 0.28);
  background: #e9f7f7;
  color: var(--teal);
}

.fulfillment-step.cancelled {
  border-color: rgba(217, 79, 69, 0.22);
  background: #fff1f0;
  color: #b42318;
}

.order-lines {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.order-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.customer-payment-update {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #bdd9f4;
  border-radius: 12px;
  background: #f5faff;
}

.customer-payment-update > div {
  display: grid;
  gap: 2px;
}

.customer-payment-update small,
.customer-payment-update [data-customer-proof-status] {
  color: var(--muted);
  font-size: 12px;
}

.customer-payment-update button {
  justify-self: start;
}

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

.contact-section {
  display: grid;
  gap: 18px;
}

.contact-shell {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  overflow: hidden;
  border: 1px solid rgba(213, 223, 235, 0.92);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--paper) 0, var(--paper-soft) 100%);
  box-shadow: var(--shadow-card);
}

.contact-panel {
  min-width: 0;
  display: grid;
  gap: 16px;
  padding: 26px;
}

.contact-panel-info {
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #082449 0, #0e4176 58%, #1260a5 100%);
}

.contact-panel-info .eyebrow {
  color: #ffd279;
}

.contact-panel-info h2 {
  margin: 0;
}

.contact-form-card {
  align-content: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
    radial-gradient(circle at top right, rgba(36, 180, 166, 0.08), transparent 32%);
}

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

.contact-copy {
  margin: 0;
  color: var(--muted);
}

.contact-panel-info .contact-copy {
  color: rgba(255, 255, 255, 0.82);
}

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

.contact-info-grid div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.contact-info-grid span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-info-grid strong {
  font-size: 15px;
  line-height: 1.4;
}

.contact-inline-actions,
.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 800;
}

.contact-panel-info .service-shortcut {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

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

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

.result-box {
  min-height: 76px;
  margin-top: 2px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: #fafbfd;
}

.result-box p {
  margin: 0;
}

.result-box.is-loading {
  border-style: solid;
  border-color: rgba(34, 93, 215, 0.18);
  background: linear-gradient(180deg, #f5f8ff, #eef4ff);
  color: #21467f;
}

.result-box.is-error {
  border-style: solid;
  border-color: rgba(208, 73, 73, 0.2);
  background: #fff6f4;
  color: #8a1f1f;
}

.result-box.is-success {
  border-style: solid;
  border-color: rgba(36, 180, 166, 0.22);
  background: #f6fbfb;
  color: var(--ink);
}

.floating-whatsapp {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b9b78, #0b7a61);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 18px 34px rgba(11, 143, 135, 0.32);
  transition: opacity 180ms ease, transform 180ms ease;
}

body.dialog-open .floating-whatsapp {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

body.admin-mode .floating-whatsapp {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

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

.branch-card {
  padding: 18px;
  display: grid;
  gap: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98)),
    radial-gradient(circle at top right, rgba(34, 93, 215, 0.08), transparent 36%);
}

.branch-card h3 {
  margin: 0 0 8px;
}

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

.admin-panel {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 73px);
  padding: 28px clamp(14px, 3vw, 42px) 46px;
  background:
    radial-gradient(circle at top left, rgba(36, 180, 166, 0.1), transparent 24%),
    radial-gradient(circle at top right, rgba(34, 93, 215, 0.09), transparent 24%),
    linear-gradient(180deg, #eef4fb 0, #f8fbff 28%, #fbfdff 100%);
  border-top: 1px solid var(--line);
}

.admin-heading {
  width: min(100%, 1540px);
  margin: 0 auto 22px;
  align-items: center;
}

.admin-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.admin-shell {
  width: min(100%, 1540px);
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 22px;
  margin: 0 auto;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 104px);
  padding: 14px;
  border: 1px solid rgba(220, 229, 239, 0.9);
  border-radius: 18px;
  background:
    linear-gradient(180deg, #081321 0, #0d1f34 55%, #12314d 100%),
    radial-gradient(circle at top right, rgba(77, 212, 199, 0.16), transparent 30%);
  color: #fff;
  box-shadow: 0 22px 54px rgba(11, 22, 40, 0.18);
  overflow: auto;
}

.admin-sidebar-intro {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.admin-sidebar-intro strong {
  font-size: 13px;
}

.admin-sidebar-intro small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
}

.admin-live-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #4ee0a1;
  box-shadow: 0 0 0 5px rgba(78, 224, 161, 0.12);
}

.admin-tabs {
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-nav-label {
  margin: 12px 10px 4px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-tabs button {
  display: grid;
  justify-items: start;
  min-height: 52px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
}

.admin-tabs button strong {
  font-size: 13px;
}

.admin-tabs button small {
  color: rgba(255, 255, 255, 0.44);
  font-size: 10px;
  font-weight: 600;
}

.admin-tabs button:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  filter: none;
}

.admin-tabs .active {
  border-color: rgba(38, 202, 187, 0.34);
  background: linear-gradient(135deg, rgba(25, 166, 154, 0.28), rgba(39, 100, 223, 0.18));
  color: #fff;
  box-shadow: inset 3px 0 0 #4bd4c7;
}

.admin-tabs .active small {
  color: rgba(255, 255, 255, 0.7);
}

.admin-sidebar-note {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.admin-sidebar-note strong {
  color: #95e6df;
  font-size: 11px;
  text-transform: uppercase;
}

.admin-sidebar-note span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  line-height: 1.45;
}

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

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 254, 0.98));
  box-shadow: var(--shadow-card);
}

.admin-context {
  display: grid;
  gap: 1px;
}

.admin-context span,
.admin-context small,
.admin-search-field span {
  color: var(--muted);
  font-size: 11px;
}

.admin-context strong {
  font-size: 19px;
}

.admin-search-field {
  width: min(100%, 360px);
}

.admin-search-field input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font: inherit;
  padding: 0 12px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(310px, 400px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-panel[data-admin-resource-view="products"] .admin-workspace {
  grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
}

.admin-panel[data-admin-resource-view="orders"] .admin-workspace {
  grid-template-columns: minmax(300px, 370px) minmax(0, 1fr);
}

.admin-panel[data-admin-resource-view="orders"] .admin-workspace:has(.admin-form.is-empty) {
  grid-template-columns: minmax(0, 1fr);
}

.admin-panel[data-admin-resource-view="orders"] .admin-form.is-empty {
  display: none;
}

.admin-panel[data-admin-resource-view="reports"] .admin-workspace,
.admin-panel[data-admin-resource-view="system"] .admin-workspace,
.admin-panel[data-admin-resource-view="security"] .admin-workspace,
.admin-panel[data-admin-resource-view="audit"] .admin-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.admin-panel[data-admin-resource-view="reports"] .admin-form,
.admin-panel[data-admin-resource-view="system"] .admin-form,
.admin-panel[data-admin-resource-view="security"] .admin-form,
.admin-panel[data-admin-resource-view="audit"] .admin-form {
  display: none;
}

.admin-form,
.admin-list {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 251, 255, 0.99));
  box-shadow: 0 22px 48px rgba(9, 19, 33, 0.08);
}

.admin-form {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
  padding: 20px;
  max-height: calc(100vh - 104px);
  overflow: auto;
}

.admin-form.is-empty {
  position: static;
  min-height: 250px;
  align-content: center;
}

.admin-form.is-empty .admin-actions {
  display: none;
}

.admin-selection-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px 10px;
  text-align: center;
}

.admin-selection-empty .selection-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #e9f7f6;
  color: var(--teal);
  font-size: 22px;
  font-weight: 900;
}

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

.admin-form .form-message {
  padding: 0;
}

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

.admin-fields textarea {
  min-height: 96px;
}

.product-image-editor {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfd;
}

.product-image-editor legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.product-image-help {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.product-image-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 12px;
  align-items: start;
}

.product-image-controls {
  display: grid;
  gap: 10px;
  min-width: 0;
}

#adminProductImageFile,
#adminCategoryImageFile {
  min-height: 46px;
  padding: 5px;
  background: #fff;
}

#adminProductImageFile::file-selector-button,
#adminCategoryImageFile::file-selector-button {
  min-height: 34px;
  margin-right: 8px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.product-image-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-image-file-row span {
  color: var(--muted);
  font-size: 11px;
}

.product-image-file-row button {
  min-height: 34px;
  padding-inline: 10px;
  font-size: 11px;
}

.product-image-message {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.product-image-message.error {
  color: var(--coral);
}

.product-image-message.success {
  color: var(--green);
}

.product-image-preview {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  border: 1px dashed #b9c7da;
  border-radius: 12px;
  background: #fff;
}

.product-image-preview.has-image {
  border-style: solid;
  border-color: rgba(11, 143, 135, 0.38);
}

.product-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.category-image-preview {
  aspect-ratio: 16 / 9;
}

.category-image-preview img {
  object-fit: cover;
}

.product-image-placeholder {
  display: grid;
  gap: 4px;
  padding: 14px;
  text-align: center;
  color: var(--muted);
}

.product-image-placeholder strong {
  color: var(--ink);
  font-size: 13px;
}

.product-image-placeholder span {
  font-size: 11px;
}

.stock-editor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfd;
}

.stock-editor strong {
  font-size: 14px;
}

.stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.inventory-status {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfd;
}

.inventory-status strong {
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.inventory-status span {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.inventory-status.applied {
  border-color: rgba(39, 137, 92, 0.32);
  background: #edf8f1;
}

.inventory-status.pending {
  border-color: rgba(242, 183, 5, 0.36);
  background: #fff9e8;
}

.fulfillment-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(8, 116, 123, 0.18);
  border-radius: 8px;
  background: #f5fbfb;
}

.fulfillment-card > *,
.order-stage > *,
.order-board-card > *,
.order-card-assignment > *,
.admin-row > *,
.packing-checklist-head > * {
  min-width: 0;
}

.admin-fulfillment-steps {
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
}

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

.packing-checklist {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(8, 116, 123, 0.16);
}

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

.packing-checklist-head span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  overflow-wrap: anywhere;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.check-row {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(8, 116, 123, 0.14);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.admin-actions,
.admin-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-list {
  display: grid;
  overflow: hidden;
  min-width: 0;
}

.admin-panel[data-admin-resource-view="orders"] .admin-list {
  overflow: auto;
}

.orders-board-shell {
  display: grid;
  gap: 16px;
  padding: 18px;
  min-width: 0;
}

.orders-board-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.orders-board-head h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.orders-board-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(96px, 1fr));
  gap: 8px;
  min-width: min(100%, 480px);
}

.orders-board-metrics div {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
}

.orders-board-metrics span,
.order-stage-head span,
.order-stage-meta span,
.order-board-card p,
.order-board-tags span {
  color: var(--muted);
  font-size: 12px;
}

.orders-board-metrics strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.orders-board-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr)) minmax(180px, auto);
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fafc;
}

.orders-board-filters label {
  min-width: 0;
}

.orders-board-filters select,
.orders-board-filters input {
  min-height: 38px;
  border-radius: 8px;
}

.orders-board-filter-actions {
  display: grid;
  gap: 6px;
  align-content: end;
}

.orders-board-filter-actions span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.orders-board-filter-actions button {
  min-height: 38px;
  padding: 0 12px;
}

.orders-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 14px;
  min-width: 0;
  align-items: start;
}

.order-stage {
  display: grid;
  gap: 10px;
  min-height: 420px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(180deg, #ffffff 0, #f6f9fd 100%);
}

.order-stage-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.order-stage-head strong {
  display: block;
  font-size: 14px;
}

.order-stage-head b {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}

.order-stage-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.order-stage-meta span,
.order-board-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.order-stage-list {
  display: grid;
  gap: 8px;
}

.order-stage-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  background: #fff;
}

.order-board-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(11, 22, 40, 0.06);
}

.order-card-assignment {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid #d7e4ee;
  border-radius: 11px;
  background: linear-gradient(180deg, #f8fbfd, #f3f7fa);
}

.assignment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.assignment-heading strong {
  font-size: 12px;
}

.assignment-heading button {
  min-height: 28px;
  padding: 0 8px;
  background: transparent;
  color: var(--teal);
  font-size: 11px;
}

.order-card-assignment label {
  gap: 4px;
  font-size: 11px;
}

.order-card-assignment input {
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 9px;
  font-size: 12px;
}

.order-card-assignment .assignment-save {
  min-height: 38px;
  padding: 0 10px;
  background: var(--teal);
  font-size: 12px;
}

.assignment-status {
  min-height: 15px;
  color: var(--muted);
  font-size: 11px;
}

.order-card-assignment[aria-busy="true"] {
  opacity: 0.72;
}

.order-board-card.overdue {
  border-color: rgba(217, 79, 69, 0.35);
  box-shadow: 0 8px 18px rgba(217, 79, 69, 0.08);
}

.order-board-card-head,
.order-board-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.order-board-card h4 {
  margin: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.order-board-card p {
  margin: 0;
  overflow-wrap: anywhere;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #eef2f7;
  color: var(--muted);
}

.status-pill.approved {
  background: #edf8f1;
  color: var(--green);
}

.status-pill.submitted {
  background: #fff9e8;
  color: #8a6500;
}

.status-pill.pending {
  background: #eef2f7;
  color: var(--muted);
}

.status-pill.rejected {
  background: #fff1ef;
  color: var(--coral);
}

.status-pill.refunded {
  background: #edf4ff;
  color: var(--blue);
}

.order-board-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.order-board-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.order-board-actions button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.ok-text {
  color: var(--green) !important;
}

.warn-text {
  color: #8a6500 !important;
}

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

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.18s ease;
}

.admin-row:hover {
  background: #f8fafc;
}

.admin-row:last-child {
  border-bottom: 0;
}

.admin-row strong,
.admin-row span {
  display: block;
}

.admin-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.admin-list-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 16px 0;
}

.admin-list-summary > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafc;
}

.admin-list-summary span,
.admin-list-summary strong {
  display: block;
}

.admin-list-summary span {
  color: var(--muted);
  font-size: 11px;
}

.admin-list-summary strong {
  margin-top: 3px;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.admin-table-shell {
  width: 100%;
  min-width: 0;
  overflow: auto;
}

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

.admin-data-table caption {
  padding: 16px 16px 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  text-align: left;
}

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

.admin-data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f9fc;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-data-table tbody tr:hover {
  background: #f9fbfd;
}

.admin-data-table td {
  color: var(--ink-soft);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.admin-data-table td strong,
.admin-data-table td small {
  display: block;
  overflow-wrap: anywhere;
}

.admin-data-table td small {
  max-width: 380px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.admin-product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.admin-product-cell img,
.admin-product-placeholder {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 10px;
}

.admin-product-cell img {
  object-fit: cover;
  background: var(--soft);
}

.admin-product-placeholder {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.data-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.data-status.success {
  background: #e7f6ed;
  color: var(--green);
}

.data-status.warning {
  background: #fff3d6;
  color: #805b00;
}

.data-status.danger {
  background: #ffebe9;
  color: var(--coral);
}

.data-status.info {
  background: #eaf1ff;
  color: var(--blue);
}

.table-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.table-actions button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 11px;
  white-space: normal;
}

.admin-row-actions button {
  min-height: 34px;
  padding: 0 12px;
  white-space: normal;
}

.report-shell {
  display: grid;
  gap: 16px;
  padding: 18px;
  min-width: 0;
}

.report-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  min-width: 0;
}

.report-head h3,
.report-block h3 {
  margin: 0;
}

.report-head span {
  color: var(--muted);
  font-size: 13px;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.report-filter-control {
  display: grid;
  gap: 3px;
  min-width: 128px;
  color: var(--muted);
  font-size: 12px;
}

.report-filter-control select,
.report-filter-control input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0 10px;
}

.report-actions button {
  min-height: 34px;
  padding: 0 12px;
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.metric-card,
.report-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0, #f9fbff 100%);
}

.metric-card {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.metric-card span,
.metric-card small,
.report-table small {
  color: var(--muted);
  font-size: 12px;
}

.metric-card strong {
  font-size: 24px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
}

.tag-row span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 10px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.report-block {
  overflow-x: auto;
  min-width: 0;
}

.report-block h3 {
  padding: 14px 14px 0;
  font-size: 18px;
}

.security-password-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  overflow: hidden;
}

.security-password-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.security-password-head h3 {
  padding: 0;
}

.security-password-meta {
  display: grid;
  gap: 2px;
  text-align: right;
}

.security-password-meta strong,
.security-password-meta span {
  overflow-wrap: anywhere;
}

.security-password-meta span,
.security-inline-note {
  color: var(--muted);
  font-size: 12px;
}

.security-password-form {
  display: grid;
  gap: 12px;
}

.security-password-form label {
  min-width: 0;
}

.security-password-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.security-password-actions button {
  min-height: 42px;
  padding-inline: 16px;
}

.security-password-status {
  min-height: 20px;
  padding: 0;
}

.form-message.is-success {
  color: var(--green);
}

.report-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

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

.report-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  background: #f8fafc;
  white-space: nowrap;
}

.report-table td small {
  display: block;
  margin-top: 4px;
}

.danger {
  background: #fff1f0;
  color: #b42318;
  border: 1px solid #ffd1cc;
}

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  width: min(100%, 460px);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.2s ease;
  border-radius: 0;
  box-shadow: var(--shadow);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-head,
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.icon-button {
  min-width: 40px;
  width: 40px;
  min-height: 40px;
  padding: 0;
  background: #f1f4f8;
  color: var(--ink);
}

.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 14px;
  min-height: 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-line h3 {
  margin: 0 0 4px;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.cart-line-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.cart-stepper {
  display: inline-grid;
  grid-template-columns: 38px minmax(42px, auto) 38px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fafc;
}

.cart-stepper span {
  min-width: 42px;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
}

.cart-stepper button,
.cart-remove {
  min-width: 38px;
  min-height: 38px;
}

.cart-stepper button {
  width: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #0f1b2d;
  color: #fff;
  box-shadow: none;
}

.cart-remove {
  width: auto;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #eef2f7;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.totals,
.checkout {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.totals dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 0;
}

.totals dt {
  color: var(--muted);
}

.totals dd {
  margin: 0;
  font-weight: 900;
}

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

.checkout {
  display: grid;
  gap: 12px;
  max-height: 54vh;
  overflow: auto;
  background: #fbfcfe;
}

.checkout-section {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.checkout-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-section-head > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: #e8f6f5;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.checkout-section-head strong,
.checkout-section-head small {
  display: block;
}

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

@media (max-width: 1180px) {
  .admin-panel[data-admin-resource-view="orders"] .admin-workspace,
  .admin-panel[data-admin-resource-view="products"] .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-panel[data-admin-resource-view="orders"] .admin-form,
  .admin-panel[data-admin-resource-view="products"] .admin-form {
    position: static;
    max-height: none;
  }
}

.checkout-submit {
  position: sticky;
  bottom: 0;
  min-height: 48px;
  background: linear-gradient(135deg, var(--teal), #08736f);
  box-shadow: 0 10px 22px rgba(11, 143, 135, 0.2);
}

.payment-instructions {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(19, 132, 122, 0.22);
  border-radius: 8px;
  background: #f0fbf9;
  padding: 12px;
}

.payment-instructions-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.payment-instructions-head div {
  display: grid;
  gap: 4px;
}

.payment-instructions-head span,
.payment-instructions dt {
  color: var(--muted);
  font-size: 12px;
}

.payment-amount {
  color: var(--teal) !important;
  font-size: 16px !important;
  font-weight: 900;
  white-space: nowrap;
}

.payment-instructions dl {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
}

.payment-instructions dd {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  margin: 0;
  font-weight: 800;
}

.payment-instructions dd span {
  overflow-wrap: anywhere;
}

.payment-instructions button {
  min-height: 0;
  padding: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgba(23, 32, 42, 0.58);
}

.modal.open {
  display: grid;
}

.modal-card {
  width: min(100%, 440px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  box-shadow: var(--shadow);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 14px 18px 0;
}

.product-modal {
  align-items: center;
}

.product-modal-card {
  width: min(100%, 920px);
}

.product-modal-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.product-detail-media {
  display: grid;
  gap: 10px;
}

.product-detail-media > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--soft-strong);
}

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

.thumb-button {
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  box-shadow: none;
}

.thumb-button:hover,
.thumb-button.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 116, 123, 0.12);
}

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

.product-detail-info {
  display: grid;
  gap: 12px;
  align-content: start;
}

.product-detail-info p {
  margin: 0;
  color: var(--muted);
}

.detail-price .price {
  font-size: 28px;
}

.detail-specs,
.branch-stock-grid {
  display: grid;
  gap: 8px;
}

.detail-specs {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.detail-specs span,
.branch-stock {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
}

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

.branch-stock.ok {
  border-color: rgba(33, 134, 91, 0.22);
  background: #eef8f2;
}

.branch-stock.out {
  border-color: rgba(217, 79, 69, 0.2);
  background: #fff5f4;
}

.detail-actions {
  grid-template-columns: minmax(0, 1fr) auto;
}

.modal form {
  padding: 18px;
}

.hidden {
  display: none;
}

.form-message {
  min-height: 24px;
  padding: 0 18px 18px;
  color: var(--coral);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 60;
  transform: translate(-50%, 30px);
  opacity: 0;
  min-width: min(92vw, 360px);
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 240px;
  padding: 28px;
  color: var(--muted);
}

.admin-loading > span {
  width: 24px;
  height: 24px;
  border: 3px solid #dce7ef;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: admin-spin 0.75s linear infinite;
}

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

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

.email-channel-card,
.admin-info-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fafc;
}

.email-channel-card.ready {
  border-color: rgba(25, 120, 78, 0.28);
  background: #f1faf5;
}

.email-channel-card.attention {
  border-color: rgba(240, 180, 41, 0.38);
  background: #fffaf0;
}

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

.email-channel-head strong {
  font-size: 16px;
}

.channel-status {
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.email-channel-card.ready .channel-status {
  background: #dff4e8;
  color: var(--green);
}

.email-channel-card p,
.admin-info-card span,
.channel-help {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.email-channel-details {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px 10px;
  margin: 0;
  font-size: 12px;
}

.email-channel-details dt {
  color: var(--muted);
}

.email-channel-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.email-recipient-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.email-recipient-list small {
  width: 100%;
  color: var(--muted);
}

.email-recipient-list span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
}

.channel-setup-guide {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #f2d7a0;
  border-radius: 12px;
  background: #fffaf0;
}

.channel-setup-guide strong {
  color: #7a4a00;
}

.channel-setup-guide p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.channel-setup-guide ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.channel-setup-guide span {
  color: var(--ink);
  font-weight: 700;
}

.notification-settings-card {
  gap: 14px;
}

.notification-toggle {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.notification-toggle input {
  margin-top: 3px;
}

.notification-toggle span {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.notification-public-summary {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.notification-public-summary strong {
  color: var(--ink);
}

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

.notification-settings-actions {
  align-items: stretch;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-summary-card strong,
.commerce-payment-head strong,
.commerce-settings-head strong,
.commerce-preview-card strong {
  color: var(--ink);
}

.admin-summary-card small,
.commerce-payment-head small,
.admin-inline-hint span,
.commerce-preview-grid li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.commerce-settings-card,
.commerce-preview-card {
  gap: 14px;
}

.commerce-settings-head,
.commerce-payment-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.commerce-tax-row {
  align-items: end;
}

.admin-inline-hint {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fff;
}

.commerce-toggle-grid,
.commerce-branch-grid,
.commerce-discount-grid,
.commerce-payment-grid,
.commerce-preview-grid {
  display: grid;
  gap: 12px;
}

.commerce-discount-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.commerce-discount-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.commerce-payment-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.commerce-preview-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.commerce-preview-grid div {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.commerce-preview-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.commerce-preview-grid ul {
  margin: 0;
  padding-left: 18px;
}

.commerce-payment-card {
  background: #fff;
}

.commerce-inline-check {
  align-self: center;
}

.commerce-payment-rules {
  display: grid;
  gap: 10px;
}

.commerce-toggle-row,
.commerce-branch-row,
.commerce-payment-rules .check-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.commerce-toggle-row span,
.commerce-branch-row span,
.commerce-payment-rules .check-row span {
  display: grid;
  gap: 4px;
  color: var(--ink);
}

.commerce-toggle-row small,
.commerce-branch-row small {
  color: var(--muted);
  font-size: 12px;
}

.admin-summary-grid-orders {
  margin-bottom: 18px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
  gap: 32px;
  align-items: center;
  padding: 38px clamp(18px, 5vw, 72px);
  background:
    linear-gradient(180deg, #07101d 0, #0b1628 100%),
    radial-gradient(circle at top right, rgba(36, 180, 166, 0.12), transparent 30%);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-brand strong,
.footer-brand small,
.footer-contact strong,
.footer-contact a {
  display: block;
}

.footer-brand small,
.footer-contact a {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-contact {
  justify-self: end;
  text-align: right;
}

body.admin-mode > main > :not(.admin-panel),
body.admin-mode > .site-footer {
  display: none;
}

body.admin-mode .topbar {
  grid-template-columns: minmax(188px, auto) minmax(0, 1fr) auto;
  background: rgba(255, 255, 255, 0.98);
}

body.admin-mode .topbar .search {
  visibility: hidden;
}

body.admin-mode .topbar .actions #supportBtn,
body.admin-mode .topbar .actions #ordersBtn,
body.admin-mode .topbar .actions #cartBtn {
  display: none;
}

@keyframes admin-spin {
  to { transform: rotate(360deg); }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

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

  .trust-strip article:nth-child(2) {
    border-right: 0;
  }

  .trust-strip article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    width: 100%;
  }

  .actions button {
    width: 100%;
    padding-inline: 10px;
  }

  .hero,
  .shop-layout,
  .split,
  .contact-shell,
  .admin-shell,
  .admin-workspace,
  .product-modal-body {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    justify-items: stretch;
  }

  .hero-visual-card,
  .hero-panel {
    width: 100%;
  }

  .admin-sidebar {
    position: static;
    max-height: none;
  }

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

  .admin-nav-label {
    grid-column: 1 / -1;
  }

  body.admin-mode .topbar .search {
    display: none;
  }

  body.admin-mode .topbar {
    grid-template-columns: minmax(170px, 1fr) auto;
  }

  .filters {
    position: static;
    max-height: none;
  }

  .admin-form {
    position: static;
    max-height: none;
  }

  .orders-board {
    min-width: 0;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .order-stage {
    min-height: 0;
  }

  .report-head {
    align-items: stretch;
    flex-direction: column;
  }

  .orders-board-head {
    align-items: stretch;
    flex-direction: column;
  }

  .orders-board-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

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

  .orders-board-filter-actions {
    grid-column: 1 / -1;
  }

  .orders-board-filter-actions span {
    text-align: left;
  }

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

  .commerce-discount-head {
    grid-template-columns: 1fr;
  }

  .contact-form-grid,
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    background: #fff;
  }

  .topbar {
    padding: 10px 12px;
  }

  .trust-strip {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    margin-top: -18px;
  }

  .trust-strip article,
  .trust-strip article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

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

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-mark-art {
    padding: 2px;
  }

  .search {
    grid-template-columns: minmax(0, 1fr) auto;
    box-shadow: none;
  }

  .search select {
    display: none;
  }

  .search input {
    border-right: 0;
    border-bottom: 0;
  }

  .actions,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .actions button {
    flex: 0 0 auto;
    width: auto;
    min-height: 38px;
    padding-inline: 11px;
    font-size: 12px;
  }

  .contact-panel {
    padding: 20px 16px;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
    min-height: 44px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .view-tabs,
  .admin-tabs {
    display: flex;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 8px;
    padding-bottom: 4px;
    scroll-padding-inline: 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .view-tabs button,
  .admin-tabs button {
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .admin-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 42px 16px 42px;
  }

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

  .hero-text {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions button {
    width: 100%;
  }

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

  .hero-visual-card {
    padding: 10px;
    border-radius: 24px;
  }

  .hero-art {
    border-radius: 18px;
  }

  .section,
  .shop-layout {
    padding: 26px 14px;
  }

  .section-head.compact {
    gap: 12px;
  }

  .category-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 7px 7px 14px;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .category-card {
    flex: 0 0 min(76vw, 190px);
    min-height: 132px;
    padding: 12px;
    scroll-snap-align: start;
  }

  .category-card strong {
    margin-top: 58px;
    font-size: 15px;
  }

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

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

  .order-card-head,
  .order-lines li {
    flex-direction: column;
  }

  .packing-actions,
  .packing-checklist-head {
    align-items: stretch;
    flex-direction: column;
  }

  .packing-actions button {
    width: 100%;
  }

  .packing-checklist-head span {
    text-align: left;
  }

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

  .product-card {
    min-height: 0;
  }

  .drawer {
    width: 100%;
  }

  .drawer-head,
  .modal-head {
    padding: 14px;
  }

  .cart-line-controls {
    display: flex;
    align-items: stretch;
    gap: 8px;
  }

  .cart-stepper {
    flex: 0 0 auto;
    grid-template-columns: 40px minmax(44px, auto) 40px;
  }

  .cart-stepper span {
    min-width: 44px;
  }

  .cart-stepper button,
  .cart-remove {
    min-width: 40px;
    min-height: 40px;
  }

  .cart-stepper button {
    width: 40px;
  }

  .cart-remove {
    flex: 1 1 auto;
    justify-content: center;
  }

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

  .commerce-settings-head,
  .commerce-payment-head {
    flex-direction: column;
  }

  .commerce-discount-grid,
  .commerce-payment-grid,
  .commerce-preview-grid {
    grid-template-columns: 1fr;
  }

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

  .modal {
    padding: 10px;
  }

  .modal form,
  .product-modal-body {
    padding: 14px;
  }

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

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

  .admin-workspace {
    gap: 12px;
  }

  .admin-panel {
    padding: 22px 12px 34px;
  }

  .admin-heading {
    align-items: flex-start;
  }

  .admin-heading h2 {
    font-size: 28px;
  }

  .admin-shell {
    gap: 12px;
  }

  .admin-sidebar {
    padding: 9px;
    border-radius: 14px;
  }

  .admin-sidebar-intro,
  .admin-sidebar-note,
  .admin-nav-label {
    display: none;
  }

  .admin-tabs button {
    min-width: 118px;
    min-height: 50px;
    padding: 10px 12px;
    justify-items: center;
    text-align: center;
  }

  .admin-tabs button small {
    display: none;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-context strong {
    font-size: 18px;
  }

  .admin-search-field {
    width: 100%;
  }

  body.admin-mode .topbar {
    grid-template-columns: 1fr;
  }

  .orders-board-shell {
    padding: 14px;
  }

  .orders-board {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .order-stage {
    min-height: 0;
  }

  .orders-board-metrics {
    grid-template-columns: 1fr;
  }

  .orders-board-filters {
    grid-template-columns: 1fr;
  }

  .orders-board-filter-actions button {
    width: 100%;
  }

  .order-board-card-head,
  .order-board-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-board-actions button {
    width: 100%;
  }

  .order-card-assignment input,
  .order-card-assignment button {
    width: 100%;
    min-height: 44px;
  }

  .assignment-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-summary-grid-orders,
  .stock-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .email-channel-head,
  .notification-toggle {
    flex-direction: column;
  }

  .notification-toggle input {
    margin-top: 0;
  }

  .email-channel-details {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .admin-form,
  .admin-list,
  .report-shell {
    border-radius: 0;
    margin-inline: -14px;
    border-left: 0;
    border-right: 0;
  }

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

  .product-image-preview {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 16 / 9;
    justify-self: center;
  }

  .product-image-file-row {
    align-items: stretch;
    flex-direction: column;
  }

  .product-image-file-row button {
    width: 100%;
    min-height: 44px;
  }

  .report-shell {
    padding: 14px;
  }

  .report-metrics {
    grid-template-columns: 1fr;
  }

  .security-password-head,
  .security-password-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .security-password-meta {
    text-align: left;
  }

  .security-password-actions button {
    width: 100%;
  }

  .report-table {
    min-width: 640px;
  }

  .admin-data-table,
  .admin-data-table caption,
  .admin-data-table tbody,
  .admin-data-table tr,
  .admin-data-table td {
    display: block;
    width: 100%;
  }

  .admin-data-table {
    min-width: 0;
  }

  .admin-data-table thead {
    display: none;
  }

  .admin-data-table caption {
    padding: 18px 14px 8px;
  }

  .admin-data-table tbody {
    display: grid;
    gap: 12px;
    padding: 0 12px 14px;
  }

  .admin-data-table tr {
    overflow: hidden;
    border: 1px solid rgba(213, 223, 235, 0.92);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0, #f8fbff 100%);
    box-shadow: 0 14px 28px rgba(9, 19, 33, 0.06);
  }

  .admin-data-table td {
    padding: 11px 14px;
    border-top: 1px solid rgba(213, 223, 235, 0.72);
  }

  .admin-data-table td:first-child {
    border-top: 0;
  }

  .admin-data-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .table-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .admin-product-cell {
    min-width: 0;
    align-items: flex-start;
  }

  .admin-product-cell img,
  .admin-product-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .admin-data-table td small {
    max-width: none;
  }

  .notification-settings-actions button {
    flex: 1 1 100%;
    min-height: 44px;
  }

  .table-actions button {
    flex: 1 1 120px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 32px 18px;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .footer-contact {
    justify-self: start;
    text-align: left;
  }
}

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

  .admin-panel {
    padding: 18px 10px 28px;
  }

  .admin-toolbar {
    padding: 12px;
  }

  .admin-tabs button {
    min-width: 104px;
    min-height: 46px;
    padding: 9px 10px;
  }

  .admin-data-table tbody {
    padding: 0 8px 10px;
  }

  .admin-data-table td {
    padding: 10px 12px;
  }

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

  .payment-instructions dd {
    align-items: flex-start;
    flex-direction: column;
  }

  .table-actions button {
    flex: 1 1 100%;
  }
}
