/* ═══════════════════════════════════════════════
   home.css — Ana səhifə (index.php)
═══════════════════════════════════════════════ */

/* ─── HERO CAROUSEL ───────────────────────────────────────────── */
.hero {
  position: relative; height: 90vh; min-height: 600px; overflow: hidden;
}
.hero-track {
  position: absolute; top: 0; left: 0;
  height: 100%; width: 300%; display: flex;
  transition: transform .8s cubic-bezier(.77,0,.175,1);
}
.hero-slide { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,20,18,.04) 0%, rgba(20,20,18,.58) 100%);
}
.hero-content {
  position: relative; max-width: 1400px; margin: 0 auto;
  width: 100%; padding: 0 80px 80px;
}
.hero-eyebrow {
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255,255,255,.65); margin-bottom: 18px; font-weight: 500;
}
.hero-title {
  font-family: var(--serif); font-size: clamp(48px, 6vw, 88px);
  font-weight: 300; line-height: 1.05; color: var(--cream); margin-bottom: 16px;
}
.hero-title em { font-style: italic; color: rgba(255,255,255,.85); }
.hero-sub {
  font-size: 13px; color: rgba(255,255,255,.7);
  max-width: 400px; line-height: 1.8; margin-bottom: 24px; font-weight: 300;
}
.hero-ctas { display: flex; gap: 16px; align-items: center; }
.btn-primary {
  display: inline-block; background: var(--cream); color: var(--espresso);
  padding: 14px 36px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; border-radius: 2px; transition: background .2s, color .2s;
}
.btn-primary:hover { background: var(--sand); }
.btn-ghost {
  display: inline-block; border: 1px solid rgba(255,255,255,.45); color: var(--cream);
  padding: 13px 36px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 400; border-radius: 2px; transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--cream); background: rgba(255,255,255,.1); }

/* Carousel controls */
.hero-nav {
  position: absolute; bottom: 40px; right: 80px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; z-index: 10;
}
.hero-counter { font-size: 11px; letter-spacing: .12em; color: rgba(255,255,255,.5); font-weight: 400; }
.hero-counter strong { color: rgba(255,255,255,.9); font-weight: 500; }
.hero-dots {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 8px; z-index: 10;
}
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.35); cursor: pointer;
  transition: background .3s, transform .3s; border: none; padding: 0;
}
.hero-dot.active { background: #fff; transform: scale(1.4); }

/* ─── SECTION SHARED ──────────────────────────────────────────── */
.section-header {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 48px;
}

/* ─── BEST SELLERS / PRODUCT GRID ────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.product-card { position: relative; cursor: pointer; }
.product-img-wrap {
  position: relative; overflow: hidden; background: var(--warm);
  aspect-ratio: 3/4; border-radius: 3px; margin-bottom: 20px;
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }
.product-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--espresso); color: var(--cream);
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 1px;
}
.product-ml { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.ml-btn {
  font-size: 11px; font-family: var(--sans); letter-spacing: .08em;
  border: 1px solid var(--sand); background: transparent; color: var(--stone);
  padding: 4px 10px; border-radius: 2px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.ml-btn.active { background: #fff; color: #000; border-color: #000; }
.ml-btn:hover { border-color: #000; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.btn-add-cart {
  background: var(--espresso); color: var(--cream); border: none;
  font-family: var(--sans); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; padding: 9px 14px; border-radius: 2px;
  cursor: pointer; transition: opacity .2s; white-space: nowrap;
}
.btn-add-cart:hover { opacity: .8; }
.product-card-link { display: block; text-decoration: none; color: inherit; }
.product-category { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); margin-bottom: 6px; }
.product-name { font-family: var(--serif); font-size: 18px; font-weight: 400; color: var(--espresso); margin-bottom: 4px; line-height: 1.3; }
.product-desc { font-size: 12px; color: var(--stone); margin-bottom: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { font-size: 14px; font-weight: 500; color: var(--bark); letter-spacing: .04em; }
.product-price s { color: var(--sand); font-weight: 300; margin-right: 6px; }

/* ─── BRAND STORY ─────────────────────────────────────────────── */
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.brand-visual { position: relative; overflow: hidden; min-height: 600px; }
.brand-visual img { width: 100%; height: 100%; object-fit: cover; }
.brand-visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(61,74,62,.15) 0%, transparent 60%);
}
.brand-copy {
  background: var(--espresso); color: var(--cream);
  padding: 80px 72px; display: flex; flex-direction: column; justify-content: center;
}
.brand-copy .section-label { color: var(--sand); margin-bottom: 16px; }
.brand-title {
  font-family: var(--serif); font-size: clamp(36px, 3vw, 52px);
  font-weight: 300; line-height: 1.2; color: var(--cream); margin-bottom: 28px;
}
.brand-title em { font-style: italic; }
.brand-text { font-size: 14px; line-height: 1.85; color: var(--sand); font-weight: 300; margin-bottom: 16px; }
.brand-stats { display: flex; gap: 40px; margin: 40px 0; padding-top: 40px; border-top: 1px solid rgba(212,201,184,.2); }
.stat-num { font-family: var(--serif); font-size: 42px; font-weight: 300; color: var(--cream); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.btn-outline-light {
  display: inline-block; border: 1px solid rgba(212,201,184,.4); color: var(--cream);
  padding: 13px 32px; font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  border-radius: 2px; transition: border-color .2s, background .2s; align-self: flex-start;
}
.btn-outline-light:hover { border-color: var(--cream); background: rgba(247,244,239,.08); }

/* ─── HAIR TYPES GRID ─────────────────────────────────────────── */
.hair-types-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.hair-type-card { position: relative; overflow: hidden; aspect-ratio: 2/3; cursor: pointer; }
.hair-type-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.25,.46,.45,.94);
}
.hair-type-card:hover img { transform: scale(1.06); }
.hair-type-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,30,28,.75) 0%, rgba(30,30,28,.1) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px 28px; transition: background .4s;
}
.hair-type-card:hover .hair-type-overlay {
  background: linear-gradient(to top, rgba(30,30,28,.88) 0%, rgba(30,30,28,.2) 55%, transparent 100%);
}
.hair-type-name { font-family: var(--serif); font-size: 28px; font-weight: 400; color: var(--cream); margin-bottom: 10px; line-height: 1.15; }
.hair-type-desc { font-size: 12px; color: rgba(247,244,239,.7); line-height: 1.6; margin-bottom: 14px; font-weight: 300; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hair-type-link { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(247,244,239,.65); display: flex; align-items: center; gap: 8px; transition: color .2s, gap .2s; }
.hair-type-card:hover .hair-type-link { color: var(--cream); gap: 14px; }
.hair-type-link::after { content: '→'; font-size: 14px; }

/* ─── VALUES STRIP ────────────────────────────────────────────── */
.values-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--warm); border-bottom: 1px solid var(--warm); }
.value-item { padding: 56px 48px; border-right: 1px solid var(--warm); text-align: center; }
.value-item:last-child { border-right: none; }
.value-icon { font-size: 28px; margin-bottom: 20px; display: block; }
.value-name { font-family: var(--serif); font-size: 22px; font-weight: 400; margin-bottom: 12px; color: var(--espresso); }
.value-text { font-size: 13px; color: var(--stone); line-height: 1.7; max-width: 260px; margin: 0 auto; }

/* ─── INSTAGRAM GRID ──────────────────────────────────────────── */
.instagram-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.ig-item { position: relative; overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.ig-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.25,.46,.45,.94); }
.ig-item:hover img { transform: scale(1.08); }
.ig-overlay { position: absolute; inset: 0; background: rgba(42,36,32,.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; }
.ig-item:hover .ig-overlay { opacity: 1; }
.ig-overlay svg { width: 28px; height: 28px; fill: var(--cream); }

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hair-types-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-grid { grid-template-columns: 1fr; }
  .brand-visual { min-height: 400px; }
  .brand-copy { padding: 60px 40px; }
  .hero-content { padding: 0 40px 60px; }
  .values-strip { grid-template-columns: 1fr; }
  .value-item { border-right: none; border-bottom: 1px solid var(--warm); padding: 40px 28px; }
  .value-item:last-child { border-bottom: none; }
}
@media (max-width: 768px) {
  .hero { height: 70vh; min-height: 480px; }
  .hero-content { padding: 0 24px 48px; }
  .hair-types-grid { grid-template-columns: repeat(2, 1fr); }
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .brand-copy { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .hero { height: 60vh; min-height: 400px; }
  .hero-content { padding: 0 16px 36px; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-ctas .btn-primary, .hero-ctas .btn-ghost { text-align: center; width: 100%; }
  .products-grid { grid-template-columns: 1fr; gap: 20px; }
  .hair-types-grid { grid-template-columns: 1fr; gap: 12px; padding: 0 16px; }
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-copy { padding: 32px 16px; }
  .btn-outline-light { align-self: stretch; text-align: center; }
  .value-item { padding: 28px 16px; }
  .section-header { flex-direction: column; align-items: stretch; gap: 16px; margin-bottom: 28px; }
  .section-header .link-underline {
    display: block; text-align: center; width: 100%;
    background: var(--espresso); color: var(--cream);
    padding: 14px; font-size: 10px; letter-spacing: .18em;
    text-transform: uppercase; font-weight: 600; border-radius: 2px;
    border-bottom: none; transition: opacity .2s;
  }
  .section-header .link-underline:hover { opacity: .85; color: var(--cream); border-color: transparent; }
}
