:root {
  --yellow: #ffdd00;
  --green: #00a650;
  --blue: #0086ff;
  --red: #0086ff;
  --deep-red: #0057c8;
  --coral: #34b8ff;
  --ink: #111318;
  --muted: #667085;
  --line: #e5e7eb;
  --soft: #f5f6f8;
  --paper: #ffffff;
  --shadow: 0 18px 46px rgba(17, 19, 24, 0.11);
  --red-gradient: linear-gradient(135deg, var(--deep-red), var(--red) 58%, var(--coral));
  --warm-gradient: linear-gradient(135deg, #ffffff 0%, #f5f8ff 48%, #eef7ff 100%);
  --page-blue-gradient: linear-gradient(180deg, #2f63cf 0, #3478ee 170px, #5aaaf7 430px, #d9f0ff 720px, #ffffff 920px);
  --site-max: 1520px;
  --font-ui: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-blue-gradient) no-repeat #ffffff;
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.search-page {
  background: #ffffff;
}

.internal-topbar-page .site-header {
  background: linear-gradient(180deg, #2f63cf 0, #3478ee 58%, #3a84f0 100%);
  border-bottom: 1px solid #edf1f5;
}

.internal-topbar-page .promo-bar {
  background: rgba(0, 55, 130, 0.16);
  color: #ffffff;
}

.internal-topbar-page .main-header {
  padding-top: 18px;
  padding-bottom: 18px;
}

.internal-topbar-page .search-box {
  border-color: #dbe4ee;
  box-shadow: 0 12px 30px rgba(17, 19, 24, 0.08);
}

.internal-topbar-page .market-actions a {
  color: rgba(255, 255, 255, 0.96);
}

.internal-topbar-page .admin-link {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #ffffff;
  color: #344054;
  box-shadow: none;
}

main {
  background: transparent;
  padding-top: 18px;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: relative;
  z-index: 20;
  background: transparent;
  box-shadow: none;
}

.promo-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 5vw;
  background: rgba(0, 55, 130, 0.2);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
}

.main-header {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(360px, 760px) minmax(250px, auto);
  gap: 24px;
  align-items: center;
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 8px 24px 12px 14px;
}

.main-header.compact {
  grid-template-columns: 1fr auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  margin-left: -8px;
  width: fit-content;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.brand-logo {
  display: block;
  width: clamp(260px, 20vw, 330px);
  height: 104px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  width: 100%;
  max-width: 760px;
  justify-self: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(17, 19, 24, 0.14);
}

.search-input-shell {
  position: relative;
  min-width: 0;
}

.search-box label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-box input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 0;
  padding: 0 16px;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 6px;
  border: 1px solid #e5edf8;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 44px rgba(17, 19, 24, 0.12);
  padding: 10px;
  z-index: 35;
}

body.search-page .search-suggestions {
  border: 1px solid #dbe4ee;
  border-radius: 18px;
  box-shadow: 0 28px 60px rgba(17, 19, 24, 0.14);
  padding: 12px;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #344054;
  cursor: pointer;
  text-align: left;
  padding: 10px 12px;
}

body.search-page .search-suggestion-item {
  min-height: 50px;
  border-radius: 12px;
}

.search-suggestion-item:hover {
  background: #f5f9ff;
}

.search-suggestion-item strong {
  font-size: 14px;
  font-weight: 700;
}

.search-suggestion-item span {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 700;
}

.search-box button,
.primary-button,
.secondary-button,
.admin-link,
.buy-button,
.danger-button,
.edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.search-box button,
.primary-button,
.buy-button {
  background: var(--blue);
  color: #ffffff;
}

.search-box button,
.primary-button,
.secondary-button,
.admin-link {
  padding: 0 18px;
}

.secondary-button,
.admin-link {
  background: #ffffff;
  color: #475467;
  box-shadow: 0 8px 18px rgba(17, 19, 24, 0.08);
}

button.admin-link {
  width: 100%;
}

.danger-button {
  background: #fee4e2;
  color: #b42318;
  padding: 0 14px;
}

.edit-button {
  background: #eef4ff;
  color: #135bad;
  padding: 0 14px;
}

.department-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: visible;
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 24px 14px;
  position: relative;
  z-index: 30;
}

.department-item {
  position: relative;
}

.department-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-weight: 500;
  padding: 0 14px;
  white-space: nowrap;
}

.department-trigger.is-featured {
  border-radius: 8px;
}

.department-item.is-active .department-trigger,
.department-item.is-open .department-trigger,
.department-item:hover .department-trigger {
  background: rgba(255, 255, 255, 0.12);
}

.department-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  margin-top: -3px;
  opacity: 0.9;
  transform: rotate(45deg);
  transition: transform 180ms ease, opacity 180ms ease;
}

.department-item.is-open .department-chevron {
  transform: rotate(225deg);
  margin-top: 3px;
}

.department-item.is-open .department-submenu {
  display: grid;
}

.department-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: none;
  gap: 14px;
  width: min(560px, 72vw);
  border: 1px solid #e8edf6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(17, 19, 24, 0.16);
  padding: 14px;
}

.department-submenu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.department-subitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid #edf1f7;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  text-align: left;
  padding: 0 12px;
}

.department-subitem:hover {
  background: #f5f9ff;
}

.department-subitem-all {
  border-bottom: 0;
  border-radius: 8px;
  background: #f7fbff;
  color: var(--deep-red);
  font-weight: 700;
}

.market-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 14px;
  color: #ffffff;
  font-weight: 500;
  white-space: nowrap;
}

.market-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.96);
}

.market-action-icon,
.surface-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
}

.market-action-icon {
  width: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.admin-link .market-action-icon {
  color: #98a2b3;
}

.surface-icon {
  width: 20px;
  color: #98a2b3;
}

.surface-icon.is-inline {
  width: auto;
  margin-right: 8px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 22px;
  align-items: stretch;
  padding: 34px 5vw;
}

.market-hero {
  position: relative;
  display: block;
  max-width: var(--site-max);
  height: 344px;
  margin: 0 auto 24px;
  padding: 0 24px;
}

.hero-frame {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 55, 130, 0.12);
  background: #0057c8;
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: stretch;
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 18%, rgba(255, 255, 255, 0.2), transparent 170px),
    linear-gradient(120deg, #0047b8 0%, #006ee8 52%, #23a8ff 100%);
  color: #ffffff;
}

.hero-slide-clear {
  background:
    linear-gradient(120deg, #f7fbff 0%, #dff2ff 48%, #2b98f3 100%);
  color: var(--ink);
}

.hero-slide-yellow {
  background:
    radial-gradient(circle at 86% 20%, rgba(255, 255, 255, 0.58), transparent 160px),
    linear-gradient(120deg, #0057c8 0%, #0a86ff 50%, #ffdd00 100%);
  color: #ffffff;
}

.market-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding: 18px 46px 24px;
}

.market-hero-copy .eyebrow {
  color: currentColor;
  opacity: 0.92;
}

.market-hero-copy h1 {
  display: -webkit-box;
  max-width: 700px;
  max-height: 146px;
  overflow: hidden;
  color: currentColor;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.12;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.market-hero-copy p:not(.eyebrow) {
  display: -webkit-box;
  max-width: 620px;
  max-height: 54px;
  overflow: hidden;
  color: currentColor;
  font-size: 17px;
  opacity: 0.86;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-slide-clear .market-hero-copy .primary-button {
  background: var(--deep-red);
  color: #ffffff;
}

.market-hero-copy .secondary-button {
  color: var(--deep-red);
}

.market-hero-visual {
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 18px 24px 24px 0;
  text-align: center;
}

.market-hero-visual img {
  width: min(100%, 330px);
  height: 172px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 55, 130, 0.18));
}

.market-hero-visual strong {
  color: var(--yellow);
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 55, 130, 0.25);
}

.hero-slide-clear .market-hero-visual strong {
  color: var(--deep-red);
  text-shadow: none;
}

.market-hero-visual span {
  color: currentColor;
  font-weight: 700;
  opacity: 0.88;
}

.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
  padding: 0;
  transition: background 180ms ease, transform 180ms ease;
}

.hero-dots button.is-active {
  width: 10px;
  background: #ffffff;
  transform: scale(1.16);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 84px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 46px;
  line-height: 0.9;
  z-index: 3;
  text-shadow: 0 4px 14px rgba(0, 28, 78, 0.46);
  box-shadow: none;
  transform: translateY(-50%);
  transition: transform 180ms ease, color 180ms ease, text-shadow 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.hero-arrow:first-child {
  left: 22px;
}

.hero-arrow:last-child {
  right: 22px;
}

.hero-arrow:hover {
  transform: translateY(-50%) scale(1.04);
  color: var(--yellow);
  background: transparent;
  text-shadow: 0 5px 16px rgba(0, 28, 78, 0.52);
  box-shadow: none;
}

.market-hero[data-theme="clear"] .hero-arrow {
  color: var(--deep-red);
  text-shadow: 0 3px 12px rgba(255, 255, 255, 0.9);
}

.market-hero[data-theme="clear"] .hero-arrow:hover {
  color: #003b8f;
}

.market-hero[data-theme="yellow"] .hero-arrow:last-child {
  color: var(--deep-red);
  text-shadow: 0 3px 12px rgba(255, 255, 255, 0.86);
}

.market-hero[data-theme="yellow"] .hero-arrow:last-child:hover {
  color: #003b8f;
}

.market-showcase {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: var(--site-max);
  margin: 0 auto 8px;
  padding: 0 24px;
}

.market-showcase article {
  min-height: 238px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(17, 19, 24, 0.07);
  padding: 14px;
}

.home-editorial-block,
.home-categories-block {
  padding-top: 18px;
}

.curation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 16px;
}

.curation-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(220px, 0.82fr);
  align-items: stretch;
  gap: 16px;
  overflow: hidden;
  border: 1px solid #d9e9ff;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f8fbff 55%, #eef6ff 100%);
  box-shadow: 0 18px 38px rgba(17, 19, 24, 0.07);
  padding: 20px;
}

.curation-spotlight-copy {
  display: grid;
  align-content: start;
  gap: 12px;
}

.curation-spotlight-copy h3 {
  display: -webkit-box;
  min-height: 0;
  margin: 0;
  color: #344054;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.12;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.curation-spotlight-copy p:not(.eyebrow) {
  color: #526071;
  font-size: 15px;
  line-height: 1.55;
}

.curation-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.curation-meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  background: #ffffff;
  color: #526071;
  font-size: 12px;
  font-weight: 700;
  padding: 0 12px;
}

.curation-price-row {
  display: grid;
  gap: 4px;
}

.curation-price-row strong {
  color: #0f172a;
  font-size: clamp(28px, 2.5vw, 38px);
  line-height: 1;
}

.curation-price-row small {
  color: #667085;
  font-weight: 700;
}

.curation-spotlight-visual {
  display: grid;
  align-items: center;
  border: 1px solid #e4eefb;
  border-radius: 14px;
  background: #ffffff;
  padding: 16px;
}

.curation-spotlight-visual img {
  width: 100%;
  height: 100%;
  max-height: 240px;
  object-fit: contain;
}

.curation-side-grid {
  display: grid;
  gap: 14px;
}

.curation-mini-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #e7edf6;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(17, 19, 24, 0.05);
  padding: 12px;
}

.curation-mini-card img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: contain;
  background: #f8fbff;
  padding: 8px;
}

.curation-mini-card span {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 700;
}

.curation-mini-card strong {
  display: -webkit-box;
  margin: 4px 0;
  overflow: hidden;
  color: #344054;
  font-size: 14px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.curation-mini-card small {
  color: #087b43;
  font-weight: 700;
}

.curation-mini-card .secondary-button {
  min-height: 36px;
  padding: 0 14px;
  box-shadow: none;
}

.market-showcase article > strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #475467;
  font-size: 17px;
  font-weight: 600;
}

.showcase-slot {
  display: grid;
  gap: 6px;
}

.showcase-slot img {
  width: 100%;
  height: 118px;
  object-fit: contain;
}

.showcase-slot span {
  min-height: 40px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.2;
  overflow: hidden;
}

.showcase-slot strong {
  color: #344054;
  font-size: 20px;
  font-weight: 700;
}

.showcase-slot small {
  color: #087b43;
  font-weight: 700;
}

.hero-copy,
.hero-panel,
.admin-form,
.admin-help {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 44px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.95) 48%, rgba(238, 247, 255, 0.96)),
    #ffffff;
  position: relative;
  overflow: hidden;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: var(--red-gradient);
}

.hero-copy > * {
  position: relative;
}

.hero-panel {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 320px;
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(0, 87, 200, 0.94), rgba(0, 134, 255, 0.9) 50%, rgba(52, 184, 255, 0.9)),
    #006fd6;
  color: #ffffff;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  display: block;
  width: 100%;
  min-height: 128px;
  border-radius: 8px;
  background: url("/assets/clickofertas-logo-transparent.png?v=2") center/contain no-repeat var(--red-gradient);
  box-shadow: 0 16px 32px rgba(17, 19, 24, 0.16);
}

.hero-panel strong {
  font-size: 30px;
  line-height: 1.05;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--deep-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 700;
}

h3 {
  min-height: 52px;
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.24;
  font-weight: 600;
}

.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  color: #364150;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 5vw;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 19, 24, 0.08);
}

.benefit-strip article {
  display: grid;
  gap: 4px;
  min-height: 82px;
  background:
    linear-gradient(145deg, #ffffff, #f7f8fa);
  padding: 16px;
}

.benefit-strip span,
.product-info p,
.price small,
.footer span,
.affiliate-note,
.admin-intro p,
.admin-help p,
.admin-help li {
  color: var(--muted);
}

.section-block,
.admin-main {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 36px 24px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 0 0, rgba(0, 134, 255, 0.12), transparent 280px),
    linear-gradient(180deg, #f0f8ff, #ffffff);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  padding: 22px;
  color: #667085;
}

.admin-sidebar-brand {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 1px solid #e8edf5;
  padding: 10px;
}

.admin-sidebar-brand img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: 104px;
  object-fit: contain;
}

.admin-menu {
  display: grid;
  align-content: start;
  gap: 8px;
}

.admin-menu-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  column-gap: 10px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
  padding: 0 12px;
}

.admin-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: #98a2b3;
  font-size: 15px;
  line-height: 1;
}

.admin-menu-label {
  display: block;
}

.admin-menu-item:hover,
.admin-menu-item.is-active {
  border-color: rgba(0, 134, 255, 0.18);
  background: linear-gradient(135deg, #ffffff, #eef7ff);
  color: #475467;
}

.admin-menu-item:hover .admin-menu-icon,
.admin-menu-item.is-active .admin-menu-icon {
  color: #667085;
}

.admin-sidebar-actions {
  display: grid;
  gap: 10px;
}

.admin-workspace {
  min-width: 0;
  padding: 28px 4vw 48px;
  color: #667085;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-topbar h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 54px);
  color: #344054;
}

.admin-section {
  display: none;
}

.admin-section.is-active {
  display: block;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stats article,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #f8f9fb);
  box-shadow: var(--shadow);
  color: #667085;
}

.affiliate-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.8fr);
  gap: 14px;
  margin-bottom: 14px;
}

.affiliate-profile-card,
.performance-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 18px;
}

.affiliate-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 8px;
}

.affiliate-profile span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--deep-red);
  font-weight: 900;
}

.affiliate-profile strong {
  font-size: 20px;
  color: #344054;
}

.affiliate-profile-card small {
  color: var(--muted);
}

.performance-card {
  display: grid;
  gap: 20px;
}

.performance-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.performance-header span {
  color: var(--muted);
}

.performance-header a {
  margin-left: auto;
  color: var(--blue);
  font-weight: 700;
}

.performance-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.performance-metrics div {
  display: grid;
  gap: 6px;
  background: #ffffff;
  padding: 0 18px;
}

.performance-metrics span {
  color: var(--muted);
  font-weight: 600;
}

.performance-metrics strong {
  font-size: 26px;
  color: #344054;
}

.compact-stats article {
  min-height: 92px;
}

.overview-insights {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading.slim {
  margin-bottom: 8px;
}

.insight-card,
.leaderboard-card,
.category-card {
  min-height: 100%;
}

.insight-list,
.leaderboard-list,
.category-performance-list {
  display: grid;
  gap: 10px;
}

.insight-item,
.leaderboard-item,
.category-performance-item {
  display: grid;
  align-items: center;
  border: 1px solid #e7edf6;
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  padding: 14px;
}

.insight-item {
  gap: 4px;
}

.insight-item span,
.leaderboard-item small,
.category-performance-item small {
  color: var(--muted);
}

.insight-item strong,
.category-performance-item strong,
.leaderboard-item strong {
  color: #344054;
}

.leaderboard-item,
.category-performance-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
}

.leaderboard-rank {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #eef6ff;
  color: var(--deep-red);
  font-weight: 800;
}

.leaderboard-value {
  color: var(--deep-red);
  font-weight: 800;
}

.category-performance-metrics {
  display: grid;
  gap: 4px;
  text-align: right;
}

.category-performance-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.affiliate-tools a {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 98px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 12px 8px;
}

.affiliate-tools span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #e7edf7;
  border-radius: 50%;
  background: #f8fbff;
  color: var(--blue);
  font-size: 18px;
}

.mini-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
}

.mini-chart.large {
  min-height: 260px;
}

.chart-column {
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-items: end;
  gap: 6px;
  height: 150px;
  text-align: center;
}

.mini-chart.large .chart-column {
  height: 220px;
}

.chart-column span {
  display: block;
  width: 100%;
  min-height: 8px;
  border-radius: 8px 8px 0 0;
  background: var(--red-gradient);
}

.chart-column small {
  color: var(--muted);
  font-size: 11px;
}

.chart-column strong {
  font-size: 12px;
}

.product-admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.product-admin-toolbar input,
.product-admin-toolbar select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 0 12px;
}

.toolbar-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 700;
  padding: 0 12px;
}

.recent-clicks {
  display: grid;
  gap: 10px;
}

.recent-clicks article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.recent-clicks span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.admin-stats article {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 18px;
}

.admin-stats span {
  color: var(--muted);
  font-weight: 600;
}

.admin-stats strong {
  color: var(--deep-red);
  font-size: 34px;
  line-height: 1;
}

.admin-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 18px;
}

.admin-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
}

.admin-card h2 {
  font-size: clamp(24px, 3vw, 34px);
  color: #344054;
}

.admin-board-secondary {
  margin-top: 18px;
}

.admin-todo-list,
.admin-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-todo-list span,
.admin-chip-list span {
  border-radius: 8px;
  background: #eef7ff;
  color: var(--deep-red);
  font-weight: 700;
  padding: 8px 10px;
}

.ops-status-list,
.security-status-list {
  display: grid;
  gap: 10px;
}

.ops-status-item {
  display: grid;
  gap: 4px;
  border: 1px solid #e7edf6;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  padding: 14px;
}

.ops-status-item span {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 700;
}

.ops-status-item strong {
  color: #344054;
  font-size: 17px;
}

.ops-status-item small {
  color: #667085;
  line-height: 1.45;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.affiliate-note {
  display: inline-flex;
  align-items: center;
  max-width: 420px;
  margin-bottom: 0;
  font-size: 14px;
}

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

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(17, 19, 24, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 44px rgba(0, 76, 170, 0.14);
  border-color: rgba(0, 134, 255, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-track,
  .hero-arrow,
  .hero-dots button,
  .product-card {
    transition: none;
  }
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 0.88;
  background:
    radial-gradient(circle at left bottom, rgba(0, 134, 255, 0.1), transparent 38%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  padding: 16px;
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 220ms ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.flag,
.department {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
}

.flag {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--red-gradient);
  color: #ffffff;
}

.flag.shipping {
  left: auto;
  right: 12px;
  background: var(--green);
}

.flag.discount {
  top: auto;
  bottom: 12px;
  background: #ff7a00;
}

.flag.highlight {
  top: auto;
  bottom: 12px;
  background: #0ea5e9;
}

.product-info {
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 16px 16px 18px;
}

.department {
  background: #eef7ff;
  color: #135bad;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.price {
  display: grid;
  gap: 3px;
}

.price small {
  min-height: 18px;
}

.price strong {
  color: var(--deep-red);
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}

.product-info p {
  display: -webkit-box;
  min-height: 40px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-spotlight {
  min-height: 38px;
  border: 1px solid #d9ecff;
  border-radius: 8px;
  background: linear-gradient(135deg, #f6fbff, #eef6ff);
  color: #135bad;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  padding: 9px 10px;
}

.product-pix-note {
  color: #087b43;
  font-size: 12px;
  font-weight: 700;
}

.product-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #f3f7fc;
  color: #526071;
  font-size: 11px;
  font-weight: 700;
  padding: 0 10px;
}

.marketplace-product-card h3 {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  color: #344054;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.marketplace-product-card .buy-button {
  min-width: 124px;
  min-height: 40px;
  padding: 0 16px;
}

.price s {
  color: var(--muted);
}

.buy-button {
  width: auto;
}

.product-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 2px;
}

.product-cta-row span {
  color: #087b43;
  font-size: 12px;
  font-weight: 700;
}

.product-cta-row .buy-button {
  box-shadow: 0 10px 20px rgba(0, 86, 200, 0.2);
}

.product-cta-row .buy-button:hover {
  background: #006fe6;
}

.search-page-main {
  max-width: var(--site-max);
  margin: 0 auto;
  padding-top: 10px;
}

.search-results-shell {
  padding-top: 20px;
}

.search-results-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf1f5;
}

.search-results-header h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 3.4vw, 44px);
}

.search-results-subtitle {
  color: #667085;
  margin-bottom: 0;
}

.search-order-box {
  display: grid;
  gap: 6px;
  min-width: 220px;
  font-weight: 700;
}

.search-order-box span {
  color: #667085;
  font-size: 13px;
}

.search-order-box select,
.search-filter-group select,
.search-price-range input {
  min-height: 44px;
  border: 1px solid #d8e2ee;
  border-radius: 12px;
  background: #ffffff;
  color: #344054;
  padding: 0 12px;
}

.search-page-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.search-sidebar {
  position: sticky;
  top: 14px;
}

.search-filter-card {
  display: grid;
  gap: 16px;
  border: 1px solid #edf1f5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(17, 19, 24, 0.04);
  padding: 18px;
}

.search-filter-card h2 {
  font-size: 28px;
}

.search-filter-group {
  display: grid;
  gap: 10px;
}

.search-filter-group strong {
  color: #344054;
  font-size: 14px;
}

.filter-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  background: #ffffff;
  color: #526071;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 0 12px;
}

.filter-chip.is-active {
  border-color: #0a7cff;
  background: #eef6ff;
  color: #135bad;
}

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

.search-price-range label {
  display: grid;
  gap: 6px;
}

.search-price-range span {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 700;
}

.search-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475467;
  font-weight: 600;
}

.search-filter-note {
  border: 1px dashed #dbe4ee;
  border-radius: 12px;
  background: #f8fbff;
  color: #667085;
  line-height: 1.5;
  padding: 12px;
}

.search-results-panel {
  display: grid;
  gap: 18px;
}

.search-results-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-results-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  background: #f3f7fc;
  color: #526071;
  font-size: 12px;
  font-weight: 700;
  padding: 0 12px;
}

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

.search-result-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid #edf1f5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(17, 19, 24, 0.05);
  padding: 16px;
}

.search-result-image {
  display: grid;
  min-height: 230px;
  place-items: center;
  border: 1px solid #edf1f5;
  border-radius: 16px;
  background: #ffffff;
  padding: 18px;
}

.search-result-image img {
  width: 100%;
  max-height: 190px;
  object-fit: contain;
}

.search-result-copy {
  display: grid;
  gap: 10px;
}

.search-result-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-result-topline span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #f3f7fc;
  color: #526071;
  font-size: 11px;
  font-weight: 700;
  padding: 0 10px;
}

.search-result-copy h3 {
  min-height: 0;
  margin-bottom: 0;
  color: #344054;
  font-size: 18px;
  line-height: 1.35;
}

.search-result-copy p {
  color: #667085;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.5;
}

.search-result-footer {
  display: grid;
  gap: 12px;
}

.search-result-footer .buy-button {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 24px;
  text-align: center;
}

body.product-page {
  background: #ffffff;
}

body.product-page .admin-link {
  border: 1px solid #dbe4ee;
  background: #ffffff;
  color: #344054;
  box-shadow: none;
}

.product-detail-main {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 22px 24px 48px;
}

.product-detail-shell {
  display: grid;
  gap: 16px;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.1fr) 340px;
  gap: 18px;
  align-items: start;
}

.detail-card {
  border: 1px solid #edf1f5;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
  padding: 20px;
}

.detail-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #98a2b3;
  font-size: 13px;
  font-weight: 600;
}

.detail-breadcrumbs a {
  color: #667085;
}

.product-detail-gallery,
.product-detail-content {
  min-width: 0;
}

.product-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.product-thumb {
  display: grid;
  min-height: 74px;
  place-items: center;
  border: 1px solid #e7ecf2;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  padding: 8px;
}

.product-thumb.is-active {
  border-color: #3b82f6;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.product-thumb img {
  width: 100%;
  max-height: 56px;
  object-fit: contain;
}

.product-detail-image {
  display: grid;
  min-height: 420px;
  place-items: center;
  border: 1px solid #edf1f5;
  border-radius: 16px;
  background: #fafbfc;
  padding: 28px;
}

.product-detail-image img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.product-detail-content h1 {
  margin-bottom: 14px;
  color: #344054;
  max-width: 820px;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.12;
}

.detail-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.detail-section-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  background: #ffffff;
  color: #475467;
  font-size: 13px;
  font-weight: 700;
  padding: 0 14px;
}

.detail-top-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.detail-top-meta span,
.detail-offer-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  background: #f3f5f7;
  color: #5f6b7a;
  font-size: 12px;
  font-weight: 700;
  padding: 0 12px;
}

.detail-description {
  max-width: 720px;
  color: #526071;
  font-size: 17px;
  line-height: 1.6;
}

.detail-price-box {
  display: grid;
  gap: 6px;
  margin: 18px 0;
}

.detail-price-box strong {
  color: #111827;
  font-size: clamp(32px, 3.7vw, 44px);
  line-height: 1;
}

.detail-price-box small,
.detail-price-box span {
  color: var(--muted);
  font-weight: 700;
}

.detail-price-box span {
  color: #087b43;
}

.detail-highlights {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border: 1px solid #edf1f5;
  border-radius: 12px;
  background: #fafbfc;
  padding: 18px;
}

.product-detail-content {
  display: grid;
  gap: 18px;
}

.detail-quick-facts {
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
}

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

.detail-fact-grid article {
  display: grid;
  gap: 5px;
  min-height: 88px;
  border: 1px solid #edf1f5;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
}

.detail-fact-grid span {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 700;
}

.detail-fact-grid strong {
  color: #344054;
  font-size: 15px;
  line-height: 1.35;
}

.detail-commerce-block {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

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

.detail-commerce-list article {
  display: grid;
  gap: 4px;
  border: 1px solid #edf1f5;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
}

.detail-commerce-list strong {
  color: #344054;
  font-size: 15px;
}

.detail-commerce-list span {
  color: #667085;
  line-height: 1.5;
}

.detail-buy-box {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 16px;
  border-radius: 16px;
  border-color: #dbe4ee;
  box-shadow: 0 18px 36px rgba(17, 19, 24, 0.06);
}

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

.detail-price-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  background: #e8f7ee;
  color: #087b43;
  font-size: 12px;
  font-weight: 800;
  padding: 0 12px;
}

.detail-offer-meta {
  display: grid;
  gap: 8px;
}

.detail-buy-actions {
  display: grid;
  gap: 10px;
}

.detail-buy-actions .primary-button {
  min-height: 48px;
  border-radius: 12px;
  background: #0a7cff;
}

.detail-buy-actions .secondary-button {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid #dbe4ee;
  background: #ffffff;
  box-shadow: none;
}

.detail-payment-strip {
  display: grid;
  gap: 4px;
  border: 1px solid #e3ecf8;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #f0f6ff 100%);
  padding: 14px;
}

.detail-payment-strip strong {
  color: #135bad;
  font-size: 15px;
}

.detail-payment-strip small {
  color: #667085;
  line-height: 1.45;
}

.detail-buy-summary {
  display: grid;
  gap: 10px;
}

.detail-buy-summary article {
  display: grid;
  gap: 4px;
  border-top: 1px solid #edf1f5;
  padding-top: 12px;
}

.detail-buy-summary strong {
  color: #344054;
  font-size: 14px;
}

.detail-buy-summary span {
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.detail-support-list {
  display: grid;
  gap: 10px;
}

.detail-support-list article {
  border: 1px solid #edf1f5;
  border-radius: 12px;
  background: #fafbfc;
  color: #475467;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 14px;
}

.detail-highlights strong {
  color: #344054;
  font-size: 20px;
}

.detail-bullet-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #475467;
}

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

.detail-section-block {
  scroll-margin-top: 110px;
}

.detail-spec-grid article {
  display: grid;
  gap: 4px;
  border: 1px solid #edf1f5;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
}

.detail-spec-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.detail-spec-grid strong {
  color: #344054;
  font-size: 15px;
  line-height: 1.35;
}

.admin-intro {
  max-width: 780px;
  margin-bottom: 24px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.admin-products {
  margin-top: 28px;
}

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

.admin-product-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 150px auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.admin-product-item img {
  width: 82px;
  height: 82px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef2f7;
}

.admin-product-item strong,
.admin-product-item span,
.admin-product-item small {
  display: block;
}

.admin-product-item span,
.admin-product-item small {
  color: var(--muted);
  margin-top: 4px;
}

.affiliate-product-main strong {
  line-height: 1.25;
}

.affiliate-product-metrics {
  display: grid;
  gap: 2px;
  text-align: right;
}

.affiliate-row-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background:
    radial-gradient(circle at 12% 10%, rgba(0, 134, 255, 0.14), transparent 340px),
    radial-gradient(circle at 90% 0, rgba(255, 221, 0, 0.18), transparent 300px),
    linear-gradient(180deg, #eef6ff, #ffffff);
  padding: 32px;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.7fr);
  gap: 18px;
  width: min(1180px, 100%);
}

.login-brand-panel,
.login-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.login-brand-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 221, 0, 0.18), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 55%, #eef6ff 100%);
  padding: 30px;
}

.login-brand-panel img {
  width: clamp(250px, 28vw, 340px);
  max-width: 100%;
}

.login-brand-panel h1 {
  max-width: 680px;
  margin-bottom: 0;
  color: #344054;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 0.98;
}

.login-brand-panel p:not(.eyebrow) {
  max-width: 620px;
  color: #526071;
  font-size: 17px;
}

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

.login-feature-list article {
  display: grid;
  gap: 4px;
  border: 1px solid #dce8f8;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  padding: 16px;
}

.login-feature-list strong {
  color: #344054;
  font-size: 16px;
}

.login-feature-list span {
  color: #667085;
  line-height: 1.5;
}

.login-card {
  display: grid;
  gap: 18px;
  width: 100%;
  padding: 30px;
}

.login-card-redesigned h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.login-support-copy {
  color: #667085;
  margin-bottom: 0;
}

.login-card form {
  display: grid;
  gap: 14px;
}

.login-card label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.login-card input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
}

.login-card small {
  color: var(--muted);
}

.login-helper-box {
  display: grid;
  gap: 6px;
  border: 1px solid #e3ecf8;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #f0f6ff 100%);
  padding: 16px;
}

.login-helper-box strong {
  color: #344054;
  font-size: 15px;
}

.login-helper-box span {
  color: #667085;
  line-height: 1.5;
}

.affiliate-product-metrics strong {
  color: var(--deep-red);
}

.admin-form,
.admin-help {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  font-weight: 600;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #475467;
  padding: 10px 12px;
}

.admin-form textarea {
  resize: vertical;
}

.batch-import-card {
  margin-bottom: 22px;
}

.batch-import-card label {
  display: grid;
  gap: 7px;
  font-weight: 600;
}

.batch-import-card input,
.batch-import-card textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #475467;
  padding: 10px 12px;
}

.batch-import-card textarea {
  resize: vertical;
}

.inline-field,
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

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

.check-field {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
}

.check-field input {
  width: auto;
  min-height: 0;
}

.form-message {
  min-height: 24px;
  margin: 0;
  font-weight: 600;
}

.auth-link-box {
  display: grid;
  gap: 8px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.auth-link-box a {
  color: var(--blue);
  font-weight: 700;
}

.auth-link-box input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 8px 10px;
}

.integration-status-card {
  margin-bottom: 6px;
}

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

.integration-status-grid article {
  display: grid;
  gap: 6px;
  border: 1px solid #e7edf6;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.integration-status-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.integration-status-grid strong {
  color: #344054;
  font-size: 16px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 5vw;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, #ffffff, #f5f6f8);
}

.footer strong,
.section-heading h2,
.department-subitem {
  color: #344054;
}

.footer strong {
  font-weight: 700;
}

@media (max-width: 1020px) {
  .main-header,
  .hero,
  .admin-layout,
  .admin-shell,
  .admin-board,
  .curation-layout,
  .search-page-layout,
  .login-shell,
  .affiliate-dashboard-grid,
  .overview-insights,
  .product-detail-hero,
  .product-admin-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

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

  .product-grid,
  .benefit-strip,
  .admin-stats,
  .performance-metrics,
  .affiliate-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-hero {
    grid-template-columns: 1fr;
    height: 420px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .market-hero-visual {
    padding: 0 28px 54px;
  }

  .market-hero-visual img {
    height: 150px;
  }

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

  .hero-arrow {
    display: none;
  }

  .department-nav {
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .department-submenu {
    display: none !important;
  }
}

@media (min-width: 1021px) and (max-width: 1280px) {
  .product-grid,
  .market-showcase {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  .promo-bar,
  .section-heading,
  .inline-field,
  .form-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .search-box,
  .product-grid,
  .benefit-strip,
  .market-hero,
  .market-showcase,
  .admin-product-item,
  .admin-stats,
  .overview-insights,
  .admin-menu,
  .performance-metrics,
  .affiliate-tools,
  .search-price-range,
  .product-detail-thumbs,
  .detail-fact-grid,
  .detail-spec-grid,
  .mini-chart {
    grid-template-columns: 1fr;
  }

  .detail-top-meta {
    gap: 10px;
  }

  .detail-buy-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .chart-column,
  .mini-chart.large .chart-column {
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto;
    height: auto;
    align-items: center;
    text-align: left;
  }

  .chart-column span {
    height: 10px !important;
  }

  .affiliate-product-metrics {
    text-align: left;
  }

  .admin-topbar {
    display: grid;
  }

  .search-results-header,
  .search-result-footer {
    display: grid;
  }

  .hero-copy {
    padding: 28px;
  }

  .brand-logo {
    width: 280px;
    height: 104px;
  }

  .section-block,
  .admin-main,
  .hero,
  .market-hero,
  .market-showcase {
    padding-left: 4vw;
    padding-right: 4vw;
  }

  .main-header {
    padding-left: 4vw;
    padding-right: 4vw;
  }

  .market-actions {
    justify-content: space-between;
  }

  .market-hero-copy {
    padding: 28px;
  }

  .product-meta,
  .product-cta-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .leaderboard-item,
  .category-performance-item {
    grid-template-columns: 1fr;
  }

  .category-performance-metrics {
    text-align: left;
  }

  .product-trust-row {
    gap: 8px;
  }

  .marketplace-product-card .buy-button {
    width: 100%;
  }

  .market-hero {
    height: 500px;
  }

  .market-hero-copy {
    padding-bottom: 16px;
  }

  .curation-spotlight {
    grid-template-columns: 1fr;
  }

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

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

  .login-screen {
    padding: 18px;
  }

  .login-brand-panel,
  .login-card {
    padding: 22px;
  }

  .market-hero-copy h1 {
    max-height: 112px;
    font-size: 34px;
  }

  .market-hero-visual img {
    height: 132px;
  }
}
