@charset "UTF-8";

@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/be-vietnam-pro-400-vi.woff2") format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/be-vietnam-pro-400-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/be-vietnam-pro-600-vi.woff2") format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/be-vietnam-pro-600-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/be-vietnam-pro-700-vi.woff2") format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/be-vietnam-pro-700-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/be-vietnam-pro-800-vi.woff2") format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/be-vietnam-pro-800-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/newsreader-italic-vi.woff2") format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/newsreader-italic-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* 11Percent practical marketplace refinement — ui34. Loaded after styles.css. */
:root {
  --ink: #1a1718;
  --muted: #746d68;
  --paper: #f7f3ec;
  --white: #ffffff;
  --line: #d8d0c5;
  --soft: #f1ece5;
  --brand: #681b2b;
  --green: var(--brand);
  --acid: var(--brand);
  --orange: var(--brand);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 8px 24px rgba(17, 18, 17, 0.05);
  --shadow-md: 0 24px 70px rgba(17, 18, 17, 0.1);
}

#admin-nav[hidden] {
  display: none;
}

/* Official accounts and brand storefronts */
.official-mark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  padding: 4px 8px 4px 5px;
  border: 1px solid rgba(104, 27, 43, 0.2);
  border-radius: 999px;
  background: #f7ecee;
  color: #681b2b;
  font-size: 10px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.official-mark > span {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #681b2b;
  color: #fff;
  font-size: 10px;
}

.official-mark b {
  font: inherit;
}

.official-mark.compact {
  gap: 3px;
  padding: 2px 5px 2px 2px;
  font-size: 9px;
}

.official-mark.compact > span {
  width: 14px;
  height: 14px;
  font-size: 8px;
}

.product-shop {
  display: flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  max-width: 100%;
}

.product-shop > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-shop.is-official {
  color: var(--ink);
  font-weight: 700;
}

.shop-link-arrow {
  color: var(--muted);
}

.suggestion-shop-name {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  font-weight: 700;
}

.official-only {
  font-weight: 700;
}

.official-only > span {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
}

.detail-shopline {
  margin-bottom: 14px;
}

.detail-shopline .product-shop {
  margin-top: 0;
  font-size: 12px;
}

.shop-hero.official-shop {
  min-height: 340px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 4vw, 58px);
  margin-top: 26px;
  padding: clamp(38px, 5vw, 70px);
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(104, 27, 43, 0.9), transparent 48%), #171313;
  color: #fff;
}

.official-brand-avatar {
  width: 132px;
  height: 154px;
  display: grid;
  align-content: space-between;
  padding: 22px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: #f4eee7;
  color: #171313;
}

.official-brand-avatar strong {
  font-family: "Arial Narrow", "Helvetica Neue", sans-serif;
  font-size: 54px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.09em;
}

.official-brand-avatar small {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-official-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-hero.official-shop .official-mark {
  border-color: rgba(255, 255, 255, 0.25);
  background: #fff;
  color: #681b2b;
  letter-spacing: 0;
}

.shop-hero.official-shop h1 {
  margin: 14px 0 2px;
  color: #fff;
  font-family: "Arial Narrow", "Helvetica Neue", sans-serif;
  font-size: clamp(56px, 7vw, 94px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.shop-hero.official-shop .shop-handle {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.shop-hero.official-shop .shop-tagline {
  margin-top: 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 630;
}

.official-shop-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 26px;
}

.official-shop-facts span {
  min-width: 116px;
  display: grid;
  gap: 4px;
  padding-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.official-shop-facts span + span {
  padding-left: 24px;
}

.official-shop-facts span:last-child {
  border-right: 0;
}

.official-shop-facts strong {
  color: #fff;
  font-size: 13px;
  font-weight: 760;
}

.official-shop-facts small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-hero-actions {
  display: grid;
  gap: 10px;
  min-width: 188px;
}

.shop-hero.official-shop .shop-hero-actions .button {
  justify-content: center;
  border-color: #fff;
  background: #fff;
  color: #171313;
}

.shop-hero.official-shop .shop-hero-actions .button:hover {
  border-color: #f4eee7;
  background: #f4eee7;
}

.shop-hero.official-shop .shop-hero-actions .button.ghost {
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
}

.shop-hero.official-shop .shop-hero-actions .button.ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.official-assurance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-top: 0;
  background: #fff;
}

.official-assurance span {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  color: var(--muted);
  font-size: 11px;
}

.official-assurance span + span {
  border-left: 1px solid var(--line);
}

.official-assurance b {
  color: var(--brand);
  font-size: 15px;
}

.official-assurance strong {
  color: var(--ink);
  font-weight: 680;
}

.official-assurance + .catalog-section {
  padding-top: 54px;
}

@media (max-width: 900px) {
  .shop-hero.official-shop {
    grid-template-columns: 100px minmax(0, 1fr);
    min-height: 0;
  }

  .official-brand-avatar {
    width: 100px;
    height: 122px;
    padding: 17px 14px 13px;
  }

  .official-brand-avatar strong {
    font-size: 42px;
  }

  .shop-hero-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .official-mark.compact b {
    display: none;
  }

  .official-mark.compact {
    padding-right: 2px;
  }

  .shop-hero.official-shop {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
    margin-inline: -16px;
    padding: 30px 20px;
    border-radius: 0;
  }

  .official-brand-avatar {
    width: 64px;
    height: 76px;
    padding: 11px 9px 8px;
  }

  .official-brand-avatar strong {
    font-size: 28px;
  }

  .official-brand-avatar small {
    font-size: 6px;
  }

  .shop-official-line > span:last-child,
  .official-shop-facts span:nth-child(2) {
    display: none;
  }

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

  .shop-hero.official-shop .shop-tagline {
    margin-top: 10px;
    font-size: 13px;
  }

  .official-shop-facts {
    margin-top: 18px;
  }

  .official-shop-facts span {
    min-width: 0;
    padding-right: 16px;
  }

  .official-shop-facts span + span {
    padding-left: 16px;
  }

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

  .official-assurance {
    grid-template-columns: 1fr;
    margin-inline: -16px;
  }

  .official-assurance span {
    min-height: 48px;
    justify-content: flex-start;
  }

  .official-assurance span + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

html,
body {
  background: var(--paper);
}

body {
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #ead8d9;
  color: #521321;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.container {
  width: min(1500px, 100%);
  padding-inline: clamp(24px, 3vw, 48px);
}

.notice {
  display: none;
}

header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.topbar {
  min-height: 72px;
  gap: clamp(18px, 2.2vw, 34px);
}

.logo {
  display: inline-flex;
  align-items: baseline;
  color: var(--ink);
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -2.7px;
}

.logo span {
  margin-left: 1px;
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: 1.04em;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -1.55px;
}

.topbar nav {
  align-self: stretch;
  align-items: center;
  gap: 24px;
}

.topbar nav a {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 2px 0 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--muted);
  font-size: 13px;
}

.topbar nav a:hover {
  background: transparent;
  color: var(--ink);
}

.topbar nav a.active {
  border-bottom-color: var(--ink);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

#search-form {
  max-width: 700px;
  min-height: 44px;
  padding: 4px 5px 4px 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--soft);
}

#search-form:focus-within {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(104, 27, 43, 0.1);
}

#search {
  font-size: 14px;
}

.search-submit {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
}

.search-submit:hover {
  background: var(--brand);
}

.icon-button,
.cart-button {
  min-height: 40px;
  border-radius: 4px;
}

.icon-button:hover {
  background: var(--soft);
}

.cart-button {
  padding-inline: 14px 7px;
  background: var(--ink);
  color: #fff;
}

.cart-button:hover {
  background: #252725;
}

.cart-button span {
  min-width: 26px;
  height: 26px;
  background: var(--brand);
  color: #fff;
}

.storage-banner {
  margin-top: 0;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: #7a7d7b;
  font-size: 10px;
}

.storage-banner .text-button {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.commerce-hero {
  margin-top: clamp(32px, 4vw, 58px);
}

.commerce-heading {
  align-items: baseline;
}

.commerce-heading h1 {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 760;
  letter-spacing: -0.055em;
}

.commerce-heading p {
  color: var(--muted);
  font-size: 12px;
}

.commerce-heading p strong {
  color: var(--ink);
  font-weight: 700;
}

.category-launcher {
  gap: clamp(18px, 2.4vw, 40px);
  margin-top: 30px;
}

.category-launcher a {
  min-height: 68px;
  padding: 15px 0 10px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.category-launcher a:hover {
  border-color: var(--ink);
  background: transparent;
  box-shadow: none;
  transform: none;
}

.category-launcher strong {
  font-size: 14px;
  font-weight: 700;
}

.category-launcher small {
  color: #858885;
}

.category-launcher b {
  transition: transform 180ms ease;
}

.category-launcher a:hover b {
  color: var(--brand);
  transform: translateX(3px);
}

.home-shelves {
  padding-top: clamp(40px, 5vw, 70px);
}

.product-shelf + .product-shelf {
  margin-top: clamp(54px, 6vw, 84px);
}

.shelf-head {
  margin-bottom: 18px;
}

.shelf-head h2,
h2,
.catalog-toolbar .section-head h2 {
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 720;
  letter-spacing: -0.035em;
}

.shelf-actions {
  gap: 7px;
}

.shelf-actions a {
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.shelf-actions a:hover {
  color: var(--ink);
}

.shelf-actions button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.shelf-actions button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.shelf-track {
  grid-auto-columns: clamp(188px, 18.5vw, 260px);
  gap: clamp(12px, 1.4vw, 22px);
  scrollbar-width: none;
}

.shelf-track::-webkit-scrollbar {
  display: none;
}

.rail-card,
.product {
  min-width: 0;
}

.rail-card:hover,
.product:hover {
  transform: none;
}

.rail-card-visual,
.product-visual {
  overflow: hidden;
  border-radius: 2px;
  background: #f1f1ef;
  box-shadow: none;
}

.product-photo {
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rail-card:hover .product-photo,
.product:hover .product-photo {
  transform: scale(1.015);
}

.save {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(17, 18, 17, 0.1);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.save:hover {
  border-color: var(--ink);
}

.save[aria-pressed="true"] {
  border-color: var(--brand);
  color: var(--brand);
}

.save[aria-pressed="true"] .heart-icon {
  fill: currentColor;
}

.tag {
  padding: 5px 7px;
  border: 1px solid rgba(17, 18, 17, 0.08);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.product-shop {
  margin-top: 11px;
  color: #747774;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.015em;
  text-transform: none;
}

.product-shop:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rail-card h3,
.product h3 {
  min-height: 2.6em;
  margin: 4px 0 8px;
  font-size: 14px;
  font-weight: 580;
  line-height: 1.3;
}

.rail-card h3 a:hover,
.product h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-bottom strong,
.rail-card .product-bottom strong {
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -0.015em;
}

.add {
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
}

.add:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.catalog-section {
  padding-top: clamp(70px, 8vw, 110px);
}

.catalog-toolbar {
  top: 72px;
  margin: 0 0 28px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.chip,
.filter-select,
.catalog-options label {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.products {
  gap: 46px clamp(13px, 1.7vw, 26px);
}

.button {
  min-height: 44px;
  border-color: var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
}

.button:hover {
  border-color: var(--brand);
  background: var(--brand);
}

.button.outline {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button.outline:hover {
  border-color: var(--ink);
  background: #fff;
}

.seller-banner {
  min-height: 170px;
  margin-block: 90px 72px;
  padding: 38px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}

.seller-banner h2 {
  margin-block: 6px;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 720;
}

.seller-banner .eyebrow {
  color: var(--muted);
}

.seller-banner p {
  color: var(--muted);
}

.seller-banner .button.light {
  background: var(--brand);
  color: #fff;
}

.shop-hero,
.panel,
.order,
.detail-info,
dialog {
  border-color: var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}

.shop-hero h1,
.page-heading h1,
.product-title {
  font-weight: 760;
}

.search-suggestions {
  border-color: var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.98);
}

.search-suggestions a {
  border-radius: 3px;
}

.search-suggestions a:hover,
.search-suggestions a[aria-selected="true"] {
  background: var(--soft);
  color: var(--ink);
}

footer {
  background: #101110;
}

.back-to-top {
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
}

/* Complete commerce UX */
#storage-status:empty {
  display: none;
}

#saved-button {
  position: relative;
}

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

.sync-button:hover {
  color: var(--ink);
}

#saved-count {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

#saved-count[hidden] {
  display: none;
}

.icon-button,
.cart-button,
.search-submit,
.save,
.add,
.shelf-actions button,
.chip,
.qty button {
  min-width: 44px;
  min-height: 44px;
}

.shelf-actions .shelf-clear {
  width: auto;
  min-width: 44px;
  padding-inline: 8px;
  border-color: transparent;
  color: var(--muted);
  font-size: 10px;
}

.shelf-actions .shelf-clear:hover {
  border-color: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.search-suggestions {
  padding: 8px;
  box-shadow: 0 20px 60px rgba(26, 23, 24, 0.14);
}

.search-suggestions a {
  min-height: 64px;
  justify-content: flex-start;
  gap: 12px;
  padding: 7px 9px;
}

.search-suggestions .suggestion-media {
  width: 46px;
  height: 52px;
  min-width: 46px;
  display: grid;
  overflow: hidden;
  place-items: center;
  border-radius: 3px;
  background: var(--tone, var(--soft));
}

.suggestion-media img,
.suggestion-media .art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-suggestions .suggestion-copy {
  min-width: 0;
  flex: 1;
}

.search-suggestions .search-all {
  min-height: 48px;
  margin-top: 5px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: var(--brand);
  font-weight: 750;
}

.search-suggestions .search-all:hover {
  background: transparent;
  color: var(--ink);
}

.purchase-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 10px;
}

.purchase-actions .button {
  min-width: 0;
}

.detail-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.detail-save .ui-icon {
  width: 18px;
  height: 18px;
}

.detail-save[aria-pressed="true"] {
  border-color: var(--brand);
  color: var(--brand);
}

.detail-save[aria-pressed="true"] .heart-icon {
  fill: currentColor;
}

.open-cart-link {
  min-height: 38px;
  grid-column: 1 / -1;
  justify-self: start;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.checkout-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.checkout-progress span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.checkout-progress span[aria-current="step"] {
  border-color: var(--brand);
  color: var(--ink);
}

.checkout-progress b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 9px;
}

.checkout-progress span[aria-current="step"] b {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.cart-summary {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 12px;
}

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

.cart-group {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.cart-group + .cart-group {
  margin-top: 12px;
}

.qty {
  gap: 6px;
}

.qty button {
  border-radius: 4px;
}

#toast {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 10px 10px 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(26, 23, 24, 0.22);
}

#toast.visible {
  pointer-events: auto;
}

.toast-action {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.toast-action:hover {
  background: #f0e9e2;
}

.loading-page {
  padding-top: clamp(42px, 5vw, 72px);
}

.skeleton {
  display: block;
  overflow: hidden;
  position: relative;
  background: #e9e3db;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(255, 255, 255, 0.72) 48%,
    transparent 76%
  );
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.25s infinite;
}

.skeleton-title {
  width: min(280px, 56vw);
  height: 54px;
  border-radius: 4px;
}

.skeleton-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 34px;
}

.skeleton-categories .skeleton {
  height: 68px;
  border-top: 1px solid #d8d0c5;
  background: transparent;
}

.skeleton-heading {
  width: 190px;
  height: 30px;
  margin-top: 68px;
  border-radius: 3px;
}

.skeleton-products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.skeleton-products .skeleton {
  aspect-ratio: 4 / 5;
  border-radius: 3px;
}

@keyframes skeleton-shimmer {
  to {
    transform: translateX(100%);
  }
}

/* Seller Center */
.seller-center {
  padding-bottom: 80px;
}

.seller-auth-gate {
  max-width: 760px;
  margin: clamp(50px, 9vw, 130px) auto;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
}

.seller-auth-gate h1 {
  margin: 10px 0 14px;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: -0.06em;
}

.seller-auth-gate > p {
  color: var(--muted);
}

.seller-gate-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 34px 0;
  text-align: left;
}

.seller-gate-benefits span {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-top: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.seller-gate-benefits b {
  color: var(--brand);
  font-size: 10px;
}

.seller-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding-block: clamp(40px, 5vw, 72px) 28px;
}

.seller-heading h1 {
  max-width: 780px;
  margin: 8px 0;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -0.055em;
}

.seller-heading p,
.seller-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.seller-heading-actions {
  display: flex;
  flex: none;
  gap: 8px;
}

.seller-tabs {
  position: sticky;
  z-index: 20;
  top: 72px;
  display: flex;
  gap: 28px;
  overflow-x: auto;
  margin-inline: calc(clamp(24px, 3vw, 48px) * -1);
  padding-inline: clamp(24px, 3vw, 48px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 236, 0.95);
  scrollbar-width: none;
  backdrop-filter: blur(14px);
}

.seller-tabs::-webkit-scrollbar {
  display: none;
}

.seller-tabs button {
  min-height: 48px;
  flex: none;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.seller-tabs button:hover,
.seller-tabs button:focus-visible {
  color: var(--ink);
}

.seller-overview {
  scroll-margin-top: 140px;
  padding-top: 32px;
}

.seller-onboarding {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(480px, 1.2fr);
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  background: #fff;
}

.seller-onboarding h2 {
  margin: 8px 0 20px;
  font-size: clamp(24px, 3vw, 34px);
}

.onboarding-progress {
  height: 4px;
  overflow: hidden;
  background: var(--soft);
}

.onboarding-progress i {
  height: 100%;
  display: block;
  background: var(--brand);
  transition: width 240ms ease;
}

.seller-onboarding ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seller-onboarding li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.seller-onboarding li:last-child {
  border: 0;
}

.seller-onboarding li > b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 9px;
}

.seller-onboarding li.done > b {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.seller-onboarding li.done > b::before {
  content: "✓";
}

.seller-onboarding li.done > b {
  font-size: 0;
}

.seller-onboarding strong,
.seller-onboarding small {
  display: block;
}

.seller-onboarding strong {
  font-size: 13px;
}

.seller-onboarding small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.seller-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0;
  border: 1px solid var(--line);
  background: #fff;
}

.seller-metrics .metric {
  min-width: 0;
  padding: 22px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.seller-metrics .metric:last-child {
  border-right: 0;
}

.seller-metrics .metric strong {
  margin: 7px 0 4px;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.04em;
}

.seller-metrics .metric small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-metrics .needs-attention {
  box-shadow: inset 0 3px 0 var(--brand);
}

.seller-alerts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.seller-alerts button {
  min-height: 74px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #d8b9bf;
  background: #fff8f7;
  text-align: left;
}

.seller-alerts button > b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
}

.seller-alerts strong,
.seller-alerts small {
  display: block;
}

.seller-alerts strong {
  font-size: 12px;
}

.seller-alerts small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.seller-alerts i {
  font-style: normal;
}

.seller-grid {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.78fr);
  gap: 24px;
  align-items: start;
}

.seller-setup,
.seller-products,
.seller-orders {
  scroll-margin-top: 140px;
}

.seller-setup {
  position: sticky;
  top: 136px;
}

.seller-setup h2,
.seller-section-head h2 {
  margin: 5px 0 18px;
  font-size: 23px;
}

.panel-kicker {
  color: var(--brand);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.seller-main {
  min-width: 0;
}

.seller-products {
  padding: 0;
  overflow: hidden;
}

.seller-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.seller-section-head h2 {
  margin-bottom: 4px;
}

.seller-search input {
  width: min(220px, 30vw);
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
  color: var(--ink);
}

.seller-search input:focus {
  border-color: var(--brand);
  background: #fff;
}

.seller-product-filters {
  display: flex;
  gap: 16px;
  align-items: center;
  overflow-x: auto;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.seller-product-filters button {
  min-height: 44px;
  flex: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.seller-product-filters button[aria-pressed="true"] {
  border-color: var(--brand);
  color: var(--ink);
}

#seller-product-result {
  margin-left: auto;
  flex: none;
  color: var(--muted);
  font-size: 9px;
}

.seller-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 24px;
}

.seller-item[hidden] {
  display: none;
}

.seller-item > .product-visual {
  width: 82px;
  height: 102px;
  flex: none;
  border-radius: 3px;
}

.seller-item-copy {
  min-width: 0;
}

.seller-item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.seller-item h3 {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-status {
  flex: none;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
}

.seller-status.active::before {
  content: "";
  width: 5px;
  height: 5px;
  display: inline-block;
  margin-right: 5px;
  border-radius: 50%;
  background: #2f6a46;
}

.seller-item-data {
  display: grid;
  grid-template-columns: 1fr 0.65fr 1fr;
  gap: 18px;
  margin: 10px 0;
}

.seller-item-data small,
.seller-item-data strong {
  display: block;
}

.seller-item-data small {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.seller-item-data strong {
  margin-top: 2px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-item-data .low strong {
  color: var(--brand);
}

.seller-tools {
  gap: 18px;
}

.seller-tools .text-button {
  min-height: 34px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.seller-tools .text-button:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seller-orders {
  margin-top: 32px;
}

.seller-orders > .seller-section-head {
  padding-inline: 0;
}

.seller-order-filters {
  margin: 16px 0;
}

.seller-orders .order {
  border-radius: 5px;
}

.seller-orders .order-actions .button {
  border-color: var(--brand);
  color: var(--brand);
}

.seller-orders .order-actions .button:hover {
  background: var(--brand);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton::after {
    animation: none;
  }
}

@media (max-width: 760px) {
  .category-launcher {
    gap: 0 18px;
  }

  .skeleton-products {
    grid-template-columns: repeat(3, 1fr);
  }

  .seller-heading {
    align-items: start;
    flex-direction: column;
  }

  .seller-onboarding {
    grid-template-columns: 1fr;
  }

  .seller-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .seller-metrics .metric:nth-child(2) {
    border-right: 0;
  }

  .seller-metrics .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .seller-alerts,
  .seller-grid {
    grid-template-columns: 1fr;
  }

  .seller-setup {
    position: static;
  }
}

@media (max-width: 600px) {
  .container {
    padding-inline: 16px;
  }

  .topbar {
    min-height: 60px;
  }

  .commerce-hero {
    margin-top: 28px;
  }

  .commerce-heading h1 {
    max-width: 190px;
    font-size: 34px;
  }

  .commerce-heading p {
    max-width: 110px;
    text-align: right;
  }

  .category-launcher {
    margin-top: 24px;
  }

  .category-launcher a {
    min-height: 62px;
    padding: 13px 0 8px;
  }

  .home-shelves {
    padding-top: 42px;
  }

  .product-shelf + .product-shelf {
    margin-top: 54px;
  }

  .shelf-track {
    grid-auto-columns: minmax(156px, 45vw);
  }

  .catalog-toolbar {
    top: 60px;
  }

  .products {
    gap: 34px 10px;
  }

  .seller-banner {
    margin-block: 64px 50px;
    padding-block: 30px;
  }

  .mobile-nav {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.97);
  }

  .mobile-nav a.active {
    background: transparent;
    color: var(--brand);
  }

  .shelf-actions .shelf-clear {
    display: inline-grid;
  }

  .search-suggestions a {
    min-height: 66px;
  }

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

  .product-detail-section .purchase-actions {
    position: sticky;
    z-index: 8;
    bottom: calc(74px + env(safe-area-inset-bottom));
    margin: 20px -8px 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(247, 243, 236, 0.96);
    box-shadow: 0 -10px 34px rgba(26, 23, 24, 0.08);
    backdrop-filter: blur(16px);
  }

  .product-detail-section .open-cart-link {
    display: none;
  }

  .checkout-progress {
    gap: 5px;
  }

  .checkout-progress span {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    font-size: 9px;
  }

  .cart-group {
    margin-inline: -4px;
    padding: 14px;
  }

  #toast {
    width: calc(100% - 28px);
    max-width: none;
    justify-content: space-between;
  }

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

  .skeleton-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .seller-center {
    padding-bottom: 34px;
  }

  .seller-auth-gate {
    margin-block: 28px;
    padding: 30px 20px;
  }

  .seller-gate-benefits {
    grid-template-columns: 1fr;
  }

  .seller-heading {
    padding-block: 30px 22px;
  }

  .seller-heading-actions {
    width: 100%;
  }

  .seller-heading-actions .button {
    min-width: 0;
    flex: 1;
    padding-inline: 10px;
    font-size: 11px;
  }

  .seller-tabs {
    top: 118px;
    gap: 24px;
  }

  .seller-overview,
  .seller-setup,
  .seller-products,
  .seller-orders {
    scroll-margin-top: 180px;
  }

  .seller-onboarding {
    padding: 22px 18px;
  }

  .seller-metrics .metric {
    padding: 17px 14px;
  }

  .seller-metrics .metric strong {
    font-size: 21px;
  }

  .seller-alerts {
    gap: 8px;
  }

  .seller-alerts button {
    min-height: 82px;
  }

  .seller-grid {
    gap: 18px;
  }

  .seller-section-head {
    align-items: stretch;
    flex-direction: column;
    padding: 18px 16px;
  }

  .seller-search input {
    width: 100%;
  }

  .seller-product-filters {
    padding-inline: 16px;
  }

  .seller-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
  }

  .seller-item > .product-visual {
    width: 64px;
    height: 80px;
  }

  .seller-item-data {
    grid-template-columns: 1fr 0.6fr;
    gap: 10px;
  }

  .seller-item-data span:last-child {
    display: none;
  }

  .seller-tools {
    gap: 12px;
  }

  .seller-tools .text-button {
    min-height: 38px;
  }

  .seller-orders > .seller-section-head {
    flex-direction: row;
  }

  .seller-order-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
}

/* ui31: 2026 visual system — Vietnamese type, one icon language, calmer commerce */
:root {
  --ink: #1b1719;
  --muted: #70686a;
  --paper: #f8f5ef;
  --white: #fffdfa;
  --line: #ded6cd;
  --soft: #f1ece6;
  --brand: #70243a;
  --brand-strong: #511526;
  --brand-soft: #f6eaed;
  --accent: #9b6537;
  --control-line: #9c9290;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 10px 30px rgba(38, 24, 29, 0.07);
  --shadow-md: 0 28px 80px rgba(38, 24, 29, 0.14);
  --font-ui:
    "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html {
  color-scheme: light;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-ui);
}

body {
  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(112, 36, 58, 0.035),
      transparent 25rem
    ),
    var(--paper);
  letter-spacing: -0.008em;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ui-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke-width: 1.85;
}

.icon-leading,
.icon-trailing,
.button:has(> .ui-icon),
.text-button:has(> .ui-icon) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.icon-leading > .ui-icon,
.icon-trailing > .ui-icon,
.button > .ui-icon,
.text-button > .ui-icon {
  width: 16px;
  height: 16px;
}

.logo {
  gap: 2px;
  font-family: var(--font-ui);
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.075em;
}

.logo span {
  margin-left: 1px;
  font-family: var(--font-display);
  font-size: 1.12em;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.055em;
}

header {
  box-shadow: 0 1px 0 rgba(27, 23, 25, 0.035);
}

.topbar {
  min-height: 76px;
}

.topbar nav a {
  position: relative;
  min-height: 44px;
  padding-inline: 2px;
  border-bottom: 0;
  font-size: 12px;
  font-weight: 600;
}

.topbar nav a::after {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--brand);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition:
    opacity 160ms ease,
    transform 220ms var(--ease-out);
}

.topbar nav a:hover::after,
.topbar nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

#search-form {
  min-height: 46px;
  border-color: #e5ded7;
  border-radius: 12px;
  background: rgba(244, 239, 233, 0.85);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

#search-form:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(112, 36, 58, 0.1);
}

.search-submit,
.icon-button,
.cart-button,
.shelf-actions button {
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
}

.search-submit {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 8px;
}

.button,
.add,
.chip,
.filter-select,
.catalog-options label {
  border-radius: 9px;
}

.button {
  min-height: 46px;
  padding-inline: 18px;
  font-size: 12px;
  font-weight: 700;
  transition:
    transform 160ms var(--ease-out),
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.button:hover:not(:disabled),
.add:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:active:not(:disabled),
.add:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
}

.button:hover {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
  box-shadow: 0 8px 22px rgba(81, 21, 38, 0.16);
}

.button.outline:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-strong);
  box-shadow: none;
}

.commerce-heading h1,
.page-heading h1,
.feed-heading h1,
.admin-heading h1,
.seller-heading h1,
.product-title {
  font-family: var(--font-ui);
  font-weight: 800;
  letter-spacing: -0.058em;
}

.commerce-heading h1,
.page-heading h1,
.feed-heading h1 {
  font-size: clamp(38px, 4.6vw, 64px);
}

.eyebrow,
.panel-kicker {
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.category-launcher {
  gap: 12px;
}

.category-launcher a {
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 250, 0.7);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 200ms var(--ease-out),
    box-shadow 200ms ease;
}

.category-launcher a:hover {
  border-color: rgba(112, 36, 58, 0.48);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.category-launcher strong {
  font-size: 13px;
  font-weight: 700;
}

.category-launcher b .ui-icon,
.shop-directory-card > b .ui-icon,
.story-arrow .ui-icon {
  width: 17px;
  height: 17px;
}

.rail-card-visual,
.product-visual {
  border-radius: 10px;
  background: #eeeae4;
}

.product-photo {
  transition:
    transform 420ms var(--ease-out),
    filter 200ms ease;
}

.rail-card:hover .product-photo,
.product:hover .product-photo {
  transform: scale(1.025);
}

.product h3,
.rail-card h3 {
  margin-top: 6px;
  color: #2a2426;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.42;
}

.product-meta,
.product-shop {
  font-size: 9px;
}

.product-bottom strong,
.rail-card .product-bottom strong {
  font-size: 14px;
  font-weight: 800;
}

.save {
  width: 38px;
  height: 38px;
  border-radius: 999px;
}

.add {
  min-height: 38px;
  border-radius: 9px;
  font-weight: 700;
}

.official-mark > span .ui-icon,
.official-mark.compact > span .ui-icon {
  width: 10px;
  height: 10px;
  stroke-width: 2.6;
}

.shop-link-arrow {
  display: inline-flex;
}

.shop-link-arrow .ui-icon {
  width: 13px;
  height: 13px;
}

.feed-entry,
.feed-aside,
.settings-card,
.panel,
.order,
.booking-card,
.admin-panel,
.admin-kpis,
.shop-directory-card {
  border-radius: 14px;
}

.feed-entry,
.settings-card,
.panel,
.order,
.booking-card,
.shop-directory-card {
  background: rgba(255, 253, 250, 0.9);
}

.feed-caption {
  height: auto;
  min-height: 0;
  max-height: none;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  font-size: 12px;
  line-height: 1.6;
}

.feed-media .product-visual {
  border-radius: 0;
}

.feed-end span,
.purchase-benefits i,
.security-status li b,
.official-assurance b {
  display: inline-grid;
  place-items: center;
  color: var(--brand);
}

.feed-end span .ui-icon,
.purchase-benefits i .ui-icon,
.security-status li b .ui-icon,
.official-assurance b .ui-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.shop-directory-card {
  min-height: 112px;
  padding: 18px;
  border-color: var(--line);
}

.shop-directory-card:hover {
  border-color: rgba(112, 36, 58, 0.5);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.shop-directory-card small {
  display: flex;
  align-items: center;
  gap: 4px;
}

.shop-directory-card small .ui-icon {
  width: 12px;
  height: 12px;
}

.official-brand-avatar strong,
.shop-hero.official-shop h1 {
  font-family: var(--font-ui);
}

.official-brand-avatar,
.shop-hero.official-shop,
.checkout-method,
.checkout-fulfillment,
.food-operations,
.shop-operations {
  border-radius: 12px;
}

dialog {
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.modal-head {
  min-height: 66px;
}

#toast {
  border-radius: 12px;
  background: #201a1c;
  box-shadow: 0 18px 50px rgba(27, 23, 25, 0.2);
}

:focus-visible {
  outline: 3px solid #b96078;
  outline-offset: 3px;
}

.skeleton {
  background: linear-gradient(100deg, #ede8e1 20%, #f8f5f0 42%, #ede8e1 64%);
  background-size: 240% 100%;
  animation: ui31-shimmer 1.4s linear infinite;
}

@keyframes ui31-shimmer {
  to {
    background-position-x: -240%;
  }
}

@media (max-width: 900px) {
  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .topbar {
    padding-block: 11px;
  }

  .topbar .logo {
    font-size: 27px;
  }

  .mobile-nav {
    justify-content: center;
    padding: 6px max(8px, env(safe-area-inset-left))
      calc(6px + env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-right));
    border-top-color: rgba(73, 55, 61, 0.14);
    background: rgba(255, 253, 250, 0.94);
    box-shadow: 0 -12px 40px rgba(38, 24, 29, 0.1);
  }

  .mobile-nav a,
  .mobile-nav button {
    max-width: 112px;
    min-height: 56px;
    border-radius: 12px;
  }

  .mobile-nav a.active {
    background: var(--brand-soft);
    color: var(--brand);
  }

  .mobile-nav a span,
  .mobile-nav button span {
    font-size: 9px;
    font-weight: 700;
  }

  .mobile-nav .ui-icon {
    width: 22px;
    height: 22px;
  }

  .category-launcher a {
    min-height: 86px;
  }
}

@media (max-width: 560px) {
  .container {
    padding-inline: 14px;
  }

  .commerce-heading h1,
  .page-heading h1,
  .feed-heading h1 {
    font-size: 38px;
  }

  .category-launcher {
    gap: 8px;
  }

  .category-launcher a {
    min-height: 78px;
    padding: 13px;
  }

  .mobile-nav a span,
  .mobile-nav button span {
    font-size: 8.5px;
  }

  .feed-caption {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

/* ui35: faster price-to-cart scan and clear one-tap confirmation */
.product-bottom {
  min-height: 44px;
  align-items: flex-end;
}

.product-bottom strong,
.rail-card .product-bottom strong {
  padding-bottom: 11px;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.add {
  min-width: 76px;
  height: 44px;
  min-height: 44px;
  flex: 0 0 auto;
  padding-inline: 11px;
  white-space: nowrap;
}

.add-label {
  display: inline !important;
  font-size: 11px !important;
  line-height: 1;
  white-space: nowrap;
}

.add.is-added,
.purchase-actions [data-add].is-added {
  border-color: #2f6953;
  background: #2f6953;
  color: #fff;
}

@media (max-width: 600px) {
  .rail-card .add-label::after,
  .product .add-label::after {
    content: none;
  }

  .rail-card .add,
  .product .add {
    min-width: 72px;
    padding-inline: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }
}

/* Transparent 11% marketplace economics */
.buyer-platform-fee dt,
.buyer-platform-fee dd {
  color: var(--brand);
  font-weight: 760;
}

.checkout-fee-promise {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  padding: 16px 18px;
  border: 1px solid rgba(104, 27, 43, 0.2);
  border-left: 3px solid var(--brand);
  border-radius: 4px;
  background: #fbf4f5;
}

.checkout-fee-promise b {
  color: var(--brand);
  font-size: 12px;
}

.checkout-fee-promise span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.seller-fee-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(420px, 1.45fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  margin-bottom: 18px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid #2a2324;
  border-radius: 6px;
  background: #171313;
  color: #fff;
}

.seller-fee-card h2 {
  margin: 5px 0 8px;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.035em;
}

.seller-fee-card p,
.seller-fee-card .panel-kicker {
  color: rgba(255, 255, 255, 0.58);
}

.seller-fee-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.seller-fee-card dl div {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
}

.seller-fee-card dl div:nth-child(even) {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.seller-fee-card dl div:nth-child(n + 3) {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.seller-fee-card dt {
  color: rgba(255, 255, 255, 0.54);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.seller-fee-card dd {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 760;
}

.seller-fee-card .seller-fee-net dd {
  color: #f2c8d0;
}

.seller-order-settlement {
  display: grid;
  gap: 8px;
  margin: -6px 0 10px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
}

.seller-order-settlement div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
}

.seller-order-settlement dd {
  margin: 0;
  color: var(--ink);
  font-weight: 720;
}

.seller-order-settlement .seller-order-net {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 760;
}

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

@media (max-width: 820px) {
  .seller-fee-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .checkout-fee-promise {
    grid-template-columns: 1fr;
  }

  .seller-fee-card {
    margin-inline: -16px;
    border-radius: 0;
  }

  .seller-fee-card dl {
    grid-template-columns: 1fr;
  }

  .seller-fee-card dl div:nth-child(even) {
    border-left: 0;
  }

  .seller-fee-card dl div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
}

/* Services, courses and booking operations — ui22 */
.service-hero {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #f0e8dc;
}

.service-hero .category-launcher {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-seller-banner {
  background: #20201e;
}

.listing-kind {
  display: inline-flex;
  width: max-content;
  margin-bottom: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(104, 27, 43, 0.22);
  border-radius: 999px;
  background: #f7ecee;
  color: var(--brand);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-price small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.book-action {
  background: var(--brand);
  color: #fff;
}

.service-listing-fields {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--soft);
}

.service-listing-fields[hidden] {
  display: none;
}

.category-listing-fields {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--soft);
}

.category-listing-fields[hidden] {
  display: none;
}

.time-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

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

.food-operations,
.shop-operations {
  display: grid;
  gap: 10px;
}

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

.shop-directory-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--white);
}

.shop-directory-card:hover {
  border-color: var(--ink);
}

.shop-directory-avatar {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.shop-directory-card > span:nth-child(2),
.shop-directory-facts {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.shop-directory-card small,
.shop-directory-card em,
.shop-directory-facts i {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-directory-card strong {
  font-size: 16px;
}

.shop-directory-facts {
  text-align: right;
}

.food-operations {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.food-operations span,
.shop-operations span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--white);
}

.food-operations small,
.shop-operations small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.food-operations strong,
.shop-operations strong {
  font-size: 12px;
  line-height: 1.45;
}

.shop-operations {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto 30px;
  max-width: var(--wide);
}

.checkout-fulfillments {
  display: grid;
  gap: 8px;
}

.checkout-fulfillment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  align-items: center;
  gap: 6px 14px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--white);
}

.checkout-fulfillment > span:first-child {
  display: grid;
  gap: 3px;
}

.checkout-fulfillment small,
.fulfillment-fixed {
  color: var(--muted);
  font-size: 11px;
}

.checkout-pickup-address {
  grid-column: 1 / -1;
}

.order-pickups {
  display: grid;
  gap: 4px;
}

@media (max-width: 600px) {
  .food-operations,
  .shop-operations,
  .shop-directory {
    grid-template-columns: 1fr;
  }

  .shop-directory-card {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .shop-directory-facts {
    display: none;
  }

  .checkout-fulfillment {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) {
  .commerce-hero:not(.service-hero) .category-launcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.activity-tabs {
  display: flex;
  gap: 26px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--line);
}

.activity-tabs a {
  padding: 0 1px 12px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.activity-tabs a[aria-current="page"] {
  border-color: var(--brand);
  color: var(--ink);
}

.booking-list {
  display: grid;
  gap: 16px;
}

.booking-card {
  padding: clamp(18px, 2.5vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.booking-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.booking-head h2 {
  margin: 1px 0 4px;
  font-size: 19px;
}

.booking-head .badge {
  flex: none;
}

.booking-facts {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
  padding-block: 18px;
  border-block: 1px solid var(--line);
}

.booking-facts div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.booking-facts small,
.booking-note small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-facts strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
}

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

.booking-note {
  margin-top: 15px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: var(--soft);
}

.booking-note p {
  margin: 4px 0 0;
  font-size: 11px;
}

.booking-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.booking-settlement {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.booking-settlement div {
  display: grid;
  gap: 3px;
  text-align: right;
}

.booking-settlement dt {
  color: var(--muted);
  font-size: 9px;
}

.booking-settlement dd {
  margin: 0;
  font-size: 12px;
  font-weight: 760;
}

.booking-test-note {
  margin: 14px 0 0;
  text-align: right;
}

.booking-summary {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.booking-summary h3 {
  margin: 2px 0 5px;
  font-size: 18px;
}

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

.seller-bookings {
  scroll-margin-top: 140px;
}

.seller-bookings .booking-card {
  box-shadow: none;
}

.seller-item-title > div {
  min-width: 0;
}

@media (max-width: 900px) {
  .service-hero .category-launcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .service-hero {
    margin-inline: -4px;
    padding: 22px 18px;
  }

  .service-hero .category-launcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .booking-head .badge {
    width: max-content;
  }

  .booking-facts {
    grid-template-columns: 1fr;
    gap: 13px;
  }

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

  .booking-settlement {
    justify-content: space-between;
  }

  .seller-bookings {
    scroll-margin-top: 180px;
  }
}

/* Transaction-first discovery feed — ui24 */
.feed-page {
  width: min(100%, 1120px);
  margin: clamp(26px, 4vw, 48px) auto 80px;
}

.feed-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.feed-heading h1 {
  margin: 3px 0 0;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.06em;
}

.feed-heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feed-heading-actions > span {
  color: var(--muted);
  font-size: 12px;
}

.feed-heading-actions .button {
  min-height: 38px;
  padding-inline: 13px;
  font-size: 11px;
}

.feed-tabs {
  display: flex;
  gap: 28px;
  margin-bottom: 28px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.feed-tabs a {
  min-height: 48px;
  display: grid;
  place-items: center;
  flex: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.feed-tabs a span {
  min-width: 20px;
  margin-left: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.feed-tabs a[aria-current="page"] {
  border-color: var(--brand);
  color: var(--ink);
}

.feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(24px, 3vw, 38px);
  align-items: start;
}

.feed-stream {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.feed-entry {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.feed-author {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
}

.feed-author-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feed-author-main > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.feed-author-main small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.feed-source {
  flex: none;
  padding: 4px 6px;
  border-radius: 999px;
  background: #f7ecee;
  color: var(--brand);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.feed-source.suggested {
  background: var(--soft);
  color: var(--muted);
}

.feed-media {
  display: block;
  background: var(--soft);
}

.feed-media .product-visual {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 0;
}

.feed-media .product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-body {
  padding: 14px 16px 16px;
}

.feed-caption {
  min-height: 52px;
  display: -webkit-box;
  margin: 0;
  padding: 0 16px 14px;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.feed-listing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  align-items: end;
}

.feed-listing .listing-kind {
  grid-column: 1;
  grid-row: 1;
}

.feed-availability {
  grid-column: 1 / -1;
  grid-row: 2;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-listing strong {
  grid-column: 1;
  grid-row: 3;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-listing b {
  grid-column: 2;
  grid-row: 3;
  color: var(--brand);
  font-size: 13px;
}

.feed-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
}

.feed-secondary-actions {
  display: flex;
  gap: 7px;
}

.feed-save {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.feed-save .ui-icon {
  width: 17px;
  height: 17px;
}

.feed-actions .add {
  min-width: 128px;
}

.feed-aside {
  position: sticky;
  top: 136px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--soft);
}

.feed-aside h2 {
  margin: 6px 0 14px;
  font-size: 22px;
}

.feed-aside ul {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.feed-aside li {
  padding-left: 15px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.feed-aside li::before {
  content: "✓";
  margin-left: -15px;
  margin-right: 6px;
  color: var(--brand);
  font-weight: 800;
}

.feed-aside > p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.feed-more,
.feed-end {
  grid-column: 1 / -1;
}

.feed-more {
  width: 100%;
  min-height: 48px;
}

.feed-end {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.feed-end > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--brand);
  font-weight: 800;
}

.feed-end strong {
  color: var(--ink);
  font-size: 12px;
}

.feed-end small {
  font-size: 10px;
}

.seller-feed {
  margin-top: 32px;
  padding: 0;
  overflow: hidden;
  scroll-margin-top: 140px;
}

.seller-feed-create {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.feed-compose-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.feed-compose-preview {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.feed-compose-preview[hidden] {
  display: none;
}

.feed-compose-preview .product-visual {
  width: 72px;
  height: 72px;
  border-radius: 3px;
}

.feed-compose-preview > div:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.feed-compose-preview strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-compose-preview small {
  color: var(--brand);
  font-size: 11px;
  font-weight: 750;
}

.share-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 18px;
}

.share-field input {
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--soft);
  color: var(--ink);
}

.seller-post-list {
  display: grid;
}

.seller-post {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.seller-post:last-child {
  border-bottom: 0;
}

.seller-post > div {
  min-width: 0;
}

.seller-post strong,
.seller-post p,
.seller-post small {
  display: block;
}

.seller-post strong {
  margin-top: 8px;
  font-size: 12px;
}

.seller-post p {
  margin: 4px 0;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-post small {
  color: var(--muted);
  font-size: 9px;
}

.seller-feed-empty {
  display: grid;
  gap: 4px;
  padding: 24px;
  color: var(--muted);
  font-size: 10px;
}

.seller-feed-empty strong {
  color: var(--ink);
  font-size: 12px;
}

@media (max-width: 760px) {
  .feed-layout {
    grid-template-columns: 1fr;
  }

  .feed-aside {
    display: none;
  }

  .feed-stream {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .feed-page {
    margin-top: 16px;
  }

  .feed-heading {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding-bottom: 10px;
  }

  .feed-heading .eyebrow {
    display: none;
  }

  .feed-heading h1 {
    margin: 0;
    font-size: 32px;
  }

  .feed-heading-actions > span {
    display: none;
  }

  .feed-heading-actions .button {
    min-height: 40px;
  }

  .feed-tabs {
    position: sticky;
    z-index: 9;
    top: 118px;
    gap: 22px;
    margin-bottom: 14px;
    background: rgba(247, 243, 236, 0.96);
    backdrop-filter: blur(14px);
  }

  .feed-tabs a {
    min-height: 44px;
  }

  .feed-stream {
    gap: 18px;
  }

  .feed-entry {
    margin-inline: -4px;
  }

  .feed-media .product-visual {
    aspect-ratio: 8 / 5;
  }

  .feed-media .product-photo {
    object-fit: contain;
  }

  .feed-caption {
    min-height: 0;
  }

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

  .feed-listing b {
    margin-top: 0;
  }

  .feed-actions .add {
    min-width: 114px;
  }

  .feed-save span {
    display: none;
  }

  .feed-save {
    width: 42px;
    justify-content: center;
    padding: 0;
  }

  .seller-feed {
    scroll-margin-top: 180px;
  }

  .seller-feed-create,
  .seller-post {
    padding-inline: 16px;
  }

  .share-field {
    grid-template-columns: 1fr;
  }

  .mobile-nav a span,
  .mobile-nav button span {
    font-size: 8px;
  }
}

/* Checkout delivery, receipt confirmation and account center */
.checkout-address {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.checkout-address-line {
  grid-column: 1 / -1;
}

.checkout-method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.checkout-method > span {
  display: grid;
  gap: 4px;
  padding: 13px 15px;
}

.checkout-method > span + span {
  border-left: 1px solid var(--line);
}

.checkout-method b {
  font-size: 11px;
}

.checkout-method small {
  color: var(--muted);
  font-size: 9px;
}

.order-delivery {
  display: grid;
  grid-template-columns: minmax(140px, 0.55fr) minmax(220px, 1.45fr);
  gap: 20px;
  margin: 14px 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
}

.order-delivery > div {
  display: grid;
  gap: 3px;
}

.order-delivery small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.order-delivery strong {
  font-size: 12px;
}

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

.settings-auth-gate {
  max-width: 680px;
  display: grid;
  justify-items: start;
  gap: 14px;
  margin: clamp(60px, 10vw, 130px) auto;
  padding: clamp(30px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.settings-auth-gate h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
}

.settings-auth-gate p {
  max-width: 520px;
  color: var(--muted);
}

.account-center {
  padding-bottom: 80px;
}

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

.settings-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.settings-card h2 {
  margin: 5px 0 10px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.settings-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.account-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #171313;
  color: #fff;
}

.account-summary h2 {
  color: #fff;
}

.account-summary small,
.account-summary p {
  color: rgba(255, 255, 255, 0.58);
}

.settings-icon {
  width: 64px;
  height: 64px;
  display: grid;
  flex: 0 0 64px;
  place-items: center;
  border-radius: 50%;
  background: #f4eee7;
  color: #681b2b;
  font-size: 25px;
  font-weight: 820;
}

.security-status ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.security-status li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
}

.security-status li b {
  color: var(--brand);
}

.preference-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.preference-row > span {
  display: grid;
  gap: 4px;
}

.preference-row strong {
  font-size: 12px;
}

.preference-row small {
  color: var(--muted);
  font-size: 10px;
}

.preference-row input {
  width: 42px;
  height: 24px;
  accent-color: var(--brand);
}

.settings-sessions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.danger-outline {
  border-color: #b44747 !important;
  color: #9a2f2f !important;
}

html[data-density="compact"] .products {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 30px 12px;
}

html[data-density="compact"] .product h3 {
  min-height: 0;
  font-size: 12px;
}

html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* ui25: resilient buying flow and Vietnamese-first commerce language */
.feed-caption {
  height: 74px;
  min-height: 74px;
  max-height: 74px;
  overflow: hidden;
  contain: paint;
}

.feed-media .product-visual {
  aspect-ratio: 4 / 3;
}

.feed-media .product-photo {
  object-fit: contain;
}

.purchase-primary {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.purchase-primary .button {
  min-width: 0;
  padding-inline: 12px;
}

.purchase-promise {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
  border-block: 1px solid var(--line);
}

.purchase-promise span {
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.purchase-promise span + span {
  border-left: 1px solid var(--line);
}

.purchase-promise strong {
  color: var(--ink);
  font-size: 11px;
}

.checkout-save-address {
  grid-column: 1 / -1;
  width: max-content;
  min-height: 40px;
  margin-top: -4px;
}

.checkout-review[open] summary {
  margin-bottom: 10px;
  font-weight: 750;
}

@media (max-width: 760px) {
  .feed-caption {
    height: 68px;
    min-height: 68px;
    max-height: 68px;
  }

  .feed-media .product-visual {
    aspect-ratio: 8 / 5;
  }

  .purchase-promise {
    grid-template-columns: 1fr;
  }

  .purchase-promise span {
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: baseline;
    padding: 9px 0;
  }

  .purchase-promise span + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .product-detail-section .purchase-actions {
    grid-template-columns: minmax(0, 1.5fr) minmax(94px, 0.5fr);
  }

  .product-detail-section .detail-save span {
    display: none;
  }

  .product-detail-section .detail-save {
    padding-inline: 10px;
  }
}

@media (max-width: 600px) {
  .rail-card .add-label,
  .product .add-label {
    font-size: 0;
  }

  .rail-card .add-label::after,
  .product .add-label::after {
    content: "Giỏ";
    font-size: 10px;
  }

  .checkout-save-address {
    width: 100%;
  }
}

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

  html[data-density="compact"] .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .checkout-address,
  .checkout-method,
  .order-delivery {
    grid-template-columns: 1fr;
  }

  .checkout-method > span + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .settings-sessions {
    align-items: stretch;
    flex-direction: column;
  }

  html[data-density="compact"] .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ui20: denser buying information, quieter trust marks and resilient navigation */
.product-meta {
  min-height: 17px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -2px 0 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  white-space: nowrap;
}

.product-meta span + span::before {
  content: "·";
  margin-right: 7px;
  color: #b2aaa2;
}

.product-bottom {
  gap: 10px;
}

.add {
  min-width: 70px;
  height: 38px;
  justify-content: center;
  gap: 5px;
  padding-inline: 10px;
}

.add .ui-icon {
  width: 15px;
  height: 15px;
}

.add-label {
  display: inline !important;
  font-size: 11px;
  font-weight: 720;
}

.rail-card .official-mark.compact {
  padding-right: 2px;
}

.rail-card .official-mark.compact b {
  display: none;
}

.home-shelves + .catalog-section {
  margin-top: clamp(60px, 7vw, 96px);
  padding-top: clamp(38px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.shelf-track {
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 2px;
}

@media (max-width: 1080px) {
  .topbar {
    gap: 16px;
  }

  #search-form {
    max-width: none;
  }

  .logo {
    flex: none;
  }
}

@media (max-width: 900px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .container {
    padding-inline: 16px;
  }

  .topbar {
    min-height: 0;
    flex-wrap: wrap;
    gap: 9px 12px;
    padding-block: 10px;
  }

  .topbar .logo {
    font-size: 29px;
  }

  .header-actions {
    margin-left: auto;
  }

  #account-button,
  #saved-button,
  .topbar .cart-button {
    display: none;
  }

  #search-form {
    order: 3;
    width: 100%;
    min-width: 100%;
    min-height: 44px;
  }

  #search {
    width: 100%;
  }

  .mobile-nav {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 0;
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -8px 28px rgba(26, 23, 24, 0.08);
    backdrop-filter: blur(16px);
  }

  .mobile-nav a,
  .mobile-nav button {
    min-width: 0;
    min-height: 48px;
    flex: 1;
    display: grid;
    place-items: center;
    gap: 2px;
    padding: 4px 2px;
    border: 0;
    border-radius: 4px;
  }

  .mobile-nav b {
    font-weight: 500;
  }

  .mobile-nav .ui-icon {
    width: 21px;
    height: 21px;
  }

  .mobile-nav a span,
  .mobile-nav button span {
    font-size: 9px;
    font-weight: 700;
  }

  .mobile-nav a.active {
    background: var(--soft);
    color: var(--brand);
  }

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

  .catalog-toolbar {
    position: static;
  }

  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .chips::-webkit-scrollbar {
    display: none;
  }

  footer {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 520px) {
  .shelf-actions [data-rail-shift] {
    display: none;
  }

  .product-meta {
    gap: 5px;
    font-size: 9px;
  }

  .product-meta span + span::before {
    margin-right: 5px;
  }

  .add {
    min-width: 62px;
    padding-inline: 8px;
  }

  .add-label {
    font-size: 10px;
  }

  .rail-card .add-label,
  .product .add-label {
    font-size: 0;
  }

  .rail-card .add-label::after,
  .product .add-label::after {
    content: "Giỏ";
    font-size: 10px;
  }
}

.detail-stock {
  margin: -10px 0 18px;
}

.product-description {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.product-description summary {
  padding: 16px 0 10px;
  font-size: 12px;
  font-weight: 780;
  cursor: pointer;
}

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

@media (max-width: 760px) {
  .product-detail-section .detail-grid > .product-visual {
    width: 100%;
    height: auto;
    max-height: 290px;
    aspect-ratio: 4 / 3;
  }

  .product-detail-section .detail-grid > .product-visual .product-photo {
    object-fit: contain;
  }

  .product-detail-section .detail-grid > .product-visual .art {
    width: 100%;
    height: 100%;
    display: block;
  }

  .product-detail-section .detail-info {
    padding-block: 10px;
  }

  .product-detail-section .product-title {
    margin-block: 12px;
    font-size: 34px;
  }

  .product-detail-section .detail-price {
    margin-block: 10px 16px;
  }

  .product-detail-section .detail-stock {
    margin-bottom: 14px;
  }

  .product-detail-section .purchase-benefits {
    margin-block: 16px;
    padding: 13px;
  }
}

/* ui26: accessibility, failure states and final interaction polish */
:root {
  --control-line: #90877f;
}

.button.outline,
.feed-save,
.share-field input,
.qty,
.filter-select {
  border-color: var(--control-line);
}

:focus-visible {
  outline-width: 3px;
}

.image-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  text-align: center;
  pointer-events: none;
}

button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.52;
}

@media (max-width: 900px) {
  .mobile-nav a span,
  .mobile-nav button span {
    font-size: 10px;
  }

  .mobile-nav a,
  .mobile-nav button {
    min-height: 50px;
  }
}

@media (forced-colors: active) {
  :focus-visible {
    outline-color: Highlight;
  }

  .button,
  .feed-save,
  .official-mark {
    border: 1px solid ButtonText;
  }
}

/* ui27: private marketplace operator dashboard */
.admin-dashboard {
  padding: 46px 0 90px;
}

.admin-heading,
.admin-heading-actions,
.admin-panel-head,
.admin-alerts,
.admin-listing-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-heading {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.admin-heading h1 {
  margin: 7px 0 5px;
  font-family: var(--font-ui);
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.admin-heading p,
.admin-panel-head p {
  margin: 0;
  color: var(--muted);
}

.admin-mode,
.listing-state,
.admin-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 28px 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.admin-kpis article {
  min-width: 0;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.admin-kpis article:last-child {
  border-right: 0;
}

.admin-kpis small,
.admin-kpis span,
.admin-panel-head small,
.admin-table td small,
.admin-activity small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.admin-kpis strong {
  display: block;
  margin: 12px 0 9px;
  font-size: clamp(23px, 2.4vw, 36px);
  letter-spacing: -0.04em;
}

.admin-kpis .needs-action strong,
.admin-count.hot,
.admin-warning {
  color: var(--brand);
}

.admin-alerts {
  justify-content: flex-start;
  padding: 15px 18px;
  border: 1px solid #e5d4d7;
  border-radius: 12px;
  background: #fbf4f5;
}

.admin-alerts > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-right: 18px;
  border-right: 1px solid #e5d4d7;
}

.admin-alerts > div:last-child {
  border: 0;
}

.admin-alerts b {
  color: var(--brand);
  font-size: 20px;
}

.admin-alerts span {
  color: #5f5053;
  font-size: 12px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  gap: 16px;
  margin-top: 16px;
}

.admin-panel {
  min-width: 0;
  margin-top: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.admin-grid .admin-panel {
  margin-top: 0;
}

.admin-panel-head {
  align-items: flex-start;
  margin-bottom: 20px;
}

.admin-panel-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.admin-panel-head > strong {
  text-align: right;
}

.admin-panel-head > strong small {
  margin-top: 4px;
  font-weight: 500;
}

.admin-chart {
  height: 210px;
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  align-items: end;
  gap: clamp(4px, 1vw, 12px);
  padding-top: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-bar-column {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.admin-bar {
  width: 100%;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  background: var(--brand);
}

.admin-bar-column small {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.admin-status-list {
  display: grid;
  gap: 16px;
}

.admin-status-list span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  font-size: 12px;
}

.admin-status-list i,
.seller-gmv {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: var(--soft);
  overflow: hidden;
}

.admin-status-list i b,
.seller-gmv b {
  display: block;
  height: 100%;
  background: var(--brand);
}

.admin-table-wrap {
  max-width: 100%;
  overflow: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.admin-table th {
  padding: 10px 13px;
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.admin-table td:first-child {
  min-width: 190px;
}

.admin-table td strong {
  display: block;
}

.admin-table td .seller-gmv {
  width: 100px;
  margin-top: 7px;
}

.admin-warning {
  margin-top: 4px;
}

.listing-state.live {
  background: #e9f2eb;
  color: #28633a;
}

.listing-state.hidden {
  background: var(--soft);
  color: var(--muted);
}

.admin-listing-tools {
  justify-content: flex-start;
  margin-bottom: 12px;
}

.admin-listing-tools label:first-child {
  flex: 1;
}

.admin-listing-tools input,
.admin-listing-tools select {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--control-line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.admin-listing-table {
  max-height: 620px;
}

.admin-listing-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
}

.admin-moderate {
  min-height: 36px;
  white-space: nowrap;
}

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

.admin-activity {
  display: grid;
}

.admin-activity > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.admin-activity > div:last-child {
  border: 0;
}

.admin-activity > div > span:last-child,
.admin-activity time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.admin-privacy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

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

  .admin-kpis article:nth-child(2) {
    border-right: 0;
  }

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

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

  .admin-alerts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-alerts > div {
    border: 0;
  }
}

@media (max-width: 600px) {
  .admin-dashboard {
    padding-top: 26px;
  }

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

  .admin-heading-actions {
    align-items: flex-end;
    flex-direction: column;
  }

  .admin-heading .button {
    padding-inline: 12px;
  }

  .admin-kpis article {
    padding: 16px;
  }

  .admin-alerts,
  .admin-listing-tools {
    grid-template-columns: 1fr;
    display: grid;
  }

  .admin-chart {
    height: 170px;
    gap: 3px;
  }

  .admin-bar-column:nth-child(even) small {
    display: none;
  }

  .admin-panel {
    padding: 17px;
  }

  .admin-listing-table {
    max-height: none;
    overflow: visible;
  }

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

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

  .admin-listing-table .admin-listing-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-listing-table .admin-listing-row td {
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .admin-listing-table .admin-listing-row td:first-child {
    grid-column: 1 / -1;
  }

  .admin-listing-table .admin-listing-row td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 760;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
}

/* ui31 cascade lock: intentional final authority for shared primitives */
.logo {
  font-family: var(--font-ui);
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.075em;
}

.logo span {
  font-family: var(--font-display);
  font-size: 1.12em;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.ui-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-leading,
.icon-trailing,
.button:has(> .ui-icon),
.text-button:has(> .ui-icon) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.icon-leading > .ui-icon,
.icon-trailing > .ui-icon,
.button > .ui-icon,
.text-button > .ui-icon {
  width: 16px;
  height: 16px;
}

.commerce-heading h1,
.page-heading h1,
.feed-heading h1,
.admin-heading h1,
.seller-heading h1,
.product-title {
  font-family: var(--font-ui);
  font-weight: 800;
  letter-spacing: -0.058em;
}

.category-launcher a,
.feed-entry,
.feed-aside,
.settings-card,
.panel,
.order,
.booking-card,
.admin-panel,
.admin-kpis,
.shop-directory-card,
.checkout-method,
.checkout-fulfillment,
.food-operations,
.shop-operations {
  border-radius: 12px;
}

.rail-card-visual,
.product-visual {
  border-radius: 10px;
}

.feed-caption {
  height: auto;
  min-height: 0;
  max-height: none;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

dialog {
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
  .mobile-nav {
    justify-content: center;
    padding: 6px max(8px, env(safe-area-inset-left))
      calc(6px + env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-right));
    border-top-color: rgba(73, 55, 61, 0.14);
    background: rgba(255, 253, 250, 0.94);
    box-shadow: 0 -12px 40px rgba(38, 24, 29, 0.1);
  }

  .mobile-nav a,
  .mobile-nav button {
    max-width: 112px;
    min-height: 56px;
    border-radius: 12px;
  }

  .mobile-nav a.active {
    background: var(--brand-soft);
    color: var(--brand);
  }

  .mobile-nav .ui-icon {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 560px) {
  .feed-caption {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

/* ui32: contextual local-commerce location UX */
.header-location {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.header-location:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.header-location .ui-icon {
  width: 17px;
  height: 17px;
  color: var(--brand);
}

.empty-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.location-context {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 14px 0 2px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand-soft) 48%, white);
}

.location-context-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: var(--surface);
  color: var(--brand);
}

.location-context small,
.location-context strong {
  display: block;
}

.location-context small {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.location-context strong {
  font-size: 15px;
}

.location-sheet > p:first-child {
  margin-top: 0;
  color: var(--muted);
}

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

.location-grid .button {
  justify-content: flex-start;
  min-height: 48px;
  text-align: left;
}

.location-current {
  width: 100%;
  min-height: 48px;
}

.location-sheet > .text-button {
  display: block;
  margin: 12px auto 0;
}

.location-privacy {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 560px) {
  .location-context {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    padding: 10px;
  }

  .location-context-icon {
    width: 38px;
    height: 38px;
  }

  .location-context .button {
    min-height: 42px;
    padding-inline: 12px;
  }

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

  .empty-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 1180px) {
  .header-location {
    width: 44px;
    justify-content: center;
    padding: 0;
  }

  .header-location span {
    display: none;
  }
}

/* ui34: icon-led, compact marketplace language */
.icon-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
}

.icon-kicker .ui-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.category-launcher a {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
}

.category-icon {
  grid-row: 1 / 3;
  grid-column: 1;
  align-self: center;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
}

.category-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.category-launcher strong,
.category-launcher small {
  grid-column: 2;
}

.category-launcher b {
  grid-row: 1 / 3;
  grid-column: 3;
}

.icon-page-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-title-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}

.page-title-icon .ui-icon {
  width: 23px;
  height: 23px;
}

.activity-tabs a,
.seller-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.activity-tabs .ui-icon,
.seller-tabs .ui-icon {
  width: 15px;
  height: 15px;
}

.metric-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
}

.metric-icon .ui-icon {
  width: 15px;
  height: 15px;
}

@media (max-width: 560px) {
  .category-launcher a {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .category-icon {
    width: 30px;
    height: 30px;
  }

  .page-title-icon {
    width: 42px;
    height: 42px;
  }
}
