/* Clean storefront - Stripe/Linear lean. v=store20 */
html { color-scheme: light; }
body.store {
  background: #fafafa;
  color: #0a0a0a;
}

/* Account shell */
.account-shell {
  display: grid;
  gap: 1rem;
}
.account-main { min-width: 0; }
.account-nav {
  display: grid;
  gap: 0.85rem;
  padding: 0.9rem !important;
  min-width: 0;
}
.account-identity {
  display: none;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.account-balance-chip {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  padding: 0.7rem 0.85rem;
  min-width: 0;
}
.account-chip-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #737373;
  white-space: nowrap;
}
.account-chip-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  white-space: nowrap;
}
.account-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.account-tabs::-webkit-scrollbar { display: none; }
.account-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fff;
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #737373;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.account-tab.is-on {
  border-color: #0a0a0a;
  background: #0a0a0a;
  color: #fff;
}
.account-nav-foot {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.55rem;
  border-top: 1px solid #f0f0f0;
  min-width: 0;
}
.account-tg {
  margin: 0;
  min-width: 0;
  font-size: 0.75rem;
  color: #737373;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-tg b {
  font-weight: 500;
  color: #0a0a0a;
}
.account-signout {
  display: inline-block;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: #737373;
  white-space: nowrap;
  text-decoration: none;
}
.account-signout:hover {
  color: #0a0a0a;
  text-decoration: underline;
}
.account-table { min-width: 32rem; }
.account-hero {
  padding: 1.15rem 1.2rem !important;
}
.account-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.account-kpi {
  padding: 0.95rem 1rem !important;
}
.account-kpi-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #737373;
}
.account-kpi-value {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.account-links {
  display: grid;
  gap: 0.75rem;
}
.account-link-card {
  display: block;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.account-link-card:hover {
  border-color: #d4d4d4;
  background: #fcfcfc;
}
.account-link-arrow {
  color: #a3a3a3;
  font-size: 1rem;
  line-height: 1;
}
.account-order-row,
.account-activity-card,
.account-order-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  padding: 0.85rem 0.95rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.account-order-row > *,
.account-activity-card > *,
.account-order-card > * {
  min-width: 0;
  max-width: 100%;
}
.account-activity-card .text-mist,
.account-order-card .text-mist,
.account-order-row .text-mist {
  overflow: hidden;
  text-overflow: ellipsis;
}
a.account-order-row:hover,
a.account-order-card:hover {
  border-color: #d4d4d4;
  background: #fff;
}
.account-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.35rem 0;
}
.account-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fff;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  color: #737373;
}
.account-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fff;
  padding: 0.2rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #737373;
}
.account-status.is-ok {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}
.account-status.is-bad {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}
.account-status.is-warn {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}
.status-text-ok { color: #047857; }
.status-text-bad { color: #be123c; }
.status-text-warn { color: #b45309; }
.account-method {
  display: block;
  cursor: pointer;
  border-radius: 0.75rem;
  border: 1px solid #e5e5e5;
  background: #fff;
  padding: 0.85rem 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.account-method:hover { border-color: #d4d4d4; }
.account-method.is-on,
.account-method:has(input:checked) {
  border-color: #0a0a0a;
  background: #f5f5f5;
}
.account-invoice {
  border-radius: 0.85rem;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  padding: 0.95rem;
}
.account-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .account-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .account-shell {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
  }
  .account-nav {
    position: sticky;
    top: 5.25rem;
    width: 100%;
    gap: 1rem;
    padding: 1rem !important;
  }
  .account-identity,
  .account-balance-chip,
  .account-nav-foot {
    display: flex;
  }
  .account-tabs {
    flex-direction: column;
    overflow: visible;
  }
  .account-tab {
    justify-content: flex-start;
    width: 100%;
    border-radius: 0.65rem;
    border-color: transparent;
    background: transparent;
    padding: 0.65rem 0.75rem;
  }
  .account-tab.is-on,
  .account-tab:hover {
    border-color: transparent;
    background: #f5f5f5;
    color: #0a0a0a;
  }
}

.store-header {
  background: rgb(255 255 255 / 0.92);
}
.store-art {
  background-image:
    linear-gradient(180deg, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0)),
    var(--art);
}
.store-card-media {
  width: 100%;
  height: auto;
  overflow: hidden;
  line-height: 0;
  background: #f5f5f5;
}
.store-card-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: unset;
  vertical-align: top;
}
.store-art.store-card-media {
  aspect-ratio: 16 / 9;
  min-height: 7rem;
}
.store-hero-media {
  width: 100%;
  height: 16rem;
  min-height: 16rem;
  max-height: 16rem;
  overflow: hidden;
  line-height: 0;
  background: #f5f5f5;
}
.store-hero-media img {
  display: block;
  width: 100%;
  max-width: none;
  height: 16rem !important;
  max-height: 16rem;
  object-fit: cover;
  object-position: center;
}
.store-art.store-hero-media {
  height: 16rem;
  min-height: 16rem;
  max-height: 16rem;
  aspect-ratio: auto;
}
@media (min-width: 640px) {
  .store-hero-media,
  .store-art.store-hero-media {
    height: 18rem;
    min-height: 18rem;
    max-height: 18rem;
  }
  .store-hero-media img {
    height: 18rem !important;
    max-height: 18rem;
  }
}
.store-delivery {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-height: 28rem;
  overflow: auto;
  min-width: 0;
}
.delivery-actions {
  max-width: 100%;
}
.delivery-actions > .s-btn-ghost,
.delivery-actions > .s-btn-accent {
  max-width: 100%;
  white-space: nowrap;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.store-mark {
  display: grid;
  place-items: center;
  border-radius: 0.55rem;
  background: #0a0a0a;
  color: #fff;
  font-weight: 600;
  flex-shrink: 0;
}
.store-menu-btn,
.store-drawer-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.65rem;
  background: #fff;
  color: #0a0a0a;
  flex-shrink: 0;
}
.store-menu-btn svg,
.store-drawer-close svg {
  width: 1.15rem;
  height: 1.15rem;
}
.store-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgb(0 0 0 / 0.35);
}
.store-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(18.5rem, 86vw);
  height: 100%;
  background: #fff;
  border-right: 1px solid #e5e5e5;
  box-shadow: 12px 0 32px -20px rgb(0 0 0 / 0.25);
  transform: translateX(-105%);
  transition: transform 0.2s ease;
}
.store-drawer-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 0.9rem 0.85rem 1rem;
  border-bottom: 1px solid #e5e5e5;
}
.store-drawer-head .store-drawer-close { margin-left: auto; }
.store-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem;
}
.store-drawer-nav a {
  display: block;
  border-radius: 0.65rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  color: #0a0a0a;
}
.store-drawer-nav a.is-on,
.store-drawer-nav a:hover {
  background: #f5f5f5;
}
body.store-nav-open { overflow: hidden; }
body.store-nav-open .store-drawer { transform: translateX(0); }
@media (max-width: 767px) {
  .store-menu-btn,
  .store-drawer-close { display: inline-flex; }
  .store-brand { max-width: 42vw; }
}
@media (min-width: 768px) {
  .store-drawer,
  .store-backdrop,
  .store-menu-btn { display: none !important; }
}

/* Product qty stepper + buy confirm modal */
.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  gap: 0.5rem;
}
.qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  min-height: 2.6rem;
  border-radius: 0.65rem;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #0a0a0a;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.qty-btn:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: #d4d4d4;
}
.qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.qty-input {
  width: 5.5rem !important;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.buy-modal[hidden] { display: none !important; }
.buy-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.buy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.4);
}
.buy-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  margin: 0;
  box-shadow: 0 20px 40px -24px rgb(0 0 0 / 0.45);
}
body.buy-modal-open { overflow: hidden; }

/* Storefront visual system, shared by catalog, checkout and account pages. */
body.store { background: #f5f8f8; color: #162e32; }
.store .max-w-5xl { max-width: 1180px; }
.store .text-ink { color: #162e32; }
.store .text-mist { color: #617578; }
.store .border-line { border-color: #dde7e7; }
.store .bg-soft { background-color: #edf4f3; }
.store a, .store button, .store input { -webkit-tap-highlight-color: transparent; }
.store :focus-visible { outline: 3px solid #169889; outline-offset: 4px; }
.store [hidden] { display: none !important; }
.store-header { background: rgb(255 255 255 / .96); box-shadow: 0 4px 24px rgb(22 46 50 / .03); }
.store-header > div { min-height: 78px; }
.store-brand { font-weight: 700; letter-spacing: -.035em; }
.store-mark { background: #13796e; border-radius: 11px; }
.store .s-btn-accent, .store .s-btn-primary { background: #126f65; color: #fff; border-radius: 11px; min-height: 44px; box-shadow: 0 4px 10px rgb(18 111 101 / .12); }
.store .s-btn-accent:hover, .store .s-btn-primary:hover { background: #0b574f; }
.store .s-btn-ghost { border-color: #d8e4e2; border-radius: 11px; min-height: 42px; }
.store .s-chip { display: inline-flex; align-items: center; min-height: 40px; border-color: #dce7e5; font-size: 13px; }
.store .s-chip-on { background: #126f65; border-color: #126f65; color: white; }
.store .s-panel { border-color: #dee8e6; border-radius: 18px; box-shadow: 0 5px 24px rgb(22 46 50 / .025); }
.store .s-input { min-height: 46px; border-color: #d8e4e2; border-radius: 11px; }
.store .s-kicker { color: #53716e; font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.store-skip { position: fixed; top: -100px; left: 16px; padding: 12px 18px; background: white; z-index: 100; }
.store-skip:focus { top: 12px; }
.store-welcome { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px 32px; margin-bottom: 20px; background: #e8f2ef; border: 1px solid #d6e6e0; border-radius: 22px; }
.store-welcome h1 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.15; letter-spacing: -.045em; }
.store-heading-accent { color: #13796e; }
.store-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #356b60; }
.store-eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: #138b73; box-shadow: 0 0 0 4px rgb(19 139 115 / .1); }
.store-welcome-summary { min-width: 0; padding: 20px; border-radius: 16px; background: rgb(255 255 255 / .75); border: 1px solid #d6e6e0; }
.store-stats { margin-top: 12px; }
.store-stats > div { min-width: 0; overflow-wrap: anywhere; }
.store-stats .s-panel { padding: 10px !important; border: 0; background: #f5f8f7; box-shadow: none; border-radius: 12px; }
.store-category-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 4px; }
.store-category-strip .s-chip { flex-shrink: 0; gap: 8px; min-height: 44px; }
.store-catalog-categories { margin-top: 16px; }
.store .s-card { min-width: 0; border-color: #dee8e6; border-radius: 18px; box-shadow: 0 4px 12px rgb(22 46 50 / .025); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.store .s-card:hover { transform: translateY(-3px); border-color: #9bc5ba; box-shadow: 0 12px 26px rgb(22 46 50 / .08); }
.store .store-card-media { aspect-ratio: 16 / 9; height: auto; min-height: 0; background-color: #edf2f1; }
.store .store-card-media img { width: 100%; height: 100%; object-fit: contain; }
.store .store-art { line-height: normal; }
.store-card-title { font-size: 16px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.store .store-card-price { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.035em; color: #162e32; }
.store-card-action { display: flex; justify-content: space-between; align-items: center; min-height: 44px; margin: 0 16px 16px; padding: 8px 12px; border-radius: 9px; background: #f5f8f7; font-size: 13px; font-weight: 600; color: #617578; }
.store-card-action.is-available { background: #e8f3ee; color: #126f65; }
.s-card:hover .store-card-action.is-available { background: #d8ede3; }
.store-card-action span:last-child { font-size: 19px; }
.store-catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0 28px; }
.store-catalog-tools { display: flex; gap: 20px; align-items: end; padding: 20px; background: white; border: 1px solid #dee8e6; border-radius: 18px; }
.store-search { flex: 1; min-width: 0; }
.store-search .s-input { font-size: 16px; }
.store-search > span { display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.store-stock-filter { display: flex; gap: 9px; align-items: center; min-height: 46px; font-size: 13px; white-space: nowrap; }
.store-stock-filter input { accent-color: #126f65; width: 17px; height: 17px; }
.store-search-empty { text-align: center; padding: 50px 20px; }
.store-search-empty h2 { font-size: 20px; font-weight: 600; }
.store-search-empty p { color: #617578; margin-top: 8px; }
.store .account-tab.is-on { background: #e4f2ed; color: #126f65; border-color: #cde5db; }
.store .account-kpi-value { color: #126f65; }
.store .account-balance-chip, .store .account-invoice { background: #edf6f2; border-color: #d4e6de; }
.store footer { margin-top: 30px; background: #edf3f1; }
@media (min-width: 1024px) { .store-purchase-panel { position: sticky; top: 100px; } }
@media (max-width: 767px) {
  .store-header > div { min-height: 68px; }
  .store-welcome { grid-template-columns: 1fr; padding: 22px 20px; gap: 20px; border-radius: 18px; }
  .store-welcome-summary { padding: 0; background: transparent; border: 0; }
  .store-welcome-summary > .s-kicker { display: none; }
  .store-stats { margin-top: 0; }
  .store-category-strip { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; margin-bottom: 24px; }
  .store-category-strip .s-chip { white-space: nowrap; }
  .store-catalog-heading { align-items: start; flex-direction: column; }
  .store-catalog-tools { align-items: stretch; flex-direction: column; gap: 8px; padding: 16px; }
  .store-card-action { margin: 0 12px 12px; padding: 8px; font-size: 12px; }
  .store-card-title { font-size: 14px; }
  .store .store-card-price { font-size: 19px; }
  .store .s-card { border-radius: 14px; }
}
@media (max-width: 359px) { .store-product-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .store *, .store *::before, .store *::after { transition: none !important; scroll-behavior: auto !important; } }
