/* ============================================================
   MAZAR CAFÉ - Dark Coffee Aesthetic
   ============================================================ */

:root {
  --bg-dark: #1a1410;
  --bg-darker: #120d0a;
  --bg-card: #241b15;
  --bg-card-hover: #2e221a;
  --coffee-brown: #6f4e37;
  --coffee-light: #a67c52;
  --gold: #d4a24c;
  --gold-light: #f0c975;
  --cream: #f5e8d8;
  --text-main: #ecdfd0;
  --text-muted: #a89a8a;
  --danger: #e05c5c;
  --success: #6fbf73;
  --warning: #e0b05c;
  --info: #5ca4e0;
  --border-color: #3a2c20;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(212, 162, 76, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(111, 78, 55, 0.08) 0%, transparent 40%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--cream); }

/* ---------- NAVBAR ---------- */
.navbar {
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border-color);
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.navbar .brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.navbar-links a {
  color: var(--text-main);
  font-size: 0.95rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}

.navbar-links a:hover, .navbar-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.cart-badge {
  background: var(--gold);
  color: var(--bg-darker);
  border-radius: 50%;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.3rem;
}

/* ---------- LAYOUT ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
  flex: 1;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
  color: #FFFFFF;
}

.page-header p { 
  color: #E5E5E5; 
}

/* ---------- CARDS ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  color: #FFFFFF;
}

.card p {
  color: #E5E5E5;
}

.card strong {
  color: #FFFFFF;
}

.card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.6); }

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* ---------- CUSTOM NAVBAR ---------- */
.custom-navbar {
  background: #1a1a1a;
  border: none;
  padding: 1rem 0;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.custom-navbar .navbar-brand {
  font-family: 'Playfair Display', serif;
  color: #C8A15A;
  font-size: 1.55rem;
  letter-spacing: 0.06em;
}

.navbar-logo {
  height: 50px;
  width: auto;
  display: inline-block;
}

.login-logo {
  max-width: 220px;
  height: auto;
}

@media (max-width: 768px) {
  .navbar-logo {
    height: 40px;
  }
  .login-logo {
    max-width: 180px;
  }
}

.custom-navbar .navbar-toggler {
  border-color: rgba(200, 161, 90, 0.3);
}

.custom-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(200,161,90,0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.custom-navbar .nav-link,
.custom-navbar .auth-links .nav-link {
  color: #eee;
  font-size: 0.95rem;
  transition: color .25s, transform .25s;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
  color: #C8A15A;
  transform: translateY(-1px);
}

.custom-navbar .dropdown-menu {
  background: rgba(16, 16, 16, 0.96);
  border: 1px solid rgba(200, 161, 90, 0.18);
  border-radius: 12px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  animation: fadeInDown .25s ease;
}

.custom-navbar .dropdown-item {
  color: #f2f0ea;
  transition: background .2s, color .2s;
}

.custom-navbar .dropdown-item:hover {
  background: rgba(200, 161, 90, 0.12);
  color: #fff;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-links .btn-outline {
  border-color: rgba(200, 161, 90, 0.5);
  color: #eee;
}

.auth-links .btn-outline:hover {
  color: #fff;
  border-color: #C8A15A;
  background: rgba(200, 161, 90, 0.1);
}

.footer-container {
  padding: 1.5rem 0;
  color: #ccc;
}

.footer-logo {
  height: 40px;
  width: auto;
}

@media (max-width: 768px) {
  .footer-logo {
    height: 32px;
  }
}

/* ---------- HERO SECTIONS ---------- */
.hero {
  background-size: cover;
  background-position: center;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(200, 161, 90, 0.18), transparent 22%),
              radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.04), transparent 35%);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 720px;
}

.hero-copy .eyebrow {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #C8A15A;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-copy p {
  max-width: 680px;
  color: #dcd2c3;
  font-size: 1rem;
  margin-bottom: 1.8rem;
}

.hero-secondary { background-image: linear-gradient(180deg, rgba(26,26,26,.95), rgba(15,15,15,.95)), url('https://images.unsplash.com/photo-1511920170033-f8396924c348?auto=format&fit=crop&w=1400&q=80'); }
.hero-fournisseurs { background-image: linear-gradient(180deg, rgba(26,26,26,.9), rgba(10,10,10,.9)), url('https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=1400&q=80'); }
.hero-paiement { background-image: linear-gradient(180deg, rgba(26,26,26,.9), rgba(10,10,10,.9)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1400&q=80'); }

/* ---------- SECTION STYLES ---------- */
.section-intro {
  padding: 4rem 0;
}

.feature-box,
.supplier-card,
.payment-card,
.secure-card {
  background: rgba(26, 26, 26, 0.95);
  border: 1px solid rgba(200, 161, 90, 0.15);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transition: transform .25s, box-shadow .25s;
}

.feature-box:hover,
.supplier-card:hover,
.payment-card:hover,
.secure-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.35);
}

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

@media (max-width: 980px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.feature-box {
  min-height: 260px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(200, 161, 90, 0.14);
  color: #C8A15A;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.supplier-card {
  overflow: hidden;
}

.supplier-image {
  height: 240px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.supplier-body h3,
.payment-card h3 { margin-top: 0; }

.supplier-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: #b8aa96;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.supplier-meta span,
.secure-icons span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.payment-icon {
  min-width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(200, 161, 90, 0.14);
  display: grid;
  place-items: center;
  color: #C8A15A;
  font-size: 1.8rem;
}

.payment-card p,
.feature-box p,
.section-intro p {
  color: #d2c8b8;
}

.secure-panel { padding: 3rem 0; }

.secure-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.secure-icons {
  display: grid;
  gap: 1rem;
}

.secure-icons span {
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 900px) {
  .secure-card { grid-template-columns: 1fr; }
}

/* ---------- PRODUCT CARD UPDATES ---------- */
.product-card img { height: 220px; }
.product-card-body { padding: 1.4rem; }
.product-card-body h3 { font-size: 1.2rem; }
.product-card-body .desc { font-size: 0.95rem; }
.btn-primary.btn-lg { padding: 0.95rem 1.8rem; font-size: 1rem; }

/* ---------- RESPONSIVE IMPROVEMENTS ---------- */
@media (max-width: 768px) {
  .navbar .container-fluid { padding-left: 1rem; padding-right: 1rem; }
  .custom-navbar .nav-link { font-size: 0.9rem; }
  .hero { padding: 4rem 0 3rem; }
  .section-intro { padding: 2.5rem 0; }
}

/* ---------- PRODUCT CARD ---------- */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(212, 162, 76, 0.15);
  border-color: var(--gold);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-darker);
}

.product-card .placeholder-img {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--coffee-brown), var(--bg-darker));
  font-size: 2.5rem;
}

.product-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.product-card-body h3 { font-size: 1.1rem; margin: 0; }

.product-card-body .desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  flex: 1;
}

.price-tag {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.2rem;
}

.stock-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
}

.stock-ok { background: rgba(111, 191, 115, 0.15); color: var(--success); }
.stock-low { background: rgba(224, 176, 92, 0.15); color: var(--warning); }
.stock-out { background: rgba(224, 92, 92, 0.15); color: var(--danger); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.3rem;
  border-radius: 8px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}

.btn-primary { background: var(--gold); color: var(--bg-darker); }
.btn-primary:hover { background: var(--gold-light); color: var(--bg-darker); transform: translateY(-1px); }

.btn-outline { background: transparent; border: 2px solid #D4AF37; color: #D4AF37; padding: 0.5rem 1rem; border-radius: 8px; }
.btn-outline:hover { background: #D4AF37; color: #000; }
.btn-outline:hover { background: rgba(212, 162, 76, 0.1); color: var(--gold-light); }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #c94a4a; }

.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* ---------- FORMS ---------- */
.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color .2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
}

textarea.form-control { resize: vertical; min-height: 100px; }

.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 200px; }

.auth-box {
  max-width: 420px;
  margin: 3rem auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.auth-box h2 { text-align: center; margin-bottom: 0.3rem; }
.auth-box .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 2rem; font-size: 0.9rem; }
.auth-box .switch-link { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-muted); }

/* ---------- TABLES ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: #1E1E1E;
  border-radius: var(--radius);
  overflow: hidden;
}

th, td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
  color: #FFFFFF;
}

th {
  background: #2A2A2A;
  color: #FFFFFF;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

tr:hover td { background: rgba(255,255,255,0.05); }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.08); }

/* ---------- BADGES / STATUS ---------- */
.badge {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

.badge-admin { background: #D4AF37; color: #000; }
.badge-client { background: #5ca4e0; color: #fff; }
.badge-attente { background: #F4B400; color: #000; }
.badge-confirmee { background: #28A745; color: #fff; }
.badge-preparation { background: #D4AF37; color: #000; }
.badge-livree { background: #28A745; color: #fff; }
.badge-annulee { background: #DC3545; color: #fff; }
.badge-en_attente { background: #F4B400; color: #000; }
.badge-en_preparation { background: #D4AF37; color: #000; }
.badge-expediee { background: #28A745; color: #fff; }

/* ---------- ALERTS / FLASH ---------- */
.flash-container {
  max-width: 1200px;
  margin: 1rem auto 0;
  padding: 0 2rem;
}

.alert {
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  border-left: 4px solid;
}

.alert-success { background: rgba(111, 191, 115, 0.1); border-color: var(--success); color: var(--success); }
.alert-danger { background: rgba(224, 92, 92, 0.1); border-color: var(--danger); color: var(--danger); }
.alert-warning { background: rgba(224, 176, 92, 0.1); border-color: var(--warning); color: var(--warning); }
.alert-info { background: rgba(92, 164, 224, 0.1); border-color: var(--info); color: var(--info); }

/* ---------- DASHBOARD STATS ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(212, 162, 76, 0.12);
}

.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--cream); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- ADMIN LAYOUT ---------- */
.admin-layout { display: flex; min-height: calc(100vh - 70px); }

.admin-sidebar {
  width: 240px;
  background: var(--bg-darker);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 0;
  flex-shrink: 0;
}

.admin-sidebar a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-left: 3px solid transparent;
}

.admin-sidebar a:hover { background: var(--bg-card); color: var(--gold); }
.admin-sidebar a.active { background: var(--bg-card); color: var(--gold); border-left-color: var(--gold); }

.admin-content { flex: 1; padding: 2rem; overflow-x: auto; }

/* ---------- HERO ---------- */
.hero {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(180deg, rgba(111,78,55,0.15), transparent);
  border-bottom: 1px solid var(--border-color);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero.hero-section {
  min-height: 100vh;
  height: 100vh;
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-section .hero-content {
  max-width: 960px;
  padding: 0 1.5rem;
  animation: fadeInDown .9s ease forwards;
}

.hero-section .hero-label {
  display: inline-block;
  color: var(--gold);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.hero-section h1 {
  color: #fff;
  font-size: clamp(3rem, 6vw, 5.2rem);
  margin-bottom: 1rem;
  line-height: 1.02;
}

.hero-section p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-section .btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d4a24c, #f0c975);
  color: #111;
  border: none;
  padding: 1rem 2rem;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  transition: transform .25s, box-shadow .25s;
}

.hero-section .btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 3rem;
}

/* ---------- CART ---------- */
.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.cart-item img, .cart-item .placeholder-img-sm {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.cart-item .placeholder-img-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--coffee-brown);
  font-size: 1.5rem;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-control input {
  width: 50px;
  text-align: center;
  padding: 0.3rem;
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-top: 2px solid var(--gold);
  margin-top: 1rem;
  color: #FFFFFF;
}

/* ---------- MISC ---------- */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; }

.filters-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.category-pill {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.category-pill.active, .category-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- MES COMMANDES PAGE IMPROVEMENTS ---------- */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: #E5E5E5;
}

.empty-state .icon { 
  font-size: 3rem; 
  margin-bottom: 1rem;
}

.empty-state p {
  color: #E5E5E5;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

table td {
  color: #FFFFFF;
}

table a.btn {
  background: #D4AF37;
  color: #000;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
}

table a.btn:hover {
  background: #E5C158;
  color: #000;
}

/* Ensure all commande-related text is visible */
.commande-id, .commande-date, .commande-total, .commande-status {
  color: #FFFFFF;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 2rem 0 1.5rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

@media (max-width: 768px) {
  .navbar { flex-direction: column; gap: 1rem; padding: 1rem; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .hero h1 { font-size: 2rem; }
}

/* ============================================================
   AJOUTS SPÉCIFIQUES DJANGO (Shop filters, Blog, Boutiques)
   ============================================================ */

.shop-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.filters-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}

.filters-sidebar h3 {
  font-size: 1rem;
  margin: 0 0 1rem;
}

.filters-sidebar .filter-group {
  margin-bottom: 1.3rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--border-color);
}

.filters-sidebar .filter-group:last-child { border-bottom: none; }

.filters-sidebar label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.filters-sidebar select,
.filters-sidebar input {
  width: 100%;
  padding: 0.5rem;
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  font-size: 0.85rem;
}

.shop-results { flex: 1; }

.intensite-bar {
  display: flex;
  gap: 3px;
  margin: 0.3rem 0;
}

.intensite-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
}

.intensite-dot.filled { background: var(--gold); }

/* Blog */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s;
}

.blog-card:hover { transform: translateY(-4px); border-color: var(--gold); }

.blog-card img, .blog-card .placeholder-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.blog-card-body { padding: 1.2rem; }
.blog-card-body h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.blog-meta { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 0.6rem; }

.article-content {
  line-height: 1.8;
  color: var(--text-main);
  font-size: 1rem;
}

.article-content p { margin-bottom: 1.2rem; }

/* Boutiques (store locator) */
.store-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.store-card h3 { margin: 0 0 0.8rem; }
.store-card .info-line { display: flex; gap: 0.6rem; margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.9rem; }

.map-embed {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 8px;
  margin-top: 1rem;
  filter: grayscale(0.3) invert(0.92) contrast(0.9);
}

/* Product detail extra fields */
.product-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 1.2rem 0;
}

.meta-item {
  background: var(--bg-darker);
  border-radius: 8px;
  padding: 0.7rem 1rem;
}

.meta-item .label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }
.meta-item .value { font-size: 0.95rem; color: var(--cream); font-weight: 600; }

@media (max-width: 900px) {
  .shop-layout { flex-direction: column; }
  .filters-sidebar { width: 100%; position: static; }
}
