:root {
  --captain-font: "Noto Sans Lao Captain";
}

@font-face {
  font-family: "Noto Sans Lao Captain";
  src: url("NotoSansLao_ExtraCondensed-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #20201d;
  --muted: #68645f;
  --line: #ded8cf;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-dark: #105b55;
  --rose: #a83f57;
  --gold: #c8862c;
  --shadow: 0 18px 45px rgba(38, 35, 30, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--captain-font), "Segoe UI", Tahoma, sans-serif;
  font-weight: 800;
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}

.brand-logo {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

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

.brand-name,
.hero h1 {
  font-family: var(--captain-font), "Segoe UI", Tahoma, sans-serif;
  font-weight: 800;
}

.brand small,
.eyebrow,
.category-label {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
}

.cart-pill,
.primary-button,
.secondary-button,
.add-button,
.icon-button {
  border: 0;
  cursor: pointer;
  border-radius: 8px;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.cart-pill strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.86rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: 78vh;
  align-items: end;
  overflow: hidden;
  background: #26231e;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(19, 18, 16, 0.76), rgba(19, 18, 16, 0.2) 55%, rgba(19, 18, 16, 0.54)),
    url("https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=1800&q=82") center/cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  max-width: 760px;
  padding: clamp(80px, 12vw, 150px) clamp(18px, 6vw, 72px) clamp(56px, 9vw, 96px);
  color: #fff;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 10vw, 8.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero p {
  max-width: 600px;
  font-size: 1.08rem;
}

.hero-actions,
.product-meta,
.drawer-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.primary-button,
.secondary-button,
.add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 700;
}

.primary-button,
.add-button {
  background: var(--accent);
  color: #fff;
}

.primary-button:hover,
.add-button:hover {
  background: var(--accent-dark);
}

.secondary-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.toolbar,
.section-heading,
.product-grid,
.pos-panel,
.checkout-layout {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.toolbar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.16);
  border-color: var(--accent);
}

.section-heading {
  margin-top: 48px;
}

.section-heading h2,
.pos-panel h2,
.checkout-form h2,
.order-summary h2 {
  margin: 4px 0 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

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

.product-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(38, 35, 30, 0.06);
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #eee;
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.product-body h3 {
  margin: 2px 0 0;
  font-size: 1.18rem;
}

.description {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
}

.swatches {
  display: flex;
  gap: 7px;
}

.swatch {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  cursor: pointer;
}

.swatch.is-selected {
  outline: 3px solid rgba(15, 118, 110, 0.24);
  border-color: var(--accent);
}

.purchase-options {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 10px;
}

.purchase-options label {
  gap: 5px;
}

.product-meta {
  justify-content: space-between;
}

.price {
  color: var(--rose);
  font-size: 1.15rem;
}

.stock {
  color: var(--muted);
  font-size: 0.9rem;
}

.pos-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: start;
  margin-top: 64px;
  padding: clamp(24px, 5vw, 44px);
  background: #f2eee7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.integration-list {
  display: grid;
  gap: 12px;
}

.integration-list div {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.integration-list span {
  color: var(--muted);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  margin-top: 28px;
  margin-bottom: 64px;
  align-items: start;
}

.checkout-form,
.order-summary {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}

.payment-box {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.payment-box legend {
  padding: 0 6px;
  color: var(--muted);
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-option input {
  width: auto;
}

.qr-payment {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #fbfaf6;
}

.qr-payment > img:first-child {
  width: min(260px, 100%);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.qr-payment p {
  margin: 0;
  color: var(--muted);
}

.slip-preview {
  display: none;
  width: min(240px, 100%);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.slip-preview[src] {
  display: block;
}

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

.cart-items {
  display: grid;
  gap: 12px;
  min-height: 48px;
}

.cart-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
}

.cart-line img {
  width: 56px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-line h3 {
  margin: 0;
  font-size: 0.98rem;
}

.cart-line p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.qty-controls {
  display: grid;
  grid-template-columns: 30px 34px 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.qty-controls button {
  min-height: 32px;
  border: 0;
  background: #f4f1eb;
  cursor: pointer;
}

.qty-controls span {
  text-align: center;
}

.totals {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

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

.grand-total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
}

.cart-drawer {
  width: min(440px, calc(100% - 28px));
  max-height: min(760px, calc(100vh - 40px));
  margin: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cart-drawer::backdrop {
  background: rgba(19, 18, 16, 0.5);
}

.product-dialog {
  width: min(880px, calc(100% - 24px));
  max-height: min(820px, calc(100vh - 24px));
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.checkout-alert {
  width: min(420px, calc(100% - 28px));
  padding: 24px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.checkout-alert::backdrop {
  background: rgba(0, 0, 0, 0.48);
}

.alert-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #f2f2f2;
  cursor: pointer;
  font-weight: 800;
}

.alert-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.checkout-alert.is-success .alert-icon {
  background: #12a150;
}

.checkout-alert.is-success h2 {
  color: #0f7a3e;
}

.checkout-alert.is-success .primary-button {
  background: #12a150;
}

.checkout-alert h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.checkout-alert p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.detail-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font: inherit;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  background: #fff;
}

.detail-image {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  background: #eee;
}

.detail-info {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
}

.detail-info h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.05;
}

.detail-price {
  color: var(--accent);
  font-size: 1.6rem;
}

.detail-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.detail-stepper {
  display: grid;
  grid-template-columns: 44px 54px 44px;
  overflow: hidden;
  border-radius: 8px;
  background: #f2f2f2;
}

.detail-stepper button,
.detail-stepper input {
  min-height: 42px;
  border: 0;
  text-align: center;
}

.detail-stepper button {
  cursor: pointer;
  background: #e7e7e7;
  font-size: 1.3rem;
}

.detail-stepper input {
  padding: 0;
  background: #fff;
}

.detail-stock,
.detail-description {
  margin: 0;
  color: var(--muted);
}

.option-title {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

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

.detail-color-card {
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f4f4f4;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.detail-color-card.is-selected {
  border-color: var(--accent);
}

.detail-color-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.detail-color-card span {
  display: block;
  padding: 7px 4px;
}

.detail-size-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-size-pill {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #f3f3f3;
  cursor: pointer;
  font: inherit;
}

.detail-size-pill.is-selected {
  border-color: var(--accent);
  background: #fff4f4;
  color: var(--accent);
}

.detail-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.2rem;
}

.drawer-header {
  justify-content: space-between;
  margin-bottom: 14px;
}

.drawer-header h2 {
  margin: 0;
}

.icon-button {
  width: 36px;
  height: 36px;
  background: #f4f1eb;
}

.wide {
  width: 100%;
  margin-top: 18px;
}

.form-status {
  min-height: 24px;
  color: var(--accent-dark);
  font-weight: 700;
}

.empty-state {
  color: var(--muted);
  padding: 12px 0;
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .toolbar,
  .product-grid,
  .pos-panel,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-layout {
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 72vh;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar {
    width: calc(100% - 20px);
    margin-top: 16px;
  }

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

  .cart-line {
    grid-template-columns: 48px 1fr;
  }

  .qty-controls {
    grid-column: 2;
    width: 94px;
  }
}

/* Marketplace home inspired by high-density deal apps. */
.marketplace-body {
  --accent: #e3262e;
  --accent-dark: #c71822;
  --rose: #e3262e;
  --paper: #f5f5f5;
  background: var(--paper);
  padding-bottom: 78px;
}

.marketplace-body .site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  padding: 10px clamp(12px, 3vw, 28px);
  background: #fff;
}

.marketplace-body .brand {
  min-width: 0;
}

.marketplace-body .brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.marketplace-body .brand small {
  color: var(--accent);
}

.marketplace-body .nav-links {
  justify-content: center;
  overflow-x: auto;
  gap: 22px;
  color: #111;
  white-space: nowrap;
  scrollbar-width: none;
}

.marketplace-body .nav-links::-webkit-scrollbar {
  display: none;
}

.marketplace-body .nav-links a:first-child {
  color: var(--accent);
  position: relative;
}

.marketplace-body .nav-links a:first-child::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.marketplace-body .cart-pill {
  border-radius: 10px;
  font-size: 0.92rem;
}

.marketplace-body .hero,
.marketplace-body .pos-panel {
  display: none;
}

.marketplace-body .toolbar {
  position: sticky;
  top: 66px;
  z-index: 9;
  width: 100%;
  margin: 0;
  grid-template-columns: minmax(180px, 1fr) 120px 120px;
  gap: 8px;
  padding: 10px clamp(12px, 3vw, 28px);
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
}

.marketplace-body .toolbar label {
  display: block;
  color: transparent;
  height: 0;
  overflow: hidden;
}

.marketplace-body .toolbar input,
.marketplace-body .toolbar select {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: #eeeeee;
  padding: 0 16px;
}

.deal-strip {
  display: grid;
  width: min(1180px, calc(100% - 24px));
  margin: 12px auto 4px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  background: #fff;
  border-radius: 8px;
  padding: 12px 8px;
}

.deal-strip a {
  display: grid;
  place-items: center;
  gap: 4px;
  text-align: center;
  color: #555;
}

.deal-strip strong {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #ff3b35, #ff8f1f);
  color: #fff;
  font-size: 1rem;
}

.deal-strip a:nth-child(2) strong {
  background: linear-gradient(145deg, #1ba65a, #48d77c);
}

.deal-strip a:nth-child(3) strong {
  background: linear-gradient(145deg, #ff2f76, #ff8ac2);
}

.deal-strip a:nth-child(4) strong {
  background: linear-gradient(145deg, #3275ff, #7dc8ff);
}

.deal-strip a:nth-child(5) strong {
  background: linear-gradient(145deg, #111, #555);
}

.deal-strip span {
  font-size: 0.84rem;
}

.marketplace-body .section-heading {
  width: min(1180px, calc(100% - 24px));
  margin-top: 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.marketplace-body .section-heading .eyebrow {
  display: none;
}

.marketplace-body .section-heading h2 {
  font-size: clamp(1.45rem, 5vw, 2rem);
  color: #111;
}

.marketplace-body .product-grid {
  width: min(1180px, calc(100% - 16px));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.marketplace-body .product-card {
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.marketplace-body .product-card img {
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.marketplace-body .product-body {
  gap: 8px;
  padding: 10px;
}

.marketplace-body .category-label {
  display: inline-flex;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff0f0;
  color: var(--accent);
}

.marketplace-body .product-body h3 {
  margin-top: 4px;
  font-size: 1rem;
  line-height: 1.25;
  cursor: pointer;
}

.marketplace-body .description {
  min-height: 0;
  font-size: 0.9rem;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.marketplace-body .swatches {
  gap: 5px;
}

.marketplace-body .swatch {
  width: 18px;
  height: 18px;
}

.marketplace-body .purchase-options {
  grid-template-columns: 1fr 74px;
  gap: 6px;
}

.marketplace-body .purchase-options label {
  font-size: 0.75rem;
}

.marketplace-body .purchase-options select,
.marketplace-body .purchase-options input {
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 6px;
}

.marketplace-body .product-meta {
  align-items: baseline;
}

.marketplace-body .price {
  font-size: 1.08rem;
  color: var(--accent);
}

.marketplace-body .stock {
  font-size: 0.78rem;
}

.marketplace-body .add-button {
  min-height: 40px;
  border-radius: 999px;
  background: var(--accent);
}

.marketplace-body .product-card .add-button {
  margin-top: 2px;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}

.bottom-nav a,
.bottom-nav button {
  display: grid;
  place-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: #666;
  font: inherit;
  cursor: pointer;
}

.bottom-nav span {
  font-size: 0.78rem;
}

.bottom-nav .is-active {
  color: var(--accent);
}

@media (min-width: 901px) {
  .marketplace-body .bottom-nav {
    display: none;
  }
}

@media (max-width: 720px) {
  .marketplace-body .site-header {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 8px 10px;
  }

  .marketplace-body .brand {
    grid-column: 1 / 2;
  }

  .marketplace-body .brand-logo {
    width: 40px;
    height: 40px;
  }

  .marketplace-body .brand small {
    font-size: 0.72rem;
  }

  .marketplace-body .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
    width: 100%;
    padding-top: 6px;
    gap: 18px;
    font-size: 0.95rem;
  }

  .marketplace-body .toolbar {
    top: 104px;
    grid-template-columns: 1fr;
    padding: 8px 10px;
  }

  .marketplace-body .toolbar div:nth-child(n + 2) {
    display: none;
  }

  .deal-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow-x: visible;
    justify-content: stretch;
  }

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

  .detail-image {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .detail-info {
    padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
    gap: 12px;
  }

  .product-dialog {
    width: 100%;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 14px 14px 0 0;
    overflow-y: auto;
  }

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

  .detail-buy-row {
    align-items: stretch;
    flex-direction: column;
   }

  .detail-stepper {
    width: min(190px, 100%);
  }

  .checkout-layout {
    width: calc(100% - 16px);
    margin-top: 16px;
    margin-bottom: 92px;
  }

  .checkout-form,
  .order-summary {
    padding: 16px;
  }

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

  .qr-payment > img:first-child {
    width: min(220px, 100%);
    justify-self: center;
  }

  .cart-drawer {
    width: 100%;
    max-height: 86dvh;
    margin: auto 0 0;
    border-radius: 14px 14px 0 0;
    border-width: 1px 0 0;
    overflow-y: auto;
  }
}

@media (min-width: 431px) and (max-width: 720px) {
  .marketplace-body .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .marketplace-body {
    padding-bottom: 72px;
  }

  .marketplace-body .brand {
    gap: 8px;
  }

  .marketplace-body .brand-name {
    font-size: 0.96rem;
  }

  .marketplace-body .brand small {
    display: none;
  }

  .marketplace-body .cart-pill {
    min-height: 38px;
    padding: 8px 10px;
  }

  .marketplace-body .cart-pill span {
    display: none;
  }

  .marketplace-body .nav-links {
    gap: 14px;
    font-size: 0.9rem;
  }

  .marketplace-body .toolbar {
    top: 95px;
  }

  .deal-strip {
    width: calc(100% - 8px);
    margin-top: 8px;
    padding: 10px 6px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .deal-strip strong {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 0.88rem;
  }

  .deal-strip span {
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .marketplace-body .section-heading {
    width: calc(100% - 12px);
  }

  .marketplace-body .product-grid {
    width: calc(100% - 8px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .marketplace-body .product-body {
    padding: 8px;
    gap: 7px;
  }

  .marketplace-body .product-body h3 {
    font-size: 0.95rem;
    line-height: 1.2;
    min-height: 2.3em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .marketplace-body .description,
  .marketplace-body .stock {
    display: none;
  }

  .marketplace-body .price {
    font-size: 0.98rem;
    line-height: 1.1;
  }

  .marketplace-body .product-meta {
    gap: 6px;
  }

  .marketplace-body .category-label {
    display: none;
  }

  .marketplace-body .purchase-options {
    grid-template-columns: 1fr;
  }

  .marketplace-body .add-button {
    min-height: 38px;
    padding-inline: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
  }

  .bottom-nav {
    padding-inline: 4px;
  }

  .bottom-nav span {
    font-size: 0.7rem;
  }

  .detail-info h2 {
    font-size: 1.45rem;
  }

  .detail-price {
    font-size: 1.35rem;
  }

  .detail-color-card span {
    padding: 6px 2px;
    font-size: 0.86rem;
  }

  .detail-size-pill {
    min-width: 54px;
    padding: 0 12px;
  }

  .checkout-alert {
    width: calc(100% - 22px);
    padding: 22px 18px;
  }

  .checkout-alert h2 {
    font-size: 1.35rem;
  }
}
