/* Top Notch Gifts Landing — Static site styles. Brand: #e60232, #00A8E1, #121212. System fonts. */

:root {
  --color-bg: #FFFFFF;
  --color-surface: #F8F8FB;
  --color-text: #121212;
  --color-text-muted: #707487;
  --color-accent: #e60232;
  --color-accent-light: rgba(230, 2, 50, 0.08);
  --color-blue: #00A8E1;
  --color-gold: #FF9900;
  --color-border: #E6E8EF;
  --color-gradient-start: #ff003d;
  --color-gradient-end: #e60232;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.12);
  --max-width: 960px;
  --section-padding: 3rem 1.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  will-change: transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.reveal-stagger .reveal:nth-child(1) {
  transition-delay: 0ms;
}

.reveal-stagger .reveal:nth-child(2) {
  transition-delay: 60ms;
}

.reveal-stagger .reveal:nth-child(3) {
  transition-delay: 120ms;
}

.reveal-stagger .reveal:nth-child(4) {
  transition-delay: 180ms;
}

.reveal-stagger .reveal:nth-child(5) {
  transition-delay: 240ms;
}

.reveal-stagger .reveal:nth-child(6) {
  transition-delay: 300ms;
}

/* Mobile: snappier slide, smaller distance, tighter stagger */
@media (max-width: 640px) {
  .reveal {
    transform: translateY(16px);
    transition-duration: 0.4s;
  }

  .reveal-stagger .reveal:nth-child(1) {
    transition-delay: 0ms;
  }

  .reveal-stagger .reveal:nth-child(2) {
    transition-delay: 40ms;
  }

  .reveal-stagger .reveal:nth-child(3) {
    transition-delay: 80ms;
  }

  .reveal-stagger .reveal:nth-child(4) {
    transition-delay: 120ms;
  }

  .reveal-stagger .reveal:nth-child(5) {
    transition-delay: 160ms;
  }

  .reveal-stagger .reveal:nth-child(6) {
    transition-delay: 200ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transform: none;
    transition: opacity 0.25s ease-out;
  }

  .reveal-stagger .reveal {
    transition-delay: 0;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / Nav */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--color-text);
  text-decoration: none;
}

.logo-link:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.logo-img {
  display: block;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.nav-links a:hover {
  color: var(--color-accent);
}

/* Hero — single clear rhythm: small gaps between lines, one breath before CTA */
.hero {
  padding: 3rem 1.5rem 3.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}

.hero-badge {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
}

.hero-tagline {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.hero .pitch {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 32rem;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.hero-cta:hover {
  text-decoration: none;
  opacity: 0.95;
}

.hero-cta--muted {
  cursor: default;
  opacity: 0.9;
  background: var(--color-surface);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.hero-cta--muted:hover {
  opacity: 0.9;
}

.hero-cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-testflight-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-accent);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.hero-testflight-link span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.hero-cta-logo {
  display: block;
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  object-position: center;
  align-self: center;
}

.hero-testflight-link:hover {
  background: var(--color-accent-light);
  text-decoration: none;
}

/* Sections */
section {
  padding: var(--section-padding);
}

.how-it-works {
  padding-top: 2rem;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--color-text);
  text-align: center;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 28rem;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

/* How it works */
.how-it-works {
  background: var(--color-surface);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.25rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.step {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 2px 8px rgba(230, 2, 50, 0.25);
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.625rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.step p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.55;
}

/* Features */
#features {
  background: var(--color-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(230, 2, 50, 0.2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq-list {
  max-width: 36rem;
  margin: 2rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.faq-item p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: #fff;
  padding: 3rem 1.5rem 2rem;
  margin-top: 3rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto 2rem;
}

.footer-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  font-size: 0.9375rem;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* Page layout (privacy, affiliate) */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
  padding: 2rem 1.5rem 4rem;
}

/* Narrow reading width for privacy/affiliate; try-it-out overrides below for wide layout */
.page-main .container {
  max-width: 720px;
}

.page-main h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.page-main .updated {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.page-main h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.page-main p,
.page-main li {
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.page-main ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Try it out page — use full width on desktop, not the narrow mobile-safe column */
.page-try-it-out .site-header .container,
.page-try-it-out .footer-bottom,
.page-try-it-out .page-main .container {
  max-width: min(1600px, 92vw);
}

.page-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  text-align: center;
}

.trending-create-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.trending-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.trending-create-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.back-to-trending-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.back-to-trending-btn:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-light);
}

.create-search-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.2s;
}

.create-search-btn:hover {
  opacity: 0.95;
}

/* Unified Filter Layout */
.filters-section {
  margin-bottom: 2rem;
}

.search-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.search-wrapper {
  flex: 1;
  margin-bottom: 0;
}

.search-input {
  width: 100%;
  max-width: 100%;
  padding: 1rem 1.25rem;
  /* Larger touch target */
  font-size: 1.0625rem;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.clear-filters-btn {
  flex-shrink: 0;
  padding: 0 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.clear-filters-btn:hover {
  background: var(--color-border);
  color: var(--color-text);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.search-wrapper {
  position: relative;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
  margin-top: -2px;
}

.suggestion-item {
  padding: 0.875rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.suggestion-item:hover,
.suggestion-item.is-focused {
  background: var(--color-surface);
  color: var(--color-accent);
}

.suggestion-item-icon {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.suggestion-item:hover .suggestion-item-icon,
.suggestion-item.is-focused .suggestion-item-icon {
  color: var(--color-accent);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Mobile: 2 columns */
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .filters-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    /* Desktop: Auto fit */
    gap: 1rem;
  }
}

.filter-item {
  display: block;
  min-width: 0;
}

.filter-select {
  width: 100%;
  padding: 0.875rem 1rem;
  /* Taller */
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  appearance: none;
  /* Normalize */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23707487' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  transition: border-color 0.2s, background-color 0.2s;
}

.filter-select:hover {
  background-color: var(--color-surface);
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.filters-section {
  margin-bottom: 2rem;
}

/* Old classes removed */

/* Item grid: 4 columns desktop, 2 on mobile */
.items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .items-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
  }

  .trending-section .items-grid--carousel {
    grid-auto-columns: minmax(260px, 1fr);
    gap: 1.5rem;
  }
}

/* Default view: sections per recipient */
.trending-sections {
  display: block;
}

.trending-section {
  margin-bottom: 2.5rem;
}

.trending-section:last-child {
  margin-bottom: 0;
}

.trending-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.trending-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.2s;
}

.trending-section-title:hover {
  color: var(--color-accent);
}

.trending-section-title:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.trending-section-see-all {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  background: transparent;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.trending-section-see-all:hover {
  background: var(--color-accent-light);
}

.trending-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trending-section .items-grid--carousel {
  grid-auto-flow: column;
  grid-auto-columns: calc(50% - 0.75rem);
  /* Default mobile: 2 columns */
  grid-template-columns: unset;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  touch-action: pan-y;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.5rem;
  gap: 1.25rem;
  margin-bottom: 0;
  padding: 0.25rem 0.5rem 1rem;
  scrollbar-width: none;
}

@media (min-width: 768px) {
  .trending-section .items-grid--carousel {
    grid-auto-columns: minmax(260px, 1fr);
  }
}

.trending-section .items-grid--carousel::-webkit-scrollbar {
  display: none;
}

.trending-section .items-grid--carousel .item-card {
  scroll-snap-align: start;
  min-width: 0;
}

.trending-section .items-grid--carousel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
  -webkit-user-select: none;
}

.trending-section .items-grid--carousel.is-dragging .item-card {
  pointer-events: none;
}

.carousel-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 767px) {
  .carousel-btn {
    display: none !important;
  }
}

.carousel-btn:hover {
  transform: translateY(-1px);
  border-color: var(--color-accent);
}

.carousel-btn.is-disabled,
.carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.item-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

/* Grid loading skeleton — shown in items container while fetching */
.items-grid--loading {
  pointer-events: none;
}

.item-card--skeleton .item-image,
.item-card--skeleton .skeleton-line {
  background: linear-gradient(90deg,
      var(--color-surface) 0%,
      var(--color-border) 50%,
      var(--color-surface) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.item-card--skeleton .item-image {
  min-height: 140px;
}

.item-card--skeleton .item-content {
  padding: 1rem;
}

.item-card--skeleton .skeleton-line {
  height: 0.875rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.item-card--skeleton .skeleton-line:last-child {
  margin-bottom: 0;
  width: 60%;
}

.item-card--skeleton .skeleton-btn {
  display: block;
  height: 2.25rem;
  margin-top: 0.75rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg,
      var(--color-surface) 0%,
      var(--color-border) 50%,
      var(--color-surface) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .item-card--skeleton .item-image,
  .item-card--skeleton .skeleton-line,
  .item-card--skeleton .skeleton-btn {
    animation: none;
    background: var(--color-surface);
  }
}

.item-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: var(--color-surface);
  overflow: hidden;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
}

.item-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-category {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
  text-transform: capitalize;
}

.item-price {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 1rem;
}

.item-shop-btn {
  display: inline-block;
  width: 100%;
  margin-top: auto;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

/* Larger card content on desktop so cards feel substantial */
@media (min-width: 768px) {
  .item-content {
    padding: 1.25rem;
  }

  .item-title {
    font-size: 1.0625rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .item-category {
    font-size: 0.875rem;
  }

  .item-price {
    font-size: 1rem;
    margin: 0 0 1.25rem;
  }

  .item-shop-btn {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
  }
}

.item-shop-btn:hover {
  opacity: 0.95;
  text-decoration: none;
}

.load-more-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.load-more-btn {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.load-more-btn:hover:not(:disabled) {
  background: var(--color-accent-light);
  border-color: var(--color-accent);
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.loading-message,
.empty-message,
.error-message {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-muted);
}

.error-message {
  color: var(--color-accent);
  background: var(--color-accent-light);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 640px) {
  .site-header {
    padding: 0.75rem 1rem;
  }

  .site-header .container {
    padding-left: 0;
    padding-right: 0;
  }

  .logo-link {
    font-size: 1.125rem;
  }

  .logo-img {
    width: 32px;
    height: 32px;
  }

  .nav-links {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-links a {
    font-size: 0.8125rem;
    padding: 0.35em 0;
  }

  .hero {
    padding: 3rem 1rem 4rem;
  }

  section {
    padding: 3rem 1rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .step {
    padding: 1.5rem 1.25rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .feature-card {
    padding: 1.5rem 1.25rem;
  }

  .filters-row {
    grid-template-columns: 1fr;
  }

  .items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .trending-carousel {
    gap: 0.5rem;
  }

  .carousel-btn {
    width: 2.125rem;
    height: 2.125rem;
    font-size: 1.25rem;
  }

  .trending-section .items-grid--carousel {
    grid-auto-columns: calc(50% - 0.5rem);
    gap: 1rem;
    padding-left: 0;
    padding-right: 0;
  }

  .item-content {
    padding: 0.75rem;
  }

  .item-title {
    font-size: 0.875rem;
  }
}

/* Product Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  margin: 1.5rem;
  overflow-y: auto;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}

.modal.is-open .modal-container {
  opacity: 1;
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--color-text);
  transition: background 0.2s, color 0.2s;
  box-shadow: var(--shadow);
}

.modal-close-btn:hover {
  background: var(--color-text);
  color: #fff;
}

.modal-content {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .modal-content {
    flex-direction: row;
    height: 600px;
    max-height: 80vh;
  }
}

.modal-image-wrapper {
  flex: 1;
  background: #f1f2f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  min-height: 300px;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2rem;
  transition: opacity 0.2s ease;
}

.modal-details {
  flex: 0 0 400px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .modal-details {
    flex: auto;
    padding: 1.5rem;
  }
}

.modal-header {
  margin-bottom: 1rem;
}

.modal-category {
  display: inline-block;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.2;
}

.modal-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 1rem;
}

.modal-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modal-description.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.modal-description-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.modal-description-toggle:hover {
  text-decoration: underline;
}

.modal-actions {
  margin-top: auto;
}

.modal-shop-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: opacity 0.2s;
  box-shadow: var(--shadow);
}

.modal-shop-btn:hover {
  opacity: 0.95;
  text-decoration: none;
}

/* Nav Buttons */
.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1002;
  color: var(--color-text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  opacity: 0;
  /* Hidden by default until hovered or specialized logic */
  visibility: hidden;
}

/* Show nav buttons on desktop when hovering modal container or always visible if outside */
@media (min-width: 900px) {
  .modal-nav-btn {
    opacity: 1;
    visibility: visible;
  }

  .modal-prev-btn {
    left: 2rem;
  }

  .modal-next-btn {
    right: 2rem;
  }

  /* Move them outside container if space permits, but for now inside relative container is tricky if we want them outside.
     Actually, they are inside modal-container which is centered. Let's move them to fixed position or outside container.
     Wait, HTML structure has them inside .modal-container.
     To have them on the sides, they should arguably be outside .modal-container or absolute relative to screen.
     Let's style them relative to .modal-container for now, or use fixed.
     If inside .modal-container, they might overlap content.
     Standard pattern: outside container on desktop, or overlay on edges.
  */
}

/* Let's adjust nav button placement. If they are inside modal-container, they overlay content. */
.modal-prev-btn {
  left: 1rem;
}

.modal-next-btn {
  right: 1rem;
}

.modal-nav-btn:hover {
  background: var(--color-text);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.modal-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Hide nav buttons on mobile (use swipe) */
@media (max-width: 768px) {
  .modal-nav-btn {
    display: none;
  }
}


/* Image Pagination */
.image-pagination {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 10;
  pointer-events: none;
}

.pagination-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.pagination-dot.is-active {
  background: var(--color-accent);
  transform: scale(1.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Image pointer behavior */
.modal-image {
  /* Default handled in JS */
  transition: opacity 0.2s ease;
}

.modal-image.has-multiple {
  cursor: pointer;
}