/* ==========================================================================
   DEVsmart - Feuille de style globale
   Thème : Bleu (#1a7fd4) / Blanc / Rouge (#e8202a) — d'après le logo
   ========================================================================== */

:root {
  --ds-blue: #1a7fd4;
  --ds-blue-dark: #0f5ca3;
  --ds-red: #e8202a;
  --ds-red-dark: #c4141d;
  --ds-white: #ffffff;
  --ds-dark: #14213d;
  --ds-gray: #6b7280;
  --ds-light: #f5f7fa;
  --ds-border: #e5e7eb;
  --ds-shadow: 0 10px 30px rgba(20, 33, 61, 0.08);
  --ds-shadow-lg: 0 20px 50px rgba(20, 33, 61, 0.15);
  --ds-radius: 14px;
  --ds-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ds-dark);
  background: var(--ds-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ---------- Utilitaires ---------- */
.text-blue { color: var(--ds-blue); }
.text-red { color: var(--ds-red); }
.bg-blue { background: var(--ds-blue); }
.bg-red { background: var(--ds-red); }
.section { padding: 70px 0; }
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.section-subtitle {
  text-align: center;
  color: var(--ds-gray);
  margin-bottom: 44px;
  font-size: 1.05rem;
}
.section-title .accent { color: var(--ds-red); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 26px; border-radius: 50px; font-weight: 600;
  font-size: 0.95rem; transition: var(--ds-transition); cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--ds-blue); color: #fff; }
.btn-primary:hover { background: var(--ds-blue-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26,127,212,0.35); }
.btn-red { background: var(--ds-red); color: #fff; }
.btn-red:hover { background: var(--ds-red-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(232,32,42,0.35); }
.btn-outline { background: transparent; border: 2px solid var(--ds-blue); color: var(--ds-blue); }
.btn-outline:hover { background: var(--ds-blue); color: #fff; }
.btn-white { background: #fff; color: var(--ds-blue); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--ds-shadow-lg); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.top-bar {
  background: var(--ds-dark); color: #fff; font-size: 0.82rem;
  padding: 7px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.top-bar a { color: #fff; opacity: 0.9; }
.top-bar a:hover { opacity: 1; color: #ffd; }
.top-bar .info-item { display: inline-flex; align-items: center; gap: 6px; }

.main-header {
  background: #fff; position: sticky; top: 0; z-index: 900;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.main-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 12px; padding-bottom: 12px;
}
.logo img { height: 54px; width: auto; }

.main-nav ul { display: flex; list-style: none; gap: 4px; align-items: center; }
.main-nav a {
  padding: 9px 13px; border-radius: 8px; font-weight: 500; font-size: 0.92rem;
  transition: var(--ds-transition); position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--ds-blue); background: rgba(26,127,212,0.08); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; gap: 4px; align-items: center; font-size: 0.85rem; }
.lang-switch button {
  background: none; padding: 4px 8px; border-radius: 6px; font-weight: 600; color: var(--ds-gray);
}
.lang-switch button.active { background: var(--ds-blue); color: #fff; }

.cart-btn { position: relative; background: none; font-size: 1.4rem; color: var(--ds-dark); padding: 6px; }
.cart-btn:hover { color: var(--ds-red); }
.cart-count {
  position: absolute; top: -4px; right: -6px; background: var(--ds-red); color: #fff;
  font-size: 0.7rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.burger { display: none; background: none; font-size: 1.6rem; color: var(--ds-dark); }

/* Mobile nav */
@media (max-width: 992px) {
  .main-nav {
    position: fixed; top: 0; right: -100%; width: 280px; max-width: 85%; height: 100vh;
    background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,0.15); z-index: 1000;
    padding: 70px 20px 20px; transition: right 0.35s ease; overflow-y: auto;
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { display: block; padding: 12px 14px; }
  .burger { display: block; }
  .nav-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 999;
    opacity: 0; visibility: hidden; transition: var(--ds-transition);
  }
  .nav-overlay.open { opacity: 1; visibility: visible; }
  .nav-close { position: absolute; top: 16px; right: 16px; background: none; font-size: 1.6rem; color: var(--ds-dark); }
}
.nav-close { display: none; }
@media (max-width: 992px) { .nav-close { display: block; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--ds-blue) 0%, var(--ds-blue-dark) 55%, var(--ds-red) 130%);
  padding: 80px 0 90px;
}
#hero-canvas { position: absolute; inset: 0; z-index: 0; opacity: 0.6; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero-greeting {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.18);
  padding: 7px 16px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; margin-bottom: 18px;
  backdrop-filter: blur(6px);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; line-height: 1.1; letter-spacing: -1px; margin-bottom: 16px; }
.hero h1 .hl { color: #ffe14d; }
.hero p { font-size: 1.1rem; opacity: 0.95; margin-bottom: 28px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual img { border-radius: 20px; box-shadow: var(--ds-shadow-lg); animation: float 5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-16px);} }
.hero-stats { display: flex; gap: 30px; margin-top: 34px; }
.hero-stats .stat b { font-size: 1.7rem; font-weight: 800; display: block; }
.hero-stats .stat span { font-size: 0.85rem; opacity: 0.9; }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; } .hero-visual { order: -1; max-width: 400px; margin: 0 auto; } }

/* ==========================================================================
   CATÉGORIES
   ========================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.cat-card {
  background: #fff; border-radius: var(--ds-radius); padding: 30px 20px; text-align: center;
  box-shadow: var(--ds-shadow); transition: var(--ds-transition); border: 1px solid transparent;
}
.cat-card:hover { transform: translateY(-8px); border-color: var(--ds-blue); box-shadow: var(--ds-shadow-lg); }
.cat-icon {
  width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ds-blue), var(--ds-red));
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.6rem;
}
.cat-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.cat-card .count { color: var(--ds-red); font-weight: 600; font-size: 0.85rem; }

/* ==========================================================================
   PRODUITS
   ========================================================================== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.product-card {
  background: #fff; border-radius: var(--ds-radius); overflow: hidden; box-shadow: var(--ds-shadow);
  transition: var(--ds-transition); display: flex; flex-direction: column; position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--ds-shadow-lg); }
.product-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #f0f2f5; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-thumb img { transform: scale(1.08); }
.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge { font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 50px; color: #fff; }
.badge-new { background: var(--ds-blue); }
.badge-promo { background: var(--ds-red); }
.badge-digital { background: #7c3aed; }
.badge-out { background: var(--ds-gray); }
.product-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 0.75rem; color: var(--ds-gray); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.product-title { font-size: 1rem; font-weight: 600; margin-bottom: 8px; line-height: 1.3; min-height: 2.6em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; margin-bottom: 12px; }
.product-price .now { font-size: 1.25rem; font-weight: 800; color: var(--ds-red); }
.product-price .old { font-size: 0.9rem; color: var(--ds-gray); text-decoration: line-through; }
.product-actions { display: flex; gap: 8px; }
.product-actions .btn { flex: 1; }
.add-cart-btn { background: var(--ds-blue); color: #fff; }
.add-cart-btn:hover { background: var(--ds-blue-dark); }

/* ==========================================================================
   RECHERCHE
   ========================================================================== */
.search-hero { background: #fff; padding: 26px 0; box-shadow: var(--ds-shadow); }
.search-box { position: relative; max-width: 760px; margin: 0 auto; }
.search-box input {
  width: 100%; padding: 16px 54px 16px 22px; font-size: 1.05rem; border: 2px solid var(--ds-border);
  border-radius: 50px; outline: none; transition: var(--ds-transition);
}
.search-box input:focus { border-color: var(--ds-blue); box-shadow: 0 0 0 4px rgba(26,127,212,0.12); }
.search-box .search-icon { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--ds-blue); font-size: 1.2rem; }

/* ==========================================================================
   POPUP / MODALS
   ========================================================================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,33,61,0.6); backdrop-filter: blur(4px);
  z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: var(--ds-transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: #fff; border-radius: 20px; max-width: 460px; width: 100%; padding: 36px 30px;
  position: relative; transform: scale(0.9); transition: var(--ds-transition); max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-lg { max-width: 620px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; background: #f0f2f5; width: 34px; height: 34px;
  border-radius: 50%; font-size: 1rem; color: var(--ds-dark); display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--ds-red); color: #fff; }
.modal-header { text-align: center; margin-bottom: 20px; }
.modal-header .modal-logo { height: 46px; margin: 0 auto 14px; }
.modal-header h2 { font-size: 1.5rem; font-weight: 800; }
.modal-header p { color: var(--ds-gray); margin-top: 8px; font-size: 0.95rem; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--ds-border); border-radius: 10px;
  font-size: 0.95rem; outline: none; transition: var(--ds-transition); font-family: inherit;
}
.form-control:focus { border-color: var(--ds-blue); box-shadow: 0 0 0 3px rgba(26,127,212,0.1); }
textarea.form-control { resize: vertical; min-height: 90px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; font-size: 0.88rem; }
.checkbox-row input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--ds-blue); flex-shrink: 0; }
.checkbox-row a { color: var(--ds-blue); font-weight: 600; }

/* ==========================================================================
   CART DRAWER
   ========================================================================== */
.cart-drawer {
  position: fixed; top: 0; right: -420px; width: 400px; max-width: 90%; height: 100vh; background: #fff;
  z-index: 2100; box-shadow: -12px 0 45px rgba(0,0,0,0.2); transition: right 0.4s ease;
  display: flex; flex-direction: column;
}
.cart-drawer.open { right: 0; }
.cart-drawer-header { padding: 20px; border-bottom: 1px solid var(--ds-border); display: flex; justify-content: space-between; align-items: center; }
.cart-drawer-header h3 { font-size: 1.2rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ds-border); }
.cart-item img { width: 66px; height: 66px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: 0.9rem; margin-bottom: 4px; }
.cart-item-info .price { color: var(--ds-red); font-weight: 700; font-size: 0.9rem; }
.qty-control { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-control button { width: 26px; height: 26px; border-radius: 6px; background: #f0f2f5; font-weight: 700; }
.qty-control button:hover { background: var(--ds-blue); color: #fff; }
.remove-item { background: none; color: var(--ds-gray); font-size: 1rem; align-self: flex-start; }
.remove-item:hover { color: var(--ds-red); }
.cart-footer { padding: 20px; border-top: 1px solid var(--ds-border); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 800; margin-bottom: 16px; }
.cart-empty { text-align: center; color: var(--ds-gray); padding: 50px 20px; }
.cart-empty i { font-size: 3rem; margin-bottom: 14px; color: var(--ds-border); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ds-dark); color: #cbd5e1; padding: 60px 0 24px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer .footer-logo { background: #fff; padding: 10px 14px; border-radius: 12px; display: inline-block; margin-bottom: 16px; }
.footer .footer-logo img { height: 42px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a:hover { color: var(--ds-blue); padding-left: 4px; }
.footer p { font-size: 0.9rem; line-height: 1.7; }
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; transition: var(--ds-transition);
}
.social-links a:hover { background: var(--ds-blue); transform: translateY(-3px); }
.footer-newsletter input { width: 100%; padding: 11px 14px; border-radius: 10px; border: none; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; text-align: center; font-size: 0.85rem; }
.footer-bottom .credit { color: var(--ds-red); font-weight: 600; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   TOAST
   ========================================================================== */
.toast-container { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ds-dark); color: #fff; padding: 13px 22px; border-radius: 50px; font-weight: 500;
  font-size: 0.9rem; box-shadow: var(--ds-shadow-lg); display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.3s ease; max-width: 90vw;
}
.toast.success { background: #16a34a; }
.toast.error { background: var(--ds-red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px);} to { opacity: 1; transform: translateY(0);} }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 800; width: 58px; height: 58px;
  background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.7rem; box-shadow: 0 6px 20px rgba(37,211,102,0.5); transition: var(--ds-transition);
  animation: pulse 2s infinite;
}
.wa-float:hover { transform: scale(1.1); color: #fff; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5);} 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0);} 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0);} }

/* ---------- Payment logos ---------- */
.pay-logos { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 16px 0; flex-wrap: wrap; }
.pay-logos .pay-item { background: #fff; border: 1.5px solid var(--ds-border); border-radius: 12px; padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.pay-logos img { height: 34px; width: auto; }
.pay-logos .num { font-weight: 700; font-size: 0.9rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 18px 0; font-size: 0.88rem; color: var(--ds-gray); }
.breadcrumb a:hover { color: var(--ds-blue); }
.breadcrumb .sep { margin: 0 8px; }

/* ---------- Loader ---------- */
.loader { text-align: center; padding: 60px 20px; color: var(--ds-gray); }
.spinner {
  width: 42px; height: 42px; border: 4px solid var(--ds-border); border-top-color: var(--ds-blue);
  border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg);} }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--ds-blue), var(--ds-blue-dark)); color: #fff;
  padding: 50px 0; text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.page-hero p { opacity: 0.9; margin-top: 8px; }

/* Responsive product page */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }
.gallery-main { border-radius: var(--ds-radius); overflow: hidden; box-shadow: var(--ds-shadow); aspect-ratio: 1; background: #f0f2f5; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform 0.4s ease; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; cursor: pointer; border: 2px solid transparent; }
.gallery-thumbs img.active { border-color: var(--ds-blue); }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--ds-border); font-size: 0.92rem; }
.spec-table td:first-child { font-weight: 600; color: var(--ds-dark); width: 45%; }

/* FAQ */
.faq-item { background: #fff; border-radius: 12px; margin-bottom: 12px; box-shadow: var(--ds-shadow); overflow: hidden; }
.faq-q { padding: 18px 22px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q i { transition: transform 0.3s ease; color: var(--ds-blue); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; color: var(--ds-gray); }
.faq-a-inner { padding: 0 22px 18px; }

/* Filters */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; align-items: center; }
.filter-bar select { padding: 10px 14px; border: 1.5px solid var(--ds-border); border-radius: 10px; font-family: inherit; outline: none; }
.filter-bar select:focus { border-color: var(--ds-blue); }
.chip { padding: 8px 16px; border-radius: 50px; background: #fff; border: 1.5px solid var(--ds-border); font-size: 0.88rem; font-weight: 500; cursor: pointer; transition: var(--ds-transition); }
.chip:hover, .chip.active { background: var(--ds-blue); color: #fff; border-color: var(--ds-blue); }

/* Admin */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--ds-dark); color: #fff; padding: 24px 16px; }
.admin-sidebar .logo-box { background: #fff; padding: 8px; border-radius: 10px; margin-bottom: 28px; text-align: center; }
.admin-sidebar .logo-box img { height: 38px; margin: 0 auto; }
.admin-menu button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 10px; background: none; color: #cbd5e1; font-weight: 500; margin-bottom: 4px; transition: var(--ds-transition); }
.admin-menu button:hover, .admin-menu button.active { background: var(--ds-blue); color: #fff; }
.admin-main { padding: 30px; background: var(--ds-light); overflow-y: auto; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-topbar h1 { font-size: 1.6rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 18px; margin-bottom: 30px; }
.stat-card { background: #fff; border-radius: 14px; padding: 22px; box-shadow: var(--ds-shadow); display: flex; align-items: center; gap: 16px; }
.stat-card .icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; }
.stat-card b { font-size: 1.6rem; display: block; }
.stat-card span { color: var(--ds-gray); font-size: 0.85rem; }
.data-table { width: 100%; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--ds-shadow); border-collapse: collapse; }
.data-table th { background: var(--ds-light); padding: 14px; text-align: left; font-size: 0.82rem; text-transform: uppercase; color: var(--ds-gray); }
.data-table td { padding: 12px 14px; border-top: 1px solid var(--ds-border); font-size: 0.9rem; vertical-align: middle; }
.data-table img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }
.table-wrap { overflow-x: auto; }
.icon-btn { background: #f0f2f5; width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; margin-right: 4px; }
.icon-btn.edit:hover { background: var(--ds-blue); color: #fff; }
.icon-btn.del:hover { background: var(--ds-red); color: #fff; }
@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }
