@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-color: #faf9f6;
  --card-bg: #ffffff;
  --text-main: #111111;
  --text-muted: #737373;
  --border-color: #e5e5e5;
  --accent: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  padding: 20px 14px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header & Search Bar */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.brand-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 260px;
}

.search-input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--accent);
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
}

/* Grid Lookbook: 2 Kolom di HP, 4 Kolom di Laptop/Desktop */
.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .lookbook-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

/* Kartu Bersih Bentuk Kotak Tegas */
.lookbook-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.img-container {
  position: relative;
  width: 100%;
  padding-top: 133.33%; /* Rasio 3:4 Studio Mode */
  background: #f1f1f1;
  overflow: hidden;
}

.img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay Semi-Transparan Hitam (Animasi Sentuh / Hover) */
/* Overlay Gradasi Hitam Bawah (Halus & Elegan) */
.overlay-info {
  position: absolute;
  inset: 0;
  /* Gradasi transparan di atas dan hitam pekat halus di bawah */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.05) 45%,
    rgba(0, 0, 0, 0.65) 80%,
    rgba(0, 0, 0, 0.90) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 14px;
  color: #ffffff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s ease;
}

.lookbook-card:hover .overlay-info,
.lookbook-card:active .overlay-info {
  opacity: 1;
  visibility: visible;
}

.overlay-code {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.overlay-action {
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: #f1f5f9;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.overlay-action svg {
  flex-shrink: 0;
}

/* Footer Bawah Kartu */
.card-bottom {
  padding: 9px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-top: 1px solid #f2f2f2;
}

.product-code {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.category-tag {
  font-size: 10.5px;
  color: var(--text-muted);
}