/* Farbrenguen Shop — Design System */
:root {
  --brand:       #1A3A6B;
  --brand-light: #2E6BE6;
  --brand-dark:  #0F2347;
  --gold:        #C8933A;
  --gold-light:  #E8B460;
  --surface:     #F7F8FC;
  --card-bg:     #FFFFFF;
  --border:      #E8ECF2;
  --text-dark:   #1C1C2E;
  --text-muted:  #6B7280;
  --success:     #16A34A;
  --danger:      #DC2626;
  --radius-card: 12px;
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-light); color: #fff; font-weight: 600;
  padding: 10px 22px; border-radius: 8px; font-size: 0.9rem;
  transition: background 0.15s, transform 0.1s; cursor: pointer;
  text-decoration: none; border: none;
}
.btn-primary:hover { background: var(--brand); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-gold {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: #fff; font-weight: 600;
  padding: 10px 22px; border-radius: 8px; font-size: 0.9rem;
  transition: background 0.15s; cursor: pointer; text-decoration: none;
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--brand-light); color: var(--brand-light);
  font-weight: 600; padding: 9px 22px; border-radius: 8px; font-size: 0.9rem;
  transition: all 0.15s; background: transparent; text-decoration: none;
}
.btn-outline:hover { background: var(--brand-light); color: #fff; }

/* Badges */
.badge-pill {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 999px; font-size: 0.7rem;
  font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
}
.badge-shabbat   { background: #1A3A6B; color: #fff; }
.badge-gift      { background: #C8933A; color: #fff; }
.badge-trending  { background: #2E6BE6; color: #fff; }
.badge-community { background: #0891B2; color: #fff; }
.badge-deal      { background: #DC2626; color: #fff; }
.badge-new       { background: #16A34A; color: #fff; }
.badge-holiday   { background: #7C3AED; color: #fff; }
.badge-family    { background: #EA580C; color: #fff; }
.badge-pill:not([class*="badge-"]) { background: #E8ECF2; color: #374151; }

/* Section headings */
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--brand); letter-spacing: -0.01em;
}
.section-subheading {
  font-size: 0.95rem; color: var(--text-muted); margin-top: 4px;
}

/* Section layouts */
.section { padding: 3rem 0; }
.section-sm { padding: 2rem 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media(min-width: 640px)  { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media(min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

/* Horizontal scroll strip */
.scroll-strip {
  display: flex; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll-strip::-webkit-scrollbar { display: none; }
.scroll-strip > * { scroll-snap-align: start; flex-shrink: 0; width: 200px; }
@media(min-width: 640px) { .scroll-strip > * { width: 220px; } }

/* Trust strip */
.trust-item {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 8px; padding: 1.5rem 1rem;
}
.trust-icon {
  width: 48px; height: 48px; background: #EEF2FF; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}

/* Hero section */
.hero-section {
  background:
    linear-gradient(135deg, rgba(10,31,68,0.78) 0%, rgba(30,58,138,0.65) 60%, rgba(37,99,235,0.55) 100%),
    url('/assets/images/hero-bg.webp') center/cover no-repeat;
  color: #fff; min-height: 420px;
  display: flex; align-items: center;
}
@media(min-width: 768px) { .hero-section { min-height: 520px; } }

/* Campaign banner */
.campaign-banner {
  background: linear-gradient(90deg, var(--gold) 0%, #e8a830 100%);
  color: #fff; padding: 2.5rem 2rem; border-radius: var(--radius-card);
  position: relative; overflow: hidden;
}

/* Countdown timer */
.countdown { display: inline-flex; gap: 8px; align-items: center; }
.countdown-unit {
  background: rgba(255,255,255,0.15); border-radius: 6px;
  padding: 4px 8px; text-align: center; min-width: 40px;
}
.countdown-num { font-size: 1.4rem; font-weight: 700; line-height: 1; display: block; }
.countdown-label { font-size: 0.6rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.05em; }

/* Notification bar */
.notif-bar {
  background: var(--brand); color: #fff; text-align: center;
  padding: 8px 1rem; font-size: 0.8rem; letter-spacing: 0.02em;
}

/* Urgency strip */
.urgency-strip {
  background: #FEF2F2; border: 1px solid #FECACA; border-radius: 8px;
  padding: 8px 12px; display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: #991B1B;
}

/* Line clamp utility */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Sticky CTA (mobile product page) */
.sticky-cta {
  position: fixed; bottom: 56px; left: 0; right: 0;
  background: white; border-top: 1px solid var(--border);
  padding: 10px 16px; z-index: 40;
  display: none;
}
@media(max-width: 767px) { .sticky-cta.show { display: flex; gap: 10px; } }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #E8ECF2 25%, #F7F8FC 50%, #E8ECF2 75%);
  background-size: 200% 100%; animation: skeleton-load 1.4s ease infinite;
  border-radius: 6px;
}
@keyframes skeleton-load { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* Safe area for mobile */
.safe-bottom { padding-bottom: env(safe-area-inset-bottom, 0); }

/* Pagination */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
.page-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px; font-size: 0.9rem;
  border: 1px solid var(--border); background: white; color: var(--text-dark);
  text-decoration: none; transition: all 0.15s;
}
.page-btn:hover, .page-btn.active { background: var(--brand-light); color: white; border-color: var(--brand-light); }

/* Gift occasion grid */
.occasion-card {
  background: white; border-radius: var(--radius-card); padding: 1.25rem;
  text-align: center; border: 1px solid var(--border);
  transition: all 0.15s; text-decoration: none; color: var(--text-dark);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.occasion-card:hover { border-color: var(--brand-light); box-shadow: 0 4px 16px rgba(46,107,230,0.1); }
.occasion-icon { font-size: 2rem; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: all 0.4s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
