/* ===== THE DAILY OUTFIT — ROSÉ STYLE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink-50:  #fff5f7;
  --pink-100: #fde8ed;
  --pink-200: #f9c6d1;
  --pink-400: #e8849a;
  --pink-600: #c4556e;
  --pink-800: #8b2a40;
  --gray-50:  #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-400: #aaa;
  --gray-600: #666;
  --gray-800: #222;
  --brown:    #5a3e35;
  --white: #fff;
  --font: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
}

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
  font-size: 15px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 2.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-family: var(--font);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.5px;
}

.navbar-nav {
  display: flex; align-items: center; gap: 2.5rem; list-style: none;
}

.navbar-nav a {
  font-size: 13px; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; color: var(--gray-600);
  transition: color 0.2s;
}

.navbar-nav a:hover, .navbar-nav a.active { color: var(--brown); }

.navbar-actions {
  display: flex; align-items: center; gap: 1.25rem;
}

.navbar-icon {
  font-size: 18px; color: var(--gray-600); cursor: pointer;
  transition: color 0.2s; position: relative;
}

.navbar-icon:hover { color: var(--brown); }

.cart-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--pink-600); color: white;
  font-size: 10px; width: 16px; height: 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
}

/* ===== NAVBAR SEARCH ===== */
.navbar-search {
  display: flex;
  align-items: center;
  background: var(--pink-50);
  border: 1.5px solid var(--pink-200);
  border-radius: 50px;
  padding: 0 4px 0 16px;
  margin: 0 1.5rem;
  flex: 0 1 220px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.navbar-search:hover {
  border-color: var(--pink-400);
}

.navbar-search:focus-within {
  background: var(--white);
  border-color: var(--pink-600);
  box-shadow: 0 0 0 3px rgba(196, 85, 110, 0.12);
}

.navbar-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gray-800);
  width: 100%;
  padding: 9px 0;
}

.navbar-search-input::placeholder {
  color: var(--gray-400);
}

.navbar-search-btn {
  border: none;
  background: var(--pink-600);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 4px 0;
  transition: background 0.2s, transform 0.15s;
}

.navbar-search-btn:hover {
  background: var(--pink-800);
}

.navbar-search-btn:active {
  transform: scale(0.92);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px; border-radius: 50px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.5px;
  cursor: pointer; transition: all 0.2s; border: none;
}

.btn-primary { background: var(--pink-600); color: white; }
.btn-primary:hover { background: var(--pink-800); color: white; }
.btn-outline { background: transparent; color: var(--pink-600); border: 1.5px solid var(--pink-600); }
.btn-outline:hover { background: var(--pink-50); }
.btn-white { background: white; color: var(--pink-600); }
.btn-white:hover { background: var(--pink-100); }
.btn-dark { background: var(--brown); color: white; }
.btn-dark:hover { background: var(--gray-800); color: white; }

/* ===== HERO SPLIT ===== */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.hero-left {
  background: var(--pink-100);
  padding: 3.5rem;
  display: flex;
  align-items: center;
}

.hero-left-inner { max-width: 340px; }

.hero-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--pink-600);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font);
  font-size: 3.2rem; font-weight: 700; line-height: 1.1;
  color: var(--brown); margin-bottom: 1rem; letter-spacing: -0.5px;
}

.hero-desc {
  font-size: 14px; color: var(--gray-600);
  margin-bottom: 1.75rem; line-height: 1.8;
}

.hero-right {
  position: relative; overflow: hidden;
  background: var(--pink-200);
}

.hero-right img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ===== SECTION ===== */
.section { padding: 4rem 2.5rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-title {
  font-family: var(--font);
  font-size: 2rem; font-weight: 700;
  color: var(--brown); margin-bottom: 1.75rem;
  letter-spacing: -0.5px;
}

/* ===== CATEGORY CARDS WITH IMAGE ===== */
.category-img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.category-img-card {
  position: relative; border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  aspect-ratio: 3/4;
  background: var(--pink-100);
  transition: transform 0.3s;
}

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

.category-img-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}

.category-img-card:hover img { transform: scale(1.04); }

.category-img-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: white;
  padding: 12px;
  text-align: center;
  font-size: 14px; font-weight: 600;
  color: var(--gray-800);
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--pink-200);
}

.product-img {
  position: relative; aspect-ratio: 3/4;
  overflow: hidden; background: var(--pink-50);
}

.product-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}

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

.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--pink-100);
  font-size: 2rem; font-weight: 700; color: var(--pink-400);
}

.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--brown); color: white;
  font-size: 10px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 10px; border-radius: 50px;
}

.product-add-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(90,62,53,0.9); color: white;
  text-align: center; padding: 10px;
  font-size: 13px; font-weight: 500;
  transform: translateY(100%);
  transition: transform 0.25s;
}

.product-card:hover .product-add-overlay { transform: translateY(0); }

.product-info { padding: 0.9rem 1rem 1rem; }

.product-cat {
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--pink-600);
}

.product-name {
  font-size: 14px; font-weight: 500;
  margin: 4px 0 8px; color: var(--gray-800); line-height: 1.4;
}

.product-name a:hover { color: var(--pink-600); }

.product-footer {
  display: flex; align-items: center; justify-content: space-between;
}

.product-price {
  font-size: 14px; font-weight: 700; color: var(--gray-800);
}

.product-stars { color: var(--pink-400); font-size: 12px; }

.btn-cart {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--pink-600); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 300; transition: background 0.2s;
}

.btn-cart:hover { background: var(--pink-800); }

/* ===== PROMO BANNER ===== */
.promo-banner {
  background: var(--pink-600); padding: 3.5rem 2rem; text-align: center;
}

.promo-banner h2 {
  font-family: var(--font);
  font-size: 2rem; font-weight: 700; color: white; margin-bottom: 0.75rem;
}

.promo-banner p { color: var(--pink-100); margin-bottom: 1.5rem; font-size: 14px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--brown); color: white;
  padding: 2.5rem 2.5rem 1.5rem;
}

.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-brand {
  font-family: var(--font);
  font-size: 1.4rem; font-weight: 700; color: var(--pink-200);
}

.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-links a:hover { color: var(--pink-200); }

.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: background 0.2s;
}

.footer-social a:hover { background: rgba(255,255,255,0.2); }

.footer-bottom {
  max-width: 1200px; margin: 1.25rem auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 0.5rem;
}

/* ===== AUTH — SPLIT LAYOUT (FINAL) ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: var(--white);
  padding: 0;
}

.auth-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* --- Kolom kiri: panel brand dengan foto baju (diperbesar) --- */
.auth-brand {
  position: relative;
  overflow: hidden;
  flex: 0 0 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
  background-image:
    linear-gradient(180deg, rgba(196,85,110,0.55) 0%, rgba(139,42,64,0.55) 50%, rgba(90,62,53,0.85) 100%),
    url('https://images.unsplash.com/photo-1490481651871-ab68de25d43d?q=80&w=1200&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}

.auth-brand::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  pointer-events: none;
}

.auth-brand::after {
  content: "";
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}

.auth-brand-inner {
  position: relative;
  z-index: 1;
}

.auth-brand .brand-logo {
  display: block;
  font-family: var(--font);
  font-size: 2.4rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.auth-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.3px;
  max-width: 280px;
  line-height: 1.7;
  margin: 0 auto;
}

/* --- Kolom kanan: form, background soft pink --- */
.auth-card {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: var(--pink-50);
  border-radius: 0;
  box-shadow: none;
  border: none;
  max-width: none;
  margin: 0;
  position: relative;
}

.auth-card-inner {
  width: 100%;
  max-width: 380px;
}

.auth-card h1,
.auth-card h2 {
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 0.4rem;
  text-align: left;
}

.auth-sub {
  text-align: left;
  color: var(--gray-600);
  font-size: 14px;
  margin-bottom: 2rem;
}

.auth-form .form-group { margin-bottom: 1.25rem; position: relative; }

.form-group { margin-bottom: 1.15rem; position: relative; }
.form-group label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: var(--gray-800); letter-spacing: 0.2px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--gray-200); border-radius: 10px;
  font-size: 14px; color: var(--gray-800);
  font-family: var(--font-sans);
  background: var(--white);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder { color: var(--gray-400); }

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--pink-400);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(232, 132, 154, 0.15);
}

.form-group.icon-email::after { content: "📧"; }
.form-group.icon-password::after { content: "🔒"; }
.form-group.icon-phone::after { content: "📱"; }

.form-group.icon-email::after,
.form-group.icon-password::after,
.form-group.icon-phone::after {
  position: absolute;
  right: 14px;
  top: 34px;
  font-size: 15px;
  opacity: 0.5;
  pointer-events: none;
}

.form-group.icon-email input,
.form-group.icon-password input,
.form-group.icon-phone input {
  padding-right: 40px;
}

.form-btn,
.btn-full {
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  border-radius: 50px;
  background: var(--brown);
  color: white;
  border: none;
  box-shadow: 0 4px 14px rgba(90, 62, 53, 0.25);
  transition: background 0.2s;
}

.form-btn:hover,
.btn-full:hover { background: var(--gray-800); }

.auth-link {
  text-align: left;
  margin-top: 1.5rem;
  font-size: 13.5px;
  color: var(--gray-600);
}

.auth-link a {
  color: var(--pink-600);
  font-weight: 600;
}

.auth-link a:hover { color: var(--pink-800); }

/* --- Responsive: stack jadi 1 kolom di mobile --- */
@media (max-width: 860px) {
  .auth-container { flex-direction: column; }
  .auth-brand {
    flex: 0 0 auto;
    padding: 2.25rem 1.75rem;
    min-height: 200px;
  }
  .auth-brand .brand-logo { font-size: 1.85rem; }
  .auth-tagline { max-width: 100%; }
  .auth-card { padding: 2.25rem 1.5rem; }
  .auth-card h1, .auth-card h2, .auth-sub, .auth-link { text-align: center; }
}

/* ===== PROFILE PAGE ===== */
.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.profile-sidebar {
  position: sticky;
  top: 88px;
}

.profile-avatar-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 2rem 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-400), var(--pink-600));
  color: white;
  font-family: var(--font);
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.profile-avatar-card h3 {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 0.25rem;
}

.profile-avatar-card p {
  font-size: 12.5px;
  color: var(--gray-600);
  margin-bottom: 0.85rem;
  word-break: break-word;
}

.profile-role-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--pink-600);
  background: var(--pink-50);
  border: 1px solid var(--pink-200);
  padding: 4px 14px;
  border-radius: 50px;
}

.profile-nav {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.profile-nav-link {
  display: block;
  padding: 13px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s, color 0.2s;
}

.profile-nav-link:last-child,
.profile-nav form:last-child .profile-nav-link {
  border-bottom: none;
}

.profile-nav-link:hover {
  background: var(--pink-50);
  color: var(--pink-600);
}

.profile-nav-link.active {
  background: var(--pink-50);
  color: var(--pink-600);
  font-weight: 600;
  border-left: 3px solid var(--pink-600);
  padding-left: 15px;
}

.profile-nav-logout {
  color: var(--brown) !important;
  font-family: var(--font-sans);
  font-size: 13.5px !important;
  font-weight: 500 !important;
  padding: 13px 18px !important;
}

.profile-nav-logout:hover {
  background: #fdf0ef !important;
  color: #9f1239 !important;
}

.profile-main { min-width: 0; }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow);
}

.stat-icon {
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--pink-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.stat-card strong {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.2;
  white-space: nowrap;
}

.stat-card span {
  font-size: 12px;
  color: var(--gray-600);
}

.checkout-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
}

.checkout-section h3 {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
}

.profile-main .form-group input[readonly] {
  background: var(--gray-100);
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
  .profile-stats { grid-template-columns: 1fr; }
}

/* ===== SHOP PAGE ===== */
.shop-page-header {
  background: var(--pink-100);
  padding: 3rem 2.5rem;
  text-align: center;
}

.shop-page-header h1 {
  font-family: var(--font);
  font-size: 2.5rem; font-weight: 700; color: var(--brown);
}

.shop-page-header p { color: var(--gray-600); margin-top: 0.5rem; font-size: 14px; }

/* ===== ALERTS ===== */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 1rem; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger,
.alert-error  { background: #fff1f2; color: #9f1239; border: 1px solid var(--pink-200); text-align: center; }

/* ===== RESPONSIVE (GLOBAL) ===== */
@media (max-width: 768px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-title { font-size: 2.5rem; }
  .category-img-grid { grid-template-columns: repeat(2, 1fr); }
  .navbar-nav { display: none; }
  .navbar-search { display: none; }
  .footer-inner { flex-direction: column; }
}