/* Marketplace shop — Amazon/eBay-inspired (not logistics landing) */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Serif:wght@600;700&display=swap");

:root {
  --mp-bg: #eaeded;
  --mp-surface: #ffffff;
  --mp-ink: #0f1111;
  --mp-muted: #565959;
  --mp-border: #d5d9d9;
  --mp-navy: #131921;
  --mp-navy-2: #232f3e;
  --mp-accent: #ff9900;
  --mp-accent-hover: #fa8900;
  --mp-accent-text: #0f1111;
  --mp-link: #007185;
  --mp-link-hover: #c7511f;
  --mp-success: #067d62;
  --mp-danger: #b12704;
  --mp-star: #de7921;
  --mp-radius: 8px;
  --mp-shadow: 0 2px 5px rgba(15, 17, 17, 0.08);
  --mp-font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mp-display: "IBM Plex Serif", Georgia, serif;
}

* { box-sizing: border-box; }
body.mp-body {
  margin: 0;
  font-family: var(--mp-font);
  background: var(--mp-bg);
  color: var(--mp-ink);
  min-height: 100vh;
}

a { color: var(--mp-link); text-decoration: none; }
a:hover { color: var(--mp-link-hover); text-decoration: underline; }

.mp-top {
  background: var(--mp-navy);
  color: #fff;
  font-size: 12px;
}
.mp-top__inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.mp-top a { color: #ddd; }
.mp-top a:hover { color: #fff; text-decoration: none; }

.mp-header {
  background: var(--mp-navy-2);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.mp-header__inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}
.mp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  text-decoration: none !important;
}
.mp-logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(145deg, #ff9900, #f3a847);
  color: #131921;
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.mp-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.mp-logo__text strong {
  font-family: var(--mp-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mp-logo__text em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.72;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mp-top__links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mp-top__sep { opacity: 0.5; }
.mp-currency {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 2px;
}
.mp-currency__label {
  opacity: 0.75;
  font-size: 12px;
  margin-right: 2px;
}
.mp-currency__btn {
  color: #d5d9d9 !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  line-height: 1.4;
}
.mp-currency__btn:hover {
  color: #fff !important;
  border-color: rgba(255,255,255,0.55);
}
.mp-currency__btn.is-active {
  color: #0f1111 !important;
  background: #ff9900;
  border-color: #ff9900;
}
.mp-top__courier { color: #ff9900 !important; font-weight: 600; }
.mp-subnav__courier {
  margin-left: auto;
  color: #ffd814 !important;
  font-weight: 600;
}

.mp-footer--shop {
  background: #131921;
  padding: 0 0 24px;
}
.mp-footer__back {
  background: #37475a;
  text-align: center;
  padding: 12px;
}
.mp-footer__back a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.mp-footer__back a:hover { text-decoration: underline; color: #fff; }
.mp-footer__inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px 16px 20px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}
.mp-footer__brand p {
  margin: 10px 0 0;
  line-height: 1.5;
  color: #ddd;
  max-width: 28rem;
}
.mp-footer__powered {
  font-size: 12px !important;
  color: #aaa !important;
}
.mp-footer__powered a { color: #ff9900; font-weight: 600; }
.mp-footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--mp-display);
  font-size: 1.15rem;
}
.mp-footer__legal {
  max-width: 1500px;
  margin: 0 auto;
  padding: 16px;
  border-top: 1px solid #3a4553;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  color: #999;
  font-size: 12px;
}
.mp-footer__legal a { color: #ccc; }

@media (max-width: 960px) {
  .mp-footer__inner { grid-template-columns: 1fr 1fr; }
  .mp-subnav__courier { margin-left: 0; width: 100%; }
}

.mp-search {
  display: flex;
  width: 100%;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid transparent;
  background: #fff;
}
.mp-search:focus-within { border-color: var(--mp-accent); }
.mp-search__dept {
  display: flex;
  flex-shrink: 0;
  background: #e6e6e6;
  border-right: 1px solid #cdcdcd;
}
.mp-search select {
  appearance: auto;
  -webkit-appearance: menulist;
  border: 0;
  background: #e6e6e6;
  padding: 0 28px 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--mp-ink);
  max-width: 160px;
  min-width: 108px;
  height: 44px;
  cursor: pointer;
}
.mp-search select:hover { background: #dcdcdc; }
.mp-search input {
  flex: 1;
  border: 0;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  min-width: 0;
  background: #fff;
  color: var(--mp-ink);
}
.mp-search input:focus { outline: none; }
.mp-search button {
  border: 0;
  background: var(--mp-accent);
  color: var(--mp-accent-text);
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.mp-search button:hover { background: var(--mp-accent-hover); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 720px) {
  .mp-header__inner {
    grid-template-columns: 1fr;
  }
  .mp-search select {
    max-width: 120px;
    min-width: 96px;
  }
}

.mp-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mp-header__link {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  line-height: 1.2;
}
.mp-header__link strong { display: block; font-size: 14px; }
.mp-header__account {
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 4px 8px;
  margin: -4px -8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mp-header__account:hover,
.mp-header__account:focus-visible {
  border-color: #fff;
  outline: none;
}
.mp-header__account-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}
.mp-header__account-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.mp-header__link summary {
  list-style: none;
}
.mp-header__link summary::-webkit-details-marker {
  display: none;
}
.mp-cart-btn {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  color: #fff !important;
  text-decoration: none !important;
  position: relative;
  font-weight: 700;
}
.mp-cart-btn__icon { font-size: 1.6rem; line-height: 1; }
.mp-cart-btn__badge {
  position: absolute;
  top: -4px;
  left: 14px;
  background: var(--mp-accent);
  color: #111;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.mp-subnav {
  background: #37475a;
  color: #fff;
  font-size: 13px;
}
.mp-subnav__inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.mp-subnav a { color: #fff; text-decoration: none; }
.mp-subnav a:hover { text-decoration: underline; color: #fff; }

.mp-main {
  max-width: 1500px;
  margin: 0 auto;
  padding: 16px;
  min-height: 60vh;
}

.mp-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.mp-cat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mp-cat-card:hover {
  border-color: #232f3e;
  box-shadow: 0 2px 10px rgba(15, 17, 17, 0.08);
}
.mp-cat-card strong {
  font-size: 0.95rem;
  color: #0f1111;
}
.mp-cat-card span {
  font-size: 12px;
  color: #565959;
  line-height: 1.35;
}

.mp-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.mp-store-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 14px;
  background: #fff;
  border: 2px solid #e7e7e7;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.mp-store-card:hover {
  border-color: #232f3e;
}
.mp-store-card.is-preferred {
  border-color: #232f3e;
  background: #fff8e8;
}
.mp-store-card__logo {
  width: 100%;
  height: 40px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}
.mp-store-card__meta {
  font-size: 12px;
  color: #565959;
}

.mp-banner {
  background: linear-gradient(90deg, #232f3e 0%, #37475a 55%, #ff9900 160%);
  color: #fff;
  border-radius: 4px;
  padding: 28px 32px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.mp-banner h1 {
  font-family: var(--mp-display);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.mp-banner p { margin: 0 0 14px; opacity: 0.92; max-width: 36rem; line-height: 1.5; }
.mp-banner__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-chip {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
}
.mp-banner__panel {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.mp-banner__panel li { margin: 6px 0; font-size: 14px; }

.mp-alert {
  background: #fff8e7;
  border: 1px solid #f0deab;
  color: #5c4813;
  padding: 10px 14px;
  border-radius: var(--mp-radius);
  margin-bottom: 14px;
  font-size: 13px;
}
.mp-alert--error {
  background: #fff0ed;
  border-color: #f5c2c0;
  color: var(--mp-danger);
}

.mp-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  align-items: start;
}
.mp-filters {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: 4px;
  padding: 14px;
}
.mp-filters h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}
.mp-filters label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  margin: 8px 0;
  color: var(--mp-ink);
  cursor: pointer;
}
.mp-filters a.sort-link {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: var(--mp-ink);
  text-decoration: none;
}
.mp-filters a.sort-link.active { color: var(--mp-link); font-weight: 700; }

.mp-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: baseline;
  margin-bottom: 10px;
}
.mp-toolbar h2 { margin: 0; font-size: 1.15rem; }
.mp-toolbar p { margin: 0; color: var(--mp-muted); font-size: 13px; }

.mp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.mp-card {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: box-shadow .15s ease;
}
.mp-card:hover { box-shadow: var(--mp-shadow); }
.mp-card__img {
  aspect-ratio: 1;
  background: #fff;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--mp-border);
  padding: 12px;
}
.mp-card__img img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}
.mp-card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.mp-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--mp-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mp-card a.mp-card__title-link { color: inherit; text-decoration: none; }
.mp-card a.mp-card__title-link:hover .mp-card__title { color: var(--mp-link-hover); }
.mp-stars { color: var(--mp-star); font-size: 12px; letter-spacing: 1px; }
.mp-meta { color: var(--mp-muted); font-size: 12px; margin: 0; }
.mp-price {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: auto;
}
.mp-price small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--mp-muted);
  margin-top: 2px;
}
.mp-ship { color: var(--mp-success); font-size: 12px; font-weight: 600; }

.mp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 20px;
  border: 1px solid #a88734;
  background: linear-gradient(180deg, #f7dfa5, #f0c14b);
  color: var(--mp-ink) !important;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none !important;
}
.mp-btn:hover { background: linear-gradient(180deg, #f5d78e, #eeb933); }
.mp-btn--primary {
  border-color: #c45500;
  background: linear-gradient(180deg, #f7ca00, #f3a847);
}
.mp-btn--ghost {
  background: #fff;
  border-color: var(--mp-border);
}
.mp-btn--block { width: 100%; }
#checkout-pay-btn {
  width: 100%;
  padding-left: 28px;
  padding-right: 28px;
}

.mp-pdp {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.85fr;
  gap: 20px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: 4px;
  padding: 20px;
}
.mp-pdp__gallery {
  border: 1px solid var(--mp-border);
  border-radius: 4px;
  background: #fff;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 16px;
}
.mp-pdp__main-img {
  display: grid;
  place-items: center;
  min-height: 280px;
  flex: 1;
}
.mp-pdp__gallery img { max-width: 100%; max-height: 420px; object-fit: contain; }
.mp-pdp__main-img img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}
.mp-pdp__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  min-height: 56px;
}
.mp-pdp__thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid var(--mp-border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 64px;
}
.mp-pdp__thumb img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}
.mp-pdp__thumb.is-active,
.mp-pdp__thumb:hover {
  border-color: #232f3e;
}
.mp-pdp__desc-body {
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #0f1111;
  max-height: 420px;
  overflow: auto;
  padding: 10px 12px;
  background: #fafafa;
  border: 1px solid var(--mp-border);
  border-radius: 4px;
}
.mp-pdp__specifics {
  margin: 0;
  padding: 0;
  border: 1px solid var(--mp-border);
  border-radius: 4px;
  background: #fff;
}
.mp-pdp__spec-row {
  display: grid;
  grid-template-columns: minmax(120px, 38%) 1fr;
  gap: 8px 12px;
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}
.mp-pdp__spec-row:last-child { border-bottom: 0; }
.mp-pdp__spec-row dt {
  margin: 0;
  color: #565959;
  font-weight: 600;
}
.mp-pdp__spec-row dd {
  margin: 0;
  color: #0f1111;
}
.mp-breadcrumb { font-size: 12px; color: var(--mp-muted); margin-bottom: 10px; }
.mp-pdp__title {
  font-family: var(--mp-display);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  margin: 0 0 8px;
  line-height: 1.25;
}
.mp-buybox {
  border: 1px solid var(--mp-border);
  border-radius: 8px;
  padding: 16px;
  align-self: start;
  position: sticky;
  top: 84px;
}
.mp-buybox .mp-price { font-size: 1.5rem; margin: 0 0 8px; }
.mp-buybox form { display: grid; gap: 10px; margin-top: 12px; }
.mp-buybox select, .mp-buybox input[type=number] {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--mp-border);
  border-radius: 6px;
  font: inherit;
}
.mp-breakdown {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  font-size: 13px;
}
.mp-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
}
.mp-breakdown li strong { font-size: 14px; }

.mp-cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
}
.mp-cart-table th, .mp-cart-table td {
  padding: 14px;
  border-bottom: 1px solid var(--mp-border);
  text-align: left;
  vertical-align: top;
}
.mp-cart-table th { background: #f7f8f8; font-size: 12px; color: var(--mp-muted); }
.mp-cart-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
}
.mp-cart-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--mp-border);
}
.mp-checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 16px;
}
.mp-panel {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: 4px;
  padding: 18px;
}
.mp-panel h2 { margin: 0 0 14px; font-size: 1.2rem; }
.mp-field { margin-bottom: 12px; }
.mp-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.mp-field input, .mp-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #888c8c;
  border-radius: 4px;
  font: inherit;
}
.mp-field input:focus, .mp-field textarea:focus {
  outline: 2px solid #007185;
  border-color: #007185;
}

.mp-footer {
  background: var(--mp-navy-2);
  color: #ddd;
  margin-top: 40px;
  padding: 28px 16px;
  font-size: 13px;
}
.mp-footer__inner {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.mp-footer a { color: #ddd; }
.mp-footer h4 { color: #fff; margin: 0 0 10px; font-size: 14px; }
.mp-footer ul { list-style: none; padding: 0; margin: 0; }
.mp-footer li { margin: 6px 0; }

.mp-empty {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  padding: 48px 24px;
  text-align: center;
  border-radius: 4px;
}

@media (max-width: 960px) {
  .mp-header__inner { grid-template-columns: 1fr; }
  .mp-layout, .mp-pdp, .mp-checkout-grid, .mp-banner { grid-template-columns: 1fr; }
  .mp-filters { display: none; }
  .mp-buybox { position: static; }
}
