/* =============================================
   home.css — La Samasta Frontend
   Berisi: Hero, Categories, Featured Products,
   Sustainability, Our Story, Editorial Banner,
   Values, Testimonials, Lookbook, Newsletter,
   Hero Img Info

   Load HANYA di halaman Home
============================================= */

/* =============================================
   HERO
============================================= */
.hero {
  height: 100dvh; min-height: 600px;
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative; overflow: hidden;
}
.hero-left {
  background: var(--cream);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 0 60px 150px;
  position: relative; overflow: hidden;
}
.hero-left-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--cream-dark) 0%, var(--cream) 60%);
}
.hero-left-content { position: relative; z-index: 1; }
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 10px; font-weight: 500; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--clr-accent); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--clr-soft); display: block; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px); font-weight: 300;
  line-height: 1.0; color: var(--charcoal); margin-bottom: 28px;
}
.hero-title em { font-style: italic; color: var(--clr-accent); }
.hero-subtitle {
  font-size: 13px; font-weight: 300; line-height: 1.8;
  color: var(--muted); max-width: 360px; margin-bottom: 36px;
}
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-right { position: relative; overflow: hidden; }

/* Counter strip */
.hero-counter-strip {
  position: absolute; bottom: 0; left: 0; right: 50%;
  background: var(--clr-accent); padding: 16px 60px;
  display: flex; gap: 40px;
}
.hero-counter-item { text-align: center; }
.hero-counter-num { font-family: var(--font-display); font-size: 24px; font-weight: 400; color: var(--clr-white); line-height: 1; }
.hero-counter-label { font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* Scroll indicator */
.hero-scroll {
  position: absolute; bottom: 40px; right: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--clr-soft));
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%  { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100%{ transform: scaleY(0); transform-origin: bottom; }
}
.hero-scroll-text {
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); writing-mode: vertical-rl;
}

/* =============================================
   CATEGORIES
============================================= */
.categories { padding: var(--section-py) 0; background: var(--warm-white); }
.categories-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 56px; }
.categories-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.cat-card { position: relative; overflow: hidden; cursor: none; }
.cat-card:first-child { grid-row: 1 / 3; }
.cat-card:hover .img-placeholder { transform: scale(1.06); transition: transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.img-placeholder img{
  width:100%;
  height:100%;
  object-fit: cover;
}
.cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(46,54,64,0.7) 0%, transparent 55%);
  transition: opacity 0.4s;
}
.cat-card:hover .cat-overlay { opacity: 0.85; }
.cat-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px 28px; }
.cat-num { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.cat-name { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: white; line-height: 1.1; }
.cat-count { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 4px; }
.cat-arrow {
  position: absolute; top: 24px; right: 24px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgb(0 0 0 / 15%); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-8px); opacity: 0; transition: all 0.3s;
}
.cat-card:hover .cat-arrow { opacity: 1; transform: translateY(0); }
.cat-arrow svg { width: 16px; height: 16px; color: white; }

/* =============================================
   FEATURED PRODUCTS
============================================= */
.featured { padding: var(--section-py) 0; background: var(--cream); }
.featured-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; }
.featured-tabs {
  display: flex; gap: 4px;
  background: var(--clr-soft); padding: 4px; border-radius: 2px;
}
.featured-tab {
  font-size: 10px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 8px 16px; border: none; background: none; cursor: none;
  color: var(--muted); border-radius: 1px; transition: all var(--transition);
}
.featured-tab.active { background: var(--clr-dark); color: white; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { cursor: none; }
.product-card-img-wrap { position: relative; overflow: hidden; margin-bottom: 16px; }
.product-img-ph { width: 100%; aspect-ratio: 3/4; display: block; transition: transform 0.6s ease; }
.product-card:hover .product-img-ph { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 9px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 10px;
}
.badge-new { background: var(--clr-accent); color: white; }
.badge-sale { background: var(--clr-dark); color: white; }
.badge-limited { background: #5c5847; color: white; }
.product-actions {
  position: absolute; right: 12px; bottom: 12px;
  display: flex; flex-direction: column; gap: 8px;
  transform: translateX(52px); transition: transform 0.3s ease;
}
.product-card:hover .product-actions { transform: translateX(0); }
.product-action-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(244,243,239,0.92); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  cursor: none; transition: all var(--transition);
}
.product-action-btn:hover { background: var(--clr-dark); color: white; }
.product-action-btn svg { width: 15px; height: 15px; }
.product-info { padding: 0 4px; }
.product-category { font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--clr-accent); margin-bottom: 6px; }
.product-name { font-family: var(--font-display); font-size: 18px; font-weight: 400; color: var(--charcoal); line-height: 1.2; margin-bottom: 8px; }
.product-price-row { display: flex; align-items: baseline; gap: 8px; }
.product-price { font-size: 14px; font-weight: 500; color: var(--charcoal); }
.product-price-old { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.product-colors { display: flex; gap: 6px; margin-top: 10px; }
.color-dot { width: 14px; height: 14px; border-radius: 50%; cursor: none; border: 1px solid rgba(0,0,0,0.08); transition: transform 0.2s; }
.color-dot:hover { transform: scale(1.3); }

/* =============================================
   SUSTAINABILITY (HOME SECTION)
============================================= */
.sustainability {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: var(--section-py) 0 50px; background: var(--warm-white);
}
.sust-img {
  width: 100%; min-height: 600px;
  background: linear-gradient(160deg, #c8ccca, #b5b9b7, #a2a6a4);
  position: relative; overflow: hidden;
}
.sust-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sust-content { padding: 100px 80px; display: flex; flex-direction: column; justify-content: center; }
.sust-stats { display: flex; gap: 40px; margin-bottom: 48px; }

/* =============================================
   OUR STORY (HOME SECTION)
============================================= */
.our-story { padding: 50px 0 var(--section-py); background: var(--warm-white); }
.our-story-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.story-img-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.story-img { border-radius: 2px; overflow: hidden; }
.story-img:first-child { grid-column: span 2; }
.story-img-bg { width: 100%; aspect-ratio: 16/9; transition: transform 0.7s ease; }
.story-img:first-child .story-img-bg { aspect-ratio: 16/7; }
.story-img:hover .story-img-bg { transform: scale(1.05); }
.story-img-bg.s1 { background: linear-gradient(135deg, #D4CCBF, #BEC8B5); }
.story-img-bg.s2 { background: linear-gradient(135deg, #CCCCC0, #B8C4AD); }
.story-img-bg.s3 { background: linear-gradient(135deg, #E0D8CE, #D0C8BC); }

/* =============================================
   EDITORIAL BANNER
============================================= */
.editorial { padding: var(--section-py) 0; background: var(--warm-white); }
.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.editorial-left { position: relative; overflow: hidden; min-height: 560px; }
.editorial-left:hover .ph-2 { transform: scale(1.04); transition: transform 0.7s ease; }
.editorial-left-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(46,54,64,0.6) 0%, transparent 60%);
}
.editorial-left-content { position: absolute; top: 50%; left: 48px; transform: translateY(-50%); max-width: 320px; }
.editorial-tag {
  font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px); padding: 5px 12px; display: inline-block; margin-bottom: 16px;
}
.editorial-title { font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px); font-weight: 300; color: white; line-height: 1.1; margin-bottom: 16px; }
.editorial-title em { font-style: italic; }
.editorial-desc { font-size: 12px; line-height: 1.7; color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.editorial-right { display: grid; grid-template-rows: 1fr 1fr; gap: 2px; }
.editorial-small { position: relative; overflow: hidden; }
.editorial-small-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(46,54,64,0.65) 0%, transparent 50%); }
.editorial-small-content { position: absolute; bottom: 24px; left: 24px; }
.editorial-small-tag { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.editorial-small-title { font-family: var(--font-display); font-size: 24px; font-weight: 400; color: white; }

/* =============================================
   VALUES
============================================= */
.values { padding: var(--section-py) 0; background: var(--clr-accent); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.15); }
.value-item { background: var(--clr-accent); padding: 48px 36px; text-align: center; transition: background var(--transition); }
.value-item:hover { background: var(--sage-dark); }
.value-icon { width: 48px; height: 48px; margin: 0 auto 20px; opacity: 0.75; }
.value-icon svg { width: 100%; height: 100%; color: var(--clr-soft-light); }
.value-title { font-family: var(--font-display); font-size: 20px; font-weight: 400; color: var(--clr-soft-xlight); margin-bottom: 10px; }
.value-desc { font-size: 12px; line-height: 1.7; color: rgba(255,255,255,0.55); }

/* =============================================
   TESTIMONIALS
============================================= */
.testimonials { padding: var(--section-py) 0; background: var(--cream); overflow: hidden; }
.testimonials-header { text-align: center; margin-bottom: 56px; }
.testimonials-header .section-label { justify-content: center; }
.testimonials-header .section-label::before { display: none; }
.testimonials-header .section-label::after { content: ''; display: block; width: 24px; height: 1px; background: var(--clr-soft); }
.testimonials-track-wrap { overflow: hidden; position: relative; }
.testimonials-track-wrap::before,
.testimonials-track-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1;
}
.testimonials-track-wrap::before { left: 0; background: linear-gradient(to right, var(--cream), transparent); }
.testimonials-track-wrap::after  { right: 0; background: linear-gradient(to left, var(--cream), transparent); }
.testimonials-track {
  display: flex; gap: 24px;
  animation: scrollTestimonials 35s linear infinite;
}
@keyframes scrollTestimonials {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.testimonials-track:hover { animation-play-state: paused; }
.testimonial-card {
  flex-shrink: 0; width: 360px;
  background: var(--warm-white); padding: 32px;
  border: 1px solid var(--border);
}
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 16px; color: var(--clr-accent); }
.testimonial-stars svg { width: 14px; height: 14px; }
.testimonial-text {
  font-family: var(--font-display); font-size: 17px; font-weight: 300;
  line-height: 1.6; color: var(--charcoal); margin-bottom: 20px; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--clr-soft-light); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 14px; color: var(--clr-accent); flex-shrink: 0;
}
.testimonial-name { font-size: 12px; font-weight: 500; color: var(--charcoal); }
.testimonial-loc { font-size: 10px; color: var(--muted); margin-top: 1px; }

/* =============================================
   NEWSLETTER
============================================= */
.newsletter {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--clr-dark) 0%, #3d4550 50%, #4a5260 100%);
  position: relative; overflow: hidden;
}
.newsletter::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(117,113,89,0.12) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(213,210,195,0.06) 0%, transparent 40%);
}
.newsletter-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.newsletter-text .section-label { color: rgba(255,255,255,0.55); }
.newsletter-text .section-label::before { background: rgba(255,255,255,0.3); }
.newsletter-heading { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 48px); font-weight: 300; color: white; line-height: 1.2; margin-top: 12px; }
.newsletter-heading em { font-style: italic; color: var(--clr-soft); }
.newsletter-sub { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 10px; line-height: 1.6; }
.newsletter-form { flex-shrink: 0; width: 420px; }
.newsletter-input-row { display: flex; }
.newsletter-input {
  flex: 1; padding: 16px 20px;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2); border-right: none;
  font-family: var(--font-body); font-size: 13px; color: white; outline: none;
  transition: background var(--transition);
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-input:focus { background: rgba(255,255,255,0.18); }
.newsletter-btn {
  padding: 16px 24px; background: var(--clr-accent); border: none;
  font-family: var(--font-body); font-size: 10px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; color: white;
  cursor: none; transition: background var(--transition); flex-shrink: 0;
}
.newsletter-btn:hover { background: var(--sage-dark); }
.newsletter-note { font-size: 10px; color: rgba(255,255,255,0.35); margin-top: 10px; text-align: center; }

/* =============================================
   HERO IMG INFO
============================================= */
.hero-img-info {
  position: absolute; bottom: 40px; left: 30px;
  background: rgba(244,243,239,0.92); backdrop-filter: blur(10px);
  padding: 16px 20px; border-left: 2px solid var(--clr-accent); max-width: 200px;
}
.hero-img-info-tag { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clr-accent); margin-bottom: 4px; }
.hero-img-info-name { font-family: var(--font-display); font-size: 16px; font-weight: 400; color: var(--charcoal); }
.hero-img-info-price { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* =============================================
   RESPONSIVE — Home
============================================= */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .cat-card:first-child { grid-row: auto; }
  .lookbook-grid { grid-template-columns: repeat(4, 1fr); }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .sustainability { grid-template-columns: 1fr; }
  .sust-content { padding: 60px 40px; }
  .our-story-inner { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 860px) {
  :root { --section-py: 64px; }
  .hero { grid-template-columns: 1fr; height: auto; min-height: 100dvh; }
  .hero-left { padding: 100px 24px 100px; }
  .hero-right { min-height: 50vh; }
  .hero-counter-strip { left: 0; right: 0; }
  .newsletter-inner { flex-direction: column; }
  .newsletter-form { width: 100%; }
  .editorial-grid { grid-template-columns: 1fr; }
  .editorial-left { min-height: 400px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .lookbook-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .categories-grid { grid-template-columns: 1fr; }
  .lookbook-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .hero-counter-strip { flex-wrap: wrap; padding: 16px 24px; gap: 16px; }
  .categories-header, .lookbook-header, .featured-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sustainability { grid-template-columns: 1fr; }
  .sust-img { min-height: 300px; }
  .sust-content { padding: 40px 24px; }
}


/* =============================================
   PATCH: categories section — home.css
   Tambahkan / replace bagian CATEGORIES di home.css
   dengan kode berikut
============================================= */

/* ---- CATEGORIES ---- */
.categories {
  padding: var(--section-py) 0;
  background: var(--warm-white);
}

.categories-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
}

.categories-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto;
  gap: 16px;
}

/* ---- CAT CARD base ---- */
.cat-card {
  position: relative;
  overflow: hidden;
  cursor: none;
  /* Hapus height fixed — biarkan gambar yang menentukan tinggi */
}

/* Card pertama span 2 baris agar lebih tinggi dari card lainnya */
.cat-card:first-child {
  grid-row: 1 / 3;
}

/* ---- WRAPPER GAMBAR ---- */
/* 
  Gunakan class .img-placeholder.ratio-pas di card kecil (index > 0)
  Gunakan class .img-placeholder.ratio-tall di card besar (index 0)
  ATAU biarkan gambar yang mengisi 100% tinggi parent via object-fit
*/
.cat-card .img-placeholder {
  width: 100%;
  display: block;
  overflow: hidden;          /* pastikan gambar tidak meluber */
  position: relative;
}

/* Card besar (first-child): isi penuh tinggi grid */
.cat-card:first-child .img-placeholder {
  height: 100%;              /* isi seluruh tinggi card */
  aspect-ratio: unset;       /* matikan aspect ratio agar mengikuti tinggi grid */
}

/* Card kecil: pakai aspect ratio 4/5 agar proporsional */
.cat-card:not(:first-child) .img-placeholder {
  aspect-ratio: 4 / 5;
  height: unset;
}

/* ---- GAMBAR di dalam wrapper ---- */
.cat-card .img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* pastikan gambar crop rapi, tidak stretch */
  object-position: center;   /* fokus ke tengah gambar */
  display: block;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-card:hover .img-placeholder img {
  transform: scale(1.06);
}

/* Matikan transform duplikat dari rule lama */
.cat-card:hover .img-placeholder {
  transform: none;
}

/* ---- OVERLAY ---- */
.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(46, 54, 64, 0.7) 0%, transparent 55%);
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 1;
}
.cat-card:hover .cat-overlay { opacity: 0.85; }

/* ---- INFO (nama, jumlah) ---- */
.cat-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 28px;
  z-index: 2;
  pointer-events: none;
}
.cat-num   { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.cat-name  { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: white; line-height: 1.1; }
.cat-count { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ---- ARROW ---- */
.cat-arrow {
  position: absolute;
  top: 24px; right: 24px;
  width: 36px; height: 36px;
  border-radius: 50%;
background: rgb(0 0 0 / 15%);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-8px);
  opacity: 0;
  transition: all 0.3s;
  z-index: 2;
}
.cat-card:hover .cat-arrow { opacity: 1; transform: translateY(0); }
.cat-arrow svg { width: 16px; height: 16px; color: white; }

/* =============================================
   RESPONSIVE — Categories
============================================= */

/* Tablet: 2 kolom, card besar tidak span 2 baris */
@media (max-width: 1100px) {
  .categories-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  /* Card pertama tetap lebih besar tapi tidak span full */
  .cat-card:first-child {
    grid-column: span 2;    /* lebar penuh */
    grid-row: auto;
  }
  .cat-card:first-child .img-placeholder {
    height: unset;
    aspect-ratio: 16 / 7;   /* landscape saat lebar penuh */
  }
  .cat-card:not(:first-child) .img-placeholder {
    aspect-ratio: 4 / 3;
  }
}

/* Mobile: 1 kolom, semua card sama lebar */
@media (max-width: 540px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
  .cat-card:first-child {
    grid-column: span 1;
    grid-row: auto;
  }
  .cat-card:first-child .img-placeholder {
    aspect-ratio: 4 / 3;
    height: unset;
  }
  .cat-card:not(:first-child) .img-placeholder {
    aspect-ratio: 4 / 3;
  }
  .categories-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}