/* =========================================================
   Faarshop — homepage
   Crisp white boutique + gold accent + full-bleed hero
   ========================================================= */

.faar-home {
  direction: rtl;
  color: var(--faar-ink, #121212);
  padding: 0 0 72px;
  overflow: hidden;
}

.faar-home-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ---- Full-bleed hero ---- */
.faar-hero--bleed {
  position: relative;
  margin: 0 0 42px;
  min-height: clamp(300px, 52vw, 520px);
  display: flex;
  align-items: flex-end;
  background-color: #1a1a1a;
  background-image:
    linear-gradient(105deg, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.45) 48%, rgba(10, 10, 10, 0.2) 100%),
    var(--faar-hero-image, linear-gradient(135deg, #2c2c2c, #111));
  background-size: cover;
  background-position: center 20%;
  overflow: hidden;
  animation: faar-fade-up 0.75s ease both;
}

.faar-hero--bleed:not([style*='--faar-hero-image']) {
  background-image:
    radial-gradient(700px 280px at 85% 30%, rgba(230, 184, 0, 0.28), transparent 60%),
    linear-gradient(135deg, #242424 0%, #111 55%, #2a2418 100%);
}

.faar-hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 220px at 20% 80%, rgba(230, 184, 0, 0.18), transparent 65%),
    linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
  animation: faar-veil 8s ease-in-out infinite alternate;
}

@keyframes faar-veil {
  from { opacity: 0.85; transform: scale(1); }
  to { opacity: 1; transform: scale(1.03); }
}

.faar-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(36px, 6vw, 64px);
}

.faar-hero-content {
  max-width: 560px;
}

.faar-brand {
  display: block;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.faar-brand span {
  color: var(--faar-gold, #e6b800);
}

.faar-hero-text {
  margin: 0 0 26px;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36ch;
  font-weight: 500;
}

.faar-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.faar-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.faar-hero-btn.primary {
  background: #e6b800 !important;
  color: #121212 !important;
  border: none !important;
  box-shadow: 0 10px 28px rgba(230, 184, 0, 0.4);
}

.faar-hero-btn.primary:hover {
  background: #f0c933 !important;
  color: #121212 !important;
  transform: translateY(-2px);
}

.faar-hero-btn.ghost {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(6px);
}

.faar-hero-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* ---- Category carousels ---- */
.faar-cat-section {
  margin-bottom: 52px;
}

.faar-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.faar-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.faar-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.faar-cat-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 800;
  color: var(--faar-ink, #121212);
}

.faar-cat-icon {
  display: inline-flex;
  gap: 4px;
}

.faar-cat-icon span {
  width: 9px;
  height: 9px;
  background: var(--faar-gold, #e6b800);
  border-radius: 2px;
}

.faar-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  color: #333 !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  font-weight: 600;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.faar-view-all:hover {
  border-color: var(--faar-gold, #e6b800);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.faar-carousel-wrap {
  position: relative;
}

.faar-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 2px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.faar-carousel::-webkit-scrollbar {
  display: none;
}

.faar-card {
  flex: 0 0 auto;
  width: min(236px, 66vw);
  scroll-snap-align: start;
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.28s ease;
}

.faar-card:hover {
  transform: translateY(-6px);
}

.faar-card-image {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 3 / 4;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.faar-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.18));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.faar-card:hover .faar-card-image::after {
  opacity: 1;
}

.faar-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.faar-card:hover .faar-card-image img {
  transform: scale(1.07);
}

.faar-card-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.faar-card-price {
  flex: 0 0 auto;
  text-align: left;
  direction: ltr;
}

.faar-card-price .amount {
  display: block;
  color: var(--faar-gold, #e6b800);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.faar-card-price .currency {
  display: block;
  color: #9a9a9a;
  font-size: 0.74rem;
  margin-top: 2px;
  direction: rtl;
  text-align: right;
  font-weight: 500;
}

.faar-card-name {
  flex: 1 1 auto;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #1a1a1a;
  font-weight: 600;
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.faar-nav {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #e8e8e8;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.faar-nav:hover {
  background: #121212;
  color: #fff;
  border-color: #121212;
  transform: translateY(-50%) scale(1.05);
}

.faar-nav.prev { right: -6px; }
.faar-nav.next { left: -6px; }

.faar-nav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faar-empty {
  color: #999;
  padding: 48px 0;
  text-align: center;
}

/* Promise strip — after products, not in hero */
.faar-promise {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #ececec;
  border: 1px solid #ececec;
  border-radius: 18px;
  overflow: hidden;
  margin-top: 12px;
  animation: faar-fade-up 0.7s ease both;
}

.faar-promise-item {
  background: #fff;
  padding: 22px 20px;
  text-align: center;
}

.faar-promise-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #121212;
}

.faar-promise-item span {
  color: #666;
  font-size: 0.86rem;
  line-height: 1.7;
}

@keyframes faar-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .faar-promise {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .faar-nav { display: none; }
  .faar-card { width: min(178px, 58vw); }
  .faar-hero--bleed {
    min-height: 340px;
    align-items: center;
  }
  .faar-hero-content {
    text-align: center;
    margin: 0 auto;
  }
  .faar-hero-text {
    margin-left: auto;
    margin-right: auto;
  }
  .faar-hero-actions {
    justify-content: center;
  }
}
