/* ============================================================
   style.css — Fashion Brand Store
   ============================================================ */

/* --- Reset & Variables --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #f5f0eb;
  --warm-white: #faf7f4;
  --dark: #1a1612;
  --dark-mid: #3a3028;
  --accent: #c9935a;
  --accent-light: #e8c49a;
  --muted: #8a7e74;
  --badge-new: #4a7c59;
  --badge-sale: #c0392b;
  --badge-best: #c9935a;
  --badge-exclusive: #6b4fa0;
  --font-display: 'Poppins', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --shadow: 0 8px 40px rgba(26,22,18,0.10);
  --shadow-hover: 0 16px 60px rgba(26,22,18,0.18);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--dark);
  overflow-x: hidden;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 5%;
  height: 70px;
  display: flex;
  flex-direction: column;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(250,247,244,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(26,22,18,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  opacity: 0.7;
  transition: opacity var(--transition);
}

.nav-links a:hover { opacity: 1; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--cream);
  padding: 20px 5%;
  gap: 16px;
  border-top: 1px solid rgba(26,22,18,0.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.04em;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, #e8d8c8 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, #d4c0b0 0%, transparent 50%),
    var(--cream);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9935a' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
  margin-top: 70px;
  animation: heroFadeUp 1s ease both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 6px 18px;
  border: 1px solid var(--accent-light);
  border-radius: 50px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.btn-hero {
  display: inline-block;
  padding: 15px 44px;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(26,22,18,0.2);
}
.btn-hero:hover {
  background: var(--dark-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26,22,18,0.3);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ============================================================
   KOLEKSI / PRODUCT GRID
   ============================================================ */
.koleksi {
  padding: 100px 5%;
  background: var(--warm-white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--dark);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Product Card */
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow var(--transition);
  animation-fill-mode: both;
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.product-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  z-index: 2;
}

.badge-best.seller, .badge-best-seller { background: var(--badge-best); }
.badge-new { background: var(--badge-new); }
.badge-sale { background: var(--badge-sale); }
.badge-exclusive { background: var(--badge-exclusive); }

.card-quick-buy {
  position: absolute;
  bottom: -50px;
  left: 0; right: 0;
  margin: 0 16px;
  padding: 12px;
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: bottom 0.3s ease, background var(--transition);
  z-index: 2;
}

.product-card:hover .card-quick-buy {
  bottom: 16px;
}

.card-quick-buy:hover {
  background: var(--accent);
}

.card-info {
  padding: 18px 20px 22px;
}

.card-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 6px;
}

.card-price {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
}

/* ============================================================
   TENTANG
   ============================================================ */
.tentang {
  background: var(--cream);
  padding: 100px 5%;
}

.tentang-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.tentang-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 24px;
}

.tentang-text h2 em {
  font-style: italic;
  color: var(--accent);
}

.tentang-text p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 36px;
}

.btn-outline {
  display: inline-block;
  padding: 13px 36px;
  border: 1.5px solid var(--dark);
  color: var(--dark);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 50px;
  transition: var(--transition);
}
.btn-outline:hover {
  background: var(--dark);
  color: #fff;
}

.tentang-visual {
  position: relative;
  height: 400px;
}

.visual-block {
  position: absolute;
  border-radius: var(--radius);
}

.v1 {
  width: 70%;
  height: 85%;
  top: 0; right: 0;
  background: linear-gradient(135deg, #d4c5b0, #e8d8c8);
}

.v2 {
  width: 55%;
  height: 65%;
  bottom: 0; left: 0;
  background: linear-gradient(135deg, #c9935a40, #c9935a20);
  border: 2px solid var(--accent-light);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: #fff;
  padding: 70px 5% 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo { height: 38px; width: auto; margin-bottom: 16px; display: block; }

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-contact p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.btn-wa-footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 50px;
  transition: var(--transition);
}
.btn-wa-footer:hover {
  background: #20b858;
  transform: translateY(-2px);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,22,18,0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: rgba(26,22,18,0.07);
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 1rem;
  cursor: pointer;
  z-index: 1;
  transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(26,22,18,0.15); }

.modal-img-wrap {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 16px 0 0 16px;
}

.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  width: fit-content;
}

.modal-body h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.2;
}

.modal-price {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.size-section label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 10px;
}

.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid rgba(26,22,18,0.2);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  background: #fff;
  color: var(--dark);
  transition: var(--transition);
}

.size-btn:hover {
  border-color: var(--dark);
  background: var(--cream);
}

.size-btn.selected {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

.btn-beli {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: auto;
}
.btn-beli:hover {
  background: #20b858;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

/* Shake animation */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.shake { animation: shake 0.4s ease; }

/* Toast */
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .tentang-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .tentang-visual { height: 260px; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .modal {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .modal-img-wrap {
    border-radius: 16px 16px 0 0;
    aspect-ratio: 16/9;
  }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .koleksi { padding: 70px 5%; }
  .tentang { padding: 70px 5%; }
  .hero-title { font-size: 2.8rem; }
}
