﻿:root {
  --primary: #E8440A;
  --primary-light: #FFF0EB;
  --primary-dark: #BF3200;
  --accent: #1A1A2E;
  --accent2: #F7C948;
  --surface: #FAFAF8;
  --surface2: #F2F1EE;
  --border: #E5E3DE;
  --text: #1A1A1A;
  --text2: #6B6861;
  --white: #FFFFFF;
  --green: #1A7A4A;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: var(--surface);
  color: var(--text);
}
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; }

a { text-decoration: none; }

.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-mobile-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--primary);
}
.nav-logo span { color: var(--accent); }
.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-menu-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--accent);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-ai-trigger {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  min-width: 240px;
  text-align: left;
  cursor: text;
  line-height: 1.4;
}
.nav-ai-trigger::placeholder {
  color: var(--text2);
}
.nav-ai-trigger:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 20%, transparent);
}
.nav-ai-trigger:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--primary-light);
}
.nav-link {
  color: var(--text2);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
}
.nav-link.active,
.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-cta {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--white);
}
.nav-cta:hover,
.nav-cta.active {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--primary-light);
}
.nav-cta-alt {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.nav-cta-alt:hover,
.nav-cta-alt.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.btn-admin {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
}

.hero {
  background: var(--accent);
  padding: 64px 24px 54px;
}
.hero-inner { max-width: 1200px; margin: 0 auto; }
.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 5vw, 56px);
  margin: 0 0 16px;
  line-height: 1.05;
  letter-spacing: -1px;
}
.hero h1 em { color: var(--accent2); font-style: normal; }
.hero p {
  color: rgba(255,255,255,0.68);
  font-size: 17px;
  max-width: 620px;
  margin: 0 0 26px;
}
.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.hero-action-btn {
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255,255,255,0.12);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
}
.hero-action-btn:hover {
  background: var(--accent2);
  border-color: var(--accent2);
  color: var(--accent);
}
.hero-action-btn-alt {
  background: rgba(255,255,255,0.2);
}

.search-bar {
  max-width: 740px;
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.search-bar input,
.search-bar select {
  border: none;
  padding: 14px 16px;
  font-size: 14px;
}
.search-bar input { flex: 1; background: #fff; }
.search-bar select { width: 220px; border-left: 1px solid var(--border); background: var(--surface2); }
.search-bar button {
  border: none;
  background: var(--primary);
  color: var(--white);
  padding: 14px 24px;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.stat-num {
  color: var(--accent2);
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 700;
}
.stat-label {
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.section { max-width: 1200px; margin: 0 auto; padding: 42px 24px 56px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-title { margin: 0; font-size: 29px; }
.see-all { font-size: 13px; color: var(--text2); }

.theme-empty {
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text2);
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.deal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}
.deal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.deal-img {
  position: relative;
  height: 170px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.deal-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.deal-img-bg {
  font-family: 'Syne', sans-serif;
  font-size: 52px;
  color: rgba(0,0,0,.15);
}
.deal-img-overlay {
  position: absolute;
  inset: 0;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.deal-badge,
.deal-save {
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  padding: 4px 9px;
  font-family: 'Syne', sans-serif;
}
.deal-badge { background: var(--primary-light); color: var(--primary-dark); }
.deal-save { background: var(--green); color: var(--white); }
.deal-body { padding: 16px; }
.deal-store { color: #8f8b84; font-size: 12px; margin-bottom: 4px; }
.deal-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.deal-title-link { color: inherit; }
.deal-title-link:hover .deal-title { color: var(--primary-dark); }
.store-link { color: var(--primary-dark); font-weight: 600; }
.deal-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.deal-new-price { color: var(--primary); font-size: 24px; font-family: 'Syne', sans-serif; font-weight: 700; }
.deal-old-price { color: #9f9a93; text-decoration: line-through; font-size: 13px; }
.deal-footer { font-size: 12px; color: var(--text2); margin-bottom: 12px; }
.deal-links { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-deal {
  border: none;
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: 'Syne', sans-serif;
}
.btn-deal-alt { background: var(--accent); }
.btn-deal-disabled { background: var(--surface2); color: var(--text2); }
.copy-share-status {
  align-self: center;
  color: var(--text2);
  font-size: 12px;
  min-width: 70px;
}

.section-alt { background: var(--surface2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.quick-card {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px;
}
.quick-title {
  color: var(--accent);
  font-weight: 700;
  font-family: 'Syne', sans-serif;
}
.quick-title:hover { color: var(--primary-dark); }
.quick-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text2);
}
.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.store-card {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px;
}
.store-card-title {
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
}
.store-card-title:hover { color: var(--primary-dark); }
.store-featured-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  padding: 4px 9px;
  font-family: 'Syne', sans-serif;
  background: var(--primary-light);
  color: var(--primary-dark);
}
.store-card-meta {
  margin-top: 6px;
  color: var(--text2);
  font-size: 12px;
}
.store-card-desc {
  margin-top: 8px;
  color: var(--text2);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.seo-faq-section {
  margin-top: 0;
}
.seo-faq-section .section-title {
  font-size: 22px;
}
.seo-faq-section .see-all {
  font-size: 11px;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.faq-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 16px;
}
.faq-question {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--accent);
}
.faq-answer {
  margin: 0;
  font-size: 12px;
  color: var(--text2);
  line-height: 1.45;
}
.mt-3 { margin-top: 12px; }
.mt-2 { margin-top: 8px; }
.mb-1 { margin-bottom: 4px; }

.theme-footer {
  border-top: 1px solid var(--border);
  background: var(--white);
}
.theme-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  align-items: center;
}
.theme-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.theme-footer-links a {
  color: var(--text2);
  font-size: 13px;
}
.theme-footer-links a:hover {
  color: var(--primary-dark);
}
.theme-footer-copy {
  color: var(--text2);
  font-size: 13px;
}

.ai-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 16, 22, 0.58);
  z-index: 60;
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding: 70px 16px 24px;
}
.ai-search-overlay.is-open {
  display: flex;
}
.ai-search-overlay[hidden] {
  display: none !important;
}
.ai-search-modal {
  width: min(920px, 100%);
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  max-height: calc(100vh - 100px);
  overflow: auto;
}
.ai-search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.ai-search-header h2 {
  margin: 0;
  color: var(--accent);
  font-size: 24px;
}
.ai-close-btn {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text2);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.ai-search-subtitle {
  margin: 10px 0 14px;
  font-size: 14px;
  color: var(--text2);
}
.ai-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.ai-search-input {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
}
.ai-search-input:focus {
  border-color: var(--primary);
}
.ai-search-submit {
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  padding: 11px 18px;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ai-search-status {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text2);
}
.ai-search-answer {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 12px;
  white-space: pre-wrap;
  line-height: 1.45;
  min-height: 74px;
}
.ai-search-context {
  margin-top: 14px;
}
.ai-context-title {
  margin: 0 0 8px;
  font-size: 18px;
}
.ai-context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.ai-context-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  padding: 10px;
}
.ai-context-type {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-light);
}
.ai-context-link {
  display: block;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}
.ai-context-link:hover {
  color: var(--primary-dark);
}
.ai-context-snippet {
  margin: 0;
  color: var(--text2);
  font-size: 13px;
  line-height: 1.4;
}
.info-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text2);
  line-height: 1.5;
}
.info-list li + li {
  margin-top: 8px;
}
.submission-section {
  padding-top: 32px;
}
.submission-wrapper {
  max-width: 980px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.submission-alert {
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
}
.submission-alert-success {
  background: #eaf7ef;
  color: #155f39;
  border: 1px solid #bde3ca;
}
.submission-validation {
  color: #9f1f1f;
  font-size: 13px;
  margin-bottom: 10px;
}
.submission-validation ul {
  margin: 0;
  padding-left: 18px;
}
.submission-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.submission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.submission-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.submission-field-wide {
  grid-column: 1 / -1;
}
.submission-field label {
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
}
.submission-field input,
.submission-field select,
.submission-field textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
}
.submission-field input:focus,
.submission-field select:focus,
.submission-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 18%, transparent);
}
.submission-field span {
  min-height: 16px;
  color: #a32525;
  font-size: 12px;
}
.submission-submit {
  align-self: flex-start;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  padding: 11px 18px;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.submission-submit:hover {
  background: var(--primary-dark);
}

@media (max-width: 768px) {
  .search-bar { flex-direction: column; }
  .search-bar select { width: 100%; border-left: none; border-top: 1px solid var(--border); }
  .nav-inner {
    min-height: 64px;
    height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-wrap: wrap;
  }
  .nav-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .nav-mobile-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 8px;
  }
  .nav-inner.mobile-open .nav-mobile-panel {
    display: flex;
  }
  .nav-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .nav-link {
    display: block;
    width: 100%;
    text-align: left;
  }
  .nav-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .nav-ai-trigger {
    min-width: 0;
    width: 100%;
  }
  .theme-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .ai-search-modal {
    padding: 12px;
  }
  .ai-search-form {
    grid-template-columns: 1fr;
  }
  .submission-wrapper {
    padding: 16px;
  }
  .submission-grid {
    grid-template-columns: 1fr;
  }
}
