/* Lorie Fashion et Design - Premium E-commerce */
:root {
  --primary: #1a1a1a;
  --accent: #c9a86c;
  --accent-dark: #a88b4a;
  --bg: #faf9f7;
  --white: #ffffff;
  --text: #2c2c2c;
  --muted: #6b6b6b;
  --border: #e8e4dc;
  --success: #2e7d32;
  --danger: #c62828;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Header */
.top-bar {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: 0.3px;
}
.top-bar span { margin: 0 12px; }

header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
}
.logo-mark {
  width: 42px;
  height: 42px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.logo-text small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 28px;
}
nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}
nav a:hover, nav a.active { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  color: var(--primary);
  font-size: 22px;
  padding: 6px;
}
.cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #f5f0e6 0%, #ebe4d4 100%);
  padding: 80px 24px;
  text-align: center;
}
.hero-content {
  max-width: 720px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: #333; transform: translateY(-1px); }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* Sections */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-header p { color: var(--muted); }

/* Categories */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
}
.cat-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.cat-card .icon { font-size: 28px; margin-bottom: 10px; }
.cat-card h3 { font-size: 15px; font-weight: 600; }

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.product-img {
  aspect-ratio: 1;
  background: #f0ebe3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-img .placeholder {
  font-size: 48px;
  color: var(--accent);
  opacity: 0.5;
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}
.product-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-cat {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.product-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}
.product-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
}
.product-price .old {
  font-size: 14px;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 8px;
}
.product-actions {
  padding: 0 16px 16px;
}
.product-actions .btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
}

/* Cart drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: var(--white);
  box-shadow: -8px 0 30px rgba(0,0,0,0.12);
  z-index: 200;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { right: 0; }
.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h3 { font-size: 18px; }
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 70px;
  height: 70px;
  background: #f0ebe3;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 14px; margin-bottom: 4px; }
.cart-item-info .price { font-weight: 600; color: var(--accent); }
.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.qty-controls button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.overlay.show { opacity: 1; visibility: visible; }

/* Checkout modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
}
.modal.show { opacity: 1; visibility: visible; }
.modal-content {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.payment-option:has(input:checked) {
  border-color: var(--accent);
  background: #fdf8f0;
}

/* Footer */
footer {
  background: var(--primary);
  color: #ccc;
  padding: 48px 24px 24px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a, .footer-col p {
  display: block;
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 13px;
  color: #777;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 90;
  text-decoration: none;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
}
.empty-state .icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }

/* Responsive */
@media (max-width: 768px) {
  nav { display: none; }
  .mobile-toggle { display: block; }
  .header-inner { padding: 12px 16px; }
  .hero { padding: 48px 16px; }
  .section { padding: 40px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-body { padding: 12px; }
  .product-name { font-size: 14px; }
}

/* Admin specific */
.admin-body { background: #f5f5f5; }
.admin-header {
  background: var(--primary);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.admin-nav button {
  padding: 10px 18px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}
.admin-nav button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-card .value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}
.stat-card .label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
th { font-weight: 600; background: #faf9f7; }
.badge-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-new { background: #e3f2fd; color: #1565c0; }
.badge-confirmed { background: #e8f5e9; color: #2e7d32; }
.badge-shipped { background: #fff3e0; color: #ef6c00; }
.badge-delivered { background: #e8f5e9; color: #1b5e20; }
.badge-cancelled { background: #ffebee; color: #c62828; }

.login-box {
  max-width: 400px;
  margin: 80px auto;
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
}
.login-box h1 { margin-bottom: 8px; }
.login-box p { color: var(--muted); margin-bottom: 24px; }
