/* ============================================================================
   buygood.tw 好物選 — Programmatic SEO / GEO / AEO Pages Stylesheet
   Compliant with UI Iron Rules:
   1. Zero text clipping or overflow:hidden truncation on dynamic text
   2. Keep-all + text-wrap: balance to prevent awkward Chinese word-splitting
   3. Fluid min(1160px, 94vw) container & 38% / 62% desktop detail split
   4. Senior-safe clamp() typography & padding
   ============================================================================ */

:root {
  --seo-bg: #f8fafc;
  --seo-card: #ffffff;
  --seo-border: #e2e8f0;
  --seo-text: #0f172a;
  --seo-muted: #475569;
  --seo-primary: #c2410c;
  --seo-primary-bright: #ea580c;
  --seo-primary-hover: #9a3412;
  --seo-primary-soft: rgba(234, 88, 12, 0.1);
  --seo-green: #15803d;
  --seo-green-soft: rgba(21, 128, 61, 0.1);
  --seo-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  --seo-shadow-hover: 0 12px 28px rgba(15, 23, 42, 0.09);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body.seo-page {
  margin: 0;
  padding: 0;
  background: var(--seo-bg);
  color: var(--seo-text);
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
  overflow-x: clip;
}

/* Keep short 2-3 char tail + arrow glued together so a lone arrow NEVER orphans on line 2 */
.seo-keep {
  display: inline-block;
}

body.seo-page h1,
body.seo-page h2,
body.seo-page h3 {
  word-break: keep-all;
  text-wrap: balance;
}

.seo-container {
  width: 100%;
  max-width: min(1160px, 94vw);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px) 0 48px;
}

/* Header + PWA Safe-Area */
.seo-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--seo-border);
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
}

@media (display-mode: standalone) {
  .seo-header {
    padding-top: max(8px, env(safe-area-inset-top, 0px));
  }
}

.seo-header__inner {
  width: 100%;
  max-width: min(1160px, 94vw);
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.seo-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--seo-text);
  font-weight: 800;
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  word-break: keep-all;
  flex-shrink: 0;
}

.seo-brand__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #c2410c, #9a3412);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.25);
}

.seo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.seo-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: clamp(0.82rem, 1.15vw, 0.9rem);
  font-weight: 700;
  color: var(--seo-muted);
  text-decoration: none;
  background: #f1f5f9;
  transition: background 0.15s ease, color 0.15s ease;
  word-break: keep-all;
  min-height: 34px;
  max-width: 100%;
  box-sizing: border-box;
}

.seo-nav__link:hover,
.seo-nav__link--active {
  background: var(--seo-primary);
  color: #ffffff;
}

@media (max-width: 767px) {
  .seo-header__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 9px 0 8px;
  }

  .seo-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 1px 0 2px;
    gap: 6px;
    width: 100%;
  }

  .seo-nav::-webkit-scrollbar {
    display: none;
  }

  .seo-nav__link {
    flex: 0 0 auto;
    width: max-content;
    font-size: 0.82rem;
    padding: 6px 11px;
  }
}

/* Breadcrumb */
.seo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.82rem, 1.2vw, 0.9rem);
  color: var(--seo-muted);
  margin-bottom: 16px;
  word-break: keep-all;
}

.seo-breadcrumb a {
  color: var(--seo-primary);
  text-decoration: none;
  font-weight: 600;
}

.seo-breadcrumb a:hover {
  text-decoration: underline;
}

/* Hero / Summary Cards */
.seo-hero {
  background: var(--seo-card);
  border: 1px solid var(--seo-border);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--seo-shadow);
  margin-bottom: 24px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.seo-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  box-sizing: border-box;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--seo-primary-soft);
  color: #9a3412;
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  font-weight: 800;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
  margin-bottom: 12px;
}

.seo-title {
  margin: 0 0 8px;
  font-size: clamp(1.26rem, 2.5vw, 1.88rem);
  font-weight: 900;
  line-height: 1.3;
  color: var(--seo-text);
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.seo-answer-box {
  background: #fff7ed;
  border-left: 4px solid var(--seo-primary);
  border-radius: 0 12px 12px 0;
  padding: clamp(12px, 2vw, 18px);
  margin: 14px 0;
  font-size: clamp(0.94rem, 1.4vw, 1.05rem);
  color: #1e293b;
  word-break: normal;
  line-break: strict;
  overflow-wrap: break-word;
}

/* Stat Strip */
.seo-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 12px;
  margin-top: 18px;
}

.seo-stat-card {
  background: #f8fafc;
  border: 1px solid var(--seo-border);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 0;
}

.seo-stat-card__label {
  font-size: clamp(0.78rem, 1.1vw, 0.86rem);
  color: var(--seo-muted);
  font-weight: 600;
}

.seo-stat-card__value {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 900;
  color: var(--seo-primary);
  word-break: keep-all;
}

/* Filter Toolbar & Category Pills */
.seo-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.seo-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid var(--seo-border);
  background: #ffffff;
  color: var(--seo-text);
  font-size: clamp(0.84rem, 1.25vw, 0.94rem);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: normal;
  max-width: 100%;
  box-sizing: border-box;
  word-break: keep-all;
  transition: all 0.15s ease;
}

.seo-pill:hover,
.seo-pill--active {
  background: var(--seo-primary);
  border-color: var(--seo-primary);
  color: #ffffff;
}

.seo-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 12px;
  background: var(--seo-card);
  border: 1px solid var(--seo-border);
  border-radius: 14px;
  padding: clamp(14px, 2vw, 20px);
  margin-bottom: 20px;
}

.seo-input,
.seo-select {
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  color: var(--seo-text);
  background: #ffffff;
}

.seo-input:focus:not(:focus-visible),
.seo-select:focus:not(:focus-visible) {
  outline: none;
}

.seo-input:focus,
.seo-select:focus {
  border-color: var(--seo-primary);
}

:is(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 2.5px solid var(--seo-primary, #c2410c) !important;
  outline-offset: 2px;
}

/* Deal Card Grid */
.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}

.deal-tile {
  background: var(--seo-card);
  border: 1px solid var(--seo-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--seo-shadow);
  min-width: 0;
  max-width: 100%;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.deal-tile > * {
  min-width: 0;
  max-width: 100%;
}

.deal-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.09);
}

.deal-tile__img-wrap {
  aspect-ratio: 4 / 3;
  background: #ffffff;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.deal-tile__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.deal-tile__discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #dc2626;
  color: #ffffff;
  font-size: clamp(0.74rem, 1.1vw, 0.82rem);
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 99px;
  max-width: calc(100% - 20px);
  box-sizing: border-box;
  white-space: normal;
  word-break: keep-all;
  text-wrap: balance;
  line-height: 1.3;
}

.deal-tile__body {
  padding: clamp(14px, 2vw, 18px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.deal-tile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--seo-muted);
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: break-word;
  min-width: 0;
  max-width: 100%;
}

.deal-tile__title {
  margin: 0;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  font-weight: 800;
  line-height: 1.42;
  color: var(--seo-text);
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
  min-width: 0;
  max-width: 100%;
}

.deal-tile__title a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.deal-tile__title a:hover {
  color: var(--seo-primary);
}

.deal-tile__calc {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: clamp(0.84rem, 1.2vw, 0.94rem);
  font-weight: 700;
  white-space: normal;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.deal-tile__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.deal-tile__sale {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 900;
  color: #dc2626;
}

.deal-tile__orig {
  font-size: 0.88rem;
  color: #475569;
  text-decoration: line-through;
}

.deal-tile__actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
  margin-top: 8px;
  align-items: stretch;
}

.deal-tile__actions:has(> :only-child) {
  grid-template-columns: 1fr;
}

.seo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
  min-height: 42px;
  padding: clamp(8px, 1.2vw, 11px) clamp(12px, 1.8vw, 18px);
  border-radius: 10px;
  font-size: clamp(0.84rem, 1.2vw, 0.95rem);
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: normal;
  max-width: 100%;
  box-sizing: border-box;
  word-break: keep-all;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.seo-btn__text {
  display: inline;
  min-width: 0;
  max-width: 100%;
}

.deal-tile__actions .seo-btn {
  min-height: 40px;
  padding: 8px 10px;
  font-size: clamp(0.8rem, 1.05vw, 0.88rem);
}

.seo-btn--primary {
  background: linear-gradient(135deg, #c2410c, #b91c1c);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.22);
}

.seo-btn--primary:hover {
  background: linear-gradient(135deg, #9a3412, #991b1b);
}

.seo-btn--secondary {
  background: #f8fafc;
  color: var(--seo-text);
  border-color: #cbd5e1;
}

.seo-btn--secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.seo-btn--dark {
  background: #0f172a;
  color: #ffffff;
}

.seo-btn--dark:hover {
  background: #1e293b;
}

.seo-btn--green {
  background: linear-gradient(135deg, #15803d, #166534);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.22);
}

.seo-btn--green:hover {
  background: linear-gradient(135deg, #166534, #14532d);
}

.seo-btn--line {
  background: linear-gradient(135deg, #15803d, #166534);
  color: #ffffff;
}

.seo-btn--threads {
  background: #0f172a;
  color: #ffffff;
}

/* Equal-Height Button Rows on Product Detail & Share Bars */
.seo-detail-cta-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 4px;
  align-items: stretch;
}

@media (max-width: 480px) {
  .seo-detail-cta-row {
    grid-template-columns: 1fr;
  }
}

.seo-share-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  align-items: stretch;
}

.seo-share-row .seo-btn {
  min-height: 40px;
  padding: 8px 10px;
  font-size: clamp(0.78rem, 1.1vw, 0.88rem);
}

@media (max-width: 420px) {
  .seo-share-row {
    grid-template-columns: 1fr 1fr;
  }
  .seo-share-row .seo-btn:last-child {
    grid-column: 1 / -1;
  }
}

/* Single Product Detail Two-Column Split (38% Image / 62% Details on Desktop) */
.product-detail-card {
  background: var(--seo-card);
  border: 1px solid var(--seo-border);
  border-radius: 20px;
  padding: clamp(18px, 3vw, 32px);
  box-shadow: var(--seo-shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .product-detail-card {
    grid-template-columns: minmax(220px, calc(38% - 16px)) minmax(0, calc(62% - 18px));
    align-items: start;
  }
}

.product-detail__media {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

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

.product-detail__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calc-pill-elastic {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  background: #fff7ed;
  border: 1.5px solid #fdba74;
  color: #9a3412;
  border-radius: 12px;
  padding: clamp(8px, 1.4vw, 12px) clamp(14px, 2vw, 18px);
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  font-weight: 800;
  word-break: keep-all;
}

/* Comparison Table & Calculator */
.seo-section {
  background: var(--seo-card);
  border: 1px solid var(--seo-border);
  border-radius: 18px;
  padding: clamp(18px, 2.8vw, 28px);
  box-shadow: var(--seo-shadow);
  margin-bottom: 24px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.seo-section__title {
  margin: 0 0 14px;
  font-size: clamp(1.12rem, 1.9vw, 1.42rem);
  font-weight: 900;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.86rem, 1.25vw, 0.96rem);
  min-width: 540px;
}

.seo-table th,
.seo-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--seo-border);
  text-align: left;
  vertical-align: middle;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.seo-table th {
  background: #f8fafc;
  font-weight: 800;
  color: var(--seo-text);
}

.seo-table tr.is-lowest {
  background: #fff7ed;
}

/* Calculator Widget */
.calc-widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}

.calc-plan-box {
  background: #f8fafc;
  border: 1px solid var(--seo-border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-result-banner {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1.5px solid #86efac;
  color: #166534;
  font-weight: 800;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  word-break: keep-all;
}

/* FAQ List */
.seo-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seo-faq-item {
  border: 1px solid var(--seo-border);
  border-radius: 12px;
  padding: 14px 18px;
  background: #f8fafc;
  min-width: 0;
  overflow-wrap: anywhere;
}

.seo-faq-item__q {
  margin: 0 0 6px;
  font-size: clamp(0.94rem, 1.35vw, 1.06rem);
  font-weight: 800;
  color: #9a3412;
  word-break: keep-all;
  line-break: strict;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.seo-faq-item__a {
  margin: 0;
  font-size: clamp(0.88rem, 1.25vw, 0.98rem);
  color: var(--seo-muted);
  word-break: normal;
  line-break: strict;
  overflow-wrap: break-word;
}

/* Footer */
.seo-footer {
  background: #ffffff;
  border-top: 1px solid var(--seo-border);
  padding: 28px 0 36px;
  margin-top: 32px;
}

.seo-footer__inner {
  width: 100%;
  max-width: min(1160px, 94vw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--seo-muted);
}

.seo-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.seo-footer__links a {
  color: var(--seo-muted);
  text-decoration: none;
  font-weight: 600;
}

.seo-footer__links a:hover {
  color: var(--seo-primary);
}

/* Scenario Quick-Picker & Editorial Matrix (AEO / GEO / Anti-Bounce) */
.seo-scenario-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
}

.seo-scenario-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1.5px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
  font-size: clamp(0.84rem, 1.2vw, 0.94rem);
  font-weight: 800;
  cursor: pointer;
  white-space: normal;
  max-width: 100%;
  box-sizing: border-box;
  word-break: keep-all;
  transition: all 0.15s ease;
}

.seo-scenario-btn:hover,
.seo-scenario-btn--active {
  background: var(--seo-primary);
  border-color: var(--seo-primary);
  color: #ffffff;
}

.seo-editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  margin-top: 12px;
}

.seo-editorial-card {
  background: #f8fafc;
  border: 1px solid var(--seo-border);
  border-radius: 14px;
  padding: 16px;
  min-width: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seo-editorial-card__tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--seo-primary-soft);
  color: #9a3412;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
}

.seo-editorial-card__title {
  margin: 0;
  font-size: clamp(0.96rem, 1.35vw, 1.06rem);
  font-weight: 800;
  color: var(--seo-text);
  line-height: 1.4;
  text-wrap: balance;
}

.seo-editorial-card__title a {
  color: inherit;
  text-decoration: none;
}

.seo-editorial-card__title a:hover {
  color: var(--seo-primary);
}

.seo-editorial-card__desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--seo-muted);
  line-height: 1.6;
}

.seo-checklist {
  margin: 10px 0 0;
  padding-left: 20px;
  line-height: 1.75;
  color: var(--seo-text);
  font-size: clamp(0.9rem, 1.3vw, 0.98rem);
  word-break: keep-all;
}

/* Guided Next-Step Funnel (Anti-Bounce Cross Navigation) */
.seo-guided-funnel {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
  border: 1.5px solid #fed7aa;
  border-radius: 18px;
  padding: clamp(18px, 3vw, 28px);
  margin: 24px 0;
}

.seo-funnel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  margin-top: 14px;
}

.seo-funnel-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--seo-border);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--seo-text);
  min-width: 0;
  word-break: keep-all;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.seo-funnel-card:hover {
  transform: translateY(-2px);
  border-color: var(--seo-primary);
}

.seo-funnel-card__eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  color: #9a3412;
}

.seo-funnel-card__title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--seo-text);
  word-break: keep-all;
  text-wrap: balance;
}

.seo-funnel-card__desc {
  font-size: 0.85rem;
  color: var(--seo-muted);
}

/* Mobile Sticky Dual CTA Bar on Product Detail Pages */
.seo-sticky-cta,
.seo-sticky-bar {
  display: none;
}

@media (max-width: 767px) {
  body.seo-page.seo-has-sticky {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .seo-sticky-cta,
  .seo-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: minmax(96px, auto) minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--seo-border);
    box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.08);
  }

  .seo-sticky-cta .seo-btn,
  .seo-sticky-bar .seo-btn {
    min-height: 44px;
    padding: 9px 12px;
    font-size: 0.86rem;
    line-height: 1.25;
  }
}

/* Mobile PWA Bottom Tab Bar (<768px on Directory / Category / Store / Guide pages) */
.seo-pwa-tabbar {
  display: none;
}

@media (max-width: 767px) {
  body.seo-page.seo-has-tabbar {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .seo-pwa-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 58;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    min-height: 58px;
    padding: 6px 4px max(8px, env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.07);
  }

  .seo-pwa-tabbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 44px;
    text-decoration: none;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.15;
    border-radius: 10px;
    transition: color 0.15s ease, background 0.15s ease;
  }

  .seo-pwa-tabbar__icon {
    font-size: 1.15rem;
    line-height: 1;
  }

  .seo-pwa-tabbar__item--active {
    color: #c2410c;
    font-weight: 800;
  }
}

/* ============================================================================
   Curator Shop Attribution Banner on /deals/<id> ("XXX 的店")
   ============================================================================ */
.curator-shop-banner {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 68%, #fffbeb 100%);
  border: 1.5px solid #fed7aa;
  border-radius: 16px;
  padding: clamp(14px, 2.2vw, 18px) clamp(16px, 2.4vw, 22px);
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.07);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.curator-shop-banner__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 280px;
}

.curator-shop-banner__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.16);
}

.curator-shop-banner__info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.curator-shop-banner__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.curator-shop-banner__badge {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 900;
  color: #9a3412;
  line-height: 1.25;
  word-break: keep-all;
}

.curator-shop-banner__city {
  font-size: 0.74rem;
  font-weight: 800;
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #fdba74;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.3;
  flex-shrink: 0;
}

.curator-shop-banner__role {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  word-break: keep-all;
}

.curator-shop-banner__store-name {
  font-size: clamp(0.84rem, 1.2vw, 0.94rem);
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  word-break: keep-all;
}

.curator-shop-banner__actions {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px;
  align-items: stretch;
  flex-shrink: 0;
}

.curator-shop-banner__btn {
  min-height: 40px;
  padding: 8px 14px;
  font-size: clamp(0.82rem, 1.1vw, 0.88rem);
}

@media (max-width: 640px) {
  .curator-shop-banner__actions {
    width: 100%;
    grid-template-columns: 1.3fr 1fr;
  }
}

/* ============================================================================
   /stores Curator Directory Mall — Magazine-Grade Equal-Height Card Grid
   ============================================================================ */
.mall-wrap {
  width: 100%;
  max-width: min(1160px, 94vw);
  margin: 0 auto;
  padding: clamp(16px, 2.8vw, 24px) 0 48px;
  box-sizing: border-box;
}

.mall-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 65%, #334155 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: clamp(20px, 3vw, 30px);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
  max-width: 100%;
  box-sizing: border-box;
}

.mall-hero__content {
  max-width: min(700px, 100%);
  min-width: 0;
  flex: 1 1 280px;
}

.mall-hero__eyebrow {
  font-size: clamp(0.78rem, 1.1vw, 0.86rem);
  font-weight: 800;
  color: #fdba74;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.mall-hero h1 {
  margin: 6px 0 10px;
  font-size: clamp(1.32rem, 2.5vw, 1.98rem);
  line-height: 1.32;
  color: #ffffff;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.mall-hero__desc {
  margin: 0;
  font-size: clamp(0.88rem, 1.25vw, 0.95rem);
  color: #cbd5e1;
  line-height: 1.65;
  word-break: normal;
  line-break: strict;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

.mall-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #15803d, #166534);
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
  font-size: clamp(0.88rem, 1.25vw, 0.96rem);
  line-height: 1.3;
  word-break: keep-all;
  white-space: normal;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mall-hero__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.36);
}

@media (max-width: 640px) {
  .mall-hero__cta {
    width: 100%;
  }
}

.mall-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.mall-controls__top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
}

.mall-search {
  width: 100%;
  max-width: 560px;
  padding: 11px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: clamp(0.88rem, 1.25vw, 0.95rem);
  color: var(--seo-text);
  background: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mall-search:focus {
  border-color: var(--seo-primary-bright);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.mall-count-badge {
  font-size: 0.86rem;
  font-weight: 800;
  color: #334155;
  word-break: keep-all;
}

.mall-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mall-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  word-break: keep-all;
  white-space: normal;
  max-width: 100%;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.mall-tab:hover {
  border-color: #ea580c;
  color: #c2410c;
}

.mall-tab.active {
  background: #c2410c;
  color: #ffffff;
  border-color: #c2410c;
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.24);
}

@media (max-width: 767px) {
  .mall-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .mall-tabs::-webkit-scrollbar {
    display: none;
  }

  .mall-tab {
    flex: 0 0 auto;
    width: max-content;
  }
}

.mall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 18px;
  align-items: stretch;
}

.mall-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.045);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mall-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--seo-shadow-hover);
  border-color: #fdba74;
}

.mall-card__img-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #ffffff;
  padding: 14px;
  box-sizing: border-box;
  border-bottom: 1px solid #f1f5f9;
  overflow: hidden;
}

.mall-card__img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.22s ease;
}

.mall-card:hover .mall-card__img-box img {
  transform: scale(1.03);
}

.mall-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

/* Curator Header: 36px Avatar + Clean 2-Line Structured Meta */
.mall-card__curator {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mall-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.15);
}

.mall-card__curator-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mall-card__owner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mall-card__owner-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  word-break: keep-all;
}

.mall-card__city {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 1px 7px;
  border-radius: 999px;
  line-height: 1.35;
  flex-shrink: 0;
}

.mall-card__role {
  font-size: 0.71rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.35;
  letter-spacing: -0.01em;
  word-break: keep-all;
  white-space: normal;
}

.mall-card__title {
  margin: 0;
  font-size: clamp(0.96rem, 1.2vw, 1.02rem);
  font-weight: 800;
  line-height: 1.38;
  color: #0f172a;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.mall-card__title a {
  color: inherit;
  text-decoration: none;
}

.mall-card__title a:hover {
  color: var(--seo-primary);
}

.mall-card__desc {
  margin: 0;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Aligned Footer Stack: Meta Row + Equal-Height Buttons */
.mall-card__meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.mall-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 3px 9px;
  border-radius: 999px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-break: keep-all;
}

.mall-save {
  font-size: 0.75rem;
  font-weight: 800;
  color: #dc2626;
  margin-left: auto;
  word-break: keep-all;
}

.mall-card__actions {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 8px;
  padding-top: 4px;
  align-items: stretch;
}

.mall-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  text-decoration: none;
  font-size: clamp(0.8rem, 1.05vw, 0.85rem);
  font-weight: 800;
  line-height: 1.25;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: center;
  word-break: keep-all;
  white-space: normal;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mall-btn--primary {
  background: linear-gradient(135deg, #c2410c, #b91c1c);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(194, 65, 12, 0.22);
}

.mall-btn--primary:hover {
  background: linear-gradient(135deg, #9a3412, #991b1b);
}

.mall-btn--ghost {
  border-color: #cbd5e1;
  color: #0f172a;
  background: #ffffff;
}

.mall-btn--ghost:hover {
  border-color: #ea580c;
  color: #c2410c;
  background: #fff7ed;
}

/* ============================================================================
   /stores/<slug> Niche Curator Storefront Page
   ============================================================================ */
.store-page-hero {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
  border: 1px solid #fed7aa;
  border-radius: 18px;
  padding: clamp(18px, 2.8vw, 26px);
  margin-bottom: 22px;
  box-shadow: var(--seo-shadow);
  box-sizing: border-box;
}

.store-hero-head {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.store-hero-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.28rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

.store-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 240px;
}

.store-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
}

.store-hero-subbadges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.store-hero-badge {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fdba74;
  font-size: clamp(0.82rem, 1.15vw, 0.9rem);
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-break: keep-all;
}

.store-hero-role {
  font-size: clamp(0.78rem, 1.1vw, 0.85rem);
  font-weight: 700;
  color: #475569;
  line-height: 1.35;
  word-break: keep-all;
}

.store-hero-vertical {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-break: keep-all;
}

.store-hero-date {
  font-size: 0.78rem;
  color: #64748b;
}

.store-hero-title {
  margin: 0;
  font-size: clamp(1.32rem, 2.5vw, 1.88rem);
  color: #0f172a;
  line-height: 1.32;
  word-break: keep-all;
  text-wrap: balance;
}

.store-curator-quote {
  margin: 0 0 14px;
  padding: 13px 16px;
  background: #ffffff;
  border-left: 4px solid #ea580c;
  border-radius: 0 12px 12px 0;
  color: #1e293b;
  font-size: clamp(0.9rem, 1.3vw, 0.98rem);
  line-height: 1.65;
  word-break: normal;
  line-break: strict;
  overflow-wrap: break-word;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.store-hero-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  gap: 10px;
  align-items: stretch;
}

@media (max-width: 640px) {
  .store-hero-actions {
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .store-hero-actions .seo-btn:last-child {
    grid-column: 1 / -1;
  }
}

.store-prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin-bottom: 28px;
  align-items: stretch;
}

.store-prod-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-width: 0;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.store-prod-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--seo-shadow-hover);
}

.store-prod-card__top {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.store-prod-card__img-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #f1f5f9;
}

.store-prod-card__img-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.store-prod-card__title {
  margin: 0;
  font-size: clamp(0.95rem, 1.25vw, 1.04rem);
  font-weight: 800;
  line-height: 1.4;
  color: #0f172a;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.store-prod-card__title a {
  color: inherit;
  text-decoration: none;
}

.store-prod-card__title a:hover {
  color: var(--seo-primary);
}

.store-prod-card__unit {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.48;
  word-break: keep-all;
}

.store-prod-card__price {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.store-prod-card__actions {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 8px;
  align-items: stretch;
}

.store-prod-card__actions .seo-btn {
  min-height: 40px;
  padding: 8px 10px;
  font-size: clamp(0.8rem, 1.05vw, 0.86rem);
}

.store-promo-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: clamp(18px, 3vw, 26px);
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.store-siblings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 14px;
  align-items: stretch;
}

.store-sibling-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 15px;
  text-decoration: none;
  color: #0f172a;
  box-sizing: border-box;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.store-sibling-card:hover {
  transform: translateY(-2px);
  border-color: #fdba74;
  box-shadow: var(--seo-shadow);
}

/* ============================================================================
   /guides/<slug> Comparison Guide Cards
   ============================================================================ */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 16px;
  margin-bottom: 28px;
  align-items: stretch;
}

.guide-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(96px, 124px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.guide-item-card__img-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 8px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
}

.guide-item-card__img-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.guide-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.guide-card__actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 8px;
  align-items: stretch;
  flex: 1 1 220px;
  max-width: 100%;
}

.guide-card__actions .seo-btn {
  min-height: 40px;
  padding: 8px 10px;
  font-size: clamp(0.8rem, 1.05vw, 0.86rem);
}

.guide-bottom-cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  align-items: stretch;
}

@media (max-width: 560px) {
  .guide-item-card {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .guide-item-card__img-link {
    max-width: 180px;
    width: 100%;
    margin: 0 auto;
  }

  .guide-card__actions {
    width: 100%;
  }
}

/* ===== Preorder / Group-Buy Badge & Shipping ETA Banner (M2 -> M3/M4 Contract) ===== */
.preorder-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
  box-sizing: border-box;
  padding: clamp(5px, 1vw, 7px) clamp(10px, 1.8vw, 14px);
  border-radius: 99px;
  background: var(--seo-primary-soft);
  border: 1.5px solid #fb923c;
  color: #9a3412;
  font-size: clamp(0.8rem, 1.25vw, 0.92rem);
  font-weight: 800;
  line-height: 1.4;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.shipping-eta-banner,
.seo-preorder-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: clamp(10px, 1.8vw, 14px) clamp(12px, 2vw, 16px);
  border-radius: 12px;
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  color: #78350f;
  font-size: clamp(0.86rem, 1.3vw, 0.96rem);
  line-height: 1.55;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

/* ============================================================================
   LINE Official Account (@376wfwio) & Price-Drop / Restock Watch CTA Bar
   WCAG AA >= 4.5:1 contrast, Senior-friendly clamp() typography, 0px overflow
   ============================================================================ */
.seo-line-alert-bar {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 68%, #ecfdf5 100%);
  border: 1.5px solid #86efac;
  border-radius: 16px;
  padding: clamp(14px, 2.2vw, 20px);
  margin: 14px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.08);
}

.seo-line-alert-bar__lead {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.seo-line-alert-bar__title {
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  font-weight: 900;
  color: #14532d;
  line-height: 1.4;
  word-break: keep-all;
  text-wrap: balance;
}

.seo-line-alert-bar__desc {
  font-size: clamp(0.84rem, 1.2vw, 0.94rem);
  color: #166534;
  line-height: 1.58;
  word-break: normal;
  line-break: strict;
  overflow-wrap: break-word;
}

.seo-line-alert-bar__actions {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.seo-line-alert-bar__actions .seo-btn {
  min-height: 46px;
  padding: clamp(9px, 1.4vw, 12px) clamp(12px, 1.8vw, 16px);
  font-size: clamp(0.86rem, 1.25vw, 0.96rem);
  line-height: 1.38;
}

@media (max-width: 600px) {
  .seo-line-alert-bar__actions {
    grid-template-columns: 1fr;
  }
}

.seo-btn--line-oa {
  background: linear-gradient(135deg, #15803d, #166534);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(21, 128, 61, 0.24);
}

.seo-btn--line-oa:hover {
  background: linear-gradient(135deg, #166534, #14532d);
}

.seo-btn--line-watch {
  background: #ffffff;
  color: #14532d;
  border: 1.5px solid #15803d;
}

.seo-btn--line-watch:hover {
  background: #dcfce7;
  border-color: #166534;
}

/* ============================================================================
   Consumer-First Shopper Reconstruction (/deals, /deals/<cat>, /stores, /gta6-ps5)
   Compliant with all 5 UI Iron Rules — zero forced nowrap truncation
   ============================================================================ */

/* 1. Compact Shopper-First Hero & Mobile Header Trim */
.seo-hero {
  padding: clamp(14px, 2.2vw, 24px);
  margin-bottom: 16px;
}

.seo-hero--compact {
  padding: clamp(12px, 2vw, 20px);
  margin-bottom: 14px;
}

.seo-hero__sub {
  margin: 0 0 10px;
  font-size: clamp(0.84rem, 1.25vw, 0.96rem);
  color: var(--seo-muted);
  line-height: 1.5;
  word-break: normal;
  line-break: strict;
  overflow-wrap: break-word;
}

.seo-breadcrumb {
  margin-bottom: 10px;
}

.seo-controls {
  padding: clamp(10px, 1.6vw, 14px);
  margin-bottom: 12px;
  gap: 8px;
}

.seo-controls--compact {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 10px 0 6px;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
}

.seo-controls--compact .seo-input,
.seo-controls--compact .seo-select {
  padding: 8px 12px;
  font-size: clamp(0.86rem, 1.2vw, 0.95rem);
}

.seo-result-count {
  margin: 0 0 10px;
  font-size: clamp(0.84rem, 1.2vw, 0.94rem);
  font-weight: 800;
  color: var(--seo-muted);
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
}

@media (max-width: 599px) {
  .seo-controls--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .seo-controls--compact .seo-input {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .seo-container {
    padding: 10px 0 40px;
  }

  /* On mobile pages with bottom tabbar, suppress duplicate top scroll nav to reclaim ~48px above-the-fold */
  body.seo-has-tabbar .seo-header__inner {
    flex-direction: row;
    align-items: center;
    padding: 8px 0;
  }

  body.seo-has-tabbar .seo-nav {
    display: none;
  }

  .seo-pill-row,
  .seo-scenario-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 10px 0 4px;
    padding-bottom: 4px;
    gap: 6px;
  }

  .seo-pill-row::-webkit-scrollbar,
  .seo-scenario-bar::-webkit-scrollbar {
    display: none;
  }

  .seo-pill,
  .seo-scenario-btn {
    flex: 0 0 auto;
    width: max-content;
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* 2. Responsive Product Grid: 2-col Mobile/Tablet (<900px), 3-col Desktop (>=900px, generous ~376px cards inside min(1160px, 94vw)) */
.seo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

@media (min-width: 600px) {
  .seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 900px) {
  .seo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

.deal-tile__title {
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.deal-tile__title a {
  display: block;
  width: 100%;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.deal-tile__calc {
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
}

@media (max-width: 599px) {
  .deal-tile {
    border-radius: 13px;
  }

  .deal-tile__img-wrap {
    aspect-ratio: 1 / 1;
    padding: 8px;
  }

  .deal-tile__discount {
    top: 6px;
    left: 6px;
    padding: 3px 7px;
    font-size: 0.68rem;
    max-width: calc(100% - 12px);
  }

  .deal-tile__body {
    padding: 9px;
    gap: 6px;
  }

  .deal-tile__meta {
    font-size: 0.7rem;
    gap: 4px;
  }

  .deal-tile__title {
    font-size: 0.84rem;
    line-height: 1.38;
  }

  .deal-tile__calc {
    padding: 5px 8px;
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .deal-tile__sale {
    font-size: 1.08rem;
  }

  .deal-tile__orig {
    font-size: 0.75rem;
  }

  .deal-tile__actions {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-top: 4px;
  }

  .deal-tile__actions .seo-btn {
    min-height: 36px;
    padding: 6px 8px;
    font-size: 0.78rem;
  }
}

/* 3. Visual Champion Cards (.seo-editorial-card with Real Product Photos & Buy CTAs) */
.seo-editorial-card {
  background: #ffffff;
  border: 1px solid var(--seo-border);
  border-radius: 14px;
  padding: clamp(12px, 1.8vw, 16px);
  gap: 8px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
}

.seo-editorial-card__img-wrap,
.seo-editorial-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 8px;
  box-sizing: border-box;
  overflow: hidden;
  text-decoration: none;
}

.seo-editorial-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 99px;
  background: #dc2626;
  color: #ffffff;
  font-size: clamp(0.72rem, 1.05vw, 0.8rem);
  font-weight: 900;
  line-height: 1.25;
  max-width: calc(100% - 16px);
  box-sizing: border-box;
  white-space: normal;
  word-break: keep-all;
  text-wrap: balance;
}

.seo-editorial-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.seo-editorial-card__img {
  width: 100%;
  height: 150px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px;
  border: 1px solid #f1f5f9;
  box-sizing: border-box;
}

.seo-editorial-card__img-wrap .seo-editorial-card__img,
.seo-editorial-card__media .seo-editorial-card__img {
  height: 100%;
  border: none;
  padding: 0;
  border-radius: 0;
}

.seo-editorial-card__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.seo-editorial-card__sale {
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  font-weight: 900;
  color: #dc2626;
}

.seo-editorial-card__save {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.74rem;
  font-weight: 800;
  word-break: keep-all;
}

.seo-editorial-card__actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 8px;
  padding-top: 6px;
  align-items: stretch;
}

.seo-editorial-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 9px;
  background: linear-gradient(135deg, #c2410c, #b91c1c);
  color: #ffffff;
  font-size: clamp(0.78rem, 1.1vw, 0.86rem);
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  line-break: strict;
  box-sizing: border-box;
}

.seo-editorial-card__cta:hover {
  background: linear-gradient(135deg, #9a3412, #991b1b);
  color: #ffffff;
}

.seo-editorial-card__detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: var(--seo-text);
  font-size: clamp(0.78rem, 1.1vw, 0.86rem);
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
}

.seo-editorial-card__detail-link:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.seo-editorial-card__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: clamp(0.8rem, 1.15vw, 0.88rem);
  font-weight: 800;
  color: var(--seo-primary);
  text-decoration: none;
  word-break: keep-all;
  line-break: strict;
}

.seo-editorial-card__more:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 420px) {
  .seo-editorial-card__actions {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* 4. Compact Shopper-First /stores Hero */
.mall-hero {
  padding: clamp(14px, 2.2vw, 22px);
  margin-bottom: 14px;
  gap: 12px;
}

.mall-hero--compact {
  padding: clamp(12px, 2vw, 20px);
  margin-bottom: 12px;
  gap: 10px;
  border-radius: 16px;
}

.mall-hero h1 {
  margin: 4px 0 6px;
  font-size: clamp(1.2rem, 2.2vw, 1.72rem);
  line-break: strict;
  overflow-wrap: break-word;
}

.mall-hero__cta--secondary,
.mall-hero__pill-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #f8fafc;
  text-decoration: none;
  font-size: clamp(0.78rem, 1.1vw, 0.86rem);
  font-weight: 700;
  white-space: normal;
  word-break: keep-all;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: none;
}

.mall-hero__cta--secondary:hover,
.mall-hero__pill-cta:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  box-shadow: none;
}

@media (max-width: 640px) {
  .mall-hero__cta--secondary,
  .mall-hero__pill-cta {
    width: auto;
    min-height: 36px;
    padding: 6px 14px;
  }
}

/* 5. Muted PChome Comparison-Only / Price-Reference Row Styling */
.seo-table tr.is-reference-only {
  background: #f8fafc;
  color: #475569;
}

.seo-table tr.is-reference-only td {
  color: #475569;
  border-bottom-style: dashed;
}

.seo-ref-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 700;
  word-break: keep-all;
}

.seo-ref-link {
  color: #475569;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seo-ref-link:hover {
  color: #0f172a;
}

.comparison-item--reference,
.hot-compare-chip--reference,
.hot-compare-chip--ref {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #475569;
}

/* 5b. Verified Cross-Platform Price Comparison Details & Partner Coupon Check Bar */
.seo-matched-spec {
  display: block;
  margin-top: 4px;
  font-size: clamp(0.74rem, 1.05vw, 0.82rem);
  font-weight: 500;
  line-height: 1.42;
  color: #475569;
  white-space: normal;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.seo-price-diff {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: clamp(0.74rem, 1.05vw, 0.82rem);
  font-weight: 800;
  line-height: 1.3;
  white-space: normal;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.seo-price-diff--higher {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.seo-price-diff--same {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

.seo-price-diff--ref-lower {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.seo-price-diff--lowest {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fed7aa;
}

.seo-partner-check-bar {
  margin-top: 12px;
  padding: clamp(11px, 1.8vw, 16px);
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--seo-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 100%;
  box-sizing: border-box;
}

.seo-partner-check-bar__head,
.seo-partner-check-bar__title {
  margin: 0;
  font-size: clamp(0.84rem, 1.2vw, 0.94rem);
  font-weight: 800;
  color: var(--seo-text);
  line-height: 1.4;
  white-space: normal;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
}

.seo-partner-check-bar__note,
.seo-partner-check-bar__desc {
  margin: 0;
  font-size: clamp(0.76rem, 1.1vw, 0.84rem);
  color: #475569;
  line-height: 1.48;
  white-space: normal;
  word-break: normal;
  line-break: strict;
  overflow-wrap: break-word;
}

.seo-partner-check-bar__pills,
.seo-partner-check-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: 100%;
}

.seo-partner-check-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid #f97316;
  color: #9a3412;
  font-size: clamp(0.8rem, 1.15vw, 0.88rem);
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
  white-space: normal;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.seo-partner-check-pill:hover {
  background: #fff7ed;
  border-color: #c2410c;
  color: #7c2d12;
  transform: translateY(-1px);
}

.seo-partner-check-pill--ref {
  background: #f1f5f9;
  border: 1px dashed #94a3b8;
  color: #334155;
}

.seo-partner-check-pill--ref:hover {
  background: #e2e8f0;
  border-color: #64748b;
  color: #0f172a;
}

@media (max-width: 480px) {
  .seo-partner-check-bar {
    padding: 10px 12px;
    gap: 6px;
  }

  .seo-partner-check-pill {
    padding: 6px 11px;
    font-size: 0.8rem;
  }
}

/* 6. Structured Stat Tiles (Prevents Orphan Closing Parenthesis in 2-col Mobile KPIs) */
.stat-main {
  display: block;
  line-height: 1.25;
  word-break: keep-all;
  line-break: strict;
}

.stat-sub {
  display: block;
  margin-top: 2px;
  font-size: clamp(0.76rem, 1.15vw, 0.88rem);
  font-weight: 700;
  opacity: 0.92;
  line-height: 1.35;
  word-break: keep-all;
  line-break: strict;
}

/* 7. Senior Mode Elastic Defense on SEO Grids & Compact Controls (1-col Mobile <640px) */
body.template--senior-paper-sepia .seo-result-count,
body.theme-senior-paper-sepia .seo-result-count,
body.is-senior-template .seo-result-count,
body[data-is-senior="true"] .seo-result-count {
  font-size: clamp(0.95rem, 1.35vw, 1.1rem);
}

body.template--senior-paper-sepia .seo-editorial-card__badge,
body.theme-senior-paper-sepia .seo-editorial-card__badge,
body.is-senior-template .seo-editorial-card__badge,
body[data-is-senior="true"] .seo-editorial-card__badge {
  font-size: clamp(0.84rem, 1.2vw, 0.96rem);
  padding: 5px 12px;
}

body.template--senior-paper-sepia .seo-editorial-card__cta,
body.theme-senior-paper-sepia .seo-editorial-card__cta,
body.is-senior-template .seo-editorial-card__cta,
body[data-is-senior="true"] .seo-editorial-card__cta,
body.template--senior-paper-sepia .seo-editorial-card__detail-link,
body.theme-senior-paper-sepia .seo-editorial-card__detail-link,
body.is-senior-template .seo-editorial-card__detail-link,
body[data-is-senior="true"] .seo-editorial-card__detail-link,
body.template--senior-paper-sepia .mall-hero__cta--secondary,
body.theme-senior-paper-sepia .mall-hero__cta--secondary,
body.is-senior-template .mall-hero__cta--secondary,
body[data-is-senior="true"] .mall-hero__cta--secondary,
body.template--senior-paper-sepia .mall-hero__pill-cta,
body.theme-senior-paper-sepia .mall-hero__pill-cta,
body.is-senior-template .mall-hero__pill-cta,
body[data-is-senior="true"] .mall-hero__pill-cta {
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  padding: 9px 14px;
}

body.template--senior-paper-sepia .seo-matched-spec,
body.theme-senior-paper-sepia .seo-matched-spec,
body.is-senior-template .seo-matched-spec,
body[data-is-senior="true"] .seo-matched-spec {
  font-size: clamp(0.88rem, 1.25vw, 0.98rem);
  color: #3f362c;
}

body.template--senior-paper-sepia .seo-price-diff,
body.theme-senior-paper-sepia .seo-price-diff,
body.is-senior-template .seo-price-diff,
body[data-is-senior="true"] .seo-price-diff {
  font-size: clamp(0.86rem, 1.25vw, 0.98rem);
  padding: 4px 12px;
}

body.template--senior-paper-sepia .seo-partner-check-bar,
body.theme-senior-paper-sepia .seo-partner-check-bar,
body.is-senior-template .seo-partner-check-bar,
body[data-is-senior="true"] .seo-partner-check-bar {
  background: #f5efe0;
  border-color: #c9b99b;
  padding: clamp(14px, 2vw, 18px);
}

body.template--senior-paper-sepia .seo-partner-check-pill,
body.theme-senior-paper-sepia .seo-partner-check-pill,
body.is-senior-template .seo-partner-check-pill,
body[data-is-senior="true"] .seo-partner-check-pill,
body.template--senior-paper-sepia .seo-partner-check-pill--ref,
body.theme-senior-paper-sepia .seo-partner-check-pill--ref,
body.is-senior-template .seo-partner-check-pill--ref,
body[data-is-senior="true"] .seo-partner-check-pill--ref {
  font-size: clamp(0.92rem, 1.3vw, 1.04rem);
  min-height: 44px;
  padding: 8px 16px;
}

@media (max-width: 640px) {
  body.template--senior-paper-sepia .seo-partner-check-pill,
  body.theme-senior-paper-sepia .seo-partner-check-pill,
  body.is-senior-template .seo-partner-check-pill,
  body[data-is-senior="true"] .seo-partner-check-pill,
  body.template--senior-paper-sepia .seo-partner-check-pill--ref,
  body.theme-senior-paper-sepia .seo-partner-check-pill--ref,
  body.is-senior-template .seo-partner-check-pill--ref,
  body[data-is-senior="true"] .seo-partner-check-pill--ref {
    width: 100%;
  }

  body.template--senior-paper-sepia .seo-grid,
  body.theme-senior-paper-sepia .seo-grid,
  body.is-senior-template .seo-grid,
  body[data-is-senior="true"] .seo-grid,
  body.template--senior-paper-sepia .seo-editorial-grid,
  body.theme-senior-paper-sepia .seo-editorial-grid,
  body.is-senior-template .seo-editorial-grid,
  body[data-is-senior="true"] .seo-editorial-grid,
  body.template--senior-paper-sepia .seo-controls--compact,
  body.theme-senior-paper-sepia .seo-controls--compact,
  body.is-senior-template .seo-controls--compact,
  body[data-is-senior="true"] .seo-controls--compact,
  body.template--senior-paper-sepia .seo-editorial-card__actions,
  body.theme-senior-paper-sepia .seo-editorial-card__actions,
  body.is-senior-template .seo-editorial-card__actions,
  body[data-is-senior="true"] .seo-editorial-card__actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.template--senior-paper-sepia .deal-tile__body,
  body.theme-senior-paper-sepia .deal-tile__body,
  body.is-senior-template .deal-tile__body,
  body[data-is-senior="true"] .deal-tile__body {
    padding: 14px;
    gap: 10px;
  }

  body.template--senior-paper-sepia .deal-tile__title,
  body.theme-senior-paper-sepia .deal-tile__title,
  body.is-senior-template .deal-tile__title,
  body[data-is-senior="true"] .deal-tile__title,
  body.template--senior-paper-sepia .seo-editorial-card__title,
  body.theme-senior-paper-sepia .seo-editorial-card__title,
  body.is-senior-template .seo-editorial-card__title,
  body[data-is-senior="true"] .seo-editorial-card__title {
    font-size: clamp(1.06rem, 1.55vw, 1.22rem);
    line-height: 1.46;
  }

  body.template--senior-paper-sepia .deal-tile__calc,
  body.theme-senior-paper-sepia .deal-tile__calc,
  body.is-senior-template .deal-tile__calc,
  body[data-is-senior="true"] .deal-tile__calc {
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    padding: 8px 16px;
  }
}



/* ============================================================================
   Site Factory Theme Overrides, Storefront & Editorial Components (19th)
   Strictly compliant with UI Iron Rules:
   - Zero text clipping or forced dynamic nowrap
   - word-break: keep-all; text-wrap: balance
   - Desktop detail split 38% image / 62% content inside min(1160px, 94vw)
   - Fluid clamp() sizing
   ============================================================================ */
:root {
  --seo-bg: #f6faf7;
  --seo-primary: #064e3b;
  --seo-primary-bright: #059669;
  --seo-primary-hover: #022c22;
  --seo-primary-soft: rgba(5, 150, 105, 0.09);
}

.seo-brand__icon {
  background: linear-gradient(135deg, var(--seo-primary), var(--seo-primary-bright));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.sf-hero {
  background: linear-gradient(135deg, #ffffff 0%, var(--seo-primary-soft) 100%);
  border: 1px solid var(--seo-border);
  border-radius: 20px;
  padding: clamp(22px, 4vw, 42px);
  margin-bottom: 24px;
  box-shadow: var(--seo-shadow);
}

.sf-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--seo-primary-soft);
  color: var(--seo-primary);
  font-size: clamp(0.82rem, 1.2vw, 0.9rem);
  font-weight: 700;
  margin-bottom: 12px;
  max-width: 100%;
  white-space: normal;
}

.sf-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.28;
  color: var(--seo-text);
}

.sf-hero__sub {
  margin: 0 0 18px;
  color: var(--seo-muted);
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  max-width: 72ch;
}

.sf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: clamp(0.9rem, 1.3vw, 0.98rem);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  word-break: keep-all;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.sf-btn--primary {
  background: var(--seo-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.sf-btn--primary:hover {
  background: var(--seo-primary-hover);
  transform: translateY(-1px);
}

.sf-btn--ghost {
  background: #fff;
  color: var(--seo-text);
  border-color: var(--seo-border);
}

.sf-btn--ghost:hover {
  border-color: var(--seo-primary);
  color: var(--seo-primary);
}

.sf-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}

.sf-stat-card {
  background: #fff;
  border: 1px solid var(--seo-border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--seo-shadow);
}

.sf-stat-card__label {
  font-size: 0.82rem;
  color: var(--seo-muted);
  margin-bottom: 4px;
}

.sf-stat-card__val {
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  font-weight: 800;
  color: var(--seo-primary);
}

.sf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
  gap: 18px;
  margin-top: 16px;
}

.sf-card {
  background: var(--seo-card);
  border: 1px solid var(--seo-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--seo-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sf-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--seo-shadow-hover);
}

.sf-prod-card {
  background: var(--seo-card);
  border: 1px solid var(--seo-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--seo-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sf-prod-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--seo-shadow-hover);
}

.sf-prod-card__img-link {
  display: block;
  aspect-ratio: 3 / 2;
  background: #0f172a;
}

.sf-prod-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sf-prod-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.sf-prod-card__title {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.4;
}

.sf-prod-card__title a {
  color: var(--seo-text);
  text-decoration: none;
}

.sf-prod-card__title a:hover {
  color: var(--seo-primary);
}

.sf-prod-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sf-spec-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  max-width: 100%;
  white-space: normal;
}

.sf-prod-card__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.sf-price-main {
  font-size: clamp(1.18rem, 2vw, 1.38rem);
  font-weight: 800;
  color: var(--seo-primary);
}

.sf-price-orig {
  font-size: 0.88rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.sf-status-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--seo-primary-soft);
  color: var(--seo-primary);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Desktop 38% image / 62% content split per UI Iron Rule 3 */
.sf-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 820px) {
  .sf-detail-grid {
    grid-template-columns: minmax(280px, 38%) minmax(0, 62%);
    gap: 32px;
  }
}

.sf-detail-media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--seo-border);
  background: #0f172a;
}

.sf-detail-media img {
  width: 100%;
  height: auto;
  display: block;
}

.sf-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--seo-muted);
}

.sf-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--seo-primary-soft);
  color: var(--seo-primary);
  font-weight: 700;
  font-size: 0.8rem;
  word-break: keep-all;
}

.sf-card h2,
.sf-card h3 {
  margin: 0;
  font-size: clamp(1.08rem, 1.8vw, 1.24rem);
  line-height: 1.4;
}

.sf-card h2 a,
.sf-card h3 a {
  color: var(--seo-text);
  text-decoration: none;
}

.sf-card h2 a:hover,
.sf-card h3 a:hover {
  color: var(--seo-primary);
}

.sf-card p {
  margin: 0;
  color: var(--seo-muted);
  font-size: 0.94rem;
  line-height: 1.65;
  flex: 1;
}

.sf-card__link {
  color: var(--seo-primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
}

.sf-article-wrap {
  background: var(--seo-card);
  border: 1px solid var(--seo-border);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 40px);
  box-shadow: var(--seo-shadow);
}

.sf-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--seo-muted);
  margin-bottom: 14px;
}

.sf-breadcrumb a {
  color: var(--seo-muted);
  text-decoration: none;
}

.sf-breadcrumb a:hover {
  color: var(--seo-primary);
}

.sf-direct-answer {
  background: var(--seo-primary-soft);
  border-left: 4px solid var(--seo-primary);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 18px 0 24px;
}

.sf-direct-answer__label {
  font-weight: 800;
  color: var(--seo-primary);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.sf-takeaways {
  background: #f8fafc;
  border: 1px solid var(--seo-border);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 26px;
}

.sf-takeaways h2 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.sf-takeaways ul {
  margin: 0;
  padding-left: 20px;
}

.sf-takeaways li {
  margin-bottom: 6px;
}

.sf-section {
  margin-bottom: 28px;
}

.sf-section h2 {
  font-size: clamp(1.22rem, 2.2vw, 1.5rem);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--seo-border);
}

.sf-section p {
  margin: 0 0 12px;
  font-size: 1.02rem;
  line-height: 1.8;
  color: #1e293b;
}

.sf-section ul {
  margin: 8px 0 14px;
  padding-left: 22px;
}

.sf-section li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.sf-callout {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0;
  color: #78350f;
  font-size: 0.95rem;
}

.sf-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0 28px;
  border: 1px solid var(--seo-border);
  border-radius: 14px;
}

.sf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 480px;
}

.sf-table caption {
  text-align: left;
  padding: 12px 16px;
  font-weight: 800;
  background: #f8fafc;
  border-bottom: 1px solid var(--seo-border);
}

.sf-table th,
.sf-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--seo-border);
  vertical-align: top;
}

.sf-table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--seo-text);
}

.sf-faq-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.sf-faq-item {
  border: 1px solid var(--seo-border);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}

.sf-faq-item summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.sf-faq-item p {
  margin: 10px 0 0;
  color: var(--seo-muted);
  font-size: 0.95rem;
}

.sf-author-box {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--seo-border);
  border-radius: 16px;
  padding: 18px;
  margin-top: 28px;
}

.sf-lead-box {
  background: linear-gradient(135deg, var(--seo-primary) 0%, var(--seo-primary-hover) 100%);
  color: #fff;
  border-radius: 18px;
  padding: clamp(20px, 3vw, 30px);
  margin: 28px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sf-lead-box h3 {
  margin: 0 0 6px;
  font-size: clamp(1.15rem, 2vw, 1.38rem);
  color: #fff;
}

.sf-lead-box p {
  margin: 0;
  opacity: 0.92;
  max-width: 58ch;
  font-size: 0.95rem;
}

.sf-lead-box .sf-btn {
  background: #fff;
  color: var(--seo-primary);
}

.sf-disclaimer {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f1f5f9;
  color: var(--seo-muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.sf-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
}

.sf-search-input,
.sf-select {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--seo-border);
  font-size: 0.96rem;
  font-family: inherit;
  background: #fff;
}

.sf-search-input {
  flex: 1 1 240px;
}

.sf-quiz {
  background: #fff;
  border: 1px solid var(--seo-border);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 28px);
  margin: 24px 0;
  box-shadow: var(--seo-shadow);
}

.sf-quiz__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.sf-quiz__opt {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--seo-border);
  background: #f8fafc;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
}

.sf-quiz__opt.is-active {
  background: var(--seo-primary);
  color: #fff;
  border-color: var(--seo-primary);
}

.sf-quiz__result {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--seo-primary-soft);
  display: none;
}

/* Crawler-friendly 18+ Age Gate Overlay (Never redirects or blocks SSR HTML) */
body.sf-age-locked {
  overflow: hidden;
}

body.sf-age-locked > header,
body.sf-age-locked > main,
body.sf-age-locked > footer {
  filter: blur(12px);
  pointer-events: none;
  user-select: none;
}

.sf-age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sf-age-gate.is-open {
  display: flex;
}

.sf-age-gate__card {
  background: #fff;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 28px;
  text-align: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.sf-age-gate__card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.sf-age-gate__card p {
  margin: 0 0 14px;
  color: var(--seo-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.sf-age-gate__legal {
  margin: 0 0 20px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--seo-border);
  font-size: 0.82rem;
  color: #475569;
  text-align: left;
  line-height: 1.55;
}

.sf-waitlist-toast {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 0.9rem;
  display: none;
}
