/* ============================================
   NT ELEGANZ — MAIN STYLES (index page)
   ============================================ */

/* ── Sections Spacing ── */
.section {
  padding: var(--space-24) 0;
}

.section--sm {
  padding: var(--space-16) 0;
}

.section--lg {
  padding: var(--space-32) 0;
}

.section--dark {
  background: var(--bg-primary);
}

.section--surface {
  background: var(--bg-secondary);
}

/* ── Featured Products Section ── */
.featured-section {
  padding: var(--space-20) 0;
}

.featured-header {
  padding: 0 var(--gutter);
  max-width: var(--container-max);
  margin: 0 auto var(--space-10);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.featured-header-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ── Filter Tabs ── */
.filter-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  overflow: hidden;
}

.filter-tab {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  border-right: 1px solid var(--border);
  transition: all var(--transition-fast);
  background: transparent;
}

.filter-tab:last-child {
  border-right: none;
}

.filter-tab.active,
.filter-tab:hover {
  background: var(--gold);
  color: var(--text-inverse);
}

/* ── Products Swiper (mobile) ── */
.products-swiper {
  width: 100%;
}

.products-swiper .swiper-slide {
  width: 280px;
}

/* ── How It Works strip ── */
.how-section {
  position: relative;
  background: #efede9;
  border-block: 1px solid rgba(17, 17, 17, 0.08);
  padding: clamp(56px, 7vw, 96px) var(--gutter);
  overflow: hidden;
}

.how-section::before {
  content: '';
  position: absolute;
  width: 440px;
  height: 440px;
  top: -260px;
  right: -100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  filter: blur(4px);
  pointer-events: none;
}

.catalog-category-heading { position: relative; max-width: var(--container-max); margin: 0 auto 34px; }
.catalog-category-heading .section-label { margin-bottom: 12px; }
.catalog-category-heading h2 { font: 400 clamp(2rem, 4vw, 3.5rem)/1 var(--font-sans); letter-spacing: -.055em; color: #111; }
.catalog-category-section .how-item { color: inherit; }
.how-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font: 650 10px/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: #111; }
.how-link b { font-size: 14px; font-weight: 400; transition: transform .3s ease; }
.how-item:hover .how-link b { transform: translate(3px,-3px); }

.how-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.how-item {
  position: relative;
  min-height: 285px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 22px;
  box-shadow: 0 8px 30px rgba(28, 24, 19, 0.035);
  overflow: hidden;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease, background .45s ease;
}

.how-item::after {
  content: '';
  position: absolute;
  inset: auto -45px -75px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #111;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .45s ease, transform .45s ease;
}

.how-item:hover {
  transform: translateY(-7px);
  background: #fff;
  box-shadow: 0 22px 55px rgba(28, 24, 19, 0.1);
}

.how-item:hover::after {
  opacity: .04;
  transform: scale(1);
}

.how-item__top {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: auto;
}

.how-index {
  padding-top: 5px;
  color: #9b9892;
  font: 600 10px/1 var(--font-sans);
  letter-spacing: .16em;
}

.how-icon {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #f8f7f5;
  color: #111;
  transition: color .35s ease, background .35s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}

.how-icon svg {
  width: 31px;
  height: 31px;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.how-icon__detail {
  stroke-dasharray: 42;
  stroke-dashoffset: 0;
}

.how-item:hover .how-icon {
  color: #fff;
  background: #111;
  transform: rotate(-4deg) scale(1.06);
}

.how-item:hover .how-icon__detail {
  animation: how-detail-draw .75s cubic-bezier(.2,.8,.2,1);
}

@keyframes how-detail-draw {
  0% { stroke-dashoffset: 42; opacity: .2; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

.how-title {
  margin-top: 30px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.25;
  color: #111;
}

.how-desc {
  margin-top: 10px;
  max-width: 28ch;
  font-size: 13px;
  color: #68645f;
  line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
  .how-item:hover,
  .how-item:hover .how-icon { transform: none; }
  .how-item:hover .how-icon__detail { animation: none; }
}

/* Legacy alignment properties intentionally superseded by the card layout. */
.how-icon {
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .how-item { min-height: 250px; }
  .featured-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .how-grid {
    grid-template-columns: 1fr;
  }
  .how-item {
    min-height: 230px;
  }
}

/* ══════════════════════════════════════════
   BRANDS MARQUEE SECTION
══════════════════════════════════════════ */
.brands-section {
  padding: 80px 0 72px;
  background: #ffffff;
  overflow: hidden;
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* ── Header ── */
.brands-header {
  text-align: center;
  margin-bottom: 52px;
  padding: 0 24px;
}

.brands-pill {
  display: inline-block;
  padding: 4px 16px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  background: rgba(0,0,0,0.03);
  margin-bottom: 18px;
}

.brands-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #0a0a0a;
  margin-bottom: 12px;
  line-height: 1.1;
}

.brands-subtitle {
  font-size: 0.95rem;
  color: #888;
  font-weight: 300;
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto;
}

/* ── Track wrapper — fade masks ── */
.brands-track-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.brands-track-wrap:last-child {
  margin-bottom: 0;
}

.brands-track-wrap--fade::before,
.brands-track-wrap--fade::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 180px;
  z-index: 2;
  pointer-events: none;
}

.brands-track-wrap--fade::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}

.brands-track-wrap--fade::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}

/* ── Track ── */
.brands-track {
  display: flex;
  width: max-content;
}

@keyframes brands-scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes brands-scroll-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.brands-track--left {
  animation: brands-scroll-left 28s linear infinite;
}

.brands-track--right {
  animation: brands-scroll-right 22s linear infinite;
}

/* Pause on hover */
.brands-track-wrap:hover .brands-track {
  animation-play-state: paused;
}

/* ── Logo list ── */
.brands-list {
  display: flex;
  align-items: center;
  gap: 0;
}

/* ── Individual brand item ── */
.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 110px;
  margin: 0 8px;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 14px;
  background: #fafafa;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  flex-shrink: 0;
  overflow: hidden;
  padding: 18px 28px;
}

.brand-item:hover {
  background: #ffffff;
  border-color: rgba(0,0,0,0.18);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-4px) scale(1.03);
}

.brand-item img {
  max-width: 100%;
  max-height: 68px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.1);
  opacity: 0.65;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  display: block;
}

.brand-item:hover img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

@media (max-width: 640px) {
  .brand-item {
    width: 130px;
    height: 72px;
    padding: 14px 18px;
  }
  .brands-track-wrap--fade::before,
  .brands-track-wrap--fade::after {
    width: 60px;
  }
}
