/* Inhumas em Foco - Base Styles */
:root {
  --primary: #1F7A63;
  --primary-dark: #145A48;
  --secondary: #145A48;
  --accent: #F4B400;
  --accent-dark: #C49000;
  --success: #34a853;
  --danger: #ea4335;
  --dark: #1A1A1A;
  --gray: #6B7280;
  --light: #F7F7F7;
  --border: #E5E7EB;
  --shadow: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.08);
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  background: var(--dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.site-logo { font-size: 1.4rem; font-weight: 800; color: #fff; }
.site-logo span { color: var(--accent); }
.site-nav { display: flex; gap: 20px; align-items: center; }
.site-nav a { color: #fff; font-size: 0.9rem; font-weight: 500; }
.site-nav a:hover { color: var(--accent); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%); color: #fff; padding: 40px 0; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.hero-main { position: relative; border-radius: var(--radius); overflow: hidden; }
.hero-main img { width: 100%; height: 360px; object-fit: cover; display: block; }
.hero-main .overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 40px 24px 24px;
}
.hero-main h1 { font-size: 1.6rem; margin-bottom: 8px; }
.hero-main p { color: #ccc; font-size: 0.95rem; }
.hero-side { display: flex; flex-direction: column; gap: 16px; }
.side-card { background: rgba(255,255,255,0.05); border-radius: var(--radius); padding: 16px; }
.side-card h3 { font-size: 0.85rem; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.side-card a { color: #fff; font-size: 0.95rem; font-weight: 600; display: block; margin-bottom: 4px; }
.side-card span { color: #888; font-size: 0.75rem; }

/* Sections */
.section { padding: 32px 0; }
.section-title {
  font-size: 1.3rem; font-weight: 700; margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.section-title::after {
  content: ''; flex: 1; height: 2px; background: var(--border);
}

/* Cards Grid */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow); }
.card img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 16px; }
.card-category { font-size: 0.7rem; text-transform: uppercase; color: var(--primary); font-weight: 700; margin-bottom: 6px; }
.card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.card-excerpt { font-size: 0.9rem; color: var(--gray); line-height: 1.5; }
.card-meta { font-size: 0.8rem; color: #888; margin-top: 12px; }

/* Sponsored Badge */
.sponsored-badge {
  display: inline-block; background: var(--accent); color: var(--dark);
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px; margin-left: 6px;
}

/* Banner */
.banner { border-radius: var(--radius); overflow: hidden; margin: 20px 0; }
.banner img { width: 100%; height: auto; display: block; }
.banner-hero { margin: 0; }
.banner-sticky {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
  display: none;
}
@media (max-width: 768px) {
  .banner-sticky { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
}

/* Store cards */
.store-card { display: flex; gap: 12px; padding: 12px; }
.store-card img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius); }
.store-card h4 { font-size: 1rem; margin-bottom: 4px; }
.store-card p { font-size: 0.85rem; color: var(--gray); }
.store-card .btn { margin-top: 8px; }

.influencer-card img {
  height: 220px;
}

.influencer-profile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.influencer-cover {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.influencer-profile-body {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
}

.influencer-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
}

.influencer-bio {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 860px;
  padding: 0 24px 24px;
}

.influencer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 24px 24px;
}

/* Buttons */
.btn {
  display: inline-block; padding: 8px 16px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600; border: none; cursor: pointer; transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 4px 12px; font-size: 0.8rem; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }

.btn:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.form-control {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.95rem;
}
.form-control:focus { outline: none; border-color: var(--primary); }
textarea.form-control { min-height: 120px; resize: vertical; }

/* Admin */
.admin-layout { display: block; min-height: 100vh; }
.admin-sidebar {
  background: var(--dark); color: #fff; padding: 20px;
  position: fixed; height: 100vh; width: 240px; overflow-y: auto;
}
.admin-sidebar h2 { font-size: 1.2rem; margin-bottom: 20px; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.admin-sidebar a {
  color: #aaa; padding: 10px 12px; border-radius: var(--radius); font-size: 0.9rem;
}
.admin-sidebar a:hover, .admin-sidebar a.active { color: #fff; background: rgba(255,255,255,0.1); }
.admin-main {
  margin-left: 240px;
  padding: 32px;
  background: #eef2f7;
  min-height: 100vh;
  width: calc(100% - 240px);
}

.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-page-header h1 {
  font-size: 1.7rem;
  line-height: 1.2;
}

.admin-kicker {
  color: var(--gray);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.admin-form {
  display: block;
  width: 100%;
  max-width: 1280px;
}

.admin-main > form,
.admin-main > section,
.admin-main > div:not(.alert) {
  max-width: 1280px;
}

.admin-form-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
  width: 100%;
  max-width: 1280px;
}

.admin-section-title {
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.admin-section-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-section-header .admin-section-title {
  margin-bottom: 4px;
}

.admin-section-header p,
.form-hint {
  color: var(--gray);
  display: block;
  font-size: 0.8rem;
  line-height: 1.45;
}

.admin-form-section-main {
  padding: 28px;
}

.admin-commercial-panel {
  grid-column: 1 / -1;
}

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

.commercial-slot-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.commercial-slot-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 14px;
  text-decoration: none;
}

.commercial-slot-card:hover {
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

.commercial-slot-card span {
  color: var(--gray);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.commercial-slot-card strong {
  color: var(--dark);
  font-size: 1rem;
  line-height: 1.2;
}

.commercial-slot-card small {
  color: var(--gray);
  line-height: 1.35;
}

.slot-open {
  background: #fffaf0;
  border-color: #f2d67c;
}

.slot-active {
  background: #eefaf5;
  border-color: #a8dec9;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 24px;
}

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

.admin-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
  max-width: 1280px;
}

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

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

.system-status-list {
  color: var(--gray);
  font-size: 0.95rem;
}

.system-status-list p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-ok {
  background: var(--success);
}

.admin-post-editor .form-group {
  margin-bottom: 20px;
}

.admin-post-editor .form-group:last-child {
  margin-bottom: 0;
}

.admin-post-editor label {
  color: #263238;
  font-size: 0.86rem;
  margin-bottom: 7px;
}

.admin-post-editor .form-control {
  background: #fff;
  border-color: #c9d3df;
  font-size: 1rem;
  min-height: 44px;
}

.admin-post-editor .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
}

.form-control-title {
  font-size: 1.25rem;
  font-weight: 650;
  min-height: 54px;
}

.form-control-editor {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  line-height: 1.65;
  min-height: 460px;
}

.admin-cover-preview {
  display: block;
  max-width: 260px;
  max-height: 150px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.checkbox-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid #c9d3df;
  border-radius: var(--radius);
  background: #f8fafc;
}

.checkbox-control input {
  width: 18px;
  height: 18px;
}

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

.admin-form-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  width: min(100%, 1280px);
  padding: 16px 0 0;
  background: linear-gradient(transparent, #eef2f7 35%);
}

/* Stats */
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--border);
}
.stat-card h3 { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-card p { font-size: 0.85rem; color: var(--gray); margin-top: 4px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }

/* Tables */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.table th { background: var(--light); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }
.table tr:hover { background: var(--light); }

.admin-table-wrap {
  max-width: 1280px;
  overflow-x: auto;
}

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-row-actions form {
  display: inline-flex;
}

.admin-password-form {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.admin-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.pagination-label {
  color: var(--gray);
  font-size: 0.9rem;
  padding: 4px 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
}

.status-published {
  background: #e6f4ea;
  color: var(--success);
}

.status-muted {
  background: #eef1f4;
  color: var(--gray);
}

.status-scheduled {
  background: #fff6db;
  color: #946200;
}

.status-danger {
  background: #fce8e6;
  color: var(--danger);
}

.sponsored-badge-success {
  background: var(--success);
  color: #fff;
}

/* Footer */
.site-footer { background: var(--dark); color: #aaa; padding: 40px 0; margin-top: 40px; }
.site-footer .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; }
.site-footer a { color: #aaa; font-size: 0.9rem; }
.site-footer a:hover { color: var(--accent); }
.footer-brand {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.footer-brand .brand-logo-img { height: 54px; }
.footer-brand p { font-size: 0.85rem; margin-top: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #9ca3af;
  font-size: 0.8rem;
  margin: 28px auto 0;
  max-width: 1200px;
  padding: 16px;
}

/* Search */
.search-bar { display: flex; gap: 8px; margin-bottom: 24px; }
.search-bar .form-control { flex: 1; }

/* Misc */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 0.9rem; }
.alert-error { background: #fce8e6; color: var(--danger); border: 1px solid #f5c6cb; }
.alert-success { background: #e6f4ea; color: var(--success); border: 1px solid #c3e6cb; }

.empty-state { text-align: center; padding: 40px; color: var(--gray); }

@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; width: 100%; height: auto; }
  .admin-main { margin-left: 0; padding: 18px; }
  .admin-page-header { align-items: stretch; flex-direction: column; }
  .admin-form-section, .admin-form-section-main { padding: 18px; }
    .admin-form-grid, .admin-form-grid-three, .admin-panel-grid, .admin-panel-grid-three, .admin-check-grid, .commercial-slot-grid, .commercial-slot-grid-wide { grid-template-columns: 1fr; }
  .admin-password-form { grid-template-columns: 1fr; }
  .form-control-editor { min-height: 340px; }
  .admin-form-actions { position: static; flex-direction: column-reverse; align-items: stretch; }
  .admin-form-actions .btn { text-align: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Public frontend v2 - mockup aligned */
body {
  color: var(--dark);
}

a {
  color: inherit;
}

a:hover {
  text-decoration: none;
}

.site-header {
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--border);
  color: var(--dark);
  backdrop-filter: blur(14px);
}

.site-header .container {
  height: 72px;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  min-width: max-content;
}

.site-logo:hover {
  color: var(--primary);
}

.brand-logo-img {
  display: block;
  width: auto;
  height: 46px;
  object-fit: contain;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 4px solid var(--primary);
  border-radius: 50% 50% 50% 8px;
  color: var(--accent);
  font-weight: 900;
  transform: rotate(-45deg);
}

.logo-mark::first-letter {
  transform: rotate(45deg);
}

.logo-text {
  display: grid;
  color: var(--primary);
}

.logo-text strong {
  color: var(--accent-dark);
  font-weight: 800;
}

.site-nav {
  gap: 18px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav a {
  color: #24312d;
  font-size: 0.84rem;
  font-weight: 650;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--primary);
}

.nav-panel,
.site-nav .nav-panel {
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  padding: 8px 14px;
}

.nav-panel:hover {
  background: var(--primary-dark);
  color: #fff;
}

.home-hero {
  background: #fff;
  padding: 24px 0 32px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
}

.hero-main {
  height: 420px;
  min-height: 0;
  background: #111;
  border-radius: 12px;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-main a,
.hero-main img {
  display: block;
  height: 100%;
}

.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transition: transform 0.25s ease;
}

.hero-main:hover img {
  transform: scale(1.03);
}

.hero-main .overlay {
  align-items: flex-start;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  inset: 0;
  min-height: 0;
  padding: 24px;
  position: absolute;
}

.hero-main h1 {
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 80%;
}

.hero-main p {
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  max-width: 640px;
  margin: 8px 0 12px;
}

.hero-side,
.article-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 420px;
  overflow: hidden;
}

.hero-side h2,
.article-sidebar h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.trending-item {
  display: grid;
  gap: 4px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--border);
}

.trending-item:last-child {
  border-bottom: 0;
}

.trending-item span {
  color: var(--primary);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.trending-item strong {
  color: var(--dark);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}

.section {
  background: #fff;
  padding: 32px 0;
}

.section-muted,
.page-shell {
  background: var(--light);
}

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

.section-heading h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
}

.section-heading a {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 750;
}

.section-title {
  font-size: 1.25rem;
}

.section-title::after {
  display: none;
}

.badge,
.card-category {
  align-items: center;
  background: #e7f4ef;
  border-radius: 4px;
  color: var(--primary);
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  padding: 5px 7px;
  text-transform: uppercase;
}

.badge-accent,
.sponsored-badge {
  background: var(--accent);
  color: #111;
}

.card {
  border-color: var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card img {
  background: #e9ecef;
}

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

.news-card img {
  height: 120px;
  object-fit: cover;
}

.news-card .card-body {
  padding: 10px;
}

.news-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.news-card:hover img {
  transform: scale(1.03);
}

.news-card .badge {
  font-size: 10px;
  margin-bottom: 4px;
}

.news-card .card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
}

.card-title,
.news-card .card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 14px;
  margin-top: 4px;
}

.card-meta {
  color: var(--gray);
  font-size: 0.76rem;
}

.store-row,
.influencer-strip {
  display: grid;
  grid-auto-columns: minmax(136px, 1fr);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
}

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

.store-tile {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 5px;
  justify-items: center;
  min-height: 142px;
  padding: 16px;
  text-align: center;
}

.store-tile img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.store-tile strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  font-size: 0.86rem;
}

.store-tile span,
.store-tile em {
  color: var(--gray);
  font-size: 0.72rem;
  font-style: normal;
}

.store-tile small {
  color: var(--accent-dark);
  letter-spacing: 1px;
}

.store-tile-large {
  min-height: 170px;
}

.ad-section {
  background: #fff;
  padding-top: 14px;
}

.ad-section-top {
  padding-top: 0;
}

.ad-banner {
  align-items: center;
  background: linear-gradient(100deg, var(--primary-dark), var(--primary));
  border-radius: 12px;
  color: #fff;
  display: flex;
  height: 100px;
  justify-content: space-between;
  overflow: hidden;
  padding: 16px 20px;
  position: relative;
}

.ad-banner img {
  border-radius: 6px;
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0.18;
  position: absolute;
  width: 100%;
}

.ad-banner .badge {
  font-size: 10px;
  left: 8px;
  position: absolute;
  top: 8px;
  z-index: 1;
}

.ad-banner-sidebar {
  display: grid;
  min-height: 250px;
  padding: 16px;
}

.ad-banner-sidebar img {
  height: 100%;
  object-fit: cover;
}

.ad-placeholder {
  background:
    linear-gradient(135deg, rgba(31,122,99,0.96), rgba(20,90,72,0.96)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.08) 0 10px, transparent 10px 20px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  color: #fff;
  display: grid;
  gap: 8px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.ad-placeholder:hover {
  color: #fff;
  text-decoration: none;
}

.ad-placeholder::after {
  border: 1px dashed rgba(255,255,255,0.28);
  border-radius: 6px;
  content: "";
  inset: 8px;
  pointer-events: none;
  position: absolute;
}

.ad-label {
  color: var(--accent);
  display: inline-flex;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ad-placeholder strong {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
}

.ad-placeholder small,
.ad-placeholder p {
  color: rgba(255,255,255,0.82);
  line-height: 1.45;
}

.ad-action {
  align-self: end;
  background: var(--accent);
  border-radius: 8px;
  color: #111;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  justify-self: start;
  padding: 10px 16px;
}

.ad-placeholder-horizontal {
  align-items: center;
  display: flex;
  height: 100px;
  justify-content: space-between;
  padding: 16px 20px;
}

.ad-placeholder-horizontal .ad-label {
  left: 8px;
  position: absolute;
  top: 8px;
  writing-mode: horizontal-tb;
}

.ad-placeholder-sidebar {
  margin-top: 16px;
  min-height: 178px;
  padding: 22px;
}

.ad-placeholder-compact {
  min-height: 150px;
  padding: 20px;
}

.commercial-callout {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 18px 20px;
}

.commercial-callout strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
  margin: 3px 0 4px;
}

.commercial-callout p {
  color: var(--gray);
  font-size: 0.9rem;
  margin: 0;
}

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

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

.promo-card {
  position: relative;
}

.promo-card img {
  aspect-ratio: 4 / 3;
  height: auto;
}

.promo-card .card-body {
  display: grid;
  gap: 5px;
}

.promo-card .card-body span {
  color: var(--gray);
  font-size: 0.76rem;
}

.promo-card h3 {
  font-size: 0.95rem;
  line-height: 1.25;
}

.promo-card strong {
  color: var(--primary);
  font-size: 1.25rem;
}

.promo-card small {
  color: var(--gray);
  font-size: 0.72rem;
}

.promo-ribbon {
  background: var(--accent);
  border-radius: 4px;
  color: #111;
  font-size: 0.7rem;
  font-weight: 800;
  left: 10px;
  padding: 4px 7px;
  position: absolute;
  top: 10px;
}

.influencer-mini {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  justify-items: center;
  min-height: 160px;
  padding: 16px;
  text-align: center;
}

.influencer-mini img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

.influencer-mini span {
  color: var(--gray);
  font-size: 0.74rem;
}

.tag-cloud,
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.filter-pills span,
.filter-pills a {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #33413d;
  font-size: 0.8rem;
  font-weight: 650;
  padding: 8px 12px;
}

.filter-pills {
  margin-bottom: 24px;
}

.filter-pills span:first-child,
.filter-pills a:first-child {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.compact-search {
  max-width: 720px;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 14px 0 0;
}

[aria-busy="true"] {
  opacity: 0.68;
  position: relative;
}

[aria-busy="true"]::after {
  animation: pulse 1.1s infinite ease-in-out;
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 999px;
  background: currentColor;
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}

.page-shell {
  min-height: 70vh;
  padding: 34px 0 48px;
}

.page-header {
  margin-bottom: 18px;
}

.page-kicker {
  color: var(--gray);
  display: block;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  line-height: 1.1;
}

.page-header p {
  color: var(--gray);
  margin-top: 8px;
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-row {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: 220px minmax(0, 1fr);
  padding: 12px;
}

.news-row img {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.news-row h2 {
  font-size: 1.2rem;
  line-height: 1.2;
  margin: 8px 0;
}

.news-row p {
  color: var(--gray);
  font-size: 0.92rem;
}

.news-row small,
.result-label {
  color: var(--gray);
}

.article-shell {
  background: #fff;
  padding: 32px 0 52px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
}

.article-main {
  max-width: 860px;
}

.breadcrumb {
  color: var(--gray);
  font-size: 0.78rem;
  margin-bottom: 16px;
}

.article-main h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 14px 0;
}

.article-lead {
  color: var(--gray);
  font-size: 1.12rem;
  line-height: 1.55;
}

.article-meta {
  align-items: center;
  color: var(--gray);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
  font-size: 0.86rem;
}

.article-cover {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.article-content {
  color: #202824;
  font-size: 1.05rem;
  line-height: 1.85;
  margin-top: 24px;
}

.article-content p,
.article-content ul,
.article-content ol {
  margin-bottom: 18px;
}

.editorial-note,
.side-ad {
  background: #fff8dc;
  border: 1px solid #f2d67c;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding: 16px;
}

.side-ad {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.side-ad small {
  color: rgba(255,255,255,0.8);
}

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

.influencer-card-v2 {
  text-align: center;
}

.influencer-card-v2 img {
  border-radius: 50%;
  height: 104px;
  margin: 24px auto 4px;
  width: 104px;
}

.influencer-card-v2 h2 {
  font-size: 1rem;
}

.influencer-card-v2 span,
.influencer-card-v2 p {
  color: var(--gray);
  font-size: 0.8rem;
}

.search-bar .form-control {
  min-height: 44px;
}

.empty-state {
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 8px;
}

.empty-state-rich {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  min-height: 132px;
  place-items: center;
}

.empty-state-rich strong {
  color: var(--dark);
  font-size: 1rem;
}

.empty-state-rich span {
  max-width: 420px;
}

.detail-hero {
  background: #fff;
  padding: 20px 0 0;
}

.detail-hero-inner {
  display: grid;
  min-height: 360px;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
}

.detail-cover {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.detail-hero-inner::after {
  background: linear-gradient(90deg, rgba(0,0,0,0.76), rgba(0,0,0,0.24));
  content: "";
  inset: 0;
  position: absolute;
}

.detail-hero-content {
  align-self: end;
  color: #fff;
  display: grid;
  gap: 12px;
  max-width: 720px;
  padding: 42px;
  position: relative;
  z-index: 1;
}

.detail-hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.detail-hero-content p {
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}

.store-detail-logo {
  background: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  height: 86px;
  object-fit: contain;
  padding: 8px;
  width: 86px;
}

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

.detail-grid,
.promo-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.detail-panel,
.promo-detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.detail-panel h2 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}

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

.info-list p {
  align-items: start;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 4px;
  margin: 0;
  padding-bottom: 10px;
}

.info-list p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-list strong {
  color: var(--dark);
}

.info-list span {
  color: var(--gray);
}

.promo-detail-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1fr);
  gap: 24px;
}

.promo-detail-image {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.promo-detail-body {
  align-content: start;
  display: grid;
  gap: 14px;
}

.promo-detail-body h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.05;
}

.promo-detail-price {
  color: var(--primary);
  font-size: 2rem;
}

.classified-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.classified-category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 18px;
}

.classified-category-card strong {
  color: var(--primary);
  font-size: 1rem;
}

.classified-category-card span {
  color: var(--gray);
  font-size: 0.82rem;
}

.classifieds-cta {
  gap: 12px;
  justify-items: start;
}

.classifieds-cta strong {
  position: relative;
  z-index: 1;
  font-size: 1.3rem;
}

.classifieds-cta .btn {
  position: relative;
  z-index: 1;
}

.banner-sticky img {
  width: 100%;
  max-height: 80px;
  object-fit: cover;
}

@media (max-width: 980px) {
  .hero-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .detail-grid,
  .promo-detail-layout,
  .promo-detail-card {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: flex;
    height: auto;
  }

  .ad-placeholder-horizontal {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
    min-height: 120px;
    padding: 22px;
  }

  .ad-placeholder-horizontal .ad-label {
    grid-row: auto;
    writing-mode: horizontal-tb;
  }

  .commercial-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-grid,
  .promo-grid,
  .promo-grid-page,
  .store-grid,
  .influencer-grid,
  .classified-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header .container {
    height: auto;
    min-height: 68px;
    padding-bottom: 10px;
    padding-top: 10px;
  }

  .site-header .container,
  .site-nav {
    align-items: center;
  }

  .site-nav {
    gap: 14px;
    width: 100%;
  }

  .brand-logo-img {
    height: 42px;
  }

  .footer-brand .brand-logo-img {
    height: 48px;
  }

  .home-hero {
    padding-top: 10px;
  }

  .hero-main {
    height: 250px;
    min-height: 0;
  }

  .hero-main .overlay {
    padding: 22px;
  }

  .hero-main h1 {
    font-size: 20px;
    max-width: 100%;
  }

  .hero-main p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .news-grid,
  .promo-grid,
  .promo-grid-page,
  .influencer-grid,
  .classified-category-grid {
    grid-template-columns: 1fr;
  }

  .news-card img {
    height: auto;
    width: 100%;
  }

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

  .news-row {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .news-row h2 {
    font-size: 0.98rem;
  }

  .news-row p {
    display: none;
  }

  .article-main h1 {
    font-size: 2rem;
  }

  .detail-hero-inner {
    min-height: 300px;
  }

  .detail-hero-content {
    padding: 26px;
  }

  .promo-detail-card,
  .detail-panel {
    padding: 16px;
  }
}
