.merchant-page {
  --store-ink: #191b25;
  --store-accent: #85394f;
  --store-tint: #f8eef0;
  --store-bg: #faf8f8;
  --store-border: #eee3e5;
  --store-hero: #39242c;
  background: var(--store-bg);
  color: var(--store-ink);
}

.merchant-page .avoja-header { background: #fff; border-bottom: 1px solid var(--store-border); }
.merchant-page .top-header { min-height: 70px; }
.merchant-page .main-header { border-bottom: 0; }
.merchant-page .nav-row { min-height: 45px; }
.merchant-page .nav-quick { display: none; }
.merchant-shell { padding-block: 17px clamp(46px, 7vw, 86px); }
.merchant-shell .breadcrumb { font-size: .88rem; }
.merchant-shell .breadcrumb [aria-current] { color: var(--store-accent); }

.merchant-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  min-height: 254px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--store-hero);
  color: #fff;
}

.merchant-hero-copy { display: grid; align-content: center; padding: clamp(22px, 3.4vw, 46px); min-width: 0; }
.merchant-hero-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 13px; min-height: 38px; margin-bottom: 18px; }
.merchant-hero-brand .logo-stage { display: inline-flex; flex-direction: row; justify-content: center; aspect-ratio: auto; border-radius: 6px; width: fit-content; min-height: 38px; padding: 7px 13px; background: #fff; color: var(--store-ink); gap: 7px; }
.merchant-hero-brand .logo-stage img { width: 75px; height: 23px; object-fit: contain; }
.merchant-hero-brand .logo-stage[data-brand="dhgate"] img { width: 28px; height: 28px; max-width: none; }
.merchant-hero-brand .logo-stage.logo-with-icon img { width: 20px; height: 20px; border-radius: 4px; }
.merchant-hero-brand .logo-stage span { font-size: .89rem; padding: 0; }
.merchant-category { color: #fff; border: 1px solid #ffffff65; border-radius: 999px; padding: .2rem .7rem; font-size: .82rem; }
.merchant-category:hover { background: #ffffff15; color: #fff; text-decoration: underline; }
.merchant-hero h1 { color: #fff; font-size: clamp(2.15rem, 4.8vw, 4.15rem); line-height: 1; letter-spacing: -.045em; overflow-wrap: anywhere; }
.merchant-hero h1 span { display: block; margin-bottom: 7px; color: #fff; font-size: clamp(.85rem, 1.8vw, 1.15rem); line-height: 1.2; letter-spacing: 0; font-weight: 500; }
.merchant-summary { max-width: 45ch; margin-top: 13px; color: #fff; font-size: .95rem; }
.merchant-summary:empty { display: none; }
.merchant-cover-panel { position: relative; display: grid; place-items: center; min-width: 0; overflow: hidden; background: radial-gradient(ellipse at 68% 21%, #f7eaec, #e8ccd3); }
.merchant-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.merchant-cover-panel .logo-stage { width: min(56%, 235px); aspect-ratio: 2 / 1; min-height: 52px; background: white; box-shadow: 0 8px 28px #3d252a20; }
.merchant-cover-panel .logo-stage img { max-width: 72%; }
.merchant-cover-panel .logo-stage.logo-with-icon img { width: auto; height: clamp(24px, 5vw, 54px); max-width: 72%; object-fit: contain; }
.merchant-cover-panel .logo-stage.logo-with-icon span { display: none; }
.merchant-site-link { display: inline-flex; width: fit-content; gap: 7px; color: var(--store-accent); text-decoration: underline; text-underline-offset: .15em; font-weight: 700; }
.merchant-site-link:hover { color: var(--store-accent); }
.merchant-site-visit { margin-top: 12px; }
.merchant-site-visit small { display: block; color: var(--muted); }

.merchant-layout { display: grid; grid-template-columns: minmax(0, 2.45fr) minmax(235px, 1fr); align-items: start; gap: 26px; margin-top: 27px; }
.merchant-deals { min-width: 0; scroll-margin-top: 18px; }
.merchant-offers-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 10px; margin-bottom: 14px; }
.merchant-offers-heading h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); letter-spacing: -.022em; }
.merchant-count { color: var(--muted); font-size: .88rem; }
.merchant-count:empty { display: none; }
.merchant-filters { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: 12px; padding: 4px; background: #fff; border: 1px solid var(--store-border); border-radius: 8px; width: fit-content; }
.merchant-filters label { position: relative; cursor: pointer; }
.merchant-filters input { position: absolute; inset: 0; opacity: 0; }
.merchant-filters span { display: block; padding: 6px 10px; border-radius: 5px; font-size: .9rem; }
.merchant-filters input:checked + span { background: var(--store-tint); color: var(--store-accent); font-weight: 600; }
.merchant-filters input:focus-visible + span { outline: 2px solid var(--store-accent); }

.merchant-offers, .merchant-sidebar { display: grid; gap: 12px; }
.merchant-ticket {
  display: grid;
  grid-template-columns: minmax(104px, .75fr) minmax(0, 2.6fr) auto;
  align-items: center;
  min-height: 128px;
  border: 1px solid var(--store-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 9px #29202f08;
}

.merchant-ticket:hover { box-shadow: 0 4px 16px #29202f10; }
.merchant-ticket:target { outline: 2px solid var(--store-accent); outline-offset: 2px; scroll-margin-top: 12px; }
.merchant-ticket-value { align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-right: 1px dashed var(--store-border); padding: 12px 7px; background: var(--store-tint); color: var(--store-accent); text-align: center; }
.merchant-ticket-amount { font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -.05em; line-height: .98; }
.merchant-ticket-qualifier, .merchant-ticket-type { font-size: .8rem; line-height: 1.15; font-weight: 600; }
.merchant-ticket-icon { font-size: 1.55rem; margin-bottom: 4px; }
.merchant-ticket-copy { padding: 15px clamp(11px, 2vw, 20px); }
.merchant-ticket-copy .offer-title { color: var(--store-ink); font-size: clamp(1.08rem, 1.9vw, 1.35rem); line-height: 1.24; }
.merchant-ticket-copy .offer-terms { margin-top: 5px; color: var(--muted); }
.merchant-ticket-copy .offer-expiry { font-size: .83rem; }
.merchant-ticket-visit { display: grid; gap: 4px; margin-right: 14px; text-align: center; }
.merchant-ticket-visit small { color: var(--muted); font-size: .75rem; }
.merchant-ticket-action { display: inline-flex; gap: 7px; align-items: center; justify-content: center; min-height: 43px; padding: 7px 14px; border-radius: 7px; background: var(--store-accent); color: #fff; text-align: center; font-weight: 700; font-size: .92rem; }
.merchant-ticket-action:hover { color: #fff; text-decoration: underline; text-underline-offset: .12em; }
.merchant-ticket-action:focus-visible { outline-color: var(--store-accent); outline-offset: 2px; }
.merchant-offer-tools { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 10px 16px; }
.merchant-offer-tools label { display: grid; flex: 1 1 175px; gap: 4px; font-size: .9rem; font-weight: 600; }
.merchant-offer-tools input, .merchant-offer-tools select { min-width: 0; min-height: 42px; padding: 6px 10px; border: 1px solid var(--store-border); border-radius: 7px; background: white; color: var(--store-ink); }
.merchant-more { margin-top: 14px; }
.merchant-page-filters { flex-wrap: wrap; align-items: end; }
.merchant-page-filters .pill { padding-inline: .9rem; }
.merchant-page-filters > a { color: var(--blue-ink); padding-block: .65rem; text-underline-offset: .2em; text-decoration: underline; }
.merchant-history, .merchant-related { margin-top: clamp(20px, 3.2vw, 40px); }
.merchant-history { border: 1px solid var(--store-border); border-radius: 12px; background: white; }
.merchant-history summary { padding: 13px 16px; cursor: pointer; color: var(--store-ink); font-weight: 700; }
.merchant-history-list, .merchant-related-list { padding: 0; margin: 0; list-style: none; }
.merchant-history-list { padding: 0 16px 12px; }
.merchant-history-list li { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); }
.merchant-history-list span, .merchant-related-card span { color: var(--muted); font-size: .88rem; }
.merchant-history-list a, .merchant-related-heading a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: .18em; }
.merchant-related-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin-bottom: 12px; }
.merchant-related-heading h2 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); }
.merchant-related-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.merchant-related-card { display: grid; grid-template-columns: minmax(62px, 80px) minmax(0, 1fr); align-items: center; gap: 12px; height: 100%; padding: 10px; border: 1px solid var(--store-border); border-radius: 10px; background: white; }
.merchant-related-card:hover { color: var(--blue-ink); border-color: #7bb7d9; }
.merchant-related-card strong, .merchant-related-card span { display: block; overflow-wrap: anywhere; }
.merchant-related-logo .logo-stage { min-height: 50px; }
.merchant-related-logo .logo-stage span { font-size: .75rem; line-height: 1.08; }
.merchant-related-logo .logo-with-icon span { display: none; }
.merchant-related-logo .logo-with-icon img { width: 32px; height: 32px; }
.merchant-guide-link { display: inline-block; width: fit-content; margin-top: 9px; color: var(--blue-ink); text-decoration: underline; text-underline-offset: .18em; }
.merchant-guide { max-width: 860px; margin-top: clamp(20px, 3.2vw, 40px); scroll-margin-top: 16px; }
.merchant-guide h2 { margin-bottom: 12px; font-size: clamp(1.25rem, 2.6vw, 1.7rem); }
.merchant-guide-items { display: grid; gap: 8px; }
.merchant-guide-item { border: 1px solid var(--store-border); border-radius: 10px; background: white; }
.merchant-guide-item summary { padding: 12px 16px; color: var(--store-ink); cursor: pointer; font-weight: 700; }
.merchant-guide-item[open] summary { border-bottom: 1px solid var(--line); }
.merchant-guide-answer { display: grid; gap: 8px; padding: 12px 16px; overflow-wrap: anywhere; }
.merchant-guide-answer .merchant-guide-source { color: var(--muted); font-size: .88rem; }

@media (max-width: 760px) {
  .merchant-related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .merchant-related-list { grid-template-columns: 1fr; }
}

@media (max-width: 700px) and (pointer: coarse) {
  .merchant-ticket { position: relative; }
  .merchant-ticket-action::after { position: absolute; inset: 0; content: ""; border-radius: inherit; }
}
.merchant-about, .merchant-side-note { padding: clamp(16px, 2vw, 23px); border: 1px solid var(--store-border); border-radius: 12px; background: #fff; }
.merchant-about h2, .merchant-side-note h2 { font-size: 1.12rem; margin-bottom: 8px; }
.merchant-about p, .merchant-side-note p { color: var(--muted); font-size: .93rem; }
.merchant-profile dl { margin: 0; font-size: .93rem; }
.merchant-profile dl > div + div { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--store-border); }
.merchant-profile dt { font-weight: 700; margin-bottom: 3px; }
.merchant-profile dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.merchant-profile small { display: block; margin-top: 4px; font-size: .78rem; }
.merchant-sources p + p { margin-top: 8px; }
.merchant-news ul { list-style: none; margin: 0; padding: 0; }
.merchant-news li + li { margin-top: .5rem; }
.merchant-news a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: .18em; }
.merchant-insights { margin-top: clamp(20px, 3.2vw, 40px); padding: clamp(14px, 2.6vw, 24px); border: 1px solid var(--store-border); border-radius: 12px; background: #fff; }
.merchant-insights h2 { margin-bottom: 14px; font-size: clamp(1.16rem, 2.5vw, 1.45rem); }
.merchant-insight-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.merchant-insight-table th, .merchant-insight-table td { padding: 10px 8px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.merchant-insight-table th { background: var(--store-tint); color: var(--store-ink); }
.merchant-insight-table td { border-bottom: 1px solid var(--store-border); }
.merchant-insight-table tbody tr:last-child td { border-bottom: 0; }
.merchant-insight-table td:first-child { width: 20%; color: var(--store-accent); font-weight: 700; }
.merchant-insight-table td:last-child { width: 26%; color: var(--muted); }
.merchant-insight-table a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: .15em; }
.merchant-insight-counts { margin-top: 12px; color: var(--muted); font-size: .88rem; }

@media (min-width: 761px) {
  .merchant-sidebar { padding-top: 45px; }
}

@media (max-width: 900px) {
  .merchant-ticket { grid-template-columns: minmax(85px, .72fr) minmax(0, 2.6fr); }
  .merchant-ticket-value { grid-row: span 2; }
  .merchant-ticket-visit { justify-self: start; margin: 0 12px 12px; }
  .merchant-ticket-copy { padding-bottom: 9px; }
}

@media (max-width: 760px) {
  .merchant-layout { grid-template-columns: 1fr; gap: 20px; }
  .merchant-sidebar:empty { display: none; }
}

@media (max-width: 650px) {
  .merchant-page .nav-row { min-height: 39px; }
  .merchant-shell { padding-top: 12px; }
  .merchant-shell .breadcrumb { margin-bottom: 10px; }
  .merchant-hero, .merchant-ticket { border-radius: 10px; }
  .merchant-hero { min-height: 169px; grid-template-columns: minmax(0, 1fr) minmax(0, .42fr); }
  .merchant-cover { object-position: 51% center; }
  .merchant-cover-panel .logo-stage { width: 74%; min-height: 40px; }
  .merchant-hero-copy { padding: 17px 13px; }
  .merchant-hero-brand { min-height: 30px; margin-bottom: 13px; gap: 5px 8px; }
  .merchant-hero-brand .logo-stage { min-height: 30px; padding: 4px 8px; }
  .merchant-hero-brand .logo-stage img { width: 59px; height: 18px; }
  .merchant-summary { font-size: .85rem; line-height: 1.35; }
  .merchant-layout { margin-top: 20px; }
  .merchant-ticket-visit { justify-self: stretch; }
}
