/* ===== RASANI FASHION — self-contained CSS (no Tailwind/DaisyUI CDN) ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --rose-50: #fff1f2;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --amber-50: #fffbeb;
  --amber-500: #f59e0b;
  --amber-700: #b45309;
  --rose-50: #fff1f2;
  --rose-200: #fecdd3;
  --rose-500: #f43f5e;
  --rose-700: #be123c;
  --zinc-700: #3f3f46;
  --zinc-900: #18181b;
  --zinc-950: #09090b;
  --white: #ffffff;
}

html { color-scheme: light; }
body {
  min-height: 100vh;
  background: linear-gradient(to bottom, var(--rose-50), var(--white), var(--stone-50));
  color: var(--zinc-900);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ===== LAYOUT UTILITIES ===== */
.max-w-7xl { max-width: 80rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.max-w-lg { max-width: 32rem; }
.max-w-sm { max-width: 24rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }
.block { display: block; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.md\:gap-2 { gap: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.md\:items-end { align-items: flex-end; }
.xl\:items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.xl\:justify-between { justify-content: space-between; }
.md\:justify-center { justify-content: center; }

/* ===== SPACING ===== */
.p-0 { padding: 0; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-12 { padding: 3rem; }
.lg\:p-6 { padding: 1.5rem; }
.lg\:p-10 { padding: 2.5rem; }
.md\:p-4 { padding: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.lg\:py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.pt-5 { padding-top: 1.25rem; }
.pb-1 { padding-bottom: 0.25rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

/* ===== TYPOGRAPHY ===== */
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.lg\:text-base { font-size: 1rem; line-height: 1.5rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-\[\.25em\] { letter-spacing: 0.25em; }
.tracking-\[\.28em\] { letter-spacing: 0.28em; }
.leading-tight { line-height: 1.25; }
.leading-\[1\.02\] { line-height: 1.02; }
.text-center { text-align: center; }
.whitespace-nowrap { white-space: nowrap; }

.text-white { color: var(--white); }
.text-white\/75 { color: rgba(255,255,255,0.75); }
.text-zinc-700 { color: var(--zinc-700); }
.text-zinc-900 { color: var(--zinc-900); }
.text-stone-400 { color: var(--stone-400); }
.text-stone-500 { color: var(--stone-500); }
.text-rose-500 { color: var(--rose-500); }
.text-rose-700 { color: var(--rose-700); }
.text-amber-500 { color: var(--amber-500); }
.text-amber-700 { color: var(--amber-700); }
.text-rose-100\/80 { color: rgba(255,228,230,0.8); }

/* ===== BACKGROUNDS ===== */
.bg-white { background-color: var(--white); }
.bg-white\/10 { background-color: rgba(255,255,255,0.1); }
.bg-white\/70 { background-color: rgba(255,255,255,0.7); }
.bg-white\/80 { background-color: rgba(255,255,255,0.8); }
.bg-white\/90 { background-color: rgba(255,255,255,0.9); }
.bg-stone-50 { background-color: var(--stone-50); }
.bg-stone-100 { background-color: var(--stone-100); }
.bg-rose-50 { background-color: var(--rose-50); }
.bg-rose-500 { background-color: var(--rose-500); }
.bg-amber-50 { background-color: var(--amber-50); }
.bg-zinc-900 { background-color: var(--zinc-900); }
.bg-zinc-950 { background-color: var(--zinc-950); }
.bg-transparent { background-color: transparent; }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.from-rose-50 { --tw-gradient-from: var(--rose-50); }
.via-white { --tw-gradient-stops: var(--tw-gradient-from), var(--white); }
.to-stone-50 { --tw-gradient-to: var(--stone-50); }

/* ===== BORDERS ===== */
.border { border-width: 1px; border-style: solid; border-color: var(--stone-200); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-none { border: none; }
.border-dashed { border-style: dashed; }
.border-stone-100 { border-color: var(--stone-100); }
.border-stone-200 { border-color: var(--stone-200); }
.border-rose-200 { border-color: var(--rose-200); }
.border-white\/10 { border-color: rgba(255,255,255,0.1); }
.border-white\/20 { border-color: rgba(255,255,255,0.2); }
.border-white\/70 { border-color: rgba(255,255,255,0.7); }
.border-zinc-900 { border-color: var(--zinc-900); }

/* ===== RADIUS ===== */
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-\[1\.25rem\] { border-radius: 1.25rem; }
.rounded-\[1\.75rem\] { border-radius: 1.75rem; }
.rounded-\[2rem\] { border-radius: 2rem; }

/* ===== SHADOWS ===== */
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.shadow-zinc-900\/10 { --tw-shadow: 0 4px 6px rgba(24,24,27,0.1); box-shadow: var(--tw-shadow); }
.shadow-zinc-900\/20 { --tw-shadow: 0 10px 15px rgba(24,24,27,0.2); box-shadow: var(--tw-shadow); }
.soft-shadow { box-shadow: 0 20px 60px rgba(15,23,42,0.08); }

/* ===== SIZING ===== */
.w-11 { width: 2.75rem; }
.h-11 { height: 2.75rem; }
.h-20 { height: 5rem; }
.h-full { height: 100%; }
.w-full { width: 100%; }
.min-h-screen { min-height: 100vh; }
.min-h-\[40vh\] { min-height: 40vh; }
.min-w-0 { min-width: 0; }
.aspect-\[4\/5\] { aspect-ratio: 4 / 5; }
.md\:aspect-square { aspect-ratio: 1 / 1; }
.max-w-2xl { max-width: 42rem; }

/* ===== POSITION ===== */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.top-4 { top: 1rem; }
.left-4 { left: 1rem; }
.right-4 { right: 1rem; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }

/* ===== IMAGE ===== */
.object-cover { object-fit: cover; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* ===== INTERACTION ===== */
.cursor-pointer { cursor: pointer; }
.transition { transition: all 0.15s ease; }
.transition-all { transition: all 0.3s ease; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.hover\:bg-white:hover { background-color: var(--white); }
.hover\:bg-stone-200:hover { background-color: var(--stone-200); }
.hover\:bg-stone-50:hover { background-color: var(--stone-50); }
.hover\:border-zinc-200:hover { border-color: #e4e4e7; }
.hover\:shadow-sm:hover { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.hover\:text-zinc-900:hover { color: var(--zinc-900); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

/* ===== COMPONENT: btn ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-sm { padding: 0.25rem 0.75rem; font-size: 0.75rem; }
.btn-circle { border-radius: 9999px; width: 2.5rem; height: 2.5rem; padding: 0; }
.btn-ghost { background: transparent; border: 1px solid transparent; }
.btn-outline { background: transparent; border: 1px solid var(--stone-200); }

/* ===== COMPONENT: badge ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid var(--stone-200);
  white-space: nowrap;
}
.badge-outline { background: transparent; }

/* ===== COMPONENT: input / select ===== */
.input, .select {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--stone-200);
  border-radius: 1rem;
  background-color: var(--stone-50);
  color: var(--zinc-900);
}
.input-bordered, .select-bordered { border: 1px solid var(--stone-200); }
.file-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--stone-200);
  border-radius: 1rem;
  background: var(--stone-50);
}
.file-input-bordered { border: 1px solid var(--stone-200); }
.label { font-size: 0.75rem; color: var(--stone-500); }
.outline-none { outline: none; }
.focus-within\:border-zinc-900:focus-within { border-color: var(--zinc-900); }

/* ===== MODAL ===== */
.modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 50; width: 100%; height: 100%; background: transparent; padding: 1rem; margin: 0; }
.modal[hidden] { display: none !important; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); z-index: 0; }
.modal-box {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.backdrop-blur-sm { backdrop-filter: blur(4px); }

/* ===== MISC ===== */
.glass { backdrop-filter: blur(18px); background: rgba(255,255,255,0.72); }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.editor-only { display: none; }
body.is-editor .editor-only { display: block; }
body.is-editor .editor-toggle-actions { display: inline-flex; }
.chip-btn { cursor: pointer; }

/* ===== RESPONSIVE ===== */
/* Mobile-first: base = mobile (1 kolom). Naik breakpoint baru nambah kolom. */

/* Grid produk: 1 kolom di mobile, 2 kolom >=640px, 3 kolom >=1280px */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xl\:flex-row { flex-direction: row; }
  .xl\:items-end { align-items: flex-end; }
  .xl\:justify-between { justify-content: space-between; }
}

/* Navbar + list view: mobile hidden/flex, desktop flex */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:flex-col { flex-direction: column; }
  .md\:items-end { align-items: flex-end; }
  .md\:justify-center { justify-content: center; }
  .md\:gap-2 { gap: 0.5rem; }
  .md\:grid-cols-\[140px_1fr_auto\] { grid-template-columns: 140px 1fr auto; }
  .md\:aspect-square { aspect-ratio: 1 / 1; }
  .md\:p-4 { padding: 1rem; }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
}

/* Layout hero + filter: desktop 2 kolom */
@media (min-width: 1024px) {
  .lg\:grid-cols-\[1\.3fr_\.7fr\] { grid-template-columns: 1.3fr 0.7fr; }
  .lg\:grid-cols-\[1\.2fr_\.7fr_\.6fr\] { grid-template-columns: 1.2fr 0.7fr 0.6fr; }
  .lg\:p-6 { padding: 1.5rem; }
  .lg\:p-10 { padding: 2.5rem; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .lg\:text-base { font-size: 1rem; line-height: 1.5rem; }
}

/* Mobile (kecil): hero text jangan kegedean, rapikan */
@media (max-width: 480px) {
  .text-4xl { font-size: 1.6rem; line-height: 1.2; }
}
