/* ===== Smart Reborn - Variables CSS ===== */
:root {
  --duration-fade: 0.3s;
  --duration-hover: 0.2s;
  --duration-slide: 0.3s;
  --duration-shimmer: 1.5s;
  --ease-decel: cubic-bezier(0, 0, 0.2, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-emphasized: cubic-bezier(0.2, 0, 0, 1);
}

/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #FAF7F4;
  color: #332E2A;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(253, 126, 20, 0.20);
  color: #332E2A;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F5F0EB;
}
::-webkit-scrollbar-thumb {
  background: #D9D2CB;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8C8279;
}

/* ===== Keyframes ===== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes btn-ripple {
  0% { box-shadow: 0 0 0 0 rgba(253, 126, 20, 0.4); }
  100% { box-shadow: 0 0 0 15px rgba(253, 126, 20, 0); }
}

/* ===== Utility Classes ===== */
.skeleton {
  background: linear-gradient(90deg, #EDE8E3 25%, #F5F0EB 50%, #EDE8E3 75%);
  background-size: 200% 100%;
  animation: shimmer var(--duration-shimmer) ease-in-out infinite;
  border-radius: 6px;
}

.glass {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid #EDE8E3;
}

.nav-active {
  color: #FD7E14 !important;
  background: rgba(253, 126, 20, 0.06);
  position: relative;
}
.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #FD7E14;
  border-radius: 1px;
}

.sidebar-nav-active {
  background: rgba(253, 126, 20, 0.08) !important;
  color: #FD7E14 !important;
  border-right: 3px solid #FD7E14;
}

.hover-lift {
  transition: transform var(--duration-hover) var(--ease-standard),
              box-shadow var(--duration-hover) var(--ease-standard);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

.animate-fade-in {
  animation: fadeIn var(--duration-fade) var(--ease-decel) forwards;
}

.animate-scale-in {
  animation: scaleIn var(--duration-slide) var(--ease-decel) forwards;
}

.animate-slide-up {
  animation: slideUp var(--duration-slide) var(--ease-decel) forwards;
}

.transition-smooth {
  transition: all var(--duration-hover) var(--ease-standard);
}

/* ===== Toast ===== */
.toast-enter {
  animation: slideInRight 0.3s var(--ease-decel) forwards;
}
.toast-exit {
  animation: fadeIn 0.3s var(--ease-standard) reverse forwards;
}

/* ===== Ripple button ===== */
.btn-ripple {
  animation: btn-ripple 0.6s var(--ease-decel);
}

/* ===== Product badge ===== */
.condition-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

/* ===== Price display ===== */
.price-current {
  font-size: 1.5rem;
  font-weight: 700;
  color: #E8590C;
}
.price-original {
  font-size: 0.875rem;
  color: #ADB5BD;
  text-decoration: line-through;
}

/* ===== Star rating ===== */
.stars {
  color: #F59E0B;
  font-size: 0.875rem;
}

/* ===== Cart count badge ===== */
.cart-count-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #FD7E14;
  color: #fff;
  font-size: 0.625rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ===== Section spacing ===== */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 1.5rem;
}

/* ===== Steps progress ===== */
.step-active {
  background: #FD7E14 !important;
  border-color: #FD7E14 !important;
}
.step-done {
  background: #0CA678 !important;
  border-color: #0CA678 !important;
}
.step-pending {
  background: #DEE2E6 !important;
  border-color: #CED4DA !important;
}

/* ===== Admin sidebar ===== */
.admin-sidebar {
  background: #FFFFFF;
  border-right: 1px solid #EDE8E3;
}
.admin-sidebar a {
  display: block;
  padding: 0.75rem 1rem;
  color: #495057;
  transition: all 0.2s;
  border-radius: 8px;
  margin-bottom: 2px;
  font-size: 0.875rem;
}
.admin-sidebar a:hover {
  background: rgba(253, 126, 20, 0.06);
  color: #FD7E14;
}

/* ===== KPI Card ===== */
.kpi-card {
  background: #FFFFFF;
  border: 1px solid #EDE8E3;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.2s;
}
.kpi-card:hover {
  border-color: rgba(253, 126, 20, 0.25);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

/* ===== Status badges ===== */
.status-pending { background: #F59E0B; color: #fff; }
.status-confirmed { background: #228BE6; color: #fff; }
.status-shipped { background: #228BE6; color: #fff; }
.status-delivered { background: #0CA678; color: #fff; }
.status-cancelled { background: #E03131; color: #fff; }
.status-refunded { background: #868E96; color: #fff; }

/* ===== Cookie banner ===== */
.cookie-banner {
  background: #FFFFFF;
  border-top: 1px solid #EDE8E3;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.05);
}
