:root {
  --bg: #f4f1f8;
  --card: rgba(255,255,255,.74);
  --card-strong: #ffffff;
  --text: #17151f;
  --muted: #6f6a7d;
  --line: rgba(99, 84, 140, .15);
  --primary: #a98cff;
  --primary-strong: #8f6fff;
  --shadow: 0 18px 55px rgba(34, 22, 63, 0.08);
  --radius-xl: 26px;
  --radius-lg: 22px;
  --radius-md: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', sans-serif; color: var(--text); background: radial-gradient(circle at top left, #f7f4ff 0, #f3f1f8 38%, #f1eff6 100%); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font: inherit; }
button { cursor: pointer; }
.wrapper { width: min(1380px, calc(100% - 40px)); margin: 0 auto; }
.page-space { padding: 28px 0 56px; }
.eyebrow { font-size: .77rem; letter-spacing: .18em; font-weight: 800; color: #7f7399; }

.site-header { position: sticky; top: 12px; z-index: 30; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; margin-top: 18px; padding: 14px 18px; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.8); backdrop-filter: blur(14px); border-radius: 999px; box-shadow: var(--shadow); }
.brand-pill { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-logo { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, #111, #4d3d7e 58%, #b28cff); color: #fff; }
.brand-accent { color: #bb8bff; margin-left: 2px; }
.brand-pill small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.category-pills { display: flex; gap: 12px; overflow: auto; }
.pill-link, .search-pill, .button-primary, .button-secondary, .button-danger { border-radius: 999px; }
.pill-link { white-space: nowrap; padding: 13px 18px; background: rgba(245,242,252,.9); border: 1px solid var(--line); font-weight: 600; }
.pill-link.is-active, .pill-link:hover { background: #fff; box-shadow: 0 10px 24px rgba(80, 64, 120, .08); }
.search-pill { display: flex; align-items: center; gap: 10px; padding: 0 16px; width: min(320px, 100%); height: 54px; background: rgba(246,244,250,.92); border: 1px solid var(--line); }
.search-pill svg { width: 18px; color: var(--muted); }
.search-pill input { flex: 1; border: 0; background: transparent; outline: none; }

.hero-panel, .panel-card, .product-gallery-card, .detail-card, .stat-card, .product-card, .empty-state { background: var(--card); border: 1px solid rgba(255,255,255,.85); box-shadow: var(--shadow); border-radius: var(--radius-xl); backdrop-filter: blur(12px); }
.hero-panel { display: grid; grid-template-columns: 1.1fr 1.3fr; gap: 24px; padding: 28px; }
.hero-copy h1, .section-head h1, .section-head h2, .detail-card h1 { margin: 10px 0 10px; line-height: 1.05; }
.hero-copy h1 { font-size: clamp(2.1rem, 4vw, 3.65rem); max-width: 720px; }
.hero-copy p, .section-head p, .detail-description, .product-body p { color: var(--muted); line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; margin-top: 22px; }
.button-primary, .button-secondary, .button-danger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 1px solid transparent; font-weight: 700; }
.button-primary { background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: #fff; }
.button-secondary { background: #fff; border-color: var(--line); }
.button-danger { background: #fff4f4; color: #b94c60; border-color: rgba(185, 76, 96, .2); }
.button-full { width: 100%; }
.button-xs { min-height: 34px; padding: 0 12px; font-size: .88rem; }
.text-link { color: #6b54cf; font-weight: 700; }

.hero-grid, .cards-grid { display: grid; gap: 18px; }
.cards-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin: 34px 0 18px; }
.section-head--stacked { margin-top: 6px; }

.product-card { overflow: hidden; display: flex; flex-direction: column; }
.product-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.product-thumb img, .product-gallery-card img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb img { transition: transform .35s ease; }
.product-card:hover .product-thumb img { transform: scale(1.03); }
.product-badge, .discount-chip, .category-chip, .store-chip { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.product-badge { position: absolute; left: 14px; top: 14px; background: rgba(17,17,22,.76); color: #fff; }
.discount-chip { background: rgba(178, 140, 255, .15); color: #6e47e8; }
.product-thumb .discount-chip { position: absolute; right: 14px; top: 14px; background: #fff; }
.product-body { padding: 18px; }
.meta-line { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.category-chip { background: rgba(17,17,22,.93); color: #fff; }
.store-chip { background: #f0ebff; color: #6f4dea; }
.product-body h3 { margin: 0 0 10px; font-size: 1.26rem; }
.price-row { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-top: 18px; }
.price-old { display: block; color: #9d95af; text-decoration: line-through; font-size: .92rem; }
.price-current { font-size: 1.34rem; }
.price-current--lg { font-size: 2.4rem; }
.empty-state { padding: 30px; text-align: center; color: var(--muted); }

.product-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(350px, .9fr); gap: 24px; }
.product-gallery-card { overflow: hidden; min-height: 540px; }
.detail-card { padding: 24px; }
.detail-price-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 24px 0; }
.buy-list { display: grid; gap: 12px; }
.buy-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: #fff; border-radius: 18px; border: 1px solid var(--line); }
.amazon-price-note { color: var(--muted); font-size: .72rem; }
.affiliate-disclaimer { color: var(--muted); font-size: .74rem; line-height: 1.5; margin-top: 16px; }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(480px, 100%); padding: 30px; background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.9); border-radius: 30px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.login-card label, .form-grid label { display: grid; gap: 8px; font-weight: 600; }
.login-card input, .form-grid input, .form-grid textarea, .form-grid select { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.88); outline: none; }
.form-grid textarea { min-height: 140px; resize: vertical; }

.admin-shell { display: grid; grid-template-columns: 290px 1fr; min-height: 100vh; }
.admin-sidebar { padding: 24px; background: rgba(20,17,31,.96); color: #fff; display: flex; flex-direction: column; gap: 26px; }
.admin-brand { font-size: 1.4rem; font-weight: 800; }
.admin-brand span { color: #c8b0ff; }
.admin-sidebar nav { display: grid; gap: 10px; }
.admin-sidebar nav a { padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.06); }
.admin-sidebar nav a:hover { background: rgba(255,255,255,.12); }
.admin-main { min-width: 0; padding: 28px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.admin-user { background: rgba(255,255,255,.8); padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); }
.stats-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-grid--analytics { margin-top: 16px; }
.stat-card { padding: 22px; }
.stat-card span { color: var(--muted); display: block; margin-bottom: 10px; }
.stat-card strong { font-size: 2rem; }
.stat-card small { display: block; color: var(--muted); margin-top: 8px; }
.stat-card--action { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; }
.panel-card { padding: 22px; margin-top: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; }
.actions-row form { margin: 0; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.full-span { grid-column: 1 / -1; }
.checkbox-row { display: flex !important; align-items: center; gap: 12px; }
.checkbox-row input { width: 18px !important; min-height: auto !important; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.affiliate-section { background: rgba(255,255,255,.54); border-radius: 24px; padding: 18px; border: 1px dashed rgba(129, 98, 221, .28); }
.affiliate-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr 1.8fr .8fr 1fr auto auto auto; margin-bottom: 18px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.affiliate-row select { min-height: 48px; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.checkbox-inline { display: flex !important; align-items: center; gap: 8px; white-space: nowrap; }
.checkbox-inline input, .radio-inline input { width: auto !important; min-height: auto !important; }
.sync-status { color: var(--muted); font-size: .86rem; }
.sync-error { color: #b53d62; }
.endpoint-intro p, .endpoint-card p { color: var(--muted); }
.endpoint-grid { display: grid; gap: 18px; }
.endpoint-card { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.58); }
.endpoint-title { display: flex; align-items: center; gap: 12px; }
.endpoint-title h3 { margin: 0; }
.method-chip { padding: 6px 10px; border-radius: 999px; background: #17151f; color: #fff; font-size: .75rem; font-weight: 800; }
.copy-line { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.copy-line code { flex: 1; overflow-wrap: anywhere; }
.endpoint-card pre { overflow: auto; padding: 16px; border-radius: 14px; background: #17151f; color: #eee9ff; white-space: pre-wrap; }
.error-page { padding: 70px 24px; }
.error-page h1 { font-size: clamp(2rem, 5vw, 4rem); margin-bottom: 8px; }
.error-page p { color: var(--muted); margin-bottom: 24px; }
.panel-description { color: var(--muted); margin: 6px 0 0; }
.analytics-legend { display: flex; gap: 20px; margin-bottom: 16px; color: var(--muted); font-size: .86rem; font-weight: 700; }
.analytics-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; }
.legend-views::before { background: var(--primary-strong); }
.legend-clicks::before { background: #17151f; }
.analytics-chart { display: grid; grid-template-columns: repeat(30, minmax(10px, 1fr)); gap: 5px; height: 260px; padding-top: 12px; border-bottom: 1px solid var(--line); }
.chart-day { min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.chart-bars { height: 220px; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.bar { display: block; width: min(10px, 44%); min-height: 0; border-radius: 5px 5px 0 0; transition: height .2s ease; }
.bar-views { background: var(--primary-strong); }
.bar-clicks { background: #17151f; }
.chart-day small { height: 22px; padding-top: 5px; font-size: .65rem; color: var(--muted); white-space: nowrap; }
.analytics-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 18px; min-width: 0; margin-top: 0; }
.analytics-toolbar > * { min-width: 0; }
.analytics-toolbar h2 { margin: 8px 0 0; font-size: 1.65rem; }
.analytics-filter { display: flex; align-items: end; gap: 10px; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
.analytics-filter label { display: grid; gap: 6px; color: var(--muted); font-size: .76rem; font-weight: 800; }
.analytics-filter input { min-height: 42px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.88); outline: none; }
.period-tabs { display: flex; gap: 6px; min-width: 0; padding: 5px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.52); }
.period-tabs a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; color: var(--muted); border-radius: 12px; font-size: .84rem; font-weight: 800; white-space: nowrap; }
.period-tabs a.is-active, .period-tabs a:hover { color: #fff; background: #17151f; }
.analytics-kpis .stat-card strong { display: block; overflow-wrap: anywhere; }
.trend-up { color: #167a4a !important; }
.trend-down { color: #b0445f !important; }
.analytics-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .45fr); gap: 20px; align-items: stretch; margin-top: 20px; }
.analytics-grid > * { min-width: 0; }
.analytics-grid--split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.analytics-main-panel { position: relative; overflow: visible; }
.analytics-main-panel .analytics-legend { margin-bottom: 0; }
.analytics-chart--interactive { width: 100%; min-width: 0; grid-template-columns: repeat(var(--day-count), minmax(16px, 1fr)); gap: 6px; height: 310px; overflow-x: auto; padding: 14px 4px 0; scrollbar-width: thin; }
.analytics-chart--interactive .chart-day { min-width: 18px; padding: 0; border: 0; background: transparent; border-radius: 10px 10px 0 0; }
.analytics-chart--interactive .chart-day:hover, .analytics-chart--interactive .chart-day:focus-visible { background: rgba(143,111,255,.10); outline: none; }
.analytics-chart--interactive .chart-bars { height: 256px; pointer-events: none; }
.analytics-chart--interactive .bar { width: min(13px, 42%); min-height: 2px; }
.chart-tooltip { position: absolute; z-index: 8; width: min(340px, calc(100% - 24px)); padding: 14px; color: #f8f7ff; background: rgba(23,21,31,.96); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; box-shadow: 0 22px 55px rgba(23,21,31,.22); opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity .16s ease, transform .16s ease; }
.chart-tooltip.is-visible { opacity: 1; transform: translateY(0); }
.tooltip-head, .tooltip-totals, .chart-tooltip li { display: flex; justify-content: space-between; gap: 14px; }
.tooltip-head { align-items: center; margin-bottom: 10px; }
.tooltip-head span { padding: 5px 8px; color: #17151f; background: #c8b0ff; border-radius: 999px; font-size: .76rem; font-weight: 900; }
.tooltip-totals { color: #cfc9de; margin-bottom: 10px; font-size: .82rem; }
.chart-tooltip ul { display: grid; gap: 8px; max-height: 190px; margin: 0; padding: 10px 0 0; overflow: auto; border-top: 1px solid rgba(255,255,255,.12); list-style: none; }
.chart-tooltip li span { min-width: 0; overflow: hidden; color: #fff; text-overflow: ellipsis; white-space: nowrap; }
.chart-tooltip li strong { flex: 0 0 auto; color: #d9d1ff; font-size: .78rem; }
.chart-tooltip small { display: block; margin-top: 9px; color: #a9a2b8; }
.insight-list { display: grid; gap: 12px; }
.insight-list div { padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.58); }
.insight-list span, .insight-list small { display: block; color: var(--muted); }
.insight-list span { margin-bottom: 7px; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.insight-list strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranked-bars, .category-metrics { display: grid; gap: 12px; }
.ranked-bar { position: relative; display: grid; gap: 7px; min-height: 62px; padding: 12px 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.55); }
.ranked-bar span, .ranked-bar strong { position: relative; z-index: 1; }
.ranked-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.ranked-bar strong { color: var(--muted); font-size: .82rem; }
.ranked-bar i { position: absolute; inset: auto auto 0 0; height: 5px; min-width: 3px; background: var(--primary-strong); border-radius: 0 999px 999px 0; }
.category-metric { display: grid; gap: 9px; }
.category-metric > div { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.category-metric small { color: var(--muted); white-space: nowrap; }
.category-metric > span { height: 10px; overflow: hidden; background: rgba(23,21,31,.08); border-radius: 999px; }
.category-metric i { display: block; height: 100%; min-width: 3px; background: linear-gradient(90deg, var(--primary-strong), #17151f); border-radius: inherit; }
.opportunity-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.opportunity-item { display: grid; gap: 7px; min-height: 130px; padding: 14px; border: 1px solid rgba(185, 76, 96, .18); border-radius: 18px; background: rgba(255,244,244,.7); }
.opportunity-item strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.opportunity-item span { color: #8c5260; font-size: .84rem; font-weight: 700; }
.integration-card { max-width: 920px; }
.integration-status { padding: 9px 13px; border-radius: 999px; font-size: .82rem; font-weight: 800; }
.integration-status.is-connected { background: #eefbf2; color: #187546; }
.integration-status.is-pending { background: #fff8eb; color: #946a11; }
.integration-checklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.integration-checklist div { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.65); }
.integration-checklist strong, .integration-checklist span { display: block; }
.integration-checklist span { color: var(--muted); margin-top: 6px; font-size: .88rem; }
.callback-box { display: block; font-weight: 700; margin-bottom: 20px; }
.radio-inline { display: flex !important; align-items: center; gap: 8px; white-space: nowrap; }
.flash-stack { display: grid; gap: 10px; margin-bottom: 14px; }
.flash { padding: 14px 16px; border-radius: 16px; font-weight: 600; }
.flash-success { background: #eefbf2; color: #187546; }
.flash-danger { background: #fff1f3; color: #b53d62; }
.flash-info { background: #eef5ff; color: #2a5bb9; }
.flash-warning { background: #fff8eb; color: #946a11; }

.hatos-widget, .hatos-widget-grid { font-family: 'Inter', sans-serif; }
.hatos-widget--sidebar { background: rgba(255,255,255,.9); border: 1px solid rgba(99,84,140,.12); border-radius: 24px; padding: 16px; box-shadow: 0 12px 30px rgba(30,24,49,.08); }
.hatos-widget-title, .hatos-widget-cat { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #7b7090; font-weight: 800; }
.hatos-widget-thumb { display: block; overflow: hidden; border-radius: 20px; margin: 12px 0; }
.hatos-widget-thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hatos-widget-body h3 { margin: 8px 0; font-size: 1.08rem; }
.hatos-widget-body p { color: #6f6a7d; line-height: 1.55; }
.hatos-widget-price { font-size: 1.3rem; font-weight: 800; margin: 14px 0; }
.hatos-widget-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; border-radius: 999px; background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: #fff; font-weight: 800; }
.hatos-widget-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hatos-widget-card { overflow: hidden; background: rgba(255,255,255,.95); border: 1px solid rgba(99,84,140,.12); border-radius: 24px; box-shadow: 0 12px 30px rgba(30,24,49,.08); }
.hatos-widget-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hatos-widget-copy { padding: 16px; }
.hatos-widget-copy span { color: #7b7090; font-size: .82rem; font-weight: 700; }
.hatos-widget-copy h3 { margin: 8px 0 10px; font-size: 1.1rem; }
.hatos-widget-copy a { display: inline-flex; margin-top: 12px; font-weight: 700; color: #6f4dea; }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: 1fr; border-radius: 28px; }
  .hero-panel, .product-layout, .admin-shell { grid-template-columns: 1fr; }
  .cards-grid--4, .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .cards-grid--3, .hatos-widget-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-sidebar { min-height: auto; }
  .analytics-toolbar, .analytics-grid, .analytics-grid--split { grid-template-columns: 1fr; }
  .analytics-toolbar { align-items: stretch; flex-direction: column; }
  .opportunity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wrapper { width: min(100% - 24px, 100%); }
  .hero-grid, .cards-grid--3, .cards-grid--4, .stats-grid, .form-grid, .affiliate-row, .hatos-widget-grid, .integration-checklist { grid-template-columns: 1fr; }
  .site-header { gap: 14px; }
  .section-head, .admin-topbar, .panel-head, .price-row { flex-direction: column; align-items: stretch; }
  .admin-main { padding: 20px; }
  .analytics-chart:not(.analytics-chart--interactive) { overflow-x: auto; grid-template-columns: repeat(30, 22px); }
  .analytics-filter { justify-content: stretch; }
  .period-tabs { width: 100%; overflow-x: auto; }
  .analytics-filter label { flex: 1 1 140px; }
  .analytics-filter .button-secondary { width: 100%; }
  .analytics-chart--interactive { grid-template-columns: repeat(var(--day-count), 22px); }
  .chart-tooltip { left: 12px !important; right: 12px; width: auto; }
  .category-metric > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .category-metric small { white-space: normal; }
  .opportunity-grid { grid-template-columns: 1fr; }
}

.category-nav { display: flex; gap: 16px; }
.category-item { position: relative; }
.subcategory-dropdown { position: absolute; top: 100%; left: 0; background: #111; border-radius: 12px; padding: 10px; display: none; flex-direction: column; min-width: 180px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.subcategory-dropdown a { padding: 8px 10px; border-radius: 8px; color: #fff; }
.subcategory-dropdown a:hover { background: #222; }
.category-item:hover .subcategory-dropdown { display: flex; }

.detail-description-wrap {
  margin-top: 10px;
  margin-bottom: 20px;
}

.detail-description {
  color: #6f6f82;
  font-size: 1.05rem;
  line-height: 1.75;
  transition: all 0.25s ease;
  white-space: pre-line;
}

.detail-description.is-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: calc(1.75em * 3);
}

.detail-description.is-expanded {
  display: block;
  max-height: none;
}

.description-toggle {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: #6c4cff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
}

.description-toggle:hover {
  opacity: 0.85;
}

.buy-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(30, 30, 45, 0.08);
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.buy-option:hover {
  transform: translateY(-2px);
  border-color: rgba(108, 76, 255, 0.22);
  box-shadow: 0 14px 28px rgba(33, 24, 74, 0.08);
}

.buy-option-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.buy-store {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222230;
}

.buy-option-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.buy-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #171722;
}

.buy-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6c4cff, #8a6bff);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .buy-option {
    align-items: flex-start;
    flex-direction: column;
  }

  .buy-option-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* Public storefront refresh */
.public-page {
  --bg: #0b0d12;
  --surface: #12151d;
  --surface-2: #181c26;
  --text: #f6f7fb;
  --muted: #9ba3b5;
  --line: rgba(255, 255, 255, .09);
  --primary: #8b5cf6;
  --primary-strong: #6d3fe0;
  --accent: #b7ff3c;
  --shadow: 0 24px 70px rgba(0, 0, 0, .32);
  color: var(--text);
  background:
    radial-gradient(circle at 12% -10%, rgba(139, 92, 246, .20), transparent 34rem),
    radial-gradient(circle at 100% 15%, rgba(183, 255, 60, .06), transparent 28rem),
    #0b0d12;
  min-height: 100vh;
}
.public-page::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, #000, transparent 65%); }
.public-page .wrapper { width: min(1240px, calc(100% - 48px)); }
.public-page .page-space { padding: 34px 0 90px; }
.public-page .site-header { top: 16px; min-height: 72px; grid-template-columns: auto minmax(0, 1fr) minmax(250px, 330px); gap: 28px; margin-top: 16px; padding: 10px 12px 10px 14px; background: rgba(16, 19, 27, .82); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 16px 50px rgba(0,0,0,.28); backdrop-filter: blur(20px); }
.public-page .brand-pill { gap: 10px; flex-shrink: 0; }
.public-page .brand-logo { width: 43px; height: 43px; border-radius: 13px; background: linear-gradient(145deg, #9869ff, #6433d1); box-shadow: 0 8px 24px rgba(124, 74, 232, .32); font-size: .82rem; letter-spacing: -.04em; }
.public-page .brand-name { line-height: .95; font-size: .92rem; letter-spacing: -.035em; }
.public-page .brand-accent { color: #a97dff; }
.public-page .brand-pill small { margin-top: 5px; color: #81899b; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.public-page .category-nav { display: flex; justify-content: center; align-items: center; gap: 4px; overflow: visible; min-width: 0; }
.public-page .category-nav-link { display: block; padding: 10px 11px; border-radius: 10px; color: #c8ccda; font-size: .86rem; font-weight: 600; white-space: nowrap; transition: color .2s ease, background .2s ease; }
.public-page .category-nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.public-page .subcategory-dropdown { top: calc(100% + 8px); background: #181b24; border: 1px solid var(--line); border-radius: 14px; padding: 7px; box-shadow: var(--shadow); }
.public-page .subcategory-dropdown a:hover { background: rgba(255,255,255,.08); }
.public-page .search-pill { width: 100%; height: 50px; padding: 0 6px 0 14px; border-radius: 14px; background: #0c0e14; border-color: var(--line); }
.public-page .search-pill svg { color: #777f91; flex: 0 0 18px; }
.public-page .search-pill input { color: #fff; min-width: 0; font-size: .86rem; }
.public-page .search-pill input::placeholder { color: #6f7687; }
.public-page .search-pill button { height: 38px; padding: 0 14px; color: #fff; background: #242936; border: 0; border-radius: 10px; font-size: .78rem; font-weight: 700; transition: background .2s ease; }
.public-page .search-pill button:hover { background: var(--primary); }
.public-page .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #b1b7c7; font-size: .7rem; letter-spacing: .17em; }
.public-page .eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px rgba(183,255,60,.7); }
.public-page .hero-panel { position: relative; grid-template-columns: 1.05fr .95fr; min-height: 540px; gap: 60px; align-items: center; padding: 64px; overflow: hidden; background: linear-gradient(135deg, rgba(26, 29, 40, .98), rgba(16, 18, 25, .96)); border: 1px solid var(--line); border-radius: 32px; box-shadow: var(--shadow); }
.public-page .hero-panel::after { content: ''; position: absolute; width: 380px; height: 380px; right: 6%; top: 10%; background: rgba(139,92,246,.2); filter: blur(100px); border-radius: 50%; pointer-events: none; }
.public-page .hero-copy { position: relative; z-index: 2; }
.public-page .hero-copy h1 { margin: 18px 0; max-width: 620px; color: #fff; font-size: clamp(2.75rem, 5.5vw, 5.1rem); line-height: .96; letter-spacing: -.06em; }
.public-page .hero-copy h1 em { display: block; color: #a97cff; font-style: normal; }
.public-page .hero-copy p { max-width: 580px; color: #a5adbd; font-size: 1.04rem; line-height: 1.7; }
.public-page .hero-actions { margin-top: 30px; flex-wrap: wrap; }
.public-page .button-primary, .public-page .button-secondary { min-height: 50px; padding: 0 20px; border-radius: 13px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.public-page .button-primary { color: #fff; background: linear-gradient(135deg, #8e5df2, #6939d6); box-shadow: 0 12px 30px rgba(116,67,219,.26); }
.public-page .button-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(116,67,219,.38); }
.public-page .button-secondary { color: #e7e9f0; background: rgba(255,255,255,.045); border-color: var(--line); }
.public-page .button-secondary:hover { background: rgba(255,255,255,.09); }
.public-page .hero-trust { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px; color: #929aab; font-size: .78rem; }
.public-page .hero-trust b { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 5px; color: #0b0d12; background: var(--accent); border-radius: 50%; font-size: .65rem; }
.public-page .hero-showcase { position: relative; z-index: 2; overflow: hidden; background: #0d0f15; border: 1px solid rgba(255,255,255,.11); border-radius: 26px; box-shadow: 0 28px 70px rgba(0,0,0,.44); transform: rotate(1.5deg); transition: transform .35s ease; }
.public-page .hero-showcase:hover { transform: rotate(0) translateY(-4px); }
.public-page .hero-product-image { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: #171a22; }
.public-page .hero-product-image::after { content: ''; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(transparent, rgba(8,9,13,.8)); }
.public-page .hero-product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.public-page .hero-showcase:hover img { transform: scale(1.035); }
.public-page .hero-discount { position: absolute; z-index: 2; top: 18px; right: 18px; padding: 9px 12px; color: #10120b; background: var(--accent); border-radius: 10px; font-weight: 900; }
.public-page .hero-product-info { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px 22px; }
.public-page .hero-product-info > div:first-child { min-width: 0; }
.public-page .hero-product-info span { display: block; margin-bottom: 7px; color: #a67bff; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.public-page .hero-product-info strong { display: block; overflow: hidden; font-size: 1.04rem; white-space: nowrap; text-overflow: ellipsis; }
.public-page .hero-product-price { text-align: right; white-space: nowrap; }
.public-page .hero-product-price small { display: block; color: #6f7788; text-decoration: line-through; }
.public-page .hero-product-price b { font-size: 1.15rem; }
.public-page .hero-placeholder { display: grid; min-height: 380px; place-items: center; align-content: center; color: var(--muted); text-align: center; }
.public-page .hero-placeholder span { color: #9670ef; font-size: 5rem; font-weight: 900; }
.public-page .benefit-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0 62px; padding: 20px 10px; background: rgba(19,22,30,.7); border: 1px solid var(--line); border-radius: 20px; }
.public-page .benefit-strip > div { display: flex; justify-content: center; align-items: center; gap: 14px; min-height: 48px; padding: 0 24px; border-right: 1px solid var(--line); }
.public-page .benefit-strip > div:last-child { border-right: 0; }
.public-page .benefit-strip > div > span { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; color: var(--accent); background: rgba(183,255,60,.08); border-radius: 12px; font-size: 1.15rem; }
.public-page .benefit-strip p, .public-page .benefit-strip strong, .public-page .benefit-strip small { display: block; margin: 0; }
.public-page .benefit-strip strong { font-size: .86rem; }
.public-page .benefit-strip small { margin-top: 4px; color: var(--muted); font-size: .72rem; }
.public-page .section-head { margin: 58px 0 22px; }
.public-page .section-head h1, .public-page .section-head h2 { margin-top: 9px; color: #f6f7fb; font-size: clamp(1.7rem, 3vw, 2.45rem); letter-spacing: -.045em; }
.public-page .section-head p { color: var(--muted); }
.public-page .text-link { display: inline-flex; gap: 8px; align-items: center; color: #c4aaff; font-size: .86rem; }
.public-page .cards-grid { gap: 18px; }
.public-page .cards-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.public-page .cards-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.public-page .product-card { position: relative; min-width: 0; background: #13161e; border: 1px solid var(--line); border-radius: 20px; box-shadow: none; backdrop-filter: none; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.public-page .product-card:hover { transform: translateY(-5px); border-color: rgba(151,105,255,.4); box-shadow: 0 22px 54px rgba(0,0,0,.28); }
.public-page .product-thumb { aspect-ratio: 16 / 10.5; background: #1b1e27; }
.public-page .product-card:hover .product-thumb img { transform: scale(1.045); }
.public-page .product-badge { left: 12px; top: 12px; padding: 7px 10px; color: #fff; background: rgba(10,11,16,.8); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(8px); font-size: .68rem; }
.public-page .discount-chip { color: #c8ff6f; background: rgba(183,255,60,.1); }
.public-page .product-thumb .discount-chip { right: 12px; top: 12px; color: #12150b; background: var(--accent); border-radius: 9px; font-size: .72rem; font-weight: 900; }
.public-page .product-body { display: flex; flex: 1; flex-direction: column; padding: 17px; }
.public-page .meta-line { gap: 7px; margin-bottom: 10px; }
.public-page .category-chip, .public-page .store-chip { padding: 6px 9px; border-radius: 8px; font-size: .65rem; letter-spacing: .04em; }
.public-page .category-chip { color: #c6aaff; background: rgba(139,92,246,.12); }
.public-page .store-chip { color: #aeb5c5; background: rgba(255,255,255,.055); }
.public-page .product-body h3 { margin: 0 0 7px; color: #f4f5f8; font-size: 1.03rem; line-height: 1.35; letter-spacing: -.018em; }
.public-page .product-body h3 a::after { content: ''; position: absolute; inset: 0; pointer-events: auto; }
.public-page .product-body p { min-height: 2.8em; margin: 0; color: #858d9e; font-size: .78rem; line-height: 1.45; }
.public-page .price-row { position: relative; z-index: 2; margin-top: auto; padding-top: 17px; border-top: 1px solid var(--line); }
.public-page .price-old { color: #697181; font-size: .72rem; }
.public-page .price-current { color: #fff; font-size: 1.15rem; letter-spacing: -.03em; }
.public-page .card-action { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; color: #d5c5ff; background: rgba(139,92,246,.1); border-radius: 10px; font-size: .74rem; font-weight: 800; transition: background .2s ease, color .2s ease; }
.public-page .card-action:hover { color: #fff; background: var(--primary); }
.public-page .catalog-intro { display: flex; justify-content: space-between; gap: 30px; align-items: end; padding: 38px 0 26px; }
.public-page .catalog-intro h1 { margin: 12px 0 10px; font-size: clamp(2.35rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.06em; }
.public-page .catalog-intro p { margin: 0; color: var(--muted); }
.public-page .results-count { flex: 0 0 auto; padding: 9px 12px; color: #aeb5c5; background: #151820; border: 1px solid var(--line); border-radius: 10px; font-size: .75rem; }
.public-page .filter-bar { display: flex; gap: 8px; margin: 0 0 28px; padding: 8px; overflow-x: auto; background: rgba(19,22,30,.8); border: 1px solid var(--line); border-radius: 16px; scrollbar-width: none; }
.public-page .filter-bar::-webkit-scrollbar { display: none; }
.public-page .filter-chip { flex: 0 0 auto; padding: 10px 15px; color: #99a1b1; border-radius: 10px; font-size: .8rem; font-weight: 700; }
.public-page .filter-chip:hover { color: #fff; background: rgba(255,255,255,.05); }
.public-page .filter-chip.is-active { color: #11130c; background: var(--accent); }
.public-page .empty-state { grid-column: 1 / -1; color: var(--muted); background: #13161e; border: 1px dashed rgba(255,255,255,.14); box-shadow: none; }
.public-page .catalog-empty { padding: 70px 24px; }
.public-page .catalog-empty > span { display: block; color: #8b5cf6; font-size: 3rem; }
.public-page .catalog-empty h2 { margin: 12px 0 6px; color: #fff; }
.public-page .catalog-empty p { margin: 0 0 22px; }
.public-page .breadcrumbs { display: flex; gap: 9px; align-items: center; margin: 4px 0 22px; overflow: hidden; color: #788092; font-size: .76rem; white-space: nowrap; }
.public-page .breadcrumbs a:hover { color: #c9b4ff; }
.public-page .breadcrumbs > span:last-child { overflow: hidden; color: #aeb4c2; text-overflow: ellipsis; }
.public-page .product-layout { grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr); gap: 26px; align-items: start; }
.public-page .product-gallery-card, .public-page .detail-card { background: #13161e; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); backdrop-filter: none; }
.public-page .product-gallery-card { position: sticky; top: 110px; min-height: 580px; }
.public-page .product-gallery-card img { object-fit: cover; }
.public-page .detail-card { padding: 34px; }
.public-page .detail-card h1 { margin: 14px 0 16px; color: #fff; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.02; letter-spacing: -.055em; }
.public-page .detail-description { color: #9ca4b4; font-size: .94rem; line-height: 1.7; }
.public-page .description-toggle { color: #bda6f7; }
.public-page .detail-price-box { margin: 25px 0 18px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.public-page .price-current--lg { font-size: 2.2rem; }
.public-page .detail-benefits { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; color: #949cad; font-size: .75rem; }
.public-page .detail-benefits b { color: var(--accent); margin-right: 4px; }
.public-page .buy-title { margin: 0 0 12px; color: #e8eaf0; font-size: .92rem; }
.public-page .buy-list { gap: 9px; }
.public-page .buy-option { padding: 16px; background: #0e1016; border-color: var(--line); border-radius: 14px; }
.public-page .buy-option:hover { border-color: rgba(139,92,246,.5); box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.public-page .buy-store, .public-page .buy-price { color: #f1f2f6; }
.public-page .buy-store { font-size: .9rem; }
.public-page .buy-price { font-size: .9rem; }
.public-page .buy-cta { padding: 10px 12px; background: #7650d7; border-radius: 9px; font-size: .72rem; }
.public-page .amazon-price-note, .public-page .affiliate-disclaimer { color: #71798a; }
.public-page .site-footer { position: relative; margin-top: 10px; padding: 58px 0 24px; background: #080a0e; border-top: 1px solid var(--line); }
.public-page .footer-grid { display: grid; grid-template-columns: 1.5fr .7fr 1fr; gap: 70px; padding-bottom: 44px; }
.public-page .footer-brand p, .public-page .footer-note p { max-width: 390px; color: #777f90; font-size: .8rem; line-height: 1.65; }
.public-page .footer-links { display: grid; align-content: start; gap: 11px; }
.public-page .footer-links strong, .public-page .footer-note strong { margin-bottom: 6px; color: #e3e5eb; font-size: .8rem; }
.public-page .footer-links a { color: #858d9e; font-size: .78rem; }
.public-page .footer-links a:hover { color: #bba1f5; }
.public-page .footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; color: #5f6675; border-top: 1px solid var(--line); font-size: .7rem; }
.public-page .error-page { min-height: 480px; display: grid; place-items: center; align-content: center; }
.public-page .error-page h1 { color: #fff; letter-spacing: -.05em; }

@media (max-width: 1080px) {
  .public-page .site-header { grid-template-columns: auto 1fr; }
  .public-page .category-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; order: 3; padding-top: 2px; scrollbar-width: none; }
  .public-page .hero-panel { gap: 36px; padding: 44px; }
  .public-page .cards-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .public-page .wrapper { width: min(100% - 28px, 100%); }
  .public-page .page-space { padding-top: 22px; padding-bottom: 64px; }
  .public-page .site-header { top: 8px; grid-template-columns: 1fr; gap: 10px; margin-top: 8px; padding: 10px; border-radius: 17px; }
  .public-page .site-header > .brand-pill { justify-self: center; }
  .public-page .search-pill { grid-row: 2; }
  .public-page .category-nav { grid-row: 3; margin: 0 -2px; }
  .public-page .hero-panel { grid-template-columns: 1fr; min-height: 0; padding: 38px 28px 28px; }
  .public-page .hero-copy h1 { font-size: clamp(2.65rem, 12vw, 4.3rem); }
  .public-page .hero-showcase { transform: none; }
  .public-page .benefit-strip { grid-template-columns: 1fr; padding: 6px 18px; }
  .public-page .benefit-strip > div { justify-content: flex-start; padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .public-page .benefit-strip > div:last-child { border-bottom: 0; }
  .public-page .cards-grid--3, .public-page .cards-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-page .product-layout { grid-template-columns: 1fr; }
  .public-page .product-gallery-card { position: static; min-height: 0; aspect-ratio: 1 / .8; }
  .public-page .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .public-page .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .public-page .wrapper { width: min(100% - 20px, 100%); }
  .public-page .hero-panel { padding: 32px 20px 20px; border-radius: 24px; }
  .public-page .hero-copy h1 { font-size: 2.65rem; }
  .public-page .hero-actions > a { width: 100%; }
  .public-page .hero-trust { gap: 10px; }
  .public-page .hero-product-info { align-items: flex-start; flex-direction: column; }
  .public-page .hero-product-price { text-align: left; }
  .public-page .cards-grid--3, .public-page .cards-grid--4 { grid-template-columns: 1fr; }
  .public-page .section-head { align-items: flex-start; }
  .public-page .catalog-intro { align-items: flex-start; flex-direction: column; padding-top: 24px; }
  .public-page .catalog-intro h1 { font-size: 2.65rem; }
  .public-page .detail-card { padding: 24px 20px; }
  .public-page .detail-card h1 { font-size: 2.25rem; }
  .public-page .buy-option-right { align-items: stretch; }
  .public-page .buy-cta { text-align: center; }
  .public-page .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .public-page .footer-brand { grid-column: auto; }
  .public-page .footer-bottom { gap: 10px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .public-page *, .public-page *::before, .public-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Hatos layout and dual theme */
.public-page {
  --hatos-page: #090b10;
  --hatos-panel: #12151d;
  --hatos-panel-soft: #171a23;
  --hatos-input: #0b0d13;
  --hatos-text: #f5f6fa;
  --hatos-muted: #8f97a8;
  --hatos-border: rgba(255,255,255,.10);
  --hatos-image-stage: #f5f5f7;
  --hatos-purple-soft: rgba(139,92,246,.14);
  --hatos-footer: #07090d;
  background-color: var(--hatos-page);
  color: var(--hatos-text);
  transition: color .25s ease, background-color .25s ease;
}

[data-theme="light"] .public-page {
  --bg: #f4f4f7;
  --text: #17151e;
  --muted: #686778;
  --line: rgba(30,27,41,.10);
  --shadow: 0 22px 60px rgba(33,27,52,.10);
  --hatos-page: #f5f5f8;
  --hatos-panel: #ffffff;
  --hatos-panel-soft: #f0eff4;
  --hatos-input: #f3f2f6;
  --hatos-text: #17151e;
  --hatos-muted: #6e6c7b;
  --hatos-border: rgba(32,27,47,.11);
  --hatos-image-stage: #f2f2f4;
  --hatos-purple-soft: rgba(113,70,218,.10);
  --hatos-footer: #ecebf1;
  background: radial-gradient(circle at 12% -10%, rgba(139,92,246,.10), transparent 32rem), var(--hatos-page);
}

.public-page .site-header {
  display: block;
  min-height: 0;
  padding: 12px;
  background: color-mix(in srgb, var(--hatos-panel) 91%, transparent);
  border-color: var(--hatos-border);
  border-radius: 26px;
}
.public-page .header-primary { display: grid; grid-template-columns: auto minmax(280px, 1fr) auto; align-items: center; gap: 28px; }
.public-page .header-primary .search-pill { justify-self: end; max-width: 540px; }
.public-page .category-nav { justify-content: center; gap: 8px; margin-top: 11px; padding: 10px; overflow-x: auto; background: color-mix(in srgb, var(--hatos-input) 68%, transparent); border: 1px solid var(--hatos-border); border-radius: 17px; scrollbar-width: none; }
.public-page .category-nav::-webkit-scrollbar { display: none; }
.public-page .category-nav-link { padding: 10px 17px; color: var(--hatos-muted); background: var(--hatos-panel-soft); border: 1px solid var(--hatos-border); border-radius: 999px; }
.public-page .category-nav-link:hover { color: var(--hatos-text); background: var(--hatos-purple-soft); border-color: rgba(139,92,246,.26); }
.public-page .search-pill { background: var(--hatos-input); border-color: var(--hatos-border); }
.public-page .search-pill input, .public-page .search-pill button { color: var(--hatos-text); }
.public-page .search-pill button { background: var(--hatos-panel-soft); }
.public-page .theme-toggle { display: grid; width: 50px; height: 50px; place-items: center; color: var(--hatos-text); background: var(--hatos-panel-soft); border: 1px solid var(--hatos-border); border-radius: 14px; transition: transform .2s ease, background .2s ease; }
.public-page .theme-toggle:hover { transform: translateY(-2px); background: var(--hatos-purple-soft); }
.public-page .theme-icon { width: 21px; height: 21px; }
[data-theme="dark"] .public-page .theme-icon--moon, [data-theme="light"] .public-page .theme-icon--sun { display: none; }

.public-page .hero-panel,
.public-page .benefit-strip,
.public-page .product-card,
.public-page .catalog-intro,
.public-page .filter-bar,
.public-page .product-gallery-card,
.public-page .detail-card,
.public-page .empty-state { border-color: var(--hatos-border); }
.public-page .hero-panel { background: linear-gradient(135deg, var(--hatos-panel), color-mix(in srgb, var(--hatos-panel-soft) 75%, var(--hatos-panel))); }
.public-page .hero-copy h1,
.public-page .section-head h1,
.public-page .section-head h2,
.public-page .catalog-intro h1,
.public-page .detail-card h1,
.public-page .catalog-empty h2 { color: var(--hatos-text); }
.public-page .hero-copy p,
.public-page .section-head p,
.public-page .catalog-intro p,
.public-page .detail-description,
.public-page .product-body p { color: var(--hatos-muted); }
.public-page .benefit-strip,
.public-page .product-card,
.public-page .product-gallery-card,
.public-page .detail-card,
.public-page .empty-state { background: var(--hatos-panel); }
.public-page .benefit-strip { border-color: var(--hatos-border); }
.public-page .benefit-strip strong, .public-page .product-body h3, .public-page .price-current, .public-page .buy-store, .public-page .buy-price { color: var(--hatos-text); }

/* Product images use a stable stage so tall and wide catalog photos never crop. */
.public-page .product-thumb { display: grid; height: 300px; aspect-ratio: auto; place-items: center; padding: 18px; background: var(--hatos-image-stage); }
.public-page .product-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; mix-blend-mode: multiply; }
[data-theme="dark"] .public-page .product-thumb img { mix-blend-mode: normal; }
.public-page .product-card { min-height: 535px; }
.public-page .product-body { min-height: 235px; }
.public-page .product-body h3 { display: -webkit-box; min-height: 2.7em; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.public-page .product-body p { display: -webkit-box; min-height: 2.9em; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.public-page .price-row { border-color: var(--hatos-border); }
.public-page .card-action { color: #bfa8f5; background: var(--hatos-purple-soft); }
[data-theme="light"] .public-page .card-action { color: #6036bc; }
.public-page .hero-showcase { background: var(--hatos-panel); border-color: var(--hatos-border); }
.public-page .hero-product-image { display: grid; place-items: center; padding: 22px; background: var(--hatos-image-stage); }
.public-page .hero-product-image img { object-fit: contain; object-position: center; mix-blend-mode: multiply; }
[data-theme="dark"] .public-page .hero-product-image img { mix-blend-mode: normal; }
.public-page .hero-product-info strong, .public-page .hero-product-price b { color: var(--hatos-text); }
.public-page .hero-trust, .public-page .benefit-strip small, .public-page .results-count { color: var(--hatos-muted); }
.public-page .results-count, .public-page .filter-bar { background: var(--hatos-panel); border-color: var(--hatos-border); }
.public-page .filter-chip { color: var(--hatos-muted); }
.public-page .filter-chip:hover { color: var(--hatos-text); background: var(--hatos-panel-soft); }

.public-page .product-gallery-card { display: grid; height: min(650px, 70vh); min-height: 480px; place-items: center; padding: 34px; background: var(--hatos-image-stage); }
.public-page .product-gallery-card img { width: 100%; height: 100%; object-fit: contain; object-position: center; mix-blend-mode: multiply; }
[data-theme="dark"] .public-page .product-gallery-card img { mix-blend-mode: normal; }
.public-page .detail-price-box { border-color: var(--hatos-border); }
.public-page .buy-option { background: var(--hatos-input); border-color: var(--hatos-border); }
.public-page .buy-title { color: var(--hatos-text); }
.public-page .breadcrumbs, .public-page .detail-benefits, .public-page .affiliate-disclaimer { color: var(--hatos-muted); }

.public-page .site-footer { background: var(--hatos-footer); border-color: var(--hatos-border); }
.public-page .footer-links strong, .public-page .footer-note strong { color: var(--hatos-text); }
.public-page .footer-brand p, .public-page .footer-note p, .public-page .footer-links a, .public-page .footer-bottom { color: var(--hatos-muted); }
.public-page .footer-bottom { border-color: var(--hatos-border); }

@media (max-width: 1080px) {
  .public-page .header-primary { grid-template-columns: auto minmax(250px, 1fr) auto; gap: 16px; }
  .public-page .site-header .category-nav { grid-column: auto; grid-row: auto; }
  .public-page .cards-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .public-page .site-header { display: block; }
  .public-page .header-primary { grid-template-columns: 1fr auto; }
  .public-page .header-primary .brand-pill { justify-self: start; }
  .public-page .header-primary .search-pill { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .public-page .category-nav { margin-top: 9px; justify-content: flex-start; }
  .public-page .product-thumb { height: 250px; padding: 14px; }
  .public-page .product-card { min-height: 485px; }
  .public-page .product-gallery-card { height: 430px; min-height: 0; padding: 22px; aspect-ratio: auto; }
}
@media (max-width: 520px) {
  .public-page .cards-grid--3, .public-page .cards-grid--4 { grid-template-columns: 1fr; }
  .public-page .product-thumb { height: 290px; }
  .public-page .search-pill button { padding: 0 11px; }
}

/* Embedded offer cards keep the same uncropped product presentation. */
.hatos-widget-thumb, .hatos-widget-card > a:first-child { display: grid; place-items: center; overflow: hidden; background: #f4f4f6; }
.hatos-widget-thumb { aspect-ratio: 4 / 3; }
.hatos-widget-thumb img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; object-position: center; }
.hatos-widget-card > a:first-child { height: 250px; }
.hatos-widget-card > a:first-child img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; object-position: center; }

@media (prefers-color-scheme: dark) {
  .hatos-widget--sidebar, .hatos-widget-card { color: #f4f5f8; background: #13161e; border-color: rgba(255,255,255,.10); }
  .hatos-widget-body p, .hatos-widget-copy span, .hatos-widget-title, .hatos-widget-cat { color: #929aab; }
}
