:root {
  color-scheme: light;
  --header-height: 188px;
  --footer-height: 58px;
  --ink: #17202a;
  --muted: #647282;
  --line: #d9e0e7;
  --surface: #ffffff;
  --page: #f5f7f9;
  --surface-soft: #eef4f1;
  --accent: #147c72;
  --accent-dark: #0d5f57;
  --blue: #2456a6;
  --red: #bd3b3b;
  --amber: #a86408;
  --gold: #d99a25;
  --shadow: 0 12px 28px rgba(23, 32, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-top: var(--header-height);
  padding-bottom: var(--footer-height);
}

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

button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  padding: 0 14px;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

button:hover {
  border-color: #9cadbd;
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 9px 11px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 780px;
  color: #f8fbf7;
  font-size: clamp(1.7rem, 3.5vw, 2.85rem);
  line-height: 0.94;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

h2 {
  font-size: 1.15rem;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 120;
  min-height: var(--header-height);
  max-height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  padding: 16px clamp(14px, 3vw, 40px);
  background:
    linear-gradient(135deg, rgba(13, 95, 87, 0.9), rgba(9, 23, 33, 0.92)),
    url("https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center 44%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.brand-block {
  display: grid;
  gap: 9px;
}

.header-actions {
  display: grid;
  align-self: start;
  justify-self: end;
  justify-items: end;
  gap: 10px;
}

.header-account-button {
  min-width: 96px;
  min-height: 40px;
  border-color: rgba(255, 255, 255, 0.24);
  background: white;
  color: var(--accent-dark);
  padding: 0 18px;
  font-weight: 750;
  box-shadow: none;
}

.header-account-button:hover {
  border-color: white;
  background: #eef8f6;
}

.account-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  padding: 16px;
  box-shadow: var(--shadow);
}

.account-card h2,
.account-card strong {
  color: var(--ink);
}

.account-card label,
.account-card .identity span,
.account-card .status-box {
  color: var(--muted);
}

.account-card input {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}

.account-card input::placeholder {
  color: #8a97a5;
}

.account-card .tabs {
  margin: 4px 0 0;
}

.account-card .tab,
.account-card #logout {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}

.account-card .tab.active {
  background: #e7f4f2;
  color: var(--accent-dark);
}

.account-card .stack {
  grid-template-columns: 1fr;
  gap: 9px;
}

.account-card .identity {
  margin: 0 0 10px;
}

.account-card .status-box {
  margin-top: 0;
}

.account-page {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.account-details {
  display: grid;
  align-content: center;
  gap: 14px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(9, 23, 33, 0.9), rgba(20, 124, 114, 0.76)),
    url("https://images.unsplash.com/photo-1556742502-ec7c0e9f34b1?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
  color: white;
  padding: clamp(22px, 4vw, 42px);
}

.account-details > span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.account-details h2 {
  max-width: 620px;
  color: white;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.02;
}

.account-details > p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.account-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.account-detail-grid article {
  min-height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 14px;
  backdrop-filter: blur(8px);
}

.account-detail-grid p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.45;
}

.eyebrow {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-copy {
  max-width: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.35;
  margin-top: 0;
  white-space: nowrap;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.hero-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  font-size: 0.88rem;
  font-weight: 500;
}

.hero-metrics strong {
  color: #ffffff;
  font-weight: 600;
}

.connection {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.connection label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.connection input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
  padding: 8px 12px;
  font-size: 0.88rem;
}

.connection input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.connection input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.connection .icon-button {
  background: linear-gradient(135deg, rgba(20, 124, 114, 0.9), rgba(13, 95, 87, 0.8));
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  min-height: 36px;
  white-space: nowrap;
  flex-shrink: 0;
}

.connection .icon-button:hover {
  background: linear-gradient(135deg, rgba(20, 124, 114, 1), rgba(13, 95, 87, 0.95));
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.panel,
.workspace {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.workspace {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

.panel {
  height: fit-content;
  position: sticky;
  top: 18px;
  padding: 18px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.summary-strip article {
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 16px;
  background: var(--surface);
}

.summary-strip span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-strip strong {
  font-size: 1.45rem;
}

.panel-heading,
.toolbar,
.checkout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toolbar {
  margin-bottom: 18px;
}

.toolbar p,
.checkout-bar {
  color: var(--muted);
  font-size: 0.92rem;
}

.badge {
  border-radius: 999px;
  background: #e9f4f2;
  color: var(--accent-dark);
  padding: 5px 9px;
  font-size: 0.75rem;
  font-weight: 800;
}

.tabs,
.section-tabs {
  display: flex;
  gap: 6px;
}

.tabs {
  margin: 18px 0;
}

.tab,
.section-tab {
  flex: 1;
}

.tab.active,
.section-tab.active {
  border-color: var(--accent);
  background: #e7f4f2;
  color: var(--accent-dark);
}

.section-tabs {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.section-tab {
  flex: 0 0 auto;
}

.section-tab span {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  margin-left: 5px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 0.78rem;
}

.view {
  padding: 20px;
}

.featured-product {
  position: relative;
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: stretch;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid #c8d7d2;
  border-radius: 8px;
  background: #0f2f2d;
  color: white;
}

.featured-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
}

.featured-copy span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.featured-copy strong {
  max-width: 520px;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.02;
}

.featured-copy p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.featured-copy button {
  width: fit-content;
}

.featured-product img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.featured-price {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border-radius: 999px;
  background: white;
  color: var(--accent-dark);
  padding: 8px 12px;
  font-weight: 900;
}

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

.identity {
  display: grid;
  gap: 3px;
  margin: 16px 0;
}

.identity span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.status-box {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--amber);
}

.dot.ok {
  background: var(--accent);
}

.dot.bad {
  background: var(--red);
}

.filters,
.checkout-form {
  display: flex;
  gap: 8px;
}

.filters {
  align-items: center;
}

.filters input[type="search"] {
  min-width: 210px;
}

.category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: -4px 0 18px;
  padding-bottom: 2px;
}

.category-chips button {
  flex: 0 0 auto;
  border-radius: 999px;
  min-height: 36px;
}

.category-chips button.active {
  border-color: var(--accent);
  background: var(--ink);
  color: white;
}

.top-picks {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.top-picks-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.top-picks-heading span {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.pick-list button {
  min-height: 74px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 9px;
}

.pick-list img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.pick-list span {
  overflow: hidden;
  color: var(--ink);
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pick-list strong {
  color: var(--blue);
}

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

.product-card,
.item-row,
.order-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.product-card {
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.product-card:hover {
  border-color: #b6c3ce;
  box-shadow: 0 16px 34px rgba(23, 32, 42, 0.11);
  transform: translateY(-2px);
}

.product-media {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: var(--surface-soft);
}

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

.product-art {
  min-height: 190px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.94);
  background:
    linear-gradient(135deg, rgba(20, 124, 114, 0.86), rgba(36, 86, 166, 0.84)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 255, 255, 0.16) 14px 16px);
  font-size: 2.35rem;
  font-weight: 900;
}

.fallback-art {
  height: 190px;
}

.category-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-dark);
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  background: rgba(23, 32, 42, 0.78);
  color: white;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 850;
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.product-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.product-title strong {
  overflow-wrap: anywhere;
}

.price {
  color: var(--blue);
  font-weight: 850;
  white-space: nowrap;
}

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

.description {
  min-height: 48px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

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

.product-tags span {
  border-radius: 999px;
  background: #f1f5f7;
  color: #4e5d6b;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 800;
}

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

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

.item-row,
.order-row {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.item-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.quantity-controls {
  display: grid;
  grid-template-columns: 40px 54px 40px 86px;
  gap: 6px;
}

.quantity-controls input {
  text-align: center;
}

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

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

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

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

.skeleton-card {
  min-height: 306px;
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
}

.skeleton-card::before,
.skeleton-card span {
  content: "";
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, #edf1f4, #f8fafb, #edf1f4);
  background-size: 220% 100%;
  animation: shimmer 1.3s infinite;
}

.skeleton-card::before {
  height: 166px;
}

.skeleton-card span {
  height: 16px;
}

.skeleton-card span:nth-child(3) {
  width: 62%;
}

@keyframes shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

.toast {
  position: fixed;
  right: 18px;
  bottom: calc(var(--footer-height) + 18px);
  z-index: 200;
  max-width: min(420px, calc(100vw - 36px));
  border-radius: 8px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  padding: 12px 14px;
}

.site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 120;
  min-height: var(--footer-height);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(220px, auto);
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  background: #111c24;
  color: white;
  padding: 8px clamp(14px, 3vw, 36px);
}

.site-footer p {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer a {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: white;
  padding: 5px 9px;
  text-decoration: none;
}

.site-footer a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.footer-meta {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  text-align: right;
}

.footer-meta strong {
  color: white;
}

.hidden {
  display: none !important;
}

@media (max-width: 860px) {
  :root {
    --header-height: 320px;
    --footer-height: 0px;
  }

  body {
    padding-bottom: 0;
  }

  .topbar,
  .layout,
  .toolbar,
  .checkout-bar,
  .item-row,
  .site-footer {
    display: grid;
  }

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

  .topbar {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .header-actions {
    width: 100%;
  }

  .panel {
    position: static;
  }

  .hero-copy {
    white-space: normal;
  }

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

  .connection {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .connection input {
    min-width: 0;
  }

  .connection .icon-button {
    width: 100%;
    min-height: 40px;
  }

  .filters,
  .checkout-form,
  .product-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .filters input[type="search"] {
    min-width: 0;
  }

  .featured-product,
  .pick-list,
  .account-page,
  .account-detail-grid {
    grid-template-columns: 1fr;
  }

  .featured-product img {
    max-height: 260px;
  }

  .quantity-controls {
    grid-template-columns: 40px 54px 40px 1fr;
  }

  .site-footer {
    position: static;
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 320px;
  }

  .topbar {
    padding-top: 18px;
  }

  .summary-strip {
    grid-template-columns: 1fr;
  }

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

  .top-picks-heading {
    display: grid;
  }

  .hero-metrics {
    display: flex;
  }

  .footer-meta {
    display: none;
  }
}
