:root {
  --brand: #bf0000;
  --brand-dark: #910000;
  --brand-deep: #650000;
  --gold: #f4c247;
  --gold-dark: #b77a21;
  --ink: #172033;
  --muted: #637083;
  --line: #d8dee8;
  --page: #f3f4f6;
  --card: #ffffff;
  --soft-red: #fff1f2;
  --shadow: 0 8px 24px rgba(20, 32, 51, .10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

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

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.commerce-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 3px solid var(--brand);
  background: white;
  color: var(--ink);
  box-shadow: 0 5px 18px rgba(20, 32, 51, .12);
}

.top-row {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 9px 14px 7px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--brand);
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
}

.brand strong,
.brand span {
  display: block;
  line-height: 1;
}

.brand strong {
  font-size: 1rem;
}

.brand span {
  margin-top: 3px;
  color: var(--brand-dark);
  font-size: .78rem;
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.site-nav a {
  border-radius: 999px;
  color: #475467;
  padding: 8px 10px;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 900;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus {
  background: var(--soft-red);
  color: var(--brand);
}

.deliver-chip,
.header-cart,
.signin-chip {
  border: 1px solid #e1e5eb;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.deliver-chip,
.signin-chip,
.header-cart {
  min-height: 44px;
  padding: 7px 10px;
  text-align: left;
}

.deliver-chip span,
.signin-chip span,
.header-cart span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1;
}

.deliver-chip strong,
.signin-chip strong,
.header-cart strong {
  display: block;
  margin-top: 4px;
  color: var(--brand-dark);
  font-size: .82rem;
  line-height: 1;
}

.signin-chip {
  justify-self: end;
}

.search-row {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(156px, 210px) 1fr 94px;
  gap: 0;
  padding: 0 14px 9px;
}

.search-row select,
.search-row input,
.search-row button {
  min-height: 44px;
  border: 0;
}

.search-row select {
  border-radius: 8px 0 0 8px;
  background: #f1f2f4;
  color: #344054;
  padding: 0 10px;
  font-weight: 800;
}

.search-row input {
  width: 100%;
  outline: 0;
  padding: 0 14px;
  font-weight: 800;
}

.search-row button {
  border-radius: 0 8px 8px 0;
  background: var(--brand);
  color: white;
  font-weight: 900;
}

.category-nav {
  display: grid;
  gap: 8px;
}

.category-nav button {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 8px 10px;
  font-size: .82rem;
  font-weight: 900;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
}

.category-nav button.active {
  border-color: #efbdc4;
  background: var(--soft-red);
  color: var(--brand-dark);
}

.category-nav button em {
  min-width: 28px;
  border-radius: 999px;
  background: #f3f5f8;
  color: var(--muted);
  padding: 4px 7px;
  text-align: center;
  font-size: .68rem;
  font-style: normal;
  font-weight: 900;
}

.category-nav button.active em {
  background: white;
  color: var(--brand);
}

.category-group {
  display: grid;
  gap: 6px;
}

.category-group > button i {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.category-group.open > button i {
  transform: rotate(225deg);
}

.category-children {
  display: grid;
  gap: 5px;
  margin-left: 9px;
  border-left: 2px solid #f1c8ce;
  padding-left: 9px;
}

.category-children button {
  min-height: 32px;
  border-color: #e6ebf2;
  background: #fbfcfe;
  font-size: .76rem;
}

.store-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 14px 14px 96px;
}

.window-display {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 12px;
  margin-bottom: 12px;
}

.seasonal-display {
  display: block;
  overflow: hidden;
  border: 1px solid #e1e4e8;
  border-radius: 4px;
  background: white;
  box-shadow: var(--shadow);
}

.seasonal-banner {
  display: block;
  width: 100%;
  border: 0;
  background: white;
  padding: 0;
}

.seasonal-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.seasonal-banner:focus-visible {
  outline: 4px solid var(--brand);
  outline-offset: -4px;
}

.hero-window {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(83, 18, 25, .94) 0%, rgba(125, 23, 32, .84) 46%, rgba(125, 23, 32, .28) 100%),
    url("assets/nanyang-hero.png");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 28px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, .72);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-window h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 3.1rem);
  line-height: 1.02;
}

.hero-window p:not(.eyebrow) {
  max-width: 560px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .86);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.hero-actions button,
.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 900;
  text-decoration: none;
}

.hero-actions button {
  border: 0;
  background: var(--gold);
  color: #3f2302;
}

.hero-actions a {
  border: 1px solid rgba(255, 255, 255, .46);
  color: white;
}

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

.deal-stack article,
.shop-card,
.product-card,
.drawer-card,
.cart-line {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.deal-stack article {
  display: grid;
  align-content: center;
  min-height: 129px;
  border-radius: 4px;
  padding: 18px;
}

.deal-stack strong,
.deal-stack span {
  display: block;
}

.deal-stack strong {
  color: var(--brand-dark);
  font-size: 1.12rem;
}

.deal-stack span {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.4;
  font-size: .9rem;
}

.company-section,
.cooperation-section,
.contact-section,
.site-footer {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  box-shadow: var(--shadow);
}

.company-section {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) 1.18fr;
  gap: 18px;
  padding: 20px;
}

.company-section .eyebrow,
.cooperation-section .eyebrow,
.contact-section .eyebrow,
.category-sidebar .eyebrow {
  color: var(--brand);
}

.story-copy h2,
.cooperation-section h2,
.contact-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.48rem;
  line-height: 1.08;
}

.story-copy p:not(.eyebrow),
.cooperation-section p,
.contact-section p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.52;
}

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

.value-grid article,
.contact-grid article {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fbfcfe;
  padding: 14px;
}

.value-grid strong,
.value-grid span,
.contact-grid strong,
.contact-grid span {
  display: block;
}

.value-grid strong,
.contact-grid strong {
  color: var(--brand-dark);
}

.value-grid span,
.contact-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.42;
}

.cooperation-section {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background:
    linear-gradient(90deg, #ffffff 0%, #fff6f7 100%);
}

.cooperation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cooperation-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid #efbdc4;
  background: white;
  color: var(--brand);
  padding: 0 13px;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 900;
}

.cooperation-actions a:first-child {
  border-color: transparent;
  background: var(--brand);
  color: white;
}

.shop-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
}

.category-sidebar {
  position: sticky;
  top: 112px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  padding: 14px;
  box-shadow: var(--shadow);
}

.category-sidebar h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.08rem;
}

.sidebar-contact {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.sidebar-contact strong,
.sidebar-contact span,
.sidebar-contact a {
  display: block;
}

.sidebar-contact strong {
  color: var(--brand-dark);
}

.sidebar-contact span {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.4;
}

.sidebar-contact a {
  color: var(--brand);
  font-size: .8rem;
  font-weight: 900;
  text-decoration: none;
}

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

.shopping-cards {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.shop-card {
  border-radius: 4px;
  padding: 14px;
}

.shop-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
}

.shop-card p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.38;
  font-size: .86rem;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.card-head button,
.card-button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  padding: 0 14px;
  font-weight: 900;
}

.card-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}

.trade-card select {
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: white;
  padding: 0 10px;
  color: var(--ink);
  font-weight: 800;
}

.template-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.template-row article {
  display: grid;
  gap: 6px;
}

.template-row img {
  width: 100%;
  aspect-ratio: 1.3;
  object-fit: cover;
  border-radius: 4px;
  background: #f1f2f4;
}

.template-row strong {
  display: block;
  font-size: .74rem;
  line-height: 1.2;
}

.template-row span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .68rem;
}

.product-section,
.clearance-section {
  background: white;
  border-radius: 4px;
  border: 1px solid var(--line);
  padding: 14px;
  box-shadow: var(--shadow);
}

.clearance-section {
  margin-bottom: 12px;
  border-color: #ffd9a3;
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 48%);
}

.product-section {
  margin-bottom: 12px;
}

.contact-section {
  display: grid;
  gap: 16px;
  padding: 20px;
}

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

.contact-grid article:first-child,
.contact-grid article:nth-child(2),
.contact-grid article:nth-child(3) {
  background: #fffafa;
}

.contact-grid strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: .95rem;
  line-height: 1.28;
}

.contact-hours {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: .86rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
  padding: 14px 16px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

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

.section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.16rem;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .84rem;
}

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

.section-tools span {
  border-radius: 999px;
  background: var(--soft-red);
  color: var(--brand);
  padding: 7px 10px;
  font-size: .76rem;
  font-weight: 900;
}

.section-tools button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--brand);
  padding: 0 11px;
  font-size: .78rem;
  font-weight: 900;
}

.section-tools select {
  max-width: 220px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  padding: 0 32px 0 12px;
  font-size: .78rem;
  font-weight: 900;
}

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

.clearance-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 190px;
  border: 1px solid #f0c16e;
  border-radius: 10px;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 22px rgba(91, 47, 4, .08);
}

.clearance-photo {
  position: relative;
  background: #fff3d8;
}

.clearance-photo img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  display: block;
}

.clearance-photo span {
  position: absolute;
  left: 8px;
  top: 8px;
  border-radius: 999px;
  background: #ff9900;
  color: #3f2302;
  padding: 5px 8px;
  font-size: .68rem;
  font-weight: 900;
}

.clearance-body {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 13px;
}

.clearance-body strong {
  color: var(--ink);
  line-height: 1.2;
}

.clearance-body p,
.clearance-body small {
  margin: 0;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.32;
}

.clearance-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.clearance-facts span {
  border-radius: 999px;
  background: #fff3d8;
  color: #8a5200;
  padding: 4px 7px;
  font-size: .64rem;
  font-weight: 900;
}

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

.clearance-price span {
  color: #9ca3af;
  text-decoration: line-through;
  font-size: .78rem;
  font-weight: 800;
}

.clearance-price strong {
  color: var(--brand);
  font-size: 1.28rem;
}

.clearance-body button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #3f2302;
  font-weight: 900;
}

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

.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 360px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
  transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}

.product-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(20, 32, 51, .12);
  transform: translateY(-1px);
}

.product-image-button,
.product-title-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.photo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  background: #ffffff;
  border-bottom: 1px solid #eef2f6;
}

.photo-wrap img {
  width: 100%;
  height: 176px;
  object-fit: contain;
  display: block;
  padding: 12px;
}

.image-review-note {
  position: absolute;
  left: 10px;
  bottom: 9px;
  max-width: calc(100% - 20px);
  border: 1px solid #d9e1ec;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, .94);
  color: #5e6b7e;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.2;
}

.product-info {
  padding: 11px 11px 8px;
}

.product-info h3 {
  margin: 0;
  color: var(--ink);
  display: -webkit-box;
  min-height: 2.56em;
  overflow: hidden;
  font-size: .96rem;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-title-button:hover h3,
.product-title-button:focus h3 {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-info p,
.product-info small {
  display: block;
  color: var(--muted);
  line-height: 1.35;
}

.product-info p {
  margin: 5px 0 0;
  font-size: .78rem;
  min-height: 1.35em;
}

.product-info small {
  margin-top: 4px;
  font-size: .72rem;
}

.product-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
  max-height: 42px;
  overflow: hidden;
}

.product-facts span {
  border-radius: 999px;
  background: #f3f5f8;
  color: #475467;
  padding: 4px 7px;
  font-size: .63rem;
  font-weight: 800;
  line-height: 1.1;
}

.buy-row {
  display: grid;
  gap: 9px;
  padding: 0 11px 11px;
}

.product-price strong,
.product-price span {
  display: block;
}

.product-price strong {
  color: var(--brand);
  font-size: 1.08rem;
  line-height: 1;
}

.product-price > span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
}

.price-currency {
  display: inline-block !important;
  margin-right: 1px;
  vertical-align: top;
  font-size: .72rem;
  line-height: 1.5;
}

.price-whole {
  display: inline-block !important;
  font-size: 1.42rem;
  letter-spacing: 0;
}

.price-decimal {
  display: inline-block !important;
  vertical-align: top;
  font-size: .78rem;
  line-height: 1.35;
}

.price-request {
  display: inline-block !important;
  color: var(--brand-dark);
  font-size: 1rem;
  line-height: 1.2;
}

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

.details-link {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--brand);
  padding: 0 11px;
  font-size: .74rem;
  font-weight: 900;
}

.add-button {
  min-height: 36px;
  border: 1px solid #f0bc2a;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd96b 0%, var(--gold) 100%);
  color: #3f2302;
  padding: 0 12px;
  font-weight: 900;
}

.add-button:hover,
.add-button:focus,
.clearance-body button:hover,
.clearance-body button:focus {
  background: #efb42d;
}

.load-more-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(360px, 100%);
  min-height: 42px;
  margin: 16px auto 0;
  border: 1px solid #f1c6cc;
  border-radius: 999px;
  background: white;
  color: var(--brand);
  font-weight: 900;
  box-shadow: var(--shadow);
}

.stepper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  overflow: hidden;
  border: 1px solid #d7b05a;
  border-radius: 999px;
  background: #fff9df;
}

.stepper button {
  min-height: 34px;
  border: 0;
  background: var(--gold);
  color: #3f2302;
  font-weight: 900;
}

.stepper span {
  display: grid;
  place-items: center;
  color: #3f2302;
  font-size: .8rem;
  font-weight: 900;
}

.cart-bar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 42;
  width: 66px;
  height: 66px;
}

.cart-bar.empty {
  opacity: .96;
}

.cart-bar button {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  background: linear-gradient(180deg, #6e1721 0%, var(--brand-deep) 100%);
  color: white;
  padding: 0;
  text-align: center;
  box-shadow: 0 14px 30px rgba(20, 32, 51, .24);
}

.cart-symbol {
  position: relative;
  display: block;
  width: 42px;
  height: 34px;
  color: white;
}

.cart-symbol svg {
  width: 42px;
  height: 34px;
  display: block;
}

.cart-symbol path,
.cart-symbol circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-symbol strong {
  position: absolute;
  right: -12px;
  top: -13px;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid var(--brand-deep);
  border-radius: 999px;
  background: #ff9900;
  color: #3f2302;
  padding: 0 5px;
  font-size: .82rem;
  line-height: 1;
  font-weight: 950;
}

.cart-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cart-caption {
  position: absolute;
  right: 76px;
  bottom: 9px;
  display: none;
  width: 190px;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  padding: 8px 10px;
  text-align: left;
  box-shadow: 0 10px 26px rgba(20, 32, 51, .18);
}

.cart-caption strong,
.cart-caption em {
  display: block;
  font-style: normal;
}

.cart-caption strong {
  font-size: .82rem;
}

.cart-caption em {
  margin-top: 2px;
  color: var(--muted);
  font-size: .72rem;
}

.cart-bar:hover .cart-caption,
.cart-bar:focus-within .cart-caption {
  display: block;
}

.support-widget {
  position: fixed;
  right: 18px;
  bottom: 90px;
  z-index: 43;
}

.support-launcher {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  min-width: 0;
  min-height: 0;
  border: 2px solid #efbdc4;
  border-radius: 999px;
  background: white;
  color: var(--brand-dark);
  padding: 0;
  text-align: center;
  box-shadow: 0 14px 32px rgba(20, 32, 51, .18);
}

.support-launcher span {
  max-width: 42px;
  font-size: .72rem;
  line-height: 1.05;
  font-weight: 900;
}

.support-launcher strong {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 12px;
  height: 12px;
  overflow: hidden;
  border: 2px solid white;
  border-radius: 50%;
  background: #f59e0b;
  color: transparent;
  font-size: 0;
}

.support-launcher.open-now strong {
  background: #12b76a;
}

.support-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: min(380px, calc(100vw - 28px));
  max-height: min(640px, calc(100vh - 148px));
  display: grid;
  grid-template-rows: auto auto minmax(160px, 1fr) auto auto auto;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  padding: 12px;
  box-shadow: 0 18px 42px rgba(20, 32, 51, .24);
}

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

.support-head .eyebrow {
  color: var(--brand);
}

.support-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
}

.support-head button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--brand);
  padding: 0 10px;
  font-size: .75rem;
  font-weight: 900;
}

.support-hours {
  border-radius: 10px;
  background: #f8fafc;
  color: var(--muted);
  padding: 9px 10px;
  font-size: .78rem;
  line-height: 1.35;
}

.support-hours.open {
  background: #ecfdf3;
  color: #087443;
}

.support-hours.closed {
  background: var(--soft-red);
  color: var(--brand-dark);
}

.support-messages {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.support-message {
  max-width: 88%;
  border-radius: 12px;
  padding: 9px 10px;
  font-size: .82rem;
  line-height: 1.38;
}

.support-message.bot {
  background: #f3f5f8;
  color: var(--ink);
}

.support-message.user {
  justify-self: end;
  background: var(--brand);
  color: white;
}

.support-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.support-quick button,
.support-human-actions a {
  min-height: 32px;
  border: 1px solid #efbdc4;
  border-radius: 999px;
  background: white;
  color: var(--brand);
  padding: 0 10px;
  font-size: .72rem;
  font-weight: 900;
  text-decoration: none;
}

.support-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}

.support-form input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  outline: 0;
}

.support-form button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  padding: 0 13px;
  font-weight: 900;
}

.support-human-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.support-human-actions a.primary {
  border-color: transparent;
  background: var(--gold);
  color: #3f2302;
}

.product-detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 68;
}

.product-detail-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(960px, calc(100% - 28px));
  max-height: min(720px, calc(100vh - 28px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 16px;
  box-shadow: 0 24px 58px rgba(15, 23, 42, .28);
  transform: translate(-50%, -50%);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, .95fr) minmax(320px, 1.05fr);
  gap: 20px;
  margin-top: 12px;
}

.detail-gallery {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  background: #fff;
}

.detail-gallery img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  padding: 22px;
}

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

.detail-breadcrumb,
.detail-cn,
.detail-price span,
.detail-note span {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.detail-breadcrumb {
  font-size: .78rem;
  font-weight: 900;
}

.detail-main h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.58rem;
  line-height: 1.16;
}

.detail-cn {
  font-size: .94rem;
}

.detail-price {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.detail-price strong {
  display: block;
  color: var(--brand);
}

.detail-price .price-whole {
  font-size: 2.25rem;
}

.detail-price .price-currency {
  font-size: .9rem;
  line-height: 1.7;
}

.detail-price .price-decimal {
  font-size: .98rem;
  line-height: 1.7;
}

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

.detail-facts article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 10px;
}

.detail-facts span,
.detail-facts strong,
.detail-note strong,
.detail-note span {
  display: block;
}

.detail-facts span {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-facts strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: .88rem;
  line-height: 1.25;
}

.detail-note {
  border-radius: 10px;
  background: #fff8e1;
  padding: 12px;
}

.detail-note strong {
  color: #7a4d00;
}

.detail-note span {
  margin-top: 4px;
  font-size: .82rem;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
}

.detail-actions .add-button,
.detail-actions .stepper {
  min-height: 44px;
}

.checkout-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .48);
}

.drawer-card {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(560px, 100%);
  overflow: auto;
  border: 0;
  padding: 16px 14px 28px;
  box-shadow: -18px 0 40px rgba(15, 23, 42, .20);
}

.drawer-head,
.drawer-summary,
.mini-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.32rem;
}

.drawer-head .eyebrow {
  color: var(--muted);
}

.ghost-button,
.secondary-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--brand);
  padding: 0 12px;
  font-weight: 900;
}

.drawer-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 11px;
  margin: 13px 0;
}

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

.drawer-summary > strong {
  color: var(--brand);
  font-size: 1.18rem;
}

.drawer-summary span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.35;
}

.cart-lines {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.cart-line {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 8px;
  border-radius: 8px;
  box-shadow: none;
  padding: 10px;
}

.cart-line-image {
  width: 68px;
  height: 68px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  object-fit: contain;
}

.cart-line-info {
  min-width: 0;
}

.cart-line strong,
.cart-line span {
  display: block;
}

.cart-line span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.35;
}

.cart-line em {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--soft-red);
  color: var(--brand-dark);
  padding: 4px 7px;
  font-size: .68rem;
  font-style: normal;
  font-weight: 900;
}

.cart-line em.quote-triggered {
  background: #fff7df;
  color: #7a4b00;
}

.cart-controls {
  display: grid;
  grid-template-columns: 34px 48px 34px;
  gap: 0;
  align-items: start;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
}

.cart-controls input {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-right: 1px solid #e2e8f0;
  border-left: 1px solid #e2e8f0;
  border-radius: 0;
  padding: 7px 3px;
  text-align: center;
  appearance: textfield;
}

.cart-controls input::-webkit-outer-spin-button,
.cart-controls input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.cart-controls button {
  min-height: 36px;
  border: 0;
  border-radius: 0;
  background: white;
  color: var(--brand);
  padding: 0;
  font-weight: 900;
}

.cart-controls button:hover,
.cart-controls button:focus-visible {
  background: var(--soft-red);
}

.checkout-block {
  border-top: 1px solid #e5e7eb;
  padding-top: 14px;
  margin-top: 14px;
}

.mini-section-head {
  margin-bottom: 9px;
}

.mini-section-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.mini-section-head span {
  color: var(--brand);
  font-size: .74rem;
  font-weight: 900;
}

.account-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.account-choice button {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 11px;
  text-align: left;
}

.account-choice button.active {
  border-color: var(--brand);
  background: var(--soft-red);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.account-choice strong,
.account-choice span {
  display: block;
}

.account-choice strong {
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.25;
}

.account-choice span {
  margin-top: 5px;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.35;
}

.checkout-account-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
  border: 1px solid #d6e4ef;
  border-radius: 8px;
  background: #f7fbff;
  padding: 10px;
}

.checkout-account-status strong,
.checkout-account-status span {
  display: block;
}

.checkout-account-status strong {
  color: var(--ink);
  font-size: .86rem;
}

.checkout-account-status span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .72rem;
}

.checkout-account-status button {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: white;
  color: var(--brand);
  padding: 0 12px;
  font-weight: 900;
}

.checkout-account-actions,
.payment-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.checkout-account-actions button,
.payment-gate-actions button {
  min-height: 36px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: white;
  color: var(--brand);
  padding: 0 12px;
  font-weight: 900;
}

.checkout-account-actions button:last-child,
.payment-gate-actions button:last-child {
  background: var(--brand);
  color: white;
}

.assisted-access {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
  padding: 9px 10px;
}

.assisted-access summary {
  cursor: pointer;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 900;
}

.assisted-access label {
  margin-top: 9px;
}

.fields,
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: .78rem;
  font-weight: 900;
}

.fields input,
.checkout-block select,
.checkout-block textarea,
.checkout-block input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 11px;
  font-weight: 800;
}

.checkout-block textarea {
  resize: vertical;
}

.delivery-estimate-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  border: 1px solid #b9ddd2;
  border-radius: 8px;
  background: #f0fbf7;
  color: #0f6c58;
  padding: 11px;
}

.delivery-estimate-card::before {
  content: "\2713";
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #138a72;
  color: white;
  font-weight: 950;
  grid-row: 1 / span 2;
}

.delivery-estimate-card strong,
.delivery-estimate-card span {
  display: block;
}

.delivery-estimate-card span {
  margin-top: 3px;
  color: #4e746b;
  font-size: .74rem;
  line-height: 1.4;
}

.delivery-estimate-card small {
  grid-column: 2;
  color: #4e746b;
  font-size: .7rem;
  line-height: 1.4;
}

.checkout-note-details {
  margin-top: 10px;
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
}

.checkout-note-details summary {
  cursor: pointer;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 900;
}

.checkout-note-details label {
  margin-top: 9px;
}

.payment-gate {
  border: 1px solid #f2d28a;
  border-radius: 10px;
  background: #fffaf0;
  padding: 13px;
}

.payment-gate-body {
  display: grid;
  gap: 8px;
  color: #43341a;
  line-height: 1.45;
}

.payment-gate-body strong,
.payment-gate-body p {
  margin: 0;
}

.payment-gate-body > strong {
  color: var(--brand-dark);
}

.payment-uat-note {
  color: #7a4b00;
  font-weight: 800;
}

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

.payment-method-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 13px;
  cursor: pointer;
}

.payment-method-card:has(input:checked) {
  border-color: var(--brand);
  background: var(--soft-red);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.payment-method-card input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}

.payment-method-card strong,
.payment-method-card em {
  display: block;
}

.payment-method-card strong {
  color: var(--ink);
  font-size: .92rem;
}

.payment-method-card em {
  margin-top: 5px;
  color: var(--muted);
  font-size: .76rem;
  font-style: normal;
  line-height: 1.4;
}

.paynow-panel {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid #f2d28a;
  border-radius: 8px;
  background: #fffaf0;
  padding: 11px;
}

.paynow-qr-placeholder {
  display: grid;
  gap: 4px;
  min-height: 112px;
  place-content: center;
  border: 2px dashed #d9a83a;
  border-radius: 8px;
  background: white;
  color: #7a4b00;
  padding: 18px;
  text-align: center;
}

.paynow-qr-placeholder span,
.paynow-panel p {
  color: #7a4b00;
  font-size: .76rem;
  line-height: 1.4;
}

.paynow-panel p {
  margin: 0;
  font-weight: 900;
  text-align: center;
}

.paynow-proof-inline {
  display: grid;
  gap: 6px;
  border-top: 1px solid #efd39b;
  padding-top: 10px;
  color: #5d4314;
  text-align: left;
}

.paynow-proof-inline input {
  border: 1px solid #dfc68e;
  border-radius: 8px;
  background: white;
  padding: 9px;
}

.paynow-qr-card {
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 1px solid #efd39b;
  border-radius: 8px;
  background: white;
  padding: 12px;
  text-align: center;
}

.paynow-card-title,
.paynow-merchant {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.paynow-card-title > span {
  color: var(--brand);
  font-size: 1.25rem;
  font-weight: 950;
}

.paynow-merchant span,
.paynow-qr-card small {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.4;
}

.checkout-recommendations {
  margin-bottom: 6px;
}

.similar-product-list {
  display: grid;
  grid-auto-columns: minmax(155px, 42%);
  grid-auto-flow: column;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 1px 8px;
  scroll-snap-type: x proximity;
}

.similar-product-card {
  display: grid;
  grid-template-rows: 92px 1fr auto;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 9px;
  scroll-snap-align: start;
}

.similar-product-card img {
  width: 100%;
  height: 92px;
  object-fit: contain;
}

.similar-product-card strong,
.similar-product-card span,
.similar-product-card b {
  display: block;
}

.similar-product-card strong {
  overflow: hidden;
  color: var(--ink);
  font-size: .78rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.similar-product-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: .68rem;
}

.similar-product-card b {
  margin-top: 5px;
  color: var(--brand);
  font-size: .86rem;
}

.similar-product-card button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-weight: 900;
}

.delivery-address-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.delivery-address-head strong,
.delivery-address-head span {
  display: block;
}

.delivery-address-head strong {
  color: var(--ink);
  font-size: .82rem;
}

.delivery-address-head span,
.address-save-note {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.4;
}

.saved-address-list {
  display: grid;
  gap: 7px;
  margin: 9px 0;
}

.saved-address-card {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 9px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px;
  text-align: left;
}

.saved-address-card i {
  width: 17px;
  height: 17px;
  border: 2px solid #9ca3af;
  border-radius: 50%;
  margin-top: 2px;
}

.saved-address-card.active {
  border-color: var(--brand);
  background: var(--soft-red);
}

.saved-address-card.active i {
  border: 5px solid var(--brand);
}

.saved-address-card strong,
.saved-address-card em,
.saved-address-card small {
  display: block;
}

.saved-address-card strong {
  color: var(--ink);
  font-size: .78rem;
}

.saved-address-card em,
.saved-address-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .69rem;
  font-style: normal;
  line-height: 1.4;
}

.saved-address-edit {
  align-self: start;
  color: var(--brand);
  font-size: .7rem;
  font-weight: 800;
}

.paynow-qr-card img {
  display: block;
  width: min(220px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
}

.paynow-qr-card strong {
  color: #7a4b00;
}

.paynow-qr-card span {
  color: #7a4b00;
  font-size: .76rem;
  line-height: 1.4;
}

.bulk-line-list {
  display: grid;
  gap: 6px;
  margin-top: 3px;
  border-top: 1px solid #f1dca8;
  padding-top: 9px;
}

.bulk-line-list > span {
  color: #7a4b00;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bulk-line-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border: 1px solid #f1dca8;
  border-radius: 8px;
  background: white;
  padding: 8px;
}

.bulk-line-list em {
  color: var(--muted);
  font-style: normal;
  font-size: .78rem;
  font-weight: 800;
}

.bulk-quote-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.customer-account-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
}

.customer-account-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid #d9e1ec;
  border-radius: 12px;
  background: white;
  box-shadow: 0 24px 60px rgba(20, 32, 51, .28);
  padding: 18px;
}

.customer-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 16px 0;
  border-radius: 8px;
  background: #f1f5f9;
  padding: 4px;
}

.customer-auth-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.customer-auth-tabs button.active {
  background: white;
  color: var(--brand);
  box-shadow: 0 1px 4px rgba(15, 23, 42, .12);
}

.customer-account-form {
  display: grid;
  gap: 11px;
}

.customer-account-form input,
.customer-account-form select,
.customer-account-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 11px;
  font: inherit;
}

.customer-account-form > button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-weight: 900;
}

.customer-account-form > .text-button {
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--brand);
  padding: 5px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.customer-account-form > .secondary-button {
  border: 1px solid var(--brand);
  background: white;
  color: var(--brand);
}

.account-identity {
  margin: 0;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  padding: 10px;
  font-weight: 900;
}

.account-choice.compact {
  margin: 0;
}

.account-choice.compact button {
  min-height: 74px;
}

.customer-session-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid #cfe5d6;
  border-radius: 8px;
  background: #f3fbf6;
  padding: 11px;
}

.customer-session-summary strong,
.customer-session-summary span {
  display: block;
}

.customer-session-summary span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .76rem;
}

.customer-order-history {
  margin-top: 12px;
  border-top: 1px solid #e4eaf1;
  padding-top: 12px;
}

.customer-order-history-head,
.customer-order-row-head,
.customer-order-row-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.customer-order-history-head strong,
.customer-order-history-head span,
.customer-order-row-head strong,
.customer-order-row-head span {
  display: block;
}

.customer-order-history-head span,
.customer-order-row-head span,
.customer-order-row-footer span,
.customer-order-empty {
  color: var(--muted);
  font-size: .76rem;
}

.customer-order-history-head .secondary-button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: .76rem;
}

.customer-order-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.customer-order-row {
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 10px;
}

.customer-order-row ul {
  margin: 8px 0;
  padding-left: 18px;
  color: #475467;
  font-size: .8rem;
  line-height: 1.45;
}

.customer-order-row-footer strong {
  color: var(--ink);
  font-size: .85rem;
}

.customer-payment-proof-form {
  display: grid;
  gap: 11px;
  margin-top: 12px;
  border: 1px solid #f0c875;
  border-radius: 8px;
  background: #fffaf0;
  padding: 12px;
}

.customer-payment-proof-form label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: .86rem;
  font-weight: 800;
}

.customer-payment-proof-form input,
.customer-payment-proof-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 10px;
  font: inherit;
}

.customer-proof-actions,
.customer-payment-proof-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.customer-proof-actions button,
.customer-payment-proof-state button {
  min-height: 36px;
  padding: 7px 10px;
  font-size: .76rem;
}

.customer-payment-proof-state {
  margin-top: 10px;
  border-top: 1px solid #e8edf3;
  padding-top: 9px;
  color: #8a5200;
  font-size: .76rem;
  font-weight: 800;
}

.customer-payment-proof-state.submitted {
  display: block;
  border: 1px solid #cfe5d6;
  border-radius: 7px;
  background: #f3fbf6;
  padding: 8px;
  color: #17603a;
}

.optional-label {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
}

.customer-order-status {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eef2f7;
  color: #475467 !important;
  padding: 4px 7px;
  font-size: .7rem !important;
  font-weight: 900;
}

.customer-order-status.status-completed,
.customer-order-status.status-confirmed_by_customer {
  background: #e7f6ec;
  color: #17603a !important;
}

.customer-order-status.status-rejected {
  background: #fff0f0;
  color: #a11d2d !important;
}

.customer-order-empty {
  margin: 10px 0 0;
}

.account-notice {
  border: 1px solid #f2d28a;
  border-radius: 8px;
  background: #fffaf0;
  color: #7a4b00;
  padding: 10px;
  font-size: .8rem;
  font-weight: 900;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.45;
}

.bulk-quote-card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  background: white;
  border: 1px solid #f0c1c9;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(20, 32, 51, .28);
  padding: 20px;
}

.bulk-quote-card h2 {
  margin: 0 0 9px;
  color: var(--brand-deep);
}

.bulk-quote-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.bulk-quote-facts {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.bulk-quote-facts span {
  border: 1px solid #e8edf3;
  border-radius: 8px;
  background: #fbfcff;
  padding: 9px;
  color: #344054;
  font-size: .84rem;
}

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

.bulk-quote-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-weight: 900;
}

.bulk-quote-actions .secondary-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--brand);
}

.bulk-quote-note {
  margin-top: 12px !important;
  font-size: .78rem;
}

.checkout-block label + label,
.checkout-grid + label,
.checkout-grid + label + label {
  margin-top: 10px;
}

.checkout-actions {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 8px;
  padding-top: 14px;
  margin-top: 14px;
}

.checkout-actions button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-weight: 900;
}

.checkout-actions .secondary-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--brand);
}

.message,
.empty-state {
  color: var(--muted);
  line-height: 1.4;
}

.message {
  min-height: 20px;
  margin: 10px 0 0;
  color: #0f7a4d;
  font-weight: 900;
}

.message.error {
  color: var(--brand);
}

.empty-state {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
  font-size: .86rem;
}

@media (max-width: 1080px) {
  .top-row {
    grid-template-columns: auto 1fr auto auto;
  }

  .site-nav {
    overflow-x: auto;
  }

  .deliver-chip {
    display: none;
  }

  .company-section {
    grid-template-columns: 1fr;
  }

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

  .shop-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

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

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

@media (max-width: 860px) {
  .top-row {
    grid-template-columns: auto minmax(128px, 1fr) auto;
  }

  .site-nav,
  .deliver-chip {
    display: none;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .signin-chip {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .header-cart {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .window-display,
  .shopping-cards,
  .cooperation-section,
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .category-sidebar {
    position: static;
  }

  .category-sidebar h2 {
    margin-bottom: 8px;
  }

  .category-nav {
    display: grid;
    gap: 7px;
    max-height: 320px;
    overflow: auto;
    padding-right: 2px;
  }

  .category-nav button {
    white-space: normal;
  }

  .sidebar-contact {
    display: none;
  }

  .cooperation-actions {
    justify-content: start;
  }

  .deal-stack {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 620px) {
  .top-row {
    padding: 8px 10px 6px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: .95rem;
  }

  .signin-chip {
    padding: 7px 9px;
    min-width: 66px;
    text-align: center;
  }

  .signin-chip span {
    display: none;
  }

  .signin-chip strong {
    margin-top: 0;
    font-size: .74rem;
  }

  .header-cart {
    padding: 7px 9px;
    min-width: 66px;
    text-align: center;
  }

  .header-cart span {
    display: none;
  }

  .header-cart strong {
    margin-top: 0;
    font-size: .74rem;
  }

  .search-row {
    grid-template-columns: 100px minmax(0, 1fr) 58px;
    padding: 0 10px 8px;
  }

  .search-row select,
  .search-row button {
    font-size: .76rem;
  }

  .store-shell {
    padding: 10px 10px 104px;
  }

  .hero-window {
    min-height: 178px;
    padding: 15px;
    background:
      linear-gradient(90deg, rgba(83, 18, 25, .94), rgba(125, 23, 32, .72)),
      url("assets/nanyang-hero.png");
    background-size: cover;
  }

  .hero-window h1 {
    font-size: 1.34rem;
  }

  .hero-window p:not(.eyebrow) {
    margin-top: 8px;
    font-size: .8rem;
  }

  .hero-actions {
    margin-top: 12px;
  }

  .hero-actions button,
  .hero-actions a {
    min-height: 36px;
    padding: 0 12px;
    font-size: .82rem;
  }

  .deal-stack {
    grid-template-columns: 1fr;
  }

  .deal-stack article {
    min-height: auto;
    padding: 13px;
  }

  .shopping-cards {
    display: flex;
    overflow-x: auto;
    margin-top: 12px;
    padding-bottom: 3px;
  }

  .shop-card {
    flex: 0 0 82%;
  }

  .company-section,
  .cooperation-section,
  .contact-section {
    padding: 14px;
  }

  .story-copy h2,
  .cooperation-section h2,
  .contact-section h2 {
    font-size: 1.22rem;
  }

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

  .site-footer {
    display: grid;
  }

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

  .product-section,
  .clearance-section {
    padding: 10px;
  }

  .clearance-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .clearance-card {
    flex: 0 0 90%;
    grid-template-columns: 118px 1fr;
    min-height: 164px;
  }

  .clearance-photo img {
    min-height: 164px;
  }

  .section-head {
    display: grid;
  }

  .section-tools {
    justify-content: start;
  }

  .section-tools select {
    max-width: none;
    width: 100%;
  }

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

  .product-card {
    min-height: 336px;
  }

  .photo-wrap img {
    height: 136px;
    padding: 10px;
  }

  .product-info h3 {
    font-size: .88rem;
  }

  .product-price strong {
    font-size: 1rem;
  }

  .price-whole {
    font-size: 1.22rem;
  }

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

  .drawer-card {
    top: auto;
    height: 92vh;
    border-radius: 14px 14px 0 0;
  }

  .product-detail-card {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-height: 92vh;
    border-radius: 14px 14px 0 0;
    transform: none;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .detail-gallery {
    min-height: 260px;
  }

  .detail-gallery img {
    max-height: 250px;
    padding: 16px;
  }

  .detail-main h2 {
    font-size: 1.3rem;
  }

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

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

  .cart-bar,
  .support-widget {
    right: 12px;
  }

  .cart-bar {
    bottom: 12px;
    width: 62px;
    height: 62px;
  }

  .cart-symbol {
    width: 39px;
    height: 32px;
  }

  .cart-symbol svg {
    width: 39px;
    height: 32px;
  }

  .cart-symbol strong {
    right: -11px;
    top: -12px;
    min-width: 22px;
    height: 22px;
    font-size: .76rem;
  }

  .cart-caption {
    display: none !important;
  }

  .support-widget {
    bottom: 78px;
  }

  .support-launcher {
    width: 56px;
    height: 56px;
  }

  .support-launcher span {
    font-size: .68rem;
  }

  .support-panel {
    right: 0;
    bottom: 66px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 120px);
  }

  .fields,
  .account-choice,
  .checkout-grid,
  .checkout-actions,
  .bulk-quote-actions {
    grid-template-columns: 1fr;
  }

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

  .checkout-account-status {
    align-items: flex-start;
  }

  .checkout-account-actions {
    width: 100%;
  }

  .checkout-account-actions button {
    flex: 1;
  }

  .bulk-line-list div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .search-row {
    grid-template-columns: 88px minmax(0, 1fr) 52px;
  }

  .search-row input {
    padding: 0 9px;
  }

  .shop-card {
    flex-basis: 88%;
  }

  .product-grid {
    gap: 8px;
  }

  .cart-line {
    grid-template-columns: 60px minmax(0, 1fr);
    align-items: start;
  }

  .cart-line-image {
    width: 60px;
    height: 60px;
  }

  .cart-controls {
    grid-column: 1 / -1;
    grid-template-columns: 34px 48px 34px;
    justify-self: start;
  }
}

/* URL-driven UAT annotation. It is inert during normal customer use. */
.uat-highlight {
  position: relative !important;
  z-index: 80 !important;
  outline: 4px solid #d60000 !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 7px rgba(214, 0, 0, 0.18) !important;
}

.uat-highlight::after {
  content: "UAT";
  position: absolute;
  top: -18px;
  right: -8px;
  z-index: 81;
  border-radius: 4px;
  padding: 3px 7px;
  background: #d60000;
  color: #fff;
  font: 800 11px/1 system-ui, sans-serif;
  letter-spacing: 0;
}
