:root {
  --market-ink: #101828;
  --market-muted: #667085;
  --market-line: #dbe4f0;
  --market-soft: #f4f7fb;
  --market-blue: #1464f4;
  --market-cyan: #20b7d8;
  --market-violet: #7657ee;
  --market-coral: #ef6a5b;
}

.marketplace-page {
  color: var(--market-ink);
  background: #fff;
}

.marketplace-page .commerce-header {
  width: min(1440px, calc(100% - 32px));
  top: 16px;
  min-height: 72px;
  padding: 10px 14px 10px 20px;
  border: 1px solid rgba(17, 73, 160, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 50px rgba(30, 64, 175, .12);
  backdrop-filter: blur(18px);
}

.marketplace-page .commerce-header .brand img { width: 160px; }
.marketplace-page .commerce-header nav { gap: 4px; }
.marketplace-page .commerce-header nav a {
  color: #344054;
  padding: 11px 12px;
  border-radius: 6px;
  font-size: .86rem;
  font-weight: 750;
}
.marketplace-page .commerce-header nav a:hover,
.marketplace-page .commerce-header nav a:focus-visible {
  color: var(--market-blue);
  background: #eef4ff;
}

.marketplace-page .commerce-cart-button,
.marketplace-page .commerce-header-cta {
  min-height: 44px;
  border-radius: 6px;
}
.marketplace-page .commerce-cart-button {
  color: #fff;
  border-color: var(--market-blue);
  background: var(--market-blue);
}
.marketplace-page .commerce-cart-button strong { color: var(--market-blue); background: #fff; }
.marketplace-page .commerce-header-cta {
  color: #17315d !important;
  border-color: #c9d8ef;
  background: #fff;
  white-space: nowrap;
}

.marketplace-page .commerce-hero {
  min-height: 680px;
  padding-top: 128px;
  color: var(--market-ink);
  background: #f8fbff;
  border-bottom: 1px solid var(--market-line);
}
.marketplace-page .commerce-grid-bg {
  opacity: .5;
  background-image: linear-gradient(#dce8f8 1px, transparent 1px), linear-gradient(90deg, #dce8f8 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 84%);
}
.marketplace-page .commerce-hero-inner {
  width: min(1320px, calc(100% - 48px));
  min-height: 460px;
  grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.marketplace-page .commerce-hero-copy { max-width: 660px; }
.marketplace-page .commerce-hero-copy .eyebrow,
.marketplace-page .commerce-section-head .eyebrow,
.marketplace-page .marketplace-section-title .eyebrow {
  color: var(--market-blue);
}
.marketplace-page .commerce-hero-copy h1 {
  max-width: 720px;
  margin: 16px 0 20px;
  color: #0b1830;
  font-size: clamp(2.45rem, 4.5vw, 4.15rem);
  line-height: 1.06;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.marketplace-page .commerce-hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: #53647d;
  font-size: 1.08rem;
  line-height: 1.75;
}
.marketplace-page .commerce-hero-actions a {
  border-radius: 6px;
  color: #fff;
  border-color: var(--market-blue);
  background: var(--market-blue);
}
.marketplace-page .commerce-hero-actions a + a {
  color: #17315d;
  border-color: #bfd0e8;
  background: #fff;
}
.marketplace-hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}
.marketplace-hero-visual > img {
  width: min(100%, 660px);
  height: auto;
  border: 1px solid #d7e3f2;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(25, 76, 154, .16);
}
.marketplace-float-note {
  position: absolute;
  right: 2%;
  bottom: 8%;
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 16px 18px;
  border: 1px solid #cfe0f6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(26, 73, 146, .18);
}
.marketplace-float-note span { color: var(--market-muted); font-size: .76rem; text-transform: uppercase; font-weight: 800; }
.marketplace-float-note strong { color: var(--market-blue); font-size: 1rem; }
.marketplace-page .commerce-stats {
  width: min(1320px, calc(100% - 48px));
  color: #344054;
  border-top: 1px solid var(--market-line);
}
.marketplace-page .commerce-stats strong { color: var(--market-blue); }
.marketplace-page .commerce-stats span { color: var(--market-muted); }

.marketplace-departments,
.marketplace-page .commerce-products {
  width: min(1320px, calc(100% - 48px));
  margin-inline: auto;
}
.marketplace-departments { padding: 86px 0 94px; }
.marketplace-section-title {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 30px;
}
.marketplace-section-title h2,
.marketplace-page .commerce-section-head h2 {
  margin: 10px 0 0;
  color: #101828;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0;
}
.marketplace-section-title > p { margin: 0; color: var(--market-muted); line-height: 1.7; }
.department-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.department-card {
  position: relative;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  padding: 0 0 26px;
  color: var(--market-ink);
  border: 1px solid var(--market-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(18, 57, 111, .07);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.department-card:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(18, 57, 111, .13); border-color: #9fbae3; }
.department-card > img { width: 100%; height: 190px; object-fit: cover; border-bottom: 1px solid var(--market-line); }
.department-card > span { position: absolute; left: 18px; top: 166px; width: 42px; height: 42px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 6px; color: #fff; background: var(--market-blue); font-weight: 900; box-shadow: 0 8px 20px rgba(18, 57, 111, .18); }
.department-card.digital > span { background: var(--market-violet); }
.department-card.service > span { background: var(--market-coral); }
.department-card.other > span { color: #17315d; background: #bdebf5; }
.department-card > div { padding: 30px 24px 0; }
.department-card h3 { margin: 7px 0 10px; font-size: 1.35rem; letter-spacing: 0; }
.department-card small { display: block; color: var(--market-blue); font-weight: 800; line-height: 1.45; }
.department-card p { margin: 0; color: var(--market-muted); line-height: 1.65; font-size: .9rem; overflow-wrap: anywhere; }
.department-card > b { position: absolute; right: 22px; bottom: 25px; color: var(--market-blue); font-size: 1.25rem; }

.marketplace-home .marketplace-departments { min-height: 620px; }
.marketplace-home .department-card > div { min-width: 0; }
.marketplace-home .department-card h3 { line-height: 1.2; overflow-wrap: anywhere; }

.marketplace-page .commerce-products { padding: 68px 0 110px; }
.marketplace-page .commerce-section-head { align-items: end; }
.marketplace-page .commerce-section-head > div:first-child { max-width: 720px; }
.marketplace-page .commerce-section-head p { color: var(--market-muted); }
.marketplace-page .commerce-tools { padding: 10px; border: 1px solid var(--market-line); border-radius: 8px; background: #f7f9fc; }
.marketplace-page .commerce-tools label span { color: #475467; }
.marketplace-page .commerce-tools input,
.marketplace-page .commerce-tools select { color: var(--market-ink); border-color: #cbd8e8; background: #fff; }
.marketplace-page .commerce-filter-rail button { color: #344054; border-color: #d5dfec; background: #fff; border-radius: 6px; }
.marketplace-page .commerce-filter-rail button.is-active { color: #fff; border-color: var(--market-blue); background: var(--market-blue); }
.marketplace-page .commerce-result-meta { color: var(--market-muted); }

.marketplace-page:not(.marketplace-home) .commerce-products {
  padding: 54px clamp(22px, 3vw, 42px) 100px;
  background: #f6f9fe;
  box-shadow: inset 0 1px 0 #e1eaf6;
}

.marketplace-page:not(.marketplace-home) .commerce-section-head {
  grid-template-columns: minmax(0, 1fr) minmax(430px, .86fr);
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
  margin-bottom: 22px;
  padding-bottom: 28px;
  border-bottom: 1px solid #dce6f3;
}

.marketplace-page:not(.marketplace-home) .commerce-section-head > div:first-child { max-width: 620px; }
.marketplace-page:not(.marketplace-home) .commerce-section-head h2 {
  max-width: 600px;
  margin: 8px 0 12px;
  font-size: clamp(2rem, 3.1vw, 2.85rem);
  line-height: 1.12;
}
.marketplace-page:not(.marketplace-home) .commerce-section-head p:not(.eyebrow) {
  max-width: 600px;
  font-size: .94rem;
  line-height: 1.65;
}
.marketplace-page:not(.marketplace-home) .commerce-tools {
  gap: 14px;
  padding: 16px;
  border-color: #d5e0ee;
  background: #fff;
  box-shadow: 0 12px 30px rgba(33, 71, 127, .07);
}
.marketplace-page:not(.marketplace-home) .commerce-tools label { gap: 8px; }
.marketplace-page:not(.marketplace-home) .commerce-tools input,
.marketplace-page:not(.marketplace-home) .commerce-tools select { min-height: 50px; padding-inline: 14px; }
.marketplace-page:not(.marketplace-home) .commerce-filter-rail { padding: 10px 2px 18px; }
.marketplace-page:not(.marketplace-home) .commerce-result-meta { margin-bottom: 22px; }

@media (max-width: 980px) {
  .marketplace-page:not(.marketplace-home) .commerce-section-head { grid-template-columns: 1fr; gap: 24px; }
  .marketplace-page:not(.marketplace-home) .commerce-tools { width: 100%; }
}

@media (max-width: 620px) {
  .marketplace-page:not(.marketplace-home) .commerce-products { padding: 38px 16px 72px; }
  .marketplace-page:not(.marketplace-home) .commerce-section-head { padding-bottom: 22px; }
  .marketplace-page:not(.marketplace-home) .commerce-section-head h2 { font-size: 2rem; }
  .marketplace-page:not(.marketplace-home) .commerce-tools { grid-template-columns: 1fr; padding: 13px; }
}
.marketplace-page .commerce-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.marketplace-page .commerce-product-card {
  overflow: hidden;
  color: var(--market-ink);
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(31, 64, 115, .07);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.marketplace-page .commerce-product-card:hover { transform: translateY(-4px); border-color: #adc4e5; box-shadow: 0 18px 42px rgba(31, 64, 115, .13); }
.marketplace-page .commerce-product-image { height: 220px; border: 0; border-bottom: 1px solid #e5ebf3; background: #f7f9fc; }
.marketplace-page .commerce-product-image img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.marketplace-page .commerce-product-image small { color: #344054; background: rgba(255,255,255,.92); border-color: #d7e0eb; }
.marketplace-page .commerce-product-body { min-height: 360px; padding: 18px; }
.commerce-product-tags { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.marketplace-page .commerce-product-body .commerce-product-tags span,
.commerce-product-tags b { display: inline-flex; width: max-content; padding: 5px 8px; border-radius: 5px; font-size: .7rem; text-transform: uppercase; font-weight: 850; letter-spacing: 0; }
.marketplace-page .commerce-product-body .commerce-product-tags span { color: #155eef; background: #eff4ff; }
.commerce-product-tags b { color: #7a271a; background: #fef3f2; }
.commerce-product-title { padding: 0; border: 0; text-align: left; background: transparent; cursor: pointer; }
.marketplace-page .commerce-product-body h2 { margin: 12px 0 8px; color: #101828; font-size: 1.02rem; line-height: 1.35; letter-spacing: 0; }
.marketplace-page .commerce-product-body > p { color: #667085; font-size: .83rem; line-height: 1.55; }
.marketplace-page .commerce-price-row strong { color: #101828; font-size: 1.12rem; }
.marketplace-page .commerce-price-row small { color: #667085; }
.marketplace-page .commerce-quote-choice { color: #344054; border-color: #dce6f2; background: #f8fafc; }
.marketplace-page .commerce-product-actions button { border-radius: 6px; }
.marketplace-page .commerce-product-actions button:first-child { color: #155eef; border-color: #b2ccff; background: #eff4ff; }
.marketplace-page .commerce-product-actions button:last-child { color: #fff; border-color: var(--market-blue); background: var(--market-blue); }
.marketplace-page .commerce-preview-button { color: #344054; border-color: #d0dae8; background: #fff; }
.marketplace-page .commerce-card-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.marketplace-page .commerce-card-links button {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #d0dae8;
  border-radius: 6px;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}
.marketplace-page .commerce-card-links .commerce-preview-button { width: 100%; }
.marketplace-page .product-share-button { color: #155eef; border-color: #b2ccff; background: #eff4ff; }
.marketplace-page .commerce-product-body > a { color: var(--market-blue); }
.marketplace-page .commerce-load-more {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 18px 0 4px;
}
.marketplace-page .commerce-load-more button {
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid #aac5ef;
  border-radius: 6px;
  color: var(--market-blue);
  background: #fff;
  font: inherit;
  font-size: .82rem;
  font-weight: 850;
  cursor: pointer;
}
.marketplace-page .commerce-load-more button:hover { border-color: var(--market-blue); background: #eef4ff; }
.marketplace-page .commerce-quote-choice,
.marketplace-page .commerce-quote-bar { display: none !important; }

.ea-store-page .marketplace-departments { display: none; }
.ea-store-page .commerce-products { padding-top: 88px; }
.ea-store-page .commerce-header nav { margin-left: auto; }

.marketplace-page .checkout-panel {
  width: min(1180px, calc(100% - 32px));
  color: var(--market-ink);
  background: #fff;
  border: 1px solid #d8e2ef;
  box-shadow: 0 30px 100px rgba(8, 28, 63, .28);
}
.marketplace-page .checkout-head {
  margin: -1px -1px 20px;
  padding: 20px 22px;
  color: #fff;
  background: #102a55;
}
.marketplace-page .checkout-head h2 {
  margin-top: 4px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}
.marketplace-page .checkout-head button { flex: 0 0 42px; }
.marketplace-page .checkout-layout { align-items: start; background: #f5f7fb; }
.marketplace-page .cart-section,
.marketplace-page .checkout-form { border: 1px solid #dde6f1; border-radius: 8px; background: #fff; }
.marketplace-page .cart-item { border-color: #e0e7f0; background: #fff; }
.marketplace-page .cart-item img { object-fit: contain; background: #f7f9fc; }
.marketplace-page .cart-item strong,
.marketplace-page .checkout-form label { color: #25324a; }
.marketplace-page .cart-item span,
.marketplace-page .cart-item small { color: #667085; }
.marketplace-page .marketplace-order-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 18px;
  border: 1px solid #d8e4f2;
  border-radius: 8px;
  background: #f8fafc;
}
.marketplace-page .marketplace-order-summary > * { grid-column: 1; min-width: 0; }
.marketplace-order-summary .summary-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 10px 0; border-bottom: 1px solid #e0e7f0; }
.marketplace-order-summary .summary-row strong { color: #101828; font-size: 1rem; }
.marketplace-order-summary .summary-total { margin-top: 4px; border-bottom: 0; }
.marketplace-order-summary .summary-total span { font-weight: 850; color: #101828; }
.marketplace-order-summary .summary-total strong { color: var(--market-blue); font-size: 1.35rem; }
.marketplace-page .marketplace-order-summary > button {
  width: max-content;
  margin-top: 12px;
  color: #53627a;
  border-color: #d4deeb;
  background: #fff;
}
.marketplace-page .marketplace-order-summary > small { margin-top: 10px; line-height: 1.5; }
.marketplace-page .checkout-form input,
.marketplace-page .checkout-form textarea { color: var(--market-ink); border-color: #cfd9e7; background: #fff; }
.marketplace-page .checkout-form input:focus,
.marketplace-page .checkout-form textarea:focus { border-color: var(--market-blue); box-shadow: 0 0 0 3px rgba(20, 100, 244, .12); }
.marketplace-page .shipping-quote { border-color: #cfe0f4; background: #f6f9fd; }
.marketplace-page .shipping-results button,
.marketplace-page .shipping-option { color: var(--market-ink); border-color: #d4dfed; background: #fff; }
.marketplace-page .checkout-submit { color: #fff; border-radius: 6px; background: var(--market-blue); }

.marketplace-page .project-brief-section {
  display: grid;
  gap: 12px;
  margin: 4px 0;
  padding: 16px;
  border: 1px solid #bfd3ef;
  border-radius: 8px;
  background: #f5f9ff;
}
.marketplace-page .project-brief-head { display: grid; gap: 4px; }
.marketplace-page .project-brief-head span { color: var(--market-blue); font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.marketplace-page .project-brief-head strong { color: #17243a; font-size: .98rem; }
.marketplace-page .project-brief-head p { margin: 0; color: #667085; font-size: .75rem; line-height: 1.5; }

.packing-category-banner {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  padding: 14px 18px;
  color: #17243a;
  background: #fff;
  border: 1px solid #dce8ff;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(20, 55, 120, .08);
  text-decoration: none;
}

.packing-category-banner img { width: 112px; aspect-ratio: 1.2; object-fit: cover; border-radius: 6px; }
.packing-category-banner div { min-width: 0; }
.packing-category-banner small { color: var(--market-blue); font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.packing-category-banner h3 { margin: 3px 0 4px; font-size: 1.15rem; }
.packing-category-banner p { margin: 0; color: #667085; font-size: .78rem; line-height: 1.5; }
.packing-category-banner b { color: var(--market-blue); font-size: 1.35rem; text-align: center; }
.packing-category-banner:hover { border-color: #8cb4ff; transform: translateY(-2px); }

body[data-category-prefix="Perlengkapan Packing"] .commerce-hero-visual > img {
  object-fit: cover;
  background: #fff;
}

@media (max-width: 640px) {
  .packing-category-banner { grid-template-columns: 72px minmax(0, 1fr) 24px; gap: 12px; padding: 12px; }
  .packing-category-banner img { width: 72px; }
}
.marketplace-page .project-upload-field input[type="file"] {
  min-height: 0;
  padding: 10px;
  color: #344054;
  background: #fff;
}
.marketplace-page .project-upload-field small { color: #667085; font-size: .7rem; line-height: 1.5; }
.marketplace-page .project-file-summary {
  padding: 9px 10px;
  border-radius: 6px;
  color: #475467;
  background: #eaf2ff;
  font-size: .7rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.marketplace-page .project-file-summary.is-error { color: #b42318; background: #fef3f2; }

.marketplace-page .product-lightbox-panel {
  width: min(1040px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 40px));
  padding: 0;
  color: var(--market-ink);
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background: #fff;
}
.product-detail-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); min-height: 590px; }
.product-detail-layout figure { display: grid; place-items: center; margin: 0; padding: 42px; background: #f5f7fb; border-right: 1px solid #dfe7f1; }
.product-detail-layout figure img { width: 100%; max-height: 500px; object-fit: contain; }
.product-detail-copy { display: flex; flex-direction: column; padding: 48px 38px 34px; overflow-y: auto; }
.product-detail-copy > span { color: var(--market-blue); font-size: .74rem; font-weight: 850; text-transform: uppercase; }
.product-detail-copy > small { margin-top: 8px; color: #667085; }
.product-detail-copy h2 { margin: 16px 0 12px; color: #101828; font-size: 1.8rem; line-height: 1.18; letter-spacing: 0; }
.product-detail-copy > strong { color: var(--market-blue); font-size: 1.4rem; }
.product-detail-description { margin-top: 28px; padding-top: 22px; border-top: 1px solid #dfe7f1; }
.product-detail-description h3 { margin: 0 0 9px; color: #344054; font-size: .82rem; text-transform: uppercase; }
.product-detail-description p { margin: 0; color: #5b687c; line-height: 1.72; white-space: pre-line; }
.product-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 30px; }
.product-detail-actions button { min-height: 48px; border: 1px solid #b8cae3; border-radius: 6px; color: var(--market-blue); background: #fff; font-weight: 850; cursor: pointer; }
.product-detail-actions button:last-child { color: #fff; border-color: var(--market-blue); background: var(--market-blue); }
.product-detail-actions button[data-lightbox-checkout] { color: #fff; border-color: var(--market-blue); background: var(--market-blue); }
.product-detail-actions button.product-detail-share {
  grid-column: 1 / -1;
  color: #155eef;
  border-color: #b2ccff;
  background: #eff4ff;
}
.product-detail-note { margin: 12px 0 0; color: #7b8798; font-size: .74rem; line-height: 1.5; }
.marketplace-page .product-lightbox-close { color: #344054; border-color: #d4deeb; background: #fff; }

.marketplace-page .commerce-footer { color: #d8e3f1; background: #0e2344; border-top: 0; }
.marketplace-page .commerce-footer nav a { color: #d8e3f1; }

[hidden] { display: none !important; }

@media (max-width: 1120px) {
  .marketplace-page .commerce-header nav { display: none; }
  .marketplace-page .commerce-hero-inner { grid-template-columns: 1fr 1fr; }
  .department-grid,
  .marketplace-page .commerce-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .marketplace-page .commerce-header { width: calc(100% - 20px); top: 10px; padding: 9px 10px 9px 14px; }
  .marketplace-page .commerce-header .brand img { width: 128px; }
  .marketplace-page .commerce-header-cta { display: none; }
  .marketplace-page .commerce-hero { min-height: auto; padding-top: 108px; }
  .marketplace-page .commerce-hero-inner { width: calc(100% - 30px); min-height: auto; grid-template-columns: 1fr; gap: 24px; }
  .marketplace-page .commerce-hero-copy h1 { font-size: 2.35rem; }
  .marketplace-hero-visual { min-height: 260px; }
  .marketplace-float-note { right: 8px; bottom: 0; min-width: 190px; }
  .marketplace-page .commerce-stats { width: calc(100% - 30px); grid-template-columns: 1fr; }
  .marketplace-page .commerce-stats div { padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--market-line); }
  .marketplace-departments,
  .marketplace-page .commerce-products { width: calc(100% - 30px); }
  .marketplace-departments { padding: 68px 0 72px; }
  .marketplace-section-title { grid-template-columns: 1fr; gap: 14px; }
  .department-grid,
  .marketplace-page .commerce-grid { grid-template-columns: 1fr; }
  .department-card { min-height: 410px; padding-bottom: 24px; }
  .department-card > img { height: 210px; }
  .department-card > span { top: 186px; }
  .marketplace-page .commerce-product-image { height: 250px; }
  .marketplace-page .commerce-product-body { min-height: 0; }
  .marketplace-page .checkout-panel { width: 100%; max-height: 100vh; border-radius: 0; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-detail-layout figure { min-height: 290px; padding: 28px; border-right: 0; border-bottom: 1px solid #dfe7f1; }
  .product-detail-layout figure img { max-height: 260px; }
  .product-detail-copy { padding: 28px 22px; }
  .product-detail-copy h2 { font-size: 1.45rem; }
}

/* Marketplace home refresh: denser discovery, stronger search, and visible offers. */
.marketplace-home {
  background: #f5f7fb;
}

.marketplace-home .marketplace-main-header {
  top: 0;
  width: 100%;
  min-height: 116px;
  grid-template-columns: auto minmax(280px, 720px) auto;
  gap: 12px 26px;
  padding: 13px max(24px, calc((100% - 1320px) / 2));
  border: 0;
  border-bottom: 1px solid #dce5f1;
  border-radius: 0;
  box-shadow: 0 8px 28px rgba(19, 55, 105, .08);
  transform: translateX(-50%);
}

.marketplace-home .marketplace-main-header .brand img { width: 150px; }

.marketplace-search-box {
  position: relative;
  display: block;
  min-width: 0;
}

.marketplace-home .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.marketplace-search-box input {
  width: 100%;
  min-height: 44px;
  padding: 10px 46px 10px 15px;
  color: #172033;
  border: 1px solid #b8cae3;
  border-radius: 6px;
  outline: 0;
  background: #fff;
  font: inherit;
  font-size: .88rem;
}

.marketplace-search-box input:focus {
  border-color: var(--market-blue);
  box-shadow: 0 0 0 3px rgba(20, 100, 244, .12);
}

.marketplace-search-box b {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--market-blue);
  font-size: 1.35rem;
  transform: translateY(-50%) rotate(-20deg);
}

.marketplace-home .marketplace-category-nav {
  grid-column: 1 / -1;
  justify-content: flex-start;
  gap: 3px;
  padding-left: 164px;
}

.marketplace-home .marketplace-category-nav a {
  padding: 5px 10px;
  font-size: .77rem;
}

.marketplace-home .marketplace-category-nav a[aria-current="page"] {
  color: var(--market-blue);
  background: #eef4ff;
}

.marketplace-tracking-link {
  color: #344054 !important;
  font-size: .8rem;
  white-space: nowrap;
}

.marketplace-home .commerce-cart-button {
  min-height: 42px;
  white-space: nowrap;
}

.marketplace-home .marketplace-home-hero {
  min-height: 0;
  padding: 154px 0 34px;
  background: #eef4ff;
}

.marketplace-home .marketplace-home-hero .commerce-hero-inner {
  width: min(1320px, calc(100% - 80px));
  min-height: 360px;
  margin-inline: auto;
  grid-template-columns: minmax(0, .88fr) minmax(430px, 1.12fr);
  gap: 44px;
}

.marketplace-home .commerce-hero-copy h1 {
  max-width: 590px;
  margin: 12px 0 16px;
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  line-height: 1.08;
}

.marketplace-home .commerce-hero-copy > p:not(.eyebrow) {
  max-width: 560px;
  font-size: .98rem;
  line-height: 1.65;
}

.marketplace-home .commerce-hero-actions { margin-top: 24px; }
.marketplace-home .commerce-hero-actions a { min-height: 44px; padding: 11px 16px; font-size: .84rem; }

.marketplace-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  color: #53647d;
  font-size: .74rem;
  font-weight: 750;
}

.marketplace-trust-row span::before {
  content: "\2713";
  margin-right: 6px;
  color: var(--market-blue);
  font-weight: 950;
}

.marketplace-home .marketplace-hero-visual { min-height: 340px; }
.marketplace-home .marketplace-hero-visual > img {
  width: min(100%, 610px);
  max-height: 340px;
  object-fit: cover;
  border-color: #c8d8ef;
  box-shadow: 0 22px 54px rgba(25, 76, 154, .13);
}

.marketplace-home .marketplace-departments {
  min-height: 0;
  padding: 38px 0 46px;
}

.marketplace-home .marketplace-section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 18px;
}

.marketplace-home .marketplace-section-title h2 {
  margin-top: 5px;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
}

.marketplace-home .marketplace-section-title > a {
  color: var(--market-blue);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 850;
}

.marketplace-home .department-grid { gap: 12px; }
.marketplace-home .department-card {
  min-height: 252px;
  padding: 0 0 16px;
}
.marketplace-home .department-card > img { height: 122px; }
.marketplace-home .department-card > span { display: none; }
.marketplace-home .department-card > div { padding: 14px 16px 0; }
.marketplace-home .department-card h3 { margin: 0 0 5px; font-size: 1rem; }
.marketplace-home .department-card p { padding-right: 18px; font-size: .76rem; line-height: 1.45; }
.marketplace-home .department-card > b { right: 15px; bottom: 14px; font-size: 1rem; }

/* Keep department navigation identical on home and every category page. */
.marketplace-page:not(.marketplace-home) .marketplace-departments {
  min-height: 0;
  padding: 58px 0 64px;
}

.marketplace-page:not(.marketplace-home) .marketplace-section-title {
  gap: 32px;
  margin-bottom: 20px;
}

.marketplace-page:not(.marketplace-home) .marketplace-section-title h2 {
  margin-top: 5px;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
}

.marketplace-page:not(.marketplace-home) .department-grid {
  gap: 12px;
}

.marketplace-page:not(.marketplace-home) .department-card {
  min-height: 252px;
  padding: 0 0 16px;
}

.marketplace-page:not(.marketplace-home) .department-card > img {
  height: 122px;
}

.marketplace-page:not(.marketplace-home) .department-card > span {
  display: none;
}

.marketplace-page:not(.marketplace-home) .department-card > div {
  min-width: 0;
  padding: 14px 16px 0;
}

.marketplace-page:not(.marketplace-home) .department-card h3 {
  margin: 0 0 5px;
  font-size: 1rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.marketplace-page:not(.marketplace-home) .department-card p {
  display: -webkit-box;
  padding-right: 18px;
  overflow: hidden;
  font-size: .76rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.marketplace-page:not(.marketplace-home) .department-card > b {
  right: 15px;
  bottom: 14px;
  font-size: 1rem;
}

.marketplace-home .marketplace-promo-products {
  width: 100%;
  padding: 50px max(24px, calc((100% - 1320px) / 2)) 80px;
  background: #fff;
  border-top: 1px solid #e0e8f2;
}

.marketplace-home .commerce-section-head { margin-bottom: 20px; }
.marketplace-home .commerce-section-head h2 { margin-top: 6px; font-size: clamp(1.65rem, 2.8vw, 2.45rem); }
.marketplace-home .commerce-tools,
.marketplace-home .commerce-filter-rail { display: none; }
.marketplace-home .commerce-result-meta { margin-bottom: 14px; }
.marketplace-home .commerce-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; }
.marketplace-home .commerce-product-card { display: grid; grid-template-columns: 1fr; }
.marketplace-home .commerce-product-image { height: 230px; min-height: 230px; border-right: 0; border-bottom: 1px solid #e5ebf3; }
.marketplace-home .commerce-product-body { min-height: 330px; padding: 20px; }
.marketplace-home .commerce-product-body > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.marketplace-home .commerce-price-row > div { display: grid; gap: 2px; }
.marketplace-page .commerce-price-row del { color: #98a2b3; font-size: .75rem; }
.marketplace-home .commerce-price-row strong { color: var(--market-blue); font-size: 1.3rem; }
.marketplace-home .commerce-product-body > a { display: none; }

@media (max-width: 1080px) {
  .marketplace-home .marketplace-main-header { grid-template-columns: auto minmax(260px, 1fr) auto; }
  .marketplace-home .marketplace-category-nav { display: flex; padding-left: 0; overflow-x: auto; }
  .marketplace-home .marketplace-tracking-link { display: none; }
  .marketplace-home .marketplace-home-hero .commerce-hero-inner { grid-template-columns: 1fr 1fr; }
  .marketplace-home .commerce-grid { grid-template-columns: 1fr; max-width: 720px; }
}

@media (max-width: 760px) {
  .marketplace-home .marketplace-main-header {
    width: 100%;
    top: 0;
    min-height: 108px;
    grid-template-columns: 1fr auto;
    gap: 9px;
    padding: 10px 14px;
  }
  .marketplace-home .marketplace-main-header .brand img { width: 125px; }
  .marketplace-search-box { grid-column: 1 / -1; grid-row: 2; }
  .marketplace-search-box input { min-height: 40px; }
  .marketplace-home .marketplace-category-nav,
  .marketplace-tracking-link { display: none; }
  .marketplace-home .commerce-cart-button { min-height: 38px; padding: 8px 10px; }
  .marketplace-home .marketplace-home-hero { padding-top: 132px; }
  .marketplace-home .marketplace-home-hero .commerce-hero-inner { grid-template-columns: 1fr; gap: 22px; }
  .marketplace-home .marketplace-home-hero .commerce-hero-inner { width: calc(100% - 30px); }
  .marketplace-home .commerce-hero-copy h1 { font-size: 2rem; }
  .marketplace-home .marketplace-hero-visual { min-height: 210px; }
  .marketplace-home .marketplace-hero-visual > img { max-height: 230px; }
  .marketplace-home .marketplace-section-title { align-items: start; flex-direction: column; }
  .marketplace-home .department-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .marketplace-home .department-card { min-height: 230px; }
  .marketplace-home .department-card > img { height: 105px; }
  .marketplace-home .department-card p { -webkit-line-clamp: 2; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; }
  .marketplace-home .marketplace-promo-products { padding: 42px 15px 64px; }
  .marketplace-home .commerce-product-card { grid-template-columns: 1fr; }
  .marketplace-home .commerce-product-image { min-height: 220px; height: 220px; border-right: 0; border-bottom: 1px solid #e5ebf3; }
  .marketplace-home .commerce-product-body { min-height: 0; }
}

/* Compact marketplace cards shared by every product-category page. */
.marketplace-page:not(.marketplace-home) .commerce-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.marketplace-page:not(.marketplace-home) .commerce-product-image {
  height: 176px;
}

.marketplace-page:not(.marketplace-home) .commerce-product-image img {
  padding: 11px;
}

.marketplace-page:not(.marketplace-home) .commerce-product-image small {
  left: 9px;
  bottom: 9px;
  max-width: calc(100% - 18px);
  padding: 5px 7px;
  font-size: .6rem;
}

.marketplace-page:not(.marketplace-home) .commerce-product-body {
  gap: 9px;
  min-height: 306px;
  padding: 14px;
}

.marketplace-page:not(.marketplace-home) .commerce-product-body .commerce-product-tags span,
.marketplace-page:not(.marketplace-home) .commerce-product-tags b {
  padding: 4px 7px;
  font-size: .62rem;
}

.marketplace-page:not(.marketplace-home) .commerce-product-body h2 {
  margin: 7px 0 3px;
  font-size: .9rem;
  line-height: 1.32;
}

.marketplace-page:not(.marketplace-home) .commerce-product-body > p {
  min-height: 55px;
  font-size: .76rem;
  line-height: 1.45;
  -webkit-line-clamp: 3;
}

.marketplace-page:not(.marketplace-home) .commerce-price-row {
  gap: 2px;
  padding-top: 9px;
}

.marketplace-page:not(.marketplace-home) .commerce-price-row strong {
  font-size: 1rem;
}

.marketplace-page:not(.marketplace-home) .commerce-card-links button,
.marketplace-page:not(.marketplace-home) .commerce-product-actions button {
  min-height: 36px;
  padding: 8px 9px;
  font-size: .71rem;
}

@media (max-width: 1320px) {
  .marketplace-page:not(.marketplace-home) .commerce-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .marketplace-page:not(.marketplace-home) .commerce-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .marketplace-page:not(.marketplace-home) .commerce-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .marketplace-page:not(.marketplace-home) .commerce-product-image {
    height: 158px;
  }

  .marketplace-page:not(.marketplace-home) .commerce-product-body {
    min-height: 290px;
    padding: 12px;
  }
}

@media (max-width: 430px) {
  .marketplace-page:not(.marketplace-home) .commerce-grid {
    grid-template-columns: 1fr;
  }

  .marketplace-page:not(.marketplace-home) .commerce-product-image {
    height: 210px;
  }

  .marketplace-page:not(.marketplace-home) .commerce-product-body {
    min-height: 0;
  }
}
