/* ═══════════════════════════════════════════
   MOBILE STORE — Professional Theme
   ═══════════════════════════════════════════ */

:root {
  --bg: #f0f2f5;
  --card: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --secondary: #0ea5e9;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --ok: #10b981;
  --ok-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: .2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; display: block; }

/* ── Layout ── */
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ── Topbar / Navbar — No-IP style ── */
.site-header {
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  border-bottom: 1px solid #f1f5f9;
  transition: box-shadow .3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo {
  color: var(--text) !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  animation: logoEntrance .7s cubic-bezier(.22,1,.36,1) both;
}

.logo:hover { color: var(--primary) !important; }

.logo-icon {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  color: #fff;
  font-size: 1.1rem;
  animation: logoIconPop .6s cubic-bezier(.22,1,.36,1) .1s both;
}

/* Logo icon spin on hover */
.logo:hover .logo-icon {
  animation: logoSpin .5s cubic-bezier(.22,1,.36,1);
}
.logo:hover .fa-stack {
  animation: logoSpin .5s cubic-bezier(.22,1,.36,1);
}

.logo-wrench {
  position: absolute;
  font-size: .55rem;
  bottom: 2px;
  right: 2px;
  color: #fbbf24;
  filter: drop-shadow(0 0 1px rgba(0,0,0,.3));
}

.logo-text {
  font-size: 1.25rem;
  animation: logoTextSlide .6s cubic-bezier(.22,1,.36,1) .2s both;
}

/* ── Logo Animations ── */
@keyframes logoEntrance {
  0% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes logoIconPop {
  0% { opacity: 0; transform: scale(.3) rotate(-45deg); }
  60% { transform: scale(1.12) rotate(5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes logoTextSlide {
  0% { opacity: 0; transform: translateX(-12px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes logoSpin {
  0% { transform: rotate(0) scale(1); }
  40% { transform: rotate(-15deg) scale(1.15); }
  100% { transform: rotate(0) scale(1); }
}

/* ── Hamburger ── */
.burger {
  display: none;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: background .2s;
}

.burger:hover { background: #f1f5f9; }

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Main nav ── */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.main-nav .nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all .2s;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  animation: navFadeIn .5s cubic-bezier(.22,1,.36,1) both;
}
.main-nav > :nth-child(1) { animation-delay: .15s }
.main-nav > :nth-child(2) { animation-delay: .22s }
.main-nav > :nth-child(3) { animation-delay: .29s }
.main-nav > :nth-child(4) { animation-delay: .36s }
.main-nav > :nth-child(5) { animation-delay: .43s }
.main-nav > :nth-child(6) { animation-delay: .50s }
.main-nav > :nth-child(7) { animation-delay: .57s }
.main-nav > :nth-child(8) { animation-delay: .64s }

@keyframes navFadeIn {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.main-nav .nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.main-nav .nav-link i:first-child {
  font-size: .85rem;
  color: var(--text-light);
  transition: color .2s, transform .3s;
}

.main-nav .nav-link:hover i:first-child {
  color: var(--primary);
  transform: scale(1.2);
}

.mobile-auth-links { display: none; }

/* ── Dropdown ── */
.nav-dropdown {
  position: relative;
}

.dd-arrow {
  margin-left: 2px;
  transition: transform .3s;
  color: var(--text-light);
}

.nav-dropdown:hover .dd-arrow,
.nav-dropdown.open .dd-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.04);
  padding: 8px;
  min-width: 300px;
  opacity: 0;
  visibility: hidden;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  z-index: 200;
  pointer-events: none;
}

.dropdown-right {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(10px);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-dropdown:hover .dropdown-right,
.nav-dropdown.open .dropdown-right {
  transform: translateX(0) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: all .15s;
  font-size: .9rem;
}

.dropdown-item:hover {
  background: #f8fafc;
  color: var(--primary);
}

.dropdown-item i { width: 18px; text-align: center; color: var(--text-light); font-size: .9rem; }
.dropdown-item:hover i { color: var(--primary); }

.dd-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}

.dd-icon.blue { background: #e0f2fe; color: #0284c7; }
.dd-icon.green { background: #ecfdf5; color: #059669; }
.dd-icon.purple { background: #eef2ff; color: #4f46e5; }
.dd-icon.orange { background: #fff7ed; color: #ea580c; }
.dd-icon.red { background: #fef2f2; color: #dc2626; }

.dd-title {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  line-height: 1.3;
}

.dd-desc {
  display: block;
  font-size: .8rem;
  color: var(--text-light);
  line-height: 1.3;
  margin-top: 2px;
}

.dropdown-item:hover .dd-title { color: var(--primary); }

/* Account dropdown extras */
.dd-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.dd-avatar { color: var(--text-light); }

.dd-user-name {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
}

.dd-user-email {
  display: block;
  font-size: .78rem;
  color: var(--text-light);
}

.dd-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 8px;
}

.dd-logout { color: var(--danger) !important; }
.dd-logout i { color: var(--danger) !important; }
.dd-logout:hover { background: #fef2f2 !important; }

/* ── Right actions ── */
.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: all .2s;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  font-family: inherit;
  gap: 6px;
  padding: 0;
}

.icon-btn:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.account-trigger {
  width: auto;
  padding: 6px 12px;
  gap: 8px;
}

.account-name {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--danger);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 50px;
  padding: 0 4px;
  pointer-events: none;
}

.btn-signin, .btn-signup {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-signin {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-signin:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-signup {
  background: var(--primary);
  color: #fff;
}

.btn-signup:hover {
  background: var(--primary-hover);
  color: #fff;
}

/* Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.3);
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  z-index: 999;
  pointer-events: none;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.show-mobile-only { display: none; }

/* ── Mobile auth button (guest) ── */
.btn-mobile-login {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 600;
  background: var(--primary);
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .2s;
}

.btn-mobile-login:hover {
  background: var(--primary-hover);
  color: #fff !important;
}

.btn-mobile-login i {
  font-size: .85rem;
}

/* ── Body offset for fixed header ── */
body { padding-top: 64px; }

/* ── Responsive header ── */
@media (max-width: 991px) {
  .burger { display: flex; }
  .hide-mobile { display: none !important; }
  .show-mobile-only { display: flex !important; }
  .btn-mobile-login { display: inline-flex !important; }

  .main-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 80px 16px 24px;
    gap: 2px;
    z-index: 1001;
    overflow-y: auto;
    transition: left .35s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 0 30px rgba(0,0,0,.1);
  }

  .main-nav.open { left: 0; }

  .main-nav .nav-link { justify-content: flex-start; padding: 12px 16px; font-size: .95rem; border-radius: 10px; }
  .main-nav .nav-link:hover { background: var(--primary-light); }

  .mobile-auth-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }

  .btn-signin-mobile, .btn-signup-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
  }

  .btn-signin-mobile { color: var(--text); background: #f8fafc; }
  .btn-signin-mobile:hover { color: var(--primary); }
  .btn-signup-mobile { background: var(--primary); color: #fff; justify-content: center; }
  .btn-signup-mobile:hover { background: var(--primary-hover); color: #fff; }

  /* Dropdown on mobile = toggle */
  .nav-dropdown { width: 100%; }
  .dropdown-trigger { width: 100%; justify-content: flex-start; }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border-radius: 10px;
    background: #f8fafc;
    min-width: 0;
    margin-top: 4px;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: max-height .3s ease, padding .3s;
  }

  .dropdown-right {
    transform: none;
  }

  .nav-dropdown.open .dropdown-menu {
    max-height: 500px;
    padding: 8px;
    transform: none;
  }

  .account-dropdown .dropdown-menu { background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.15); position: absolute; top: calc(100% + 4px); right: 0; left: auto; min-width: 240px; max-height: none; padding: 8px; }
}

/* ── Hero Section (legacy) ── */
.hero {
  background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
  color: #fff;
  padding: 56px 0;
  margin-bottom: 40px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -.5px;
}

.hero p {
  font-size: 1.15rem;
  opacity: .9;
  max-width: 600px;
  margin: 0 auto 24px;
}

.hero .hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero .btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--transition);
  text-decoration: none;
}

.hero .btn-hero.primary { background: #fff; color: var(--primary); }
.hero .btn-hero.primary:hover { background: #f0f0ff; transform: translateY(-1px); }
.hero .btn-hero.outline { border: 2px solid rgba(255,255,255,.5); color: #fff; }
.hero .btn-hero.outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ── Hero Slider / Carousel ── */
.hero-slider {
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  border-radius: 0;
}

.hero-slider .slides-track {
  display: flex;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}

.hero-slider .slide {
  min-width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 80px 24px;
  overflow: hidden;
}

.hero-slider .slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.18);
  z-index: 1;
}

.hero-slider .slide-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: slideContentIn .7s ease .2s both;
}

@keyframes slideContentIn {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-slider .slide-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255,255,255,.25);
}

.hero-slider .slide-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.hero-slider .slide-desc {
  font-size: 1.15rem;
  opacity: .92;
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-slider .slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.5);
  backdrop-filter: blur(4px);
  transition: all .25s;
}

.hero-slider .slide-cta:hover {
  background: #fff;
  color: #1e293b;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,.2);
}

/* Slide backgrounds */
.slide--welcome   { background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%); }
.slide--mobile    { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); }
.slide--pc        { background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%); }
.slide--repair    { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }
.slide--frp       { background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%); }
.slide--dicloud   { background: linear-gradient(135deg, #1e293b 0%, #475569 100%); }
.slide--reseau    { background: linear-gradient(135deg, #dc2626 0%, #f97316 100%); }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: 2px solid rgba(255,255,255,.6);
  cursor: pointer;
  transition: all .3s;
  padding: 0;
}

.slider-dots .dot.active,
.slider-dots .dot:hover {
  background: #fff;
  border-color: #fff;
  transform: scale(1.2);
}

/* Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s;
}

.slider-arrow:hover {
  background: rgba(255,255,255,.35);
  border-color: #fff;
  transform: translateY(-50%) scale(1.08);
}

.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

/* Progress bar */
.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255,255,255,.7);
  z-index: 10;
  transition: width linear;
}

/* Responsive slider */
@media (max-width: 768px) {
  .hero-slider .slide { padding: 50px 20px; }
  .hero-slider .slide-icon { font-size: 2rem; width: 60px; height: 60px; }
  .hero-slider .slide-title { font-size: 1.6rem; }
  .hero-slider .slide-desc { font-size: .95rem; margin-bottom: 20px; }
  .hero-slider .slide-cta { padding: 12px 28px; font-size: .9rem; }
  .slider-arrow { width: 38px; height: 38px; font-size: 1rem; }
  .slider-arrow.prev { left: 8px; }
  .slider-arrow.next { right: 8px; }
}

/* ── Section headings ── */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i { color: var(--primary); font-size: 1.2rem; }

h1 { font-size: 1.75rem; font-weight: 700; margin: 28px 0 8px; }
h2 { font-size: 1.35rem; font-weight: 700; margin: 32px 0 16px; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 8px; }

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 14px 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card h3 { color: var(--text); }

.card .price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin: 12px 0;
}

.card .price small { font-size: .75rem; font-weight: 400; color: var(--text-light); }

.card .meta { font-size: .85rem; color: var(--text-light); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.card .meta i { width: 16px; text-align: center; }

.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
}

.stock-badge.in-stock { background: #ecfdf5; color: #059669; }
.stock-badge.out-stock { background: #fef2f2; color: #dc2626; }

/* ── Grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ── Stats grid (admin dashboard) ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin: 0 auto 12px;
}

.stat-card .stat-icon.purple { background: #eef2ff; color: #4f46e5; }
.stat-card .stat-icon.blue { background: #e0f2fe; color: #0284c7; }
.stat-card .stat-icon.green { background: #ecfdf5; color: #059669; }
.stat-card .stat-icon.orange { background: #fff7ed; color: #ea580c; }

.stat-card h3 { font-size: .85rem; color: var(--text-light); font-weight: 500; margin-bottom: 4px; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--text); }

/* ── Forms ── */
input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: .9rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

input::placeholder, textarea::placeholder { color: #94a3b8; }
textarea { min-height: 110px; resize: vertical; }

label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

/* ── Buttons ── */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

button { background: var(--primary); color: #fff; }
button:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
button:active { transform: translateY(0); }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

button.danger { background: var(--danger); }
button.danger:hover { background: var(--danger-hover); }

button.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
button.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.small-btn { width: auto; padding: 8px 16px; font-size: .8rem; border-radius: 8px; }

.cart-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.cart-actions .cart-qty {
  width: 70px;
  margin: 0;
  text-align: center;
  font-weight: 600;
}

.cart-actions .add-cart-btn {
  flex: 1;
  width: auto;
  margin: 0;
}

/* ── Alerts ── */
.alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin: 16px 0;
  font-size: .9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ── Tables ── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: 16px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: .875rem;
}

thead { background: #f8fafc; }

th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-light);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 2px solid var(--border);
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text);
}

tbody tr { transition: background var(--transition); }
tbody tr:hover { background: #f8fafc; }
tbody tr:last-child td { border-bottom: none; }

/* ── Inline forms ── */
.inline-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.inline-form input, .inline-form select { width: auto; margin: 0; padding: 7px 10px; font-size: .8rem; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .3px;
}

.badge.pending { background: var(--warning-light); color: #b45309; }
.badge.done { background: var(--ok-light); color: #047857; }

/* ── Invoice links ── */
.invoice-links { display: inline-flex; gap: 6px; }

.invoice-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-light);
  border: 1px solid #c7d2fe;
  color: var(--primary);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  transition: all var(--transition);
}

.invoice-links a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Muted text ── */
.muted { color: var(--text-light); font-size: .9rem; }

/* ── Admin nav links ── */
.admin-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.admin-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.admin-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* ── Footer ── */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  margin-top: 60px;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer-col p { font-size: .85rem; line-height: 1.7; }
.footer-col a { color: #94a3b8; font-size: .85rem; display: block; padding: 4px 0; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  text-align: center;
  font-size: .8rem;
  color: #475569;
}

/* ── Auth form wrapper ── */
.auth-wrapper {
  max-width: 440px;
  margin: 48px auto;
}

.auth-wrapper .card { padding: 32px; }

.auth-wrapper .auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-wrapper .auth-header .auth-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
  background: var(--primary-light);
  color: var(--primary);
}

.auth-wrapper .auth-header h1 {
  font-size: 1.5rem;
  margin: 0 0 4px;
}

.auth-wrapper .auth-header p {
  color: var(--text-light);
  font-size: .9rem;
}

.auth-wrapper .auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: .875rem;
  color: var(--text-light);
}

/* ── Page header ── */
.page-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
}

.page-header .page-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.page-header .page-icon.purple { background: #eef2ff; color: #4f46e5; }
.page-header .page-icon.blue { background: #e0f2fe; color: #0284c7; }
.page-header .page-icon.green { background: #ecfdf5; color: #059669; }
.page-header .page-icon.orange { background: #fff7ed; color: #ea580c; }
.page-header .page-icon.red { background: #fef2f2; color: #dc2626; }

.page-header h1 { margin: 0; font-size: 1.5rem; }
.page-header p { color: var(--text-light); font-size: .875rem; margin: 2px 0 0; }

/* ── Cart totals ── */
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin: 20px 0;
}

.cart-total .total-label { font-size: .9rem; color: var(--text-light); }
.cart-total .total-amount { font-size: 1.5rem; font-weight: 800; color: var(--primary); }

.cart-buttons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.cart-buttons button { width: auto; flex: 1; }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-state i {
  font-size: 3rem;
  color: var(--border);
  margin-bottom: 16px;
}

.empty-state p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.empty-state a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}

.empty-state a:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  color: #fff;
}

/* ── Section sub-heading ── */
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.section-heading i { color: var(--primary); font-size: 1rem; }

/* ── Page top spacing ── */
main.container { padding-top: 32px; padding-bottom: 40px; }

/* ── Badge category ── */
.badge-cat {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
}

/* ── Nav divider ── */
.nav-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, .2);
  margin: 0 4px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.75rem; }
  .hero { padding: 36px 0; }
  .hero-slider .slide { padding: 50px 20px; }
  .hero-slider .slide-icon { font-size: 2rem; width: 60px; height: 60px; }
  .hero-slider .slide-title { font-size: 1.6rem; }
  .hero-slider .slide-desc { font-size: .95rem; margin-bottom: 20px; }
  .hero-slider .slide-cta { padding: 12px 28px; font-size: .9rem; }
  .slider-arrow { width: 38px; height: 38px; font-size: 1rem; }
  .slider-arrow.prev { left: 8px; }
  .slider-arrow.next { right: 8px; }
  .grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .logo-text { font-size: 1.05rem; }
}
