/* ================================================================
   styles.css  –  Art Directory
   ================================================================ */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f8f9fa;
  --surface:   #ffffff;
  --surface2:  #f1f3f5;
  --border:    #e0e0e0;
  --accent:    #2563eb;
  --accent2:   #7c3aed;
  --text:      #1a1a2e;
  --muted:     #6b7280;
  --radius:    10px;
  --gap:       1.25rem;
  --transition: 0.22s ease;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Container ── */
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  text-decoration: none;
}

nav { display: flex; gap: 1.5rem; }

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  text-decoration: none;
}

nav a:hover,
nav a.active { color: var(--accent); }

/* ── Hero ── */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 50%, #fef3c7 100%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent) 30%, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

/* ── Button ── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: #fff;
}

/* ── Section titles ── */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

/* ── Featured / Gallery sections ── */
.section-featured,
.section-gallery {
  padding: 4rem 0;
}

/* ── Grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--gap);
}

/* ── Art Card ── */
.art-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.art-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.art-card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface2);
  position: relative;
}

/* placeholder when no thumbnail */
.art-card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--border);
}

.art-card-body {
  padding: 0.85rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.art-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.art-card-meta {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-image  { background: #dcfce7; color: #166534; }
.badge-video  { background: #dbeafe; color: #1e40af; }

/* ── Category Cards ── */
.section-categories { padding: 2rem 0 4rem; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--gap);
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.cat-card:hover {
  border-color: var(--accent2);
  transform: translateY(-3px);
  text-decoration: none;
}

.cat-icon { font-size: 2.5rem; }

.cat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* ── Page Banner ── */
.page-banner {
  padding: 3.5rem 0 2rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 50%, #fef3c7 100%);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-banner h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.page-banner p { color: var(--muted); }

/* ── Filter Bar ── */
.filter-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
  position: sticky;
  top: 57px;
  z-index: 90;
}

.filter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-buttons { display: flex; gap: 0.5rem; }

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover { border-color: var(--accent); color: var(--accent); }

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.search-wrap input {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.84rem;
  width: 220px;
  outline: none;
  transition: border-color var(--transition);
}

.search-wrap input:focus { border-color: var(--accent); }

/* ── No Results ── */
.no-results {
  text-align: center;
  color: var(--muted);
  padding: 3rem 0;
  font-size: 1rem;
}

.hidden { display: none !important; }

/* ── Lightbox ── */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 201;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}

.lightbox:not(.hidden) { pointer-events: auto; }

.lb-content {
  max-width: 90vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lb-content video {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius);
}

.lb-close {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  z-index: 202;
  transition: color var(--transition);
}

.lb-close:hover { color: var(--accent); }

.lb-prev, .lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 2rem;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition);
  z-index: 202;
}

.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.18); }

.lb-caption {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 600px;
}

.lb-caption strong { color: var(--text); display: block; }

/* ── About page ── */
.section-about { padding: 4rem 0; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--gap);
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.about-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.about-card p,
.about-card li { color: var(--muted); font-size: 0.92rem; }

.about-card ol,
.about-card ul { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }

.about-card code {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--accent2);
}

.about-card pre {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  overflow-x: auto;
  white-space: pre;
}

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .filter-inner { flex-direction: column; align-items: flex-start; }
  .search-wrap input { width: 100%; }
  .lb-prev, .lb-next { font-size: 1.4rem; padding: 0.4rem 0.55rem; }
  .supply-secondary-filters { flex-direction: column; width: 100%; }
  .skill-filters { flex-wrap: wrap; }
  .guide-table-wrap { overflow-x: auto; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

/* ================================================================
   SUPPLY COMPONENTS
   ================================================================ */

/* ── Breadcrumb ── */
.breadcrumb { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }

.breadcrumb-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0;
  margin: 0;
}

.breadcrumb-list li::before {
  content: '›';
  margin-right: 0.5rem;
  color: var(--border);
}

.breadcrumb-list li:first-child::before { content: ''; margin: 0; }

.breadcrumb-list a { color: var(--muted); }
.breadcrumb-list a:hover { color: var(--accent); }
.breadcrumb-list [aria-current] { color: var(--text); }

/* ── Section subtitle ── */
.section-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}

/* ── Hero buttons ── */
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* ── Supply Category Cards ── */
.scat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.scat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: border-color var(--transition), transform var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.scat-card:hover {
  border-color: var(--accent2);
  transform: translateY(-3px);
  text-decoration: none;
}

.scat-icon { font-size: 2rem; }
.scat-name { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.scat-count { font-size: 0.72rem; color: var(--muted); }

/* ── Supply Filter Bar ── */
.supply-filter-bar .filter-inner {
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.filter-scroll {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  -webkit-overflow-scrolling: touch;
}

.filter-scroll::-webkit-scrollbar { height: 4px; }
.filter-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.supply-filter-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.supply-filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.supply-filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.supply-secondary-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.skill-filters { display: flex; gap: 0.4rem; }

.supply-skill-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.supply-skill-btn:hover { border-color: var(--accent2); color: var(--accent2); }
.supply-skill-btn.active { background: var(--accent2); border-color: var(--accent2); color: #fff; }

/* ── Supply Card ── */
.supply-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.supply-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.supply-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface2);
}

.supply-card-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.supply-card-body {
  padding: 0.85rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.supply-card-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.supply-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.supply-card-brand {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}

.supply-card-desc {
  font-size: 0.8rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.supply-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.5rem;
}

.supply-card-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}

.supply-card-rating {
  font-size: 0.82rem;
  color: #e8b84d;
}

.supply-card-rating small {
  color: var(--muted);
  font-size: 0.72rem;
}

.supply-card-meta {
  padding-top: 0.35rem;
}

/* ── Skill badges ── */
.badge-skill {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-skill-beginner     { background: #dcfce7; color: #166534; }
.badge-skill-intermediate { background: #fef3c7; color: #92400e; }
.badge-skill-advanced     { background: #fce7f3; color: #9d174d; }
.badge-skill-all          { background: #dbeafe; color: #1e40af; }

.badge-tag-supply {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.68rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ── Supply Detail Modal ── */
.supply-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 800px;
  width: 92vw;
  max-height: 88vh;
  overflow-y: auto;
  z-index: 201;
  padding: 2rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}

.modal-close:hover { color: var(--accent); }

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .modal-grid { grid-template-columns: 1fr; }
}

.modal-img-wrap img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.modal-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.3rem 0;
}

.modal-brand { font-size: 0.85rem; color: var(--accent); margin: 0 0 0.5rem; }

.modal-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.modal-rating .stars { color: #e8b84d; }
.modal-rating small { color: var(--muted); }

.modal-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.modal-features {
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.modal-details h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.modal-best-for {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: var(--surface2);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.modal-best-for strong { color: var(--text); }
.modal-best-for a { cursor: pointer; }

.modal-skill { margin: 0.5rem 0; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.5rem 0; }

.modal-buy-btn {
  margin-top: 0;
  display: inline-block;
}

/* ── FAQ Accordion (AEO) ── */
.section-faq {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: block;
  padding: 1rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color var(--transition);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::before {
  content: '+';
  display: inline-block;
  width: 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  transition: transform var(--transition);
}

details[open] .faq-question::before {
  content: '−';
}

.faq-question:hover { color: var(--accent); }

.faq-answer {
  padding: 0 0 1rem 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Footer Grid ── */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

.footer-heading {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.footer-col p { font-size: 0.82rem; color: var(--muted); }

.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col ul a {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--accent); }

.footer-copy { margin-top: 0.5rem; }

/* ================================================================
   GUIDES PAGE
   ================================================================ */

.guides-main {
  padding: 2rem 0 4rem;
}

/* ── Table of Contents ── */
.guide-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
}

.toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.guide-toc ol {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.guide-toc a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color var(--transition);
}

.guide-toc a:hover { color: var(--accent); }

/* ── Guide Article ── */
.guide-article {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.guide-article:last-child { border-bottom: none; }

.guide-article h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.guide-article h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.75rem;
}

.guide-intro {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.guide-article p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.guide-list {
  padding-left: 1.4rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.guide-list strong { color: var(--text); }

/* ── Guide Tip Box ── */
.guide-tip {
  background: #f0fdf4;
  border-left: 3px solid #22c55e;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 1.25rem 0;
}

.guide-tip strong { color: #166534; }

/* ── Guide Table ── */
.guide-table-wrap { margin: 1rem 0 1.5rem; }

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.guide-table th {
  text-align: left;
  padding: 0.6rem 0.8rem;
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

.guide-table td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
  line-height: 1.5;
}

.guide-table tr:last-child td { border-bottom: none; }

/* ── Guide Citation ── */
.guide-citation {
  font-size: 0.78rem;
  color: #666;
  margin-top: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

.guide-citation em { font-style: italic; }

/* ═══════════════════════════════════════════════════════════
   BOOTSTRAP THEME OVERRIDES
═══════════════════════════════════════════════════════════ */

/* Ensure Bootstrap form controls match theme */
.form-select {
  background-color: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
  font-size: 0.82rem !important;
}
.form-select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.2) !important;
}
.form-select option {
  background-color: var(--surface);
  color: var(--text);
}
.form-select:disabled {
  opacity: 0.5;
}

/* Location filter row */
.location-filters {
  align-items: center;
}
.location-filters .form-select {
  min-width: 150px;
}

/* Bootstrap badge overrides for location badge on cards */
.supply-card-meta .bg-secondary {
  font-size: 0.68rem !important;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .location-filters { width: 100%; }
  .location-filters .form-select { max-width: 100% !important; flex: 1; }
}

/* ══════════════════════════════════════════════════════════════
   DIRECTORY SERVICE
   ══════════════════════════════════════════════════════════════ */

/* ── Universal Search ── */
.dir-search-wrap {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  overflow: visible;
}
.dir-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  outline: none;
}
.dir-search-input::placeholder { color: var(--muted); }
.dir-search-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0 1.2rem;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 0 8px 8px 0;
}
.dir-search-btn:hover { background: #1d4ed8; }

/* Suggest dropdown */
.dir-suggest-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  max-height: 340px;
  overflow-y: auto;
  z-index: 100;
}
.dir-suggest-list.hidden { display: none; }
.dir-suggest-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.dir-suggest-item:hover { background: var(--surface); }
.dir-suggest-empty { padding: 1rem; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* Popular chips */
.dir-popular-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}
.dir-chip {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.2s;
}
.dir-chip:hover { color: var(--accent); border-color: var(--accent); }

/* ── Category Cards Grid ── */
.dir-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.dir-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, border-color 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow-sm);
}
.dir-cat-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-md); color: var(--text); }
.dir-cat-icon { font-size: 2rem; }
.dir-cat-label { font-weight: 600; font-size: 0.95rem; }
.dir-cat-count { font-size: 0.78rem; color: var(--muted); }
.dir-cat-sub { font-size: 0.7rem; color: var(--accent); opacity: 0.7; }

/* ── Listing Cards ── */
.dir-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow-sm);
}
.dir-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.dir-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.dir-card-img-placeholder {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  font-size: 3rem;
}
.dir-card-body { padding: 1rem; }
.dir-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0.3rem 0 0.2rem;
  color: var(--text);
}
.dir-card-rating {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.dir-card-rating small { color: var(--muted); }
.rating-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: opacity 0.2s;
}
.rating-link:hover { opacity: 0.8; }
.rating-source {
  background: #ffffff;
  color: #4285f4;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 0.3rem;
  border: 1px solid #e0e0e0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.rating-source-modal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #5f6368;
}
.rating-source-modal::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%234285F4' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%2334A853' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%23EA4335' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  flex-shrink: 0;
}
.rating-source-modal a {
  color: #4285f4;
  font-weight: 600;
  text-decoration: none;
}
.rating-source-modal a:hover { text-decoration: underline; }
.dir-card-loc { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.2rem; }
.dir-card-hours { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.3rem; }
.dir-card-price { font-size: 0.85rem; color: var(--accent2); font-weight: 600; margin-bottom: 0.3rem; }
.dir-card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.3rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dir-card-tags { margin-top: 0.4rem; display: flex; flex-wrap: wrap; gap: 0.3rem; }

/* ── Badges ── */
.dir-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.dir-badge-gallery  { background: #dbeafe; color: #1e40af; }
.dir-badge-service  { background: #ede9fe; color: #6d28d9; }
.dir-badge-supply   { background: #dcfce7; color: #166534; }

/* ── Sort + count ── */
.dir-sort-select {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
}
.dir-result-count {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ── CTA Banner ── */
.dir-cta-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 50%, #fef3c7 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 3rem 0;
}
.dir-cta-banner h2 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text); }
.dir-cta-banner p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.dir-cta-btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, box-shadow 0.2s;
}
.dir-cta-btn:hover { background: #1d4ed8; box-shadow: var(--shadow-md); color: #fff; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .dir-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .dir-search-wrap { flex-direction: column; }
  .dir-search-btn { border-radius: 0 0 8px 8px; padding: 0.7rem; }
  .supply-secondary-filters { flex-wrap: wrap; }
  .dir-sort-select { flex: 1; min-width: 120px; }
}

/* ── Pagination ── */
.dir-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.dir-page-btn {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.dir-page-btn:hover { border-color: var(--accent); color: var(--accent); }
.dir-page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
.dir-page-dots { color: var(--muted); font-size: 0.85rem; padding: 0 0.3rem; }

/* ── Card Actions ── */
.dir-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.dir-card-link {
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.dir-card-link:hover { color: var(--text); }

/* ── Modal Buttons ── */
.dir-modal-buttons {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.dir-modal-buttons .btn {
  flex: 1 1 0;
  min-width: 160px;
  max-width: 50%;
  text-align: center;
  padding: 0.75rem 1.2rem;
  font-size: 0.95rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  line-height: 1.4;
}
.dir-modal-buttons .modal-buy-btn {
  margin-top: 0;
}
.dir-modal-contact { margin: 0.5rem 0; font-size: 0.88rem; color: var(--muted); }
.dir-modal-contact a { color: var(--accent); }
.dir-modal-section { margin: 0.4rem 0; }

/* ── Specialty Tags (Clickable) ── */
.modal-specs { margin: 0.75rem 0; }
.modal-specs strong { font-size: 0.85rem; color: var(--text); display: block; margin-bottom: 0.4rem; }
.modal-specs-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.spec-tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
}
.spec-tag:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Social Links ── */
.social-links {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 1.1rem;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.social-link svg { flex-shrink: 0; }
.social-link:hover {
  transform: translateY(-2px);
  background: #f1f5f9;
  box-shadow: var(--shadow-sm);
}

/* ── Social Channel Cards (Blog Page) ── */
.social-channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.8rem;
}
.social-channel-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--shadow-sm);
}
.social-channel-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.social-youtube:hover { border-color: #ff0000; }
.social-instagram:hover { border-color: #e1306c; }
.social-pinterest:hover { border-color: #e60023; }
.social-blog:hover { border-color: var(--accent); }
.social-tiktok:hover { border-color: #00f2ea; }
.social-substack:hover { border-color: #ff6719; }

/* ── Trending Cards ── */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.trending-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.trending-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.trending-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.trending-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem; color: var(--text); }
.trending-card p { font-size: 0.83rem; color: var(--muted); line-height: 1.55; margin: 0 0 0.75rem; }
.trending-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }

/* ── Trends Deep-Dive Page ── */
.trend-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.trend-toc-list {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 0;
}
.trend-toc-list li {
  counter-increment: toc;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}
.trend-toc-list li:last-child { border-bottom: none; }
.trend-toc-list a { color: var(--accent); text-decoration: none; font-weight: 500; font-size: 0.92rem; }
.trend-toc-list a:hover { text-decoration: underline; }

.trend-section { padding: 3.5rem 0; }
.trend-alt { background: var(--surface2); }

.trend-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.trend-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
}
.trend-header h2 { font-size: 1.6rem; font-weight: 800; margin: 0 0 0.3rem; color: var(--text); }
.trend-hashtags { font-size: 0.82rem; color: var(--accent); font-weight: 500; }

.trend-content { max-width: 800px; }
.trend-content h3 { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 0.5rem; color: var(--text); }
.trend-content p { font-size: 0.92rem; color: var(--muted); line-height: 1.7; margin: 0 0 0.75rem; }
.trend-content a { color: var(--accent); }

.trend-answer {
  background: #eff6ff;
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text);
}
.trend-answer strong { color: var(--accent); display: block; margin-bottom: 0.3rem; font-size: 0.95rem; }

.trend-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.trend-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}
.trend-list li:last-child { border-bottom: none; }
.trend-list li strong { color: var(--text); }

.trend-social-proof {
  background: #f0fdf4;
  border-left: 3px solid #22c55e;
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #166534;
  margin-top: 1.5rem;
}
.trend-social-proof a { color: #15803d; font-weight: 600; }

@media (max-width: 640px) {
  .trend-header { flex-direction: column; gap: 0.5rem; }
  .trend-number { font-size: 1.8rem; }
}
.social-channel-icon { font-size: 1.6rem; flex-shrink: 0; }
.social-channel-info { display: flex; flex-direction: column; }
.social-channel-info strong { font-size: 0.9rem; font-weight: 700; }
.social-channel-info small { font-size: 0.76rem; color: var(--muted); line-height: 1.4; }

/* ── Blog Cards ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-tag {
  display: inline-block;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  width: fit-content;
}
.blog-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}
.blog-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.55; margin: 0 0 0.75rem; flex: 1; }
.blog-meta { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.5rem; }
.blog-cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-cta:hover { color: #1d4ed8; }

@media (max-width: 640px) {
  .social-channels-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ── Hours Table (Modal) ── */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
  font-size: 0.88rem;
}
.hours-table tr {
  border-bottom: 1px solid var(--border);
}
.hours-table tr:last-child { border-bottom: none; }
.hours-day {
  font-weight: 600;
  color: var(--text);
  padding: 0.45rem 0.5rem 0.45rem 0;
  white-space: nowrap;
  width: 45%;
}
.hours-time {
  color: var(--muted);
  padding: 0.45rem 0.5rem;
}
.hours-now {
  color: #16a34a;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 0.45rem 0;
  white-space: nowrap;
}
.hours-today {
  background: #f0fdf4;
  border-radius: 6px;
}
.hours-today .hours-day { color: #166534; }
.hours-compact {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.hours-hints {
  margin: 0.5rem 0 0;
  padding: 0.4rem 0.8rem;
  background: #f0fdf4;
  border-left: 3px solid #22c55e;
  border-radius: 0 6px 6px 0;
  font-size: 0.78rem;
  color: #166534;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════
   DEALS & COUPONS
   ══════════════════════════════════════════════════════════════ */

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.deal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.deal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.deal-featured { border-color: var(--accent); border-width: 2px; }

.deal-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1rem 0.5rem;
}
.deal-store-logo { font-size: 1.8rem; }
.deal-header-text { display: flex; flex-direction: column; flex: 1; }
.deal-store { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.deal-country-flag { font-size: 0.8rem; }
.deal-featured-badge {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.deal-body { padding: 0 1rem 1rem; flex: 1; }
.deal-discount {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}
.deal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.3rem 0;
  line-height: 1.3;
}
.deal-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0.4rem 0;
}
.deal-code {
  background: var(--surface2);
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0.5rem 0;
}
.deal-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.5rem 0;
  flex-wrap: wrap;
}
.deal-badge {
  font-size: 0.72rem;
  background: #dbeafe;
  color: #1e40af;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}
.deal-valid {
  font-size: 0.75rem;
  color: var(--muted);
}
.deal-tags { margin-top: 0.4rem; display: flex; flex-wrap: wrap; gap: 0.3rem; }

.deal-cta {
  display: block;
  text-align: center;
  padding: 0.75rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
  margin-top: auto;
}
.deal-cta:hover { background: #1d4ed8; color: #fff; }

@media (max-width: 640px) {
  .deals-grid { grid-template-columns: 1fr; }
}

/* ── Social Share Bar ── */
.share-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 0;
  margin: 0 auto;
  flex-wrap: wrap;
}
.share-bar-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted, #64748b);
  margin-right: 0.25rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 2rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
  line-height: 1;
}
.share-btn:hover { filter: brightness(1.12); transform: translateY(-1px); color: #fff; }
.share-btn svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.share-btn--facebook  { background: #1877f2; }
.share-btn--twitter   { background: #0f1419; }
.share-btn--linkedin  { background: #0a66c2; }
.share-btn--pinterest { background: #e60023; }
.share-btn--email     { background: #64748b; }
.share-btn--copy      { background: #475569; }
.share-btn--copy.copied { background: #16a34a; }
.share-btn--like      { background: #f1f5f9; color: #94a3b8; border: 1px solid #e2e8f0; }
.share-btn--like svg  { fill: currentColor; transition: transform 0.3s, fill 0.3s; }
.share-btn--like .like-count { font-variant-numeric: tabular-nums; }
.share-btn--like.liked { background: #fff1f2; color: #e11d48; border-color: #fecdd3; }
.share-btn--like.liked svg { transform: scale(1.2); }
.share-btn--like:hover { background: #fff1f2; color: #e11d48; filter: none; }
@keyframes heart-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1.2); }
}
.share-btn--like.pop svg { animation: heart-pop 0.35s ease; }

@media (max-width: 640px) {
  .share-bar { gap: 0.4rem; }
  .share-btn { padding: 0.4rem 0.7rem; font-size: 0.78rem; }
  .share-bar-label { width: 100%; text-align: center; margin-bottom: 0.2rem; }
}
