/* Apple Store-inspired visual refresh for the public Radar interface. */
:root {
  --store-bg: #f5f5f7;
  --store-surface: #ffffff;
  --store-surface-soft: #fafafc;
  --store-ink: #1d1d1f;
  --store-muted: #6e6e73;
  --store-faint: #86868b;
  --store-line: #d2d2d7;
  --store-line-soft: rgba(0, 0, 0, 0.08);
  --store-blue: #0071e3;
  --store-blue-hover: #0077ed;
  --store-green: #16803c;
  --store-red: #b42318;
  --store-shadow: 0 4px 18px rgba(0, 0, 0, 0.045);
  --store-shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.085);
  --bg: var(--store-bg);
  --panel: var(--store-surface);
  --panel-strong: var(--store-surface);
  --panel-soft: var(--store-surface-soft);
  --text: var(--store-ink);
  --muted: var(--store-muted);
  --line: var(--store-line-soft);
  --brand: var(--store-blue);
  --brand-deep: var(--store-ink);
  --green: var(--store-green);
  --red: var(--store-red);
  --shadow: var(--store-shadow);
  --shadow-soft: var(--store-shadow);
  --radius-xl: 8px;
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 6px;
}

html {
  background: var(--store-bg);
  scroll-behavior: smooth;
}

body {
  color: var(--store-ink);
  background: var(--store-bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

strong,
b {
  font-weight: 600;
}

a,
button,
summary,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.28);
  outline-offset: 2px;
}

.page-frame,
.home-feed-frame,
.radar-page .home-feed-frame {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0 32px 64px;
}

/* Global header */
.home-feed-header,
.radar-page .home-feed-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: calc(100% + 64px);
  margin-left: -32px;
  padding: 0 32px;
  border: 0;
  border-bottom: 1px solid var(--store-line-soft);
  border-radius: 0;
  background: rgba(250, 250, 252, 0.88);
  box-shadow: none;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.home-header-tools,
.radar-page .home-header-tools {
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(220px, 420px) minmax(360px, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-height: 58px;
}

.home-header-search {
  min-width: 0;
  max-width: 420px;
}

.shell-search,
.home-header-search .shell-search,
.home-feed-header .shell-search,
.radar-page .home-feed-header .shell-search {
  width: 100%;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #e8e8ed;
  box-shadow: none;
  overflow: hidden;
}

.shell-search:focus-within,
.home-feed-header .shell-search:focus-within {
  border-color: rgba(0, 113, 227, 0.32);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.shell-search .shell-search-input,
.home-feed-header .shell-search-input,
.radar-page .home-feed-header .shell-search-input {
  min-height: 34px;
  padding: 0 12px;
  color: var(--store-ink);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 400;
  box-shadow: none;
}

.shell-search .shell-search-input::placeholder {
  color: var(--store-faint);
  opacity: 1;
}

.shell-search .shell-search-button,
.home-feed-header .shell-search-button,
.radar-page .home-feed-header .shell-search-button {
  width: 38px;
  min-width: 38px;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  box-shadow: none;
}

.shell-search .shell-search-button::before,
.home-feed-header .shell-search-button::before {
  border-color: #424245;
}

.shell-search .shell-search-button::after,
.home-feed-header .shell-search-button::after {
  background: #424245;
}

.radar-bot-strip,
.radar-bot-global-strip {
  justify-self: center;
  display: grid;
  grid-template-columns: 38px minmax(0, auto) auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.radar-bot-strip-image,
.radar-bot-strip-logo {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: none;
}

.radar-bot-strip-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.radar-bot-strip-copy strong {
  color: var(--store-ink);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.radar-bot-strip-copy span {
  max-width: 390px;
  overflow: hidden;
  color: var(--store-muted);
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radar-bot-telegram {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--store-blue);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: none;
}

.radar-bot-telegram:hover {
  color: var(--store-blue-hover);
  background: rgba(0, 113, 227, 0.07);
  box-shadow: none;
}

.telegram-icon {
  width: 20px;
  height: 20px;
  background: var(--store-blue);
}

.telegram-icon::before {
  border-top-width: 4px;
  border-bottom-width: 4px;
  border-left-width: 8px;
}

.public-auth {
  position: relative;
}

.auth-status-chip {
  min-height: 34px;
  padding: 0 9px 0 5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--store-ink);
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: none;
}

.auth-status-chip:hover {
  background: rgba(0, 0, 0, 0.045);
}

.auth-avatar {
  width: 26px;
  height: 26px;
  background: var(--store-blue);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
}

.auth-popover {
  border: 1px solid var(--store-line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.home-feed-header .home-page-nav,
.radar-page .home-feed-header .home-page-nav {
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--store-line-soft);
  text-align: center;
}

.home-feed-header .nav-link,
.home-feed-header .nav-summary,
.radar-page .home-feed-header .nav-link,
.radar-page .home-feed-header .nav-summary {
  width: auto;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #424245;
  font-size: 0.79rem;
  font-weight: 400;
  line-height: 44px;
  box-shadow: inset 0 -2px 0 transparent;
}

.home-feed-header .nav-link:hover,
.home-feed-header .nav-summary:hover,
.radar-page .home-feed-header .nav-link:hover,
.radar-page .home-feed-header .nav-summary:hover {
  color: var(--store-ink);
  background: transparent;
  transform: none;
}

.home-feed-header .nav-link.active,
.home-feed-header .nav-dropdown[open] .nav-summary,
.radar-page .home-feed-header .nav-link.active,
.radar-page .home-feed-header .nav-dropdown[open] .nav-summary {
  color: var(--store-ink);
  font-weight: 500;
  box-shadow: inset 0 -2px 0 var(--store-blue);
}

.home-feed-header .nav-summary-note {
  display: none;
}

.nav-dropdown-menu,
.home-feed-header .nav-dropdown-menu,
.radar-page .home-feed-header .nav-dropdown-menu {
  z-index: 120;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid var(--store-line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
}

.nav-dropdown-item {
  min-height: 34px;
  border-radius: 6px;
  color: #424245;
  font-size: 0.82rem;
  font-weight: 400;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active {
  background: #f0f0f2;
  color: var(--store-ink);
}

.home-site-tabs,
.home-ad-panel {
  display: none !important;
}

/* Status and footer information */
.page-status,
.home-status {
  margin: 14px 0 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 6px;
  background: #ffffff;
  color: var(--store-muted);
  font-size: 0.78rem;
  font-weight: 400;
  box-shadow: none;
}

.page-status.ok,
.home-status.ok {
  display: none;
}

.page-status.warning {
  background: #fff8e6;
  color: #815900;
}

.page-status.error {
  background: #fff0ef;
  color: var(--store-red);
}

.page-bottom-info {
  margin-top: 64px;
  padding: 20px 0 0;
  border-top: 1px solid var(--store-line-soft);
}

.home-header-meta {
  gap: 12px;
  color: var(--store-muted);
}

.home-header-meta .meta-chip,
.meta-chip {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--store-muted);
  font-size: 0.76rem;
  font-weight: 400;
}

.footer-note {
  color: var(--store-faint);
  font-size: 0.76rem;
  font-weight: 400;
}

/* Page hierarchy */
.home-feed-main,
.radar-page main {
  width: 100%;
}

.home-feed-main {
  padding-top: 42px;
}

.home-feed-section,
.radar-page .section {
  margin: 0;
  padding: 54px 0 0;
  border: 0;
  background: transparent;
}

.home-feed-section:first-child {
  padding-top: 0;
}

.home-feed-section + .home-feed-section {
  margin-top: 16px;
}

.home-feed-section-head,
.section-head,
.brand-row,
.hero-head {
  align-items: flex-end;
  gap: 20px;
}

.home-feed-title,
.section-title,
.brand-title,
.benefit-category-head h3,
.product-detail-primary h1 {
  margin: 0;
  color: var(--store-ink);
  font-weight: 600;
  letter-spacing: 0;
}

.home-feed-title,
.radar-page .section-title {
  font-size: clamp(1.75rem, 2.5vw, 2.45rem);
  line-height: 1.08;
}

.home-feed-copy,
.section-copy,
.brand-copy,
.hero-copy {
  margin-top: 8px;
  color: var(--store-muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
}

.home-feed-action,
.action-link,
.card-link,
.card-link-secondary,
.home-deal-button,
.history-load-more {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--store-blue);
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  box-shadow: none;
}

.home-feed-action:hover,
.action-link:hover,
.card-link:hover,
.card-link-secondary:hover,
.home-deal-button:hover,
.history-load-more:hover {
  border: 0;
  background: transparent;
  color: var(--store-blue-hover);
  box-shadow: none;
  transform: none;
  text-decoration: underline;
}

.home-feed-action::after,
.card-link::after,
.home-deal-button::after {
  color: currentColor;
  font-weight: 400;
}

.page-intro-card,
.radar-page .page-intro-card {
  display: block;
  margin: 0;
  padding: 52px 0 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.brand-title,
.radar-page .brand-title {
  max-width: none;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.03;
}

.eyebrow,
.home-category-kicker {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--store-faint);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Filter tools */
.hero-card,
.radar-page .hero-card {
  margin: 0;
  padding: 24px;
  border: 0;
  border-radius: 8px;
  background: var(--store-surface);
  box-shadow: var(--store-shadow);
  backdrop-filter: none;
}

.radar-page .hero-card .section-title {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 600;
}

.radar-page .hero-card .hero-copy,
.radar-page .hero-card .eyebrow {
  display: block;
}

.radar-page .hero-card .eyebrow {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--store-faint);
}

.toolbar,
.radar-page .toolbar {
  margin-top: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.toolbar-grid,
.radar-page .toolbar-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.field,
.select,
.auth-field,
.comment-textarea {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--store-line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--store-ink);
  font-size: 0.88rem;
  font-weight: 400;
  box-shadow: none;
}

.field:focus,
.select:focus,
.auth-field:focus,
.comment-textarea:focus {
  border-color: var(--store-blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

/* Home category shelves */
.home-category-feed,
.category-stack {
  display: grid;
  gap: 34px;
  margin-top: 24px;
}

.benefit-category-block,
.home-benefit-category-block,
.rank-card,
.radar-page .rank-card {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.benefit-category-head {
  align-items: flex-end;
  margin-bottom: 14px;
  padding: 0 2px;
}

.benefit-category-head h3 {
  margin-top: 4px;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
}

.home-category-count,
.home-shortcut-count {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--store-faint);
  font-size: 0.74rem;
  font-weight: 400;
}

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

.benefit-product-card,
.home-benefit-card {
  display: grid;
  grid-template-rows: 210px minmax(0, 1fr);
  gap: 0;
  min-width: 0;
  min-height: 370px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--store-surface);
  box-shadow: var(--store-shadow);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.benefit-product-card:hover,
.home-benefit-card:hover {
  border: 0;
  box-shadow: var(--store-shadow-hover);
  transform: translateY(-2px);
}

.benefit-product-media {
  min-width: 0;
  padding: 18px 18px 0;
}

.benefit-product-media .product-media,
.home-benefit-card .product-media {
  width: 100%;
  height: 192px;
  border: 0;
  border-radius: 6px;
  background: var(--store-surface-soft);
}

.benefit-product-media .product-image {
  padding: 14px;
  object-fit: contain;
}

.benefit-product-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 18px 18px;
}

.home-benefit-card .home-deal-category {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--store-faint);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.benefit-product-body h3 {
  min-height: 0;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.25;
}

.benefit-product-body h3 a {
  color: var(--store-ink);
  font-weight: inherit;
  text-decoration: none;
}

.home-benefit-price-line {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 5px;
  margin-top: auto;
  color: var(--store-ink);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.3;
}

.home-benefit-main-price {
  font-weight: 600;
}

.home-benefit-unit-price {
  color: var(--store-muted);
  font-weight: 400;
}

.home-benefit-card .benefit-product-button {
  align-self: flex-start;
  width: auto;
  min-height: 30px;
  margin-top: 3px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: var(--store-blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  box-shadow: none;
}

.home-benefit-card .benefit-product-button:hover {
  background: var(--store-blue-hover);
  color: #fff;
  text-decoration: none;
}

/* General product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.product-grid[data-highlight-grid] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 42px;
}

.product-card,
.radar-page .product-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--store-surface);
  box-shadow: var(--store-shadow);
  backdrop-filter: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.product-card:hover,
.radar-page .product-card:hover {
  border: 0;
  box-shadow: var(--store-shadow-hover);
  transform: translateY(-2px);
}

.product-card .product-media,
.radar-page .product-card .product-media {
  width: calc(100% - 24px);
  height: 210px;
  margin: 12px 12px 0;
  border: 0;
  border-radius: 6px;
  background: var(--store-surface-soft);
}

.product-card .product-image,
.radar-page .product-card .product-image {
  padding: 18px;
  object-fit: contain;
}

.product-card-body,
.radar-page .product-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 18px;
}

.product-card h3,
.radar-page .product-card h3,
.home-deal-title {
  margin: 0;
  color: var(--store-ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.28;
}

.product-card h3 a,
.radar-page .product-card h3 a,
.home-deal-title a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.product-card h3 a:hover,
.home-deal-title a:hover {
  color: var(--store-blue);
}

.card-description,
.home-deal-description,
.card-details,
.detail-line {
  color: var(--store-muted);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.4;
}

.price-main,
.home-deal-price,
.benefit-product-price {
  color: var(--store-ink);
  font-weight: 600;
}

.price-main {
  font-size: 1rem;
}

.tag-row {
  gap: 7px;
}

.tag,
.site-tab {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--store-faint);
  font-size: 0.68rem;
  font-weight: 500;
}

.tag.new,
.tag.discount,
.tag.down,
.tag.up {
  padding: 3px 7px;
  border-radius: 999px;
}

.tag.new {
  background: #e9f7ee;
  color: var(--store-green);
}

.tag.discount,
.tag.down {
  background: #eaf3ff;
  color: #0057b8;
}

.tag.up {
  background: #fff0ef;
  color: var(--store-red);
}

.tag.muted {
  padding: 0;
  background: transparent;
  color: var(--store-faint);
}

.product-icon-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 8px 0;
  border-top: 1px solid var(--store-line-soft);
  border-bottom: 1px solid var(--store-line-soft);
}

.product-icon-chip {
  gap: 5px;
  min-width: 0;
  min-height: 0;
  padding: 0 9px;
  border: 0;
  border-left: 1px solid var(--store-line-soft);
  border-radius: 0;
  background: transparent;
}

.product-icon-chip:first-child {
  padding-left: 0;
  border-left: 0;
}

.product-icon {
  width: 17px;
  height: 17px;
  background: var(--store-blue);
}

.product-icon-text {
  gap: 0;
}

.product-icon-text > span {
  display: none;
}

.product-icon-text strong {
  color: #424245;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
}

.product-social-compact {
  color: var(--store-faint);
  font-size: 0.7rem;
  font-weight: 400;
}

/* Home event cards */
.home-feed-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.home-deal-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--store-surface);
  box-shadow: var(--store-shadow);
}

.home-deal-card:hover {
  border: 0;
  box-shadow: var(--store-shadow-hover);
  transform: translateY(-2px);
}

.home-deal-media-link {
  padding: 12px 0 12px 12px;
}

.home-deal-card .product-media {
  width: 100%;
  height: 100%;
  min-height: 170px;
  border: 0;
  border-radius: 6px;
  background: var(--store-surface-soft);
}

.home-deal-card .product-image {
  padding: 14px;
}

.home-deal-body {
  gap: 8px;
  padding: 16px;
}

.home-deal-author {
  display: none;
}

.home-deal-meta {
  gap: 7px;
}

.home-deal-category {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--store-faint);
  font-size: 0.67rem;
  font-weight: 500;
}

.home-deal-bottom {
  align-items: flex-end;
}

.home-deal-price {
  font-size: 1rem;
}

.home-deal-button {
  align-self: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--store-blue);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 500;
}

.home-deal-button:hover {
  background: var(--store-blue-hover);
  color: #fff;
  text-decoration: none;
}

.home-deal-card .product-icon-row {
  display: none;
}

/* Secondary shortcuts */
.home-shortcut-grid {
  gap: 12px;
  margin-top: 22px;
}

.home-shortcut-card {
  min-height: 138px;
  padding: 20px;
  border: 0;
  border-radius: 8px;
  background: var(--store-surface);
  box-shadow: var(--store-shadow);
}

.home-shortcut-card:hover {
  border: 0;
  box-shadow: var(--store-shadow-hover);
  transform: translateY(-2px);
}

.home-shortcut-card strong {
  color: var(--store-ink);
  font-size: 1.05rem;
  font-weight: 600;
}

.home-shortcut-card > span:last-child {
  color: var(--store-muted);
  font-weight: 400;
  line-height: 1.4;
}

/* Product detail */
.product-detail-shell {
  gap: 22px;
  padding-top: 42px;
}

.product-detail-hero {
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1fr);
  gap: 54px;
  align-items: center;
  padding: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--store-surface);
  box-shadow: var(--store-shadow);
}

.product-detail-media .product-media {
  min-height: 500px;
  border: 0;
  border-radius: 6px;
  background: var(--store-surface-soft);
}

.product-detail-media .product-image {
  padding: 34px;
  object-fit: contain;
}

.product-detail-primary {
  gap: 16px;
}

.product-detail-primary h1,
.radar-page .product-detail-primary h1 {
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  font-weight: 600;
  line-height: 1.05;
  text-transform: none;
}

.product-detail-price {
  color: var(--store-ink);
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  font-weight: 600;
}

.product-detail-meta span {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--store-muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.product-detail-meta .stock-ok {
  color: var(--store-green);
  font-weight: 500;
}

.product-detail-cta,
.interaction-submit {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--store-blue);
  color: #fff;
  font-weight: 500;
  box-shadow: none;
}

.product-detail-cta:hover,
.interaction-submit:hover {
  background: var(--store-blue-hover);
  box-shadow: none;
  transform: none;
}

.product-detail-section,
.panel,
.stat-card,
.timeline-item,
.focus-card,
.empty-state {
  border: 0;
  border-radius: 8px;
  background: var(--store-surface);
  box-shadow: var(--store-shadow);
}

.product-detail-section h2,
.panel h2,
.panel h3,
.focus-card h3,
.timeline-item h3,
.empty-state h3 {
  color: var(--store-ink);
  font-weight: 600;
}

/* History */
.history-table-simple-shell {
  overflow: auto;
  border: 0;
  border-radius: 8px;
  background: var(--store-surface);
  box-shadow: var(--store-shadow);
}

.history-table-simple {
  border-collapse: collapse;
}

.history-table-simple th {
  padding: 13px 14px;
  border-bottom: 1px solid var(--store-line);
  background: #f8f8fa;
  color: var(--store-faint);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
}

.history-table-simple td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--store-line-soft);
  color: #424245;
  font-size: 0.82rem;
  font-weight: 400;
}

.history-simple-product-link,
.history-table-simple td:nth-child(4),
.history-table-simple td:nth-child(5) {
  color: var(--store-ink);
  font-weight: 500;
}

.history-mobile-card {
  padding: 14px;
  border: 0;
  border-radius: 8px;
  background: var(--store-surface);
  box-shadow: var(--store-shadow);
}

.history-mobile-title {
  color: var(--store-ink);
  font-weight: 500;
}

.history-mobile-category,
.history-mobile-fact small,
.history-mobile-footer {
  color: var(--store-faint);
  font-weight: 400;
}

.history-mobile-fact {
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: var(--store-surface-soft);
}

.history-mobile-fact strong {
  color: var(--store-ink);
  font-weight: 500;
}

/* Regulatory and origin cards */
.regulatory-view-tabs {
  gap: 4px;
  padding: 4px;
  border: 0;
  border-radius: 8px;
  background: #e8e8ed;
}

.regulatory-view-tab {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #424245;
  font-size: 0.82rem;
  font-weight: 400;
}

.regulatory-view-tab.is-active {
  background: #fff;
  color: var(--store-ink);
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.origin-profile {
  border: 0;
  border-radius: 8px;
  background: var(--store-surface);
  box-shadow: var(--store-shadow);
}

.origin-profile h3,
.origin-profile h4 {
  color: var(--store-ink);
  font-weight: 600;
}

.evidence-status,
.origin-product-count,
.evidence-key {
  font-weight: 500;
}

/* Public banners */
.public-banner-slot {
  margin-top: 18px;
}

.public-banner-card {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--store-surface);
  box-shadow: var(--store-shadow);
}

.public-banner-body strong {
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1120px) {
  .home-header-tools,
  .radar-page .home-header-tools {
    grid-template-columns: minmax(200px, 360px) minmax(300px, 1fr) auto;
    gap: 14px;
  }

  .radar-bot-strip-copy span {
    display: none;
  }

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

  .home-feed-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .page-frame,
  .home-feed-frame,
  .radar-page .home-feed-frame {
    padding: 0 16px 48px;
  }

  .home-feed-header,
  .radar-page .home-feed-header {
    width: calc(100% + 32px);
    margin-left: -16px;
    padding: 0 16px;
  }

  .home-header-tools,
  .radar-page .home-header-tools {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    min-height: 54px;
  }

  .radar-bot-strip,
  .radar-bot-global-strip {
    grid-template-columns: 32px auto;
    justify-self: end;
  }

  .radar-bot-strip-image,
  .radar-bot-strip-logo {
    width: 32px;
    height: 32px;
  }

  .radar-bot-strip-copy {
    display: none;
  }

  .radar-bot-telegram {
    min-height: 30px;
    padding: 0 6px;
  }

  .radar-bot-telegram > span:last-child {
    display: none;
  }

  .home-feed-header .home-page-nav,
  .radar-page .home-feed-header .home-page-nav {
    position: static;
    justify-content: flex-start;
    gap: 22px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    text-align: left;
  }

  .home-feed-header .home-page-nav::-webkit-scrollbar,
  .radar-page .home-feed-header .home-page-nav::-webkit-scrollbar {
    display: none;
  }

  .home-feed-header .nav-link,
  .home-feed-header .nav-summary,
  .radar-page .home-feed-header .nav-link,
  .radar-page .home-feed-header .nav-summary {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .home-feed-header .nav-dropdown-menu,
  .radar-page .home-feed-header .nav-dropdown-menu {
    position: fixed;
    top: 102px;
    left: 16px;
    width: min(360px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: min(60vh, 430px);
  }

  .page-intro-card,
  .radar-page .page-intro-card {
    padding-top: 38px;
  }

  .product-detail-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }

  .product-detail-media .product-media {
    min-height: 390px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 14px;
  }

  .page-frame,
  .home-feed-frame,
  .radar-page .home-feed-frame {
    padding: 0 10px 40px;
  }

  .home-feed-header,
  .radar-page .home-feed-header {
    width: calc(100% + 20px);
    margin-left: -10px;
    padding: 0 10px;
  }

  .home-header-tools,
  .radar-page .home-header-tools {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .auth-status-chip {
    width: 30px;
    padding: 0;
  }

  .auth-status-chip [data-auth-status-text] {
    display: none;
  }

  .auth-avatar {
    width: 28px;
    height: 28px;
  }

  .home-feed-header .home-page-nav,
  .radar-page .home-feed-header .home-page-nav {
    gap: 20px;
    min-height: 40px;
  }

  .home-feed-header .nav-link,
  .home-feed-header .nav-summary,
  .radar-page .home-feed-header .nav-link,
  .radar-page .home-feed-header .nav-summary {
    min-height: 40px;
    font-size: 0.75rem;
    line-height: 40px;
  }

  .home-feed-main {
    padding-top: 30px;
  }

  .home-feed-section,
  .radar-page .section {
    padding-top: 42px;
  }

  .home-feed-title,
  .radar-page .section-title {
    font-size: 1.7rem;
  }

  .home-feed-copy,
  .section-copy,
  .brand-copy,
  .hero-copy {
    font-size: 0.9rem;
  }

  .home-feed-section-head,
  .section-head {
    align-items: flex-start;
  }

  .home-feed-action {
    padding-top: 5px;
    white-space: nowrap;
  }

  .home-category-feed,
  .category-stack {
    gap: 28px;
  }

  .benefit-category-head {
    align-items: flex-start;
  }

  .benefit-category-head h3 {
    font-size: 1.05rem;
  }

  .benefit-product-grid,
  .home-benefit-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .benefit-product-card,
  .home-benefit-card {
    grid-template-rows: 135px minmax(0, 1fr);
    min-height: 300px;
  }

  .benefit-product-media {
    padding: 8px 8px 0;
  }

  .benefit-product-media .product-media,
  .home-benefit-card .product-media {
    height: 127px;
  }

  .benefit-product-media .product-image {
    padding: 9px;
  }

  .benefit-product-body {
    gap: 7px;
    padding: 11px 10px 12px;
  }

  .benefit-product-body h3 {
    font-size: 0.8rem;
    line-height: 1.24;
  }

  .home-benefit-card .home-deal-category {
    font-size: 0.56rem;
  }

  .home-benefit-price-line {
    display: grid;
    gap: 1px;
    font-size: 0.72rem;
  }

  .home-benefit-unit-price {
    font-size: 0.65rem;
  }

  .home-benefit-card .benefit-product-button {
    min-height: 28px;
    padding: 0 11px;
    font-size: 0.7rem;
  }

  .product-card .product-media,
  .radar-page .product-card .product-media {
    width: calc(100% - 16px);
    height: 138px;
    margin: 8px 8px 0;
  }

  .product-card .product-image,
  .radar-page .product-card .product-image {
    padding: 10px;
  }

  .product-card-body,
  .radar-page .product-card-body {
    gap: 8px;
    padding: 11px 10px 13px;
  }

  .product-card h3,
  .radar-page .product-card h3 {
    font-size: 0.8rem;
  }

  .product-card .product-icon-row {
    flex-wrap: wrap;
    gap: 6px;
    border: 0;
  }

  .product-card .product-icon-chip {
    padding: 0;
    border: 0;
  }

  .product-card .product-icon {
    width: 15px;
    height: 15px;
  }

  .product-card .product-icon-text strong {
    font-size: 0.62rem;
  }

  .home-feed-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-deal-card {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .home-deal-card .product-media {
    min-height: 144px;
  }

  .home-deal-body {
    padding: 12px;
  }

  .home-deal-title {
    font-size: 0.86rem;
  }

  .home-deal-description,
  .home-deal-card .product-social-compact {
    display: none;
  }

  .home-deal-bottom {
    align-items: center;
  }

  .home-deal-price {
    font-size: 0.88rem;
  }

  .home-deal-button {
    padding: 6px 9px;
    font-size: 0.68rem;
  }

  .hero-card,
  .radar-page .hero-card {
    padding: 16px;
  }

  .toolbar-grid,
  .radar-page .toolbar-grid {
    grid-template-columns: 1fr;
  }

  .brand-title,
  .radar-page .brand-title {
    font-size: 2.15rem;
  }

  .product-detail-shell {
    padding-top: 24px;
  }

  .product-detail-hero {
    gap: 18px;
    padding: 12px;
  }

  .product-detail-media .product-media {
    min-height: 260px;
  }

  .product-detail-media .product-image {
    padding: 18px;
  }

  .product-detail-primary h1,
  .radar-page .product-detail-primary h1 {
    font-size: 1.65rem;
    line-height: 1.08;
  }

  .product-detail-price {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Card layout normalization
   Rich catalog cards need more width than the compact home shelf cards. */
.radar-page .priority-section .product-grid {
  padding-left: 0;
  border-left: 0;
}

.radar-page .priority-section .section-title {
  color: var(--store-ink);
}

.radar-page .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.best-value-page .product-grid[data-highlight-grid] {
  grid-template-columns: minmax(0, 1fr);
}

.premium-page .product-grid[data-highlight-grid] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pharmagrade-page .product-grid {
  grid-template-columns: minmax(0, 1fr);
}

.product-related .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card,
.radar-page .product-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
}

.product-card-media-link {
  display: block;
  width: 100%;
  padding: 12px 12px 0;
}

.product-card .product-media,
.radar-page .product-card .product-media {
  display: block;
  width: 100%;
  height: 190px;
  margin: 0;
  aspect-ratio: auto;
}

.product-card .product-image,
.radar-page .product-card .product-image {
  padding: 16px;
}

.product-card-body,
.radar-page .product-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  height: auto;
  padding: 15px 16px 16px;
}

.product-card .card-top,
.radar-page .product-card .card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.product-card .tag-row,
.radar-page .product-card .tag-row {
  align-content: start;
  min-width: 0;
}

.product-card .price-main,
.radar-page .product-card .price-main {
  color: var(--store-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.product-card h3,
.radar-page .product-card h3 {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.28;
}

.product-card .card-description,
.radar-page .product-card .card-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card .product-icon-row,
.radar-page .product-card .product-icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  padding: 8px 0;
  border-top: 1px solid var(--store-line-soft);
  border-bottom: 1px solid var(--store-line-soft);
}

.product-card .product-icon-chip,
.radar-page .product-card .product-icon-chip {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.product-card .product-icon-chip:first-child,
.radar-page .product-card .product-icon-chip:first-child {
  display: none;
}

.product-card .product-icon-text strong,
.radar-page .product-card .product-icon-text strong {
  color: #424245;
  font-size: 0.7rem;
  font-weight: 400;
}

.product-card .card-details,
.radar-page .product-card .card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  margin: 0;
  color: var(--store-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.product-card .detail-line,
.radar-page .product-card .detail-line {
  color: inherit;
  font-size: inherit;
}

.product-social-compact,
.product-card .product-social-compact,
.home-deal-card .product-social-compact {
  display: none;
}

.product-card .card-actions,
.radar-page .product-card .card-actions,
.regulatory-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 14px;
  margin-top: auto;
  padding-top: 4px;
}

.product-card .card-actions .card-link:first-child,
.radar-page .product-card .card-actions .card-link:first-child {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--store-blue);
  color: #ffffff;
  font-size: 0.77rem;
  font-weight: 500;
  text-decoration: none;
}

.product-card .card-actions .card-link:first-child:hover,
.radar-page .product-card .card-actions .card-link:first-child:hover {
  background: var(--store-blue-hover);
  color: #ffffff;
  text-decoration: none;
}

.product-card .card-actions .card-link-secondary,
.radar-page .product-card .card-actions .card-link-secondary {
  font-size: 0.78rem;
}

.pharmagrade-page .regulatory-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  height: auto;
  padding: 12px;
}

.pharmagrade-page .regulatory-card > .product-media {
  width: 100%;
  height: 190px;
}

.pharmagrade-page .regulatory-card .product-card-body {
  padding: 4px 8px 6px;
}

.pharmagrade-page .regulatory-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 18px;
  padding-top: 4px;
}

.benefit-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.benefit-product-card {
  min-height: 342px;
}

.benefit-product-card .benefit-product-button {
  align-self: flex-start;
  width: auto;
  min-height: 30px;
  margin-top: auto;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: var(--store-blue);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 500;
  box-shadow: none;
}

.benefit-product-card .benefit-product-button:hover {
  background: var(--store-blue-hover);
  color: #ffffff;
  text-decoration: none;
}

@media (max-width: 1120px) {
  .radar-page .product-grid,
  .premium-page .product-grid[data-highlight-grid] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .best-value-page .product-grid[data-highlight-grid],
  .pharmagrade-page .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

@media (max-width: 560px) {
  .radar-page .product-grid,
  .premium-page .product-grid[data-highlight-grid],
  .product-related .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .best-value-page .product-grid[data-highlight-grid],
  .pharmagrade-page .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .radar-page .product-card:not(.regulatory-card) {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: stretch;
    height: auto;
  }

  .radar-page .product-card:not(.regulatory-card) .product-card-media-link {
    height: 100%;
    padding: 10px 0 10px 10px;
  }

  .radar-page .product-card:not(.regulatory-card) .product-media {
    width: 100%;
    height: 100%;
    min-height: 174px;
  }

  .radar-page .product-card:not(.regulatory-card) .product-image {
    padding: 8px;
  }

  .radar-page .product-card:not(.regulatory-card) .product-card-body {
    gap: 7px;
    padding: 11px 10px 11px 12px;
  }

  .radar-page .product-card:not(.regulatory-card) .card-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .radar-page .product-card:not(.regulatory-card) .price-main {
    grid-row: 1;
    text-align: left;
  }

  .radar-page .product-card:not(.regulatory-card) .tag-row {
    grid-row: 2;
  }

  .radar-page .product-card:not(.regulatory-card) .card-description {
    display: none;
  }

  .radar-page .product-card:not(.regulatory-card) .product-icon-row {
    gap: 5px 9px;
    padding: 6px 0;
  }

  .radar-page .product-card:not(.regulatory-card) .card-details {
    display: grid;
    gap: 2px;
    font-size: 0.7rem;
  }

  .radar-page .product-card:not(.regulatory-card) .card-actions {
    gap: 8px 11px;
    padding-top: 2px;
  }

  .pharmagrade-page .regulatory-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
  }

  .pharmagrade-page .regulatory-card > .product-media {
    width: calc(100% - 20px);
    height: 180px;
    margin: 10px 10px 0;
  }

  .pharmagrade-page .regulatory-card .product-card-body {
    padding: 13px 14px 15px;
  }

  .pharmagrade-page .regulatory-details {
    grid-template-columns: minmax(0, 1fr);
  }

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