/* =====================================================================
   SkillDeal — Premium Design System v3
   Responsive-first. No horizontal overflow. Mobile-perfect.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* ---- Reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--sd-bg);
  color: var(--sd-text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ---- Design tokens ------------------------------------------------- */
:root {
  --sd-primary:        #6D5DFB;
  --sd-primary-dark:   #5548d9;
  --sd-secondary:      #8B5CF6;
  --sd-accent:         #A855F7;
  --sd-gradient:       linear-gradient(135deg, #6D5DFB 0%, #A855F7 100%);
  --sd-gradient-2:     linear-gradient(135deg, #8B5CF6 0%, #6D5DFB 100%);
  --sd-gradient-hero:  linear-gradient(135deg, #0F172A 0%, #1e1b4b 50%, #312e81 100%);

  --sd-dark:           #0F172A;
  --sd-dark-2:         #1E293B;
  --sd-dark-3:         #334155;
  --sd-text:           #0F172A;
  --sd-text-2:         #475569;
  --sd-text-3:         #94A3B8;
  --sd-bg:             #F8FAFC;
  --sd-bg-2:           #F1F5F9;
  --sd-surface:        #FFFFFF;
  --sd-border:         #E2E8F0;
  --sd-border-2:       #CBD5E1;

  --sd-success:        #10B981;
  --sd-warning:        #F59E0B;
  --sd-danger:         #EF4444;
  --sd-info:           #3B82F6;

  --sd-radius-xs:      6px;
  --sd-radius-sm:      10px;
  --sd-radius:         14px;
  --sd-radius-lg:      20px;
  --sd-radius-xl:      28px;
  --sd-radius-full:    9999px;

  --sd-shadow-xs:      0 1px 3px rgba(15,23,42,.06);
  --sd-shadow-sm:      0 4px 12px rgba(15,23,42,.06);
  --sd-shadow:         0 8px 24px rgba(15,23,42,.08);
  --sd-shadow-lg:      0 20px 48px rgba(15,23,42,.12);
  --sd-shadow-xl:      0 32px 64px rgba(15,23,42,.16);
  --sd-shadow-primary: 0 8px 32px rgba(109,93,251,.35);
  --sd-shadow-card:    0 2px 8px rgba(15,23,42,.06), 0 0 0 1px rgba(15,23,42,.04);

  --sd-transition:      0.3s cubic-bezier(.4,0,.2,1);
  --sd-transition-fast: 0.15s cubic-bezier(.4,0,.2,1);
  --sd-transition-slow: 0.5s cubic-bezier(.4,0,.2,1);

  --sd-glass-bg:       rgba(255,255,255,.72);
  --sd-glass-border:   rgba(255,255,255,.5);
  --sd-glass-blur:     saturate(180%) blur(16px);

  --sd-font-body:      'Inter', system-ui, sans-serif;
  --sd-font-display:   'Plus Jakarta Sans', 'Inter', sans-serif;

  /* Admin sidebar width */
  --admin-sidebar-w:   260px;
  --admin-sidebar-collapsed: 72px;
}

[data-bs-theme="dark"] {
  --sd-text:           #F1F5F9;
  --sd-text-2:         #94A3B8;
  --sd-text-3:         #64748B;
  --sd-bg:             #0B1120;
  --sd-bg-2:           #111827;
  --sd-surface:        #1E293B;
  --sd-border:         #1E293B;
  --sd-border-2:       #334155;
  --sd-shadow:         0 8px 24px rgba(0,0,0,.35);
  --sd-shadow-lg:      0 20px 48px rgba(0,0,0,.5);
  --sd-shadow-card:    0 2px 8px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.04);
  --sd-glass-bg:       rgba(30,41,59,.8);
  --sd-glass-border:   rgba(255,255,255,.08);
  --sd-gradient-hero:  linear-gradient(135deg, #020617 0%, #0f0a2e 50%, #1a0a3e 100%);
}

/* ---- Scrollbar ----------------------------------------------------- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--sd-bg-2); }
::-webkit-scrollbar-thumb { background: var(--sd-border-2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--sd-primary); }

/* ---- Typography ---------------------------------------------------- */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--sd-font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--sd-text);
}
a { color: var(--sd-primary); text-decoration: none; transition: color var(--sd-transition-fast); }
a:hover { color: var(--sd-accent); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: rgba(109,93,251,.2); color: var(--sd-primary); }

/* =====================================================================
   HEADER
   ===================================================================== */
.sd-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: var(--sd-glass-bg);
  backdrop-filter: var(--sd-glass-blur);
  -webkit-backdrop-filter: var(--sd-glass-blur);
  border-bottom: 1px solid var(--sd-glass-border);
  transition: box-shadow var(--sd-transition);
  width: 100%;
}
.sd-header.scrolled { box-shadow: var(--sd-shadow); }

.sd-navbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  width: 100%;
  min-width: 0;
}

/* Logo */
.sd-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}
.sd-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--sd-gradient);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--sd-font-display);
  font-weight: 800;
  font-size: 15px;
  box-shadow: var(--sd-shadow-primary);
  flex-shrink: 0;
}
.sd-logo-text {
  font-family: var(--sd-font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--sd-text);
  letter-spacing: -.3px;
  white-space: nowrap;
}
.sd-logo-text span { color: var(--sd-primary); }

/* Desktop nav links */
.sd-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
.sd-nav-links a {
  display: block;
  padding: 7px 13px;
  border-radius: var(--sd-radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--sd-text-2);
  transition: all var(--sd-transition-fast);
  white-space: nowrap;
}
.sd-nav-links a:hover,
.sd-nav-links a.active {
  color: var(--sd-primary);
  background: rgba(109,93,251,.08);
}

/* Search */
.sd-search-wrap {
  flex: 1;
  min-width: 0;
  max-width: 340px;
  position: relative;
}
.sd-search-input {
  width: 100%;
  height: 38px;
  padding: 0 38px 0 14px;
  border: 1.5px solid var(--sd-border);
  border-radius: var(--sd-radius-full);
  background: var(--sd-surface);
  color: var(--sd-text);
  font-size: 13px;
  font-family: var(--sd-font-body);
  transition: all var(--sd-transition-fast);
  outline: none;
}
.sd-search-input:focus {
  border-color: var(--sd-primary);
  box-shadow: 0 0 0 3px rgba(109,93,251,.12);
}
.sd-search-input::placeholder { color: var(--sd-text-3); }
.sd-search-btn {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--sd-text-3);
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.sd-search-btn:hover { color: var(--sd-primary); }

/* Nav actions */
.sd-nav-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.sd-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--sd-radius-sm);
  border: none;
  background: transparent;
  color: var(--sd-text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--sd-transition-fast);
  position: relative;
  font-size: 17px;
  text-decoration: none;
}
.sd-icon-btn:hover { background: var(--sd-bg-2); color: var(--sd-primary); }
.sd-icon-btn .badge {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 15px;
  height: 15px;
  border-radius: 99px;
  background: var(--sd-primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 3px;
  line-height: 1;
}

/* Avatar */
.sd-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sd-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--sd-transition-fast);
  flex-shrink: 0;
}
.sd-avatar:hover { border-color: var(--sd-primary); box-shadow: var(--sd-shadow-primary); }

/* Hamburger */
.sd-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
  flex-shrink: 0;
}
.sd-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--sd-text);
  border-radius: 2px;
  transition: all var(--sd-transition-fast);
}
.sd-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sd-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.sd-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.sd-mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1039;
  background: var(--sd-surface);
  padding: 72px 24px 32px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--sd-transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sd-mobile-nav.open { transform: translateX(0); }
.sd-mobile-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--sd-text);
  border-radius: var(--sd-radius);
  transition: all var(--sd-transition-fast);
}
.sd-mobile-nav a:hover { background: rgba(109,93,251,.08); color: var(--sd-primary); }
.sd-mobile-nav .sd-mobile-divider {
  height: 1px;
  background: var(--sd-border);
  margin: 8px 0;
}
.sd-mobile-nav-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.sd-mobile-nav-actions a {
  flex: 1;
  justify-content: center;
  font-size: 14px;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn { font-family: var(--sd-font-body); font-weight: 600; border-radius: var(--sd-radius-sm); transition: all var(--sd-transition-fast); }

.sd-btn-primary {
  background: var(--sd-gradient);
  border: none;
  color: #fff;
  box-shadow: var(--sd-shadow-primary);
  position: relative;
  overflow: hidden;
}
.sd-btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 40px rgba(109,93,251,.45); }
.sd-btn-primary:active { transform: translateY(0); }

.sd-btn-outline {
  background: transparent;
  border: 1.5px solid var(--sd-border-2);
  color: var(--sd-text);
}
.sd-btn-outline:hover { border-color: var(--sd-primary); color: var(--sd-primary); background: rgba(109,93,251,.06); }

.sd-btn-ghost {
  background: rgba(109,93,251,.08);
  border: none;
  color: var(--sd-primary);
}
.sd-btn-ghost:hover { background: rgba(109,93,251,.15); color: var(--sd-primary); }

/* =====================================================================
   CARDS
   ===================================================================== */
.sd-card {
  background: var(--sd-surface);
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius-lg);
  box-shadow: var(--sd-shadow-card);
  transition: all var(--sd-transition);
  overflow: hidden;
}
.sd-card:hover { box-shadow: var(--sd-shadow-lg); transform: translateY(-3px); border-color: rgba(109,93,251,.2); }

.sd-card-glass {
  background: var(--sd-glass-bg);
  backdrop-filter: var(--sd-glass-blur);
  -webkit-backdrop-filter: var(--sd-glass-blur);
  border: 1px solid var(--sd-glass-border);
  border-radius: var(--sd-radius-lg);
  box-shadow: var(--sd-shadow);
}

/* =====================================================================
   HERO
   ===================================================================== */
.sd-hero {
  background: var(--sd-gradient-hero);
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
  width: 100%;
}
.sd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(109,93,251,.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(168,85,247,.2) 0%, transparent 60%);
  pointer-events: none;
}
.sd-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.sd-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--sd-radius-full);
  background: rgba(109,93,251,.2);
  border: 1px solid rgba(109,93,251,.3);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}

.sd-hero-title {
  font-family: var(--sd-font-display);
  font-size: clamp(1.8rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.sd-hero-title .sd-grad-text {
  background: linear-gradient(90deg, #a78bfa, #c084fc, #e879f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sd-hero-sub {
  font-size: clamp(14px, 2vw, 17px);
  color: rgba(255,255,255,.65);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.sd-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sd-hero-btn-primary {
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--sd-radius);
  background: var(--sd-gradient);
  color: #fff;
  border: none;
  box-shadow: var(--sd-shadow-primary);
  transition: all var(--sd-transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.sd-hero-btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 48px rgba(109,93,251,.5); }

.sd-hero-btn-outline {
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--sd-radius);
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.2);
  transition: all var(--sd-transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.sd-hero-btn-outline:hover { color: #fff; background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.4); }

/* Hero stats */
.sd-hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.sd-hero-stat { display: flex; flex-direction: column; }
.sd-hero-stat-value {
  font-family: var(--sd-font-display);
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.sd-hero-stat-label { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 4px; }

/* Hero floating cards — desktop only */
.sd-hero-visual {
  position: relative;
  height: 400px;
}
.sd-hero-card-float {
  position: absolute;
  background: var(--sd-glass-bg);
  backdrop-filter: var(--sd-glass-blur);
  -webkit-backdrop-filter: var(--sd-glass-blur);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--sd-radius-lg);
  padding: 16px;
  box-shadow: var(--sd-shadow-xl);
  animation: sd-float 6s ease-in-out infinite;
}
.sd-hero-card-float:nth-child(2) { animation-delay: -2s; }
.sd-hero-card-float:nth-child(3) { animation-delay: -4s; }
@keyframes sd-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* =====================================================================
   SECTIONS
   ===================================================================== */
.sd-section { padding: 64px 0; width: 100%; }
.sd-section-sm { padding: 40px 0; }

.sd-section-header { text-align: center; margin-bottom: 44px; }
.sd-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--sd-radius-full);
  background: rgba(109,93,251,.08);
  border: 1px solid rgba(109,93,251,.15);
  color: var(--sd-primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 12px;
}
.sd-section-title {
  font-family: var(--sd-font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--sd-text);
  letter-spacing: -.5px;
  margin-bottom: 10px;
}
.sd-section-sub {
  font-size: 15px;
  color: var(--sd-text-2);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =====================================================================
   CATEGORY GRID
   ===================================================================== */
.sd-cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.sd-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--sd-surface);
  border: 1.5px solid var(--sd-border);
  border-radius: var(--sd-radius-lg);
  text-decoration: none;
  color: var(--sd-text);
  transition: all var(--sd-transition);
  text-align: center;
  min-height: 100px;
  position: relative;
  overflow: hidden;
}
.sd-cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sd-gradient);
  opacity: 0;
  transition: opacity var(--sd-transition);
}
.sd-cat-card:hover { border-color: var(--sd-primary); transform: translateY(-4px); box-shadow: var(--sd-shadow-lg); color: #fff; }
.sd-cat-card:hover::before { opacity: 1; }
.sd-cat-card:hover .sd-cat-icon { background: rgba(255,255,255,.2); color: #fff; }
.sd-cat-card:hover .sd-cat-name { color: #fff; }
.sd-cat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--sd-radius);
  background: rgba(109,93,251,.08);
  color: var(--sd-primary);
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: all var(--sd-transition);
  position: relative;
  z-index: 1;
}
.sd-cat-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--sd-text);
  transition: color var(--sd-transition);
  position: relative;
  z-index: 1;
  line-height: 1.3;
}

/* =====================================================================
   PRODUCT GRID + CARDS
   ===================================================================== */
.sd-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sd-product-card {
  background: var(--sd-surface);
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius-lg);
  overflow: hidden;
  transition: all var(--sd-transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--sd-shadow-card);
  position: relative;
}
.sd-product-card:hover { transform: translateY(-5px); box-shadow: var(--sd-shadow-lg); border-color: rgba(109,93,251,.2); }

.sd-product-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sd-bg-2);
}
.sd-product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--sd-transition-slow); }
.sd-product-card:hover .sd-product-thumb img { transform: scale(1.05); }
.sd-product-thumb-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--sd-text-3); font-size: 2rem; }

.sd-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: var(--sd-radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
}
.sd-badge-bestseller { background: linear-gradient(135deg,#F59E0B,#EF4444); color: #fff; }
.sd-badge-new       { background: linear-gradient(135deg,#10B981,#059669); color: #fff; }
.sd-badge-sale      { background: linear-gradient(135deg,#EF4444,#DC2626); color: #fff; }
.sd-badge-featured  { background: var(--sd-gradient); color: #fff; }

.sd-product-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }

.sd-product-wish {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sd-surface);
  border: 1px solid var(--sd-border);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--sd-transition-fast);
  z-index: 2;
  color: var(--sd-text-3);
  font-size: 14px;
  box-shadow: var(--sd-shadow-xs);
}
.sd-product-wish:hover,
.sd-product-wish.active { background: #FEF2F2; border-color: #FCA5A5; color: #EF4444; }

.sd-product-body { padding: 14px 16px; display: flex; flex-direction: column; flex: 1; gap: 7px; }
.sd-product-cat { font-size: 10px; font-weight: 700; color: var(--sd-primary); text-transform: uppercase; letter-spacing: .5px; }
.sd-product-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--sd-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--sd-transition-fast);
}
.sd-product-card:hover .sd-product-title { color: var(--sd-primary); }

.sd-product-rating { display: flex; align-items: center; gap: 5px; }
.sd-stars { display: flex; gap: 1px; color: #F59E0B; font-size: 11px; }
.sd-rating-text { font-size: 11px; color: var(--sd-text-3); }

.sd-product-price { display: flex; align-items: center; gap: 7px; margin-top: auto; flex-wrap: wrap; }
.sd-price-current { font-family: var(--sd-font-display); font-size: 17px; font-weight: 800; color: var(--sd-text); }
.sd-price-old { font-size: 12px; color: var(--sd-text-3); text-decoration: line-through; }
.sd-price-discount { font-size: 10px; font-weight: 700; color: var(--sd-success); background: rgba(16,185,129,.1); padding: 2px 6px; border-radius: var(--sd-radius-full); }

.sd-product-actions { display: flex; gap: 7px; padding: 0 14px 14px; }
.sd-product-actions .btn { flex: 1; font-size: 12px; padding: 8px 10px; border-radius: var(--sd-radius-sm); }

/* =====================================================================
   PRODUCT DETAIL
   ===================================================================== */
.sd-product-detail-thumb {
  border-radius: var(--sd-radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--sd-bg-2);
}
.sd-product-detail-thumb img { width: 100%; height: 100%; object-fit: cover; }

.sd-gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.sd-gallery-thumb {
  width: 68px;
  height: 50px;
  border-radius: var(--sd-radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--sd-transition-fast);
  background: none;
  padding: 0;
}
.sd-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-gallery-thumb:hover,
.sd-gallery-thumb.active { border-color: var(--sd-primary); box-shadow: 0 0 0 2px rgba(109,93,251,.2); }

/* Sticky purchase box */
.sd-purchase-box {
  position: sticky;
  top: 80px;
  background: var(--sd-surface);
  border: 1.5px solid var(--sd-border);
  border-radius: var(--sd-radius-xl);
  padding: 24px;
  box-shadow: var(--sd-shadow-lg);
}
.sd-purchase-price { font-family: var(--sd-font-display); font-size: 2rem; font-weight: 900; color: var(--sd-text); letter-spacing: -1px; line-height: 1; }
.sd-purchase-old-price { font-size: 15px; color: var(--sd-text-3); text-decoration: line-through; }
.sd-purchase-discount { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--sd-radius-full); background: rgba(16,185,129,.1); color: var(--sd-success); font-size: 12px; font-weight: 700; }

.sd-purchase-btn-cart {
  width: 100%;
  padding: 13px;
  border-radius: var(--sd-radius);
  background: var(--sd-gradient);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--sd-font-body);
  box-shadow: var(--sd-shadow-primary);
  transition: all var(--sd-transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.sd-purchase-btn-cart:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(109,93,251,.45); }

.sd-purchase-btn-buy {
  width: 100%;
  padding: 13px;
  border-radius: var(--sd-radius);
  background: rgba(109,93,251,.08);
  color: var(--sd-primary);
  border: 1.5px solid rgba(109,93,251,.2);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--sd-font-body);
  transition: all var(--sd-transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
}
.sd-purchase-btn-buy:hover { background: rgba(109,93,251,.15); color: var(--sd-primary); }

.sd-purchase-meta { display: flex; flex-direction: column; gap: 9px; padding: 14px 0; border-top: 1px solid var(--sd-border); border-bottom: 1px solid var(--sd-border); }
.sd-purchase-meta-item { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--sd-text-2); }
.sd-purchase-meta-item i { width: 18px; color: var(--sd-primary); font-size: 14px; }

/* Tabs */
.sd-tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--sd-border); margin-bottom: 20px; overflow-x: auto; }
.sd-tab-btn {
  padding: 9px 18px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--sd-text-2);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--sd-transition-fast);
  white-space: nowrap;
  border-radius: var(--sd-radius-sm) var(--sd-radius-sm) 0 0;
}
.sd-tab-btn:hover { color: var(--sd-primary); }
.sd-tab-btn.active { color: var(--sd-primary); border-bottom-color: var(--sd-primary); background: rgba(109,93,251,.04); }

/* =====================================================================
   SHOP SIDEBAR
   ===================================================================== */
.sd-shop-sidebar {
  background: var(--sd-surface);
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius-lg);
  padding: 20px;
  box-shadow: var(--sd-shadow-card);
}
.sd-filter-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--sd-text-3); margin-bottom: 10px; }
.sd-filter-group { margin-bottom: 20px; }
.sd-filter-group:last-child { margin-bottom: 0; }

/* =====================================================================
   CART
   ===================================================================== */
.sd-cart-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--sd-surface);
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius-lg);
  transition: all var(--sd-transition-fast);
  align-items: center;
}
.sd-cart-item:hover { box-shadow: var(--sd-shadow-sm); }
.sd-cart-thumb { width: 72px; height: 54px; border-radius: var(--sd-radius-sm); overflow: hidden; flex-shrink: 0; background: var(--sd-bg-2); }
.sd-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }

.sd-order-summary {
  background: var(--sd-surface);
  border: 1.5px solid var(--sd-border);
  border-radius: var(--sd-radius-xl);
  padding: 24px;
  box-shadow: var(--sd-shadow);
}

/* =====================================================================
   CHECKOUT
   ===================================================================== */
.sd-checkout-card {
  background: var(--sd-surface);
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius-xl);
  padding: 28px;
  box-shadow: var(--sd-shadow-card);
}
.sd-checkout-step { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.sd-checkout-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sd-gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.sd-checkout-step-title { font-size: 15px; font-weight: 700; color: var(--sd-text); }
.sd-upi-qr { border: 2px solid var(--sd-border); border-radius: var(--sd-radius-lg); padding: 14px; background: #fff; display: inline-block; }
.sd-secure-badge { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: rgba(16,185,129,.06); border: 1px solid rgba(16,185,129,.2); border-radius: var(--sd-radius-sm); color: var(--sd-success); font-size: 12px; font-weight: 600; }

/* =====================================================================
   USER DASHBOARD
   ===================================================================== */
.sd-dash-stat {
  background: var(--sd-surface);
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--sd-transition);
  box-shadow: var(--sd-shadow-card);
  text-decoration: none;
  color: var(--sd-text);
}
.sd-dash-stat:hover { transform: translateY(-3px); box-shadow: var(--sd-shadow); border-color: rgba(109,93,251,.2); color: var(--sd-text); }
.sd-dash-stat-icon { width: 48px; height: 48px; border-radius: var(--sd-radius); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.sd-dash-stat-icon.purple { background: rgba(109,93,251,.1); color: var(--sd-primary); }
.sd-dash-stat-icon.green  { background: rgba(16,185,129,.1);  color: var(--sd-success); }
.sd-dash-stat-icon.orange { background: rgba(245,158,11,.1);  color: var(--sd-warning); }
.sd-dash-stat-icon.blue   { background: rgba(59,130,246,.1);  color: var(--sd-info); }
.sd-dash-stat-value { font-family: var(--sd-font-display); font-size: 24px; font-weight: 800; color: var(--sd-text); line-height: 1; }
.sd-dash-stat-label { font-size: 12px; color: var(--sd-text-2); margin-top: 3px; }

/* =====================================================================
   ADMIN PANEL
   ===================================================================== */
.admin-body { background: var(--sd-bg); overflow-x: hidden; }

/* Shell: sidebar + main */
.admin-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* Sidebar */
.admin-sidebar {
  width: var(--admin-sidebar-w);
  background: var(--sd-dark);
  color: #94A3B8;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform var(--sd-transition), width var(--sd-transition);
  flex-shrink: 0;
}

/* Sidebar brand */
.admin-sidebar-brand {
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}
.admin-sidebar-brand-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.admin-sidebar-brand-text {
  font-family: var(--sd-font-display);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
}

/* Sidebar close button (mobile) */
.admin-sidebar-close {
  display: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  border: none;
  color: #94A3B8;
  cursor: pointer;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: all var(--sd-transition-fast);
}
.admin-sidebar-close:hover { background: rgba(255,255,255,.15); color: #fff; }

/* Nav */
.admin-sidebar-nav {
  padding: 10px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
  overflow-x: hidden;
}
.admin-nav-section {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.2);
  padding: 14px 8px 5px;
  white-space: nowrap;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--sd-radius-sm);
  color: #94A3B8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--sd-transition-fast);
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}
.admin-nav-link i { font-size: 16px; flex-shrink: 0; width: 18px; text-align: center; }
.admin-nav-link span { overflow: hidden; text-overflow: ellipsis; }
.admin-nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav-link.active { background: rgba(109,93,251,.2); color: #a78bfa; }
.admin-nav-link .badge { margin-left: auto; background: rgba(109,93,251,.3); color: #a78bfa; font-size: 9px; padding: 2px 6px; border-radius: 99px; flex-shrink: 0; }

.admin-sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}

/* Main area */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-left: var(--admin-sidebar-w);
  transition: margin-left var(--sd-transition);
}

/* Topbar */
.admin-topbar {
  background: var(--sd-surface);
  border-bottom: 1px solid var(--sd-border);
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--sd-shadow-xs);
  gap: 12px;
}
.admin-topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.admin-topbar-title { font-size: 16px; font-weight: 700; color: var(--sd-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Hamburger for admin (mobile) */
.admin-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
  border-radius: var(--sd-radius-sm);
  transition: background var(--sd-transition-fast);
}
.admin-hamburger:hover { background: var(--sd-bg-2); }
.admin-hamburger span { display: block; width: 18px; height: 2px; background: var(--sd-text); border-radius: 2px; transition: all var(--sd-transition-fast); }
.admin-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.admin-hamburger.open span:nth-child(2) { opacity: 0; }
.admin-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Overlay for mobile sidebar */
.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 199;
  backdrop-filter: blur(2px);
}
.admin-overlay.active { display: block; }

/* Content */
.admin-content { padding: 24px; flex: 1; min-width: 0; }

/* Stat cards */
.admin-stat-card {
  background: var(--sd-surface);
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius-lg);
  padding: 20px;
  box-shadow: var(--sd-shadow-card);
  transition: all var(--sd-transition);
  position: relative;
  overflow: hidden;
}
.admin-stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--sd-gradient); }
.admin-stat-card:hover { transform: translateY(-2px); box-shadow: var(--sd-shadow); }
.admin-stat-value { font-family: var(--sd-font-display); font-size: 26px; font-weight: 800; color: var(--sd-text); line-height: 1; }
.admin-stat-label { font-size: 12px; color: var(--sd-text-2); margin-top: 5px; }
.admin-stat-icon { width: 44px; height: 44px; border-radius: var(--sd-radius); display: grid; place-items: center; font-size: 18px; }

/* Tables */
.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--sd-radius-lg); }
.admin-table {
  width: 100%;
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 0;
}
.admin-table th {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--sd-text-3);
  padding: 11px 14px;
  background: var(--sd-bg-2);
  border-bottom: 1px solid var(--sd-border);
  white-space: nowrap;
}
.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--sd-border);
  font-size: 13px;
  color: var(--sd-text);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr { transition: background var(--sd-transition-fast); }
.admin-table tbody tr:hover { background: var(--sd-bg-2); }

/* =====================================================================
   FORMS
   ===================================================================== */
.sd-form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--sd-border);
  border-radius: var(--sd-radius-sm);
  background: var(--sd-surface);
  color: var(--sd-text);
  font-size: 14px;
  font-family: var(--sd-font-body);
  transition: all var(--sd-transition-fast);
  outline: none;
}
.sd-form-control:focus { border-color: var(--sd-primary); box-shadow: 0 0 0 3px rgba(109,93,251,.12); }
.sd-form-control::placeholder { color: var(--sd-text-3); }
.sd-form-label { display: block; font-size: 12px; font-weight: 600; color: var(--sd-text-2); margin-bottom: 5px; }

/* =====================================================================
   REVIEWS
   ===================================================================== */
.sd-review-card { background: var(--sd-surface); border: 1px solid var(--sd-border); border-radius: var(--sd-radius-lg); padding: 18px; transition: all var(--sd-transition); }
.sd-review-card:hover { box-shadow: var(--sd-shadow-sm); }
.sd-review-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--sd-gradient); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }

/* =====================================================================
   TESTIMONIALS
   ===================================================================== */
.sd-testimonial { background: var(--sd-surface); border: 1px solid var(--sd-border); border-radius: var(--sd-radius-xl); padding: 24px; box-shadow: var(--sd-shadow-card); transition: all var(--sd-transition); }
.sd-testimonial:hover { transform: translateY(-4px); box-shadow: var(--sd-shadow-lg); }
.sd-testimonial-quote { font-size: 14px; color: var(--sd-text-2); line-height: 1.7; margin-bottom: 18px; font-style: italic; }

/* =====================================================================
   FAQ
   ===================================================================== */
.sd-faq-item { border: 1px solid var(--sd-border); border-radius: var(--sd-radius); overflow: hidden; transition: all var(--sd-transition-fast); }
.sd-faq-item + .sd-faq-item { margin-top: 8px; }
.sd-faq-item:hover { border-color: rgba(109,93,251,.3); }
.sd-faq-question {
  width: 100%;
  padding: 16px 18px;
  background: var(--sd-surface);
  border: none;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--sd-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: all var(--sd-transition-fast);
  font-family: var(--sd-font-body);
}
.sd-faq-question:hover { color: var(--sd-primary); }
.sd-faq-question i { transition: transform var(--sd-transition-fast); flex-shrink: 0; color: var(--sd-primary); }
.sd-faq-item.open .sd-faq-question i { transform: rotate(180deg); }
.sd-faq-answer { padding: 0 18px; max-height: 0; overflow: hidden; transition: all var(--sd-transition); font-size: 13px; color: var(--sd-text-2); line-height: 1.7; }
.sd-faq-item.open .sd-faq-answer { max-height: 300px; padding: 0 18px 16px; }

/* =====================================================================
   NEWSLETTER
   ===================================================================== */
.sd-newsletter {
  background: var(--sd-gradient);
  border-radius: var(--sd-radius-xl);
  padding: 52px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sd-newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.sd-newsletter-title { font-family: var(--sd-font-display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: #fff; margin-bottom: 10px; position: relative; }
.sd-newsletter-sub { color: rgba(255,255,255,.75); font-size: 15px; margin-bottom: 24px; position: relative; }
.sd-newsletter-form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto; position: relative; }
.sd-newsletter-input { flex: 1; padding: 12px 18px; border-radius: var(--sd-radius); border: none; background: rgba(255,255,255,.15); color: #fff; font-size: 14px; font-family: var(--sd-font-body); outline: none; backdrop-filter: blur(8px); min-width: 0; }
.sd-newsletter-input::placeholder { color: rgba(255,255,255,.6); }
.sd-newsletter-input:focus { background: rgba(255,255,255,.2); }
.sd-newsletter-btn { padding: 12px 22px; border-radius: var(--sd-radius); background: #fff; color: var(--sd-primary); border: none; font-size: 13px; font-weight: 700; cursor: pointer; transition: all var(--sd-transition-fast); white-space: nowrap; font-family: var(--sd-font-body); }
.sd-newsletter-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.sd-footer { background: var(--sd-dark); color: #94A3B8; padding: 56px 0 0; width: 100%; }
.sd-footer-desc { font-size: 13px; color: #64748B; line-height: 1.7; max-width: 260px; margin-bottom: 18px; }
.sd-footer-social { display: flex; gap: 7px; flex-wrap: wrap; }
.sd-footer-social a { width: 34px; height: 34px; border-radius: var(--sd-radius-sm); background: rgba(255,255,255,.06); color: #64748B; display: grid; place-items: center; font-size: 14px; transition: all var(--sd-transition-fast); text-decoration: none; }
.sd-footer-social a:hover { background: var(--sd-primary); color: #fff; }
.sd-footer-heading { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: #fff; margin-bottom: 14px; }
.sd-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.sd-footer-links a { font-size: 13px; color: #64748B; text-decoration: none; transition: color var(--sd-transition-fast); }
.sd-footer-links a:hover { color: #fff; }
.sd-footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 18px 0; margin-top: 44px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.sd-footer-copy { font-size: 12px; color: #475569; }
.sd-payment-icons { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sd-payment-icon { padding: 3px 9px; background: rgba(255,255,255,.06); border-radius: 5px; font-size: 10px; font-weight: 700; color: #64748B; }

/* =====================================================================
   WHATSAPP
   ===================================================================== */
.sd-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  text-decoration: none;
  z-index: 1030;
  transition: all var(--sd-transition-fast);
  animation: sd-pulse 2s ease-in-out infinite;
}
.sd-whatsapp:hover { transform: scale(1.1); color: #fff; }
@keyframes sd-pulse {
  0%,100% { box-shadow: 0 8px 24px rgba(37,211,102,.4); }
  50%      { box-shadow: 0 8px 32px rgba(37,211,102,.6), 0 0 0 8px rgba(37,211,102,.1); }
}

/* =====================================================================
   SKELETON
   ===================================================================== */
.sd-skel {
  background: linear-gradient(90deg, var(--sd-bg-2) 25%, var(--sd-border) 37%, var(--sd-bg-2) 63%);
  background-size: 400% 100%;
  animation: sd-skel 1.4s ease infinite;
  border-radius: var(--sd-radius-sm);
}
@keyframes sd-skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* =====================================================================
   STATUS BADGES
   ===================================================================== */
.sd-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--sd-radius-full); font-size: 11px; font-weight: 600; }
.sd-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.sd-status-pending   { background: rgba(245,158,11,.1);  color: #D97706; }
.sd-status-confirmed { background: rgba(59,130,246,.1);  color: #2563EB; }
.sd-status-delivered { background: rgba(16,185,129,.1);  color: #059669; }
.sd-status-cancelled { background: rgba(100,116,139,.1); color: #475569; }
.sd-status-refunded  { background: rgba(239,68,68,.1);   color: #DC2626; }

/* =====================================================================
   UTILITIES
   ===================================================================== */
.sd-grad-text { background: var(--sd-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sd-divider { height: 1px; background: var(--sd-border); margin: 20px 0; }
.sd-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sd-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sd-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* AOS */
[data-aos] { opacity: 0; transition: opacity .6s ease, transform .6s ease; }
[data-aos="fade-up"]    { transform: translateY(28px); }
[data-aos="fade-down"]  { transform: translateY(-28px); }
[data-aos="fade-left"]  { transform: translateX(28px); }
[data-aos="fade-right"] { transform: translateX(-28px); }
[data-aos="zoom-in"]    { transform: scale(.92); }
[data-aos].aos-animate  { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVE BREAKPOINTS
   ===================================================================== */

/* ---- ≤1200px ---- */
@media (max-width: 1200px) {
  .sd-cat-grid { grid-template-columns: repeat(4, 1fr); }
  .sd-product-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- ≤992px (tablet) ---- */
@media (max-width: 992px) {
  /* Header */
  .sd-nav-links { display: none; }
  .sd-search-wrap { display: none; }
  .sd-hamburger { display: flex; }

  /* Hero */
  .sd-hero { padding: 52px 0 68px; }
  .sd-hero-visual { display: none; }

  /* Sections */
  .sd-section { padding: 48px 0; }

  /* Categories */
  .sd-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }

  /* Products */
  .sd-product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* Purchase box: not sticky on tablet */
  .sd-purchase-box { position: static; }

  /* Admin */
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-sidebar-close { display: grid; }
  .admin-hamburger { display: flex; }
  .admin-main { margin-left: 0; }
}

/* ---- ≤768px (mobile) ---- */
@media (max-width: 768px) {
  /* Container padding */
  .container-xxl, .container-xl, .container-lg,
  .container-md, .container-sm, .container { padding-left: 16px; padding-right: 16px; }

  /* Hero */
  .sd-hero { padding: 44px 0 56px; }
  .sd-hero-title { font-size: clamp(1.6rem, 7vw, 2.4rem); letter-spacing: -.5px; }
  .sd-hero-sub { font-size: 14px; }
  .sd-hero-actions { gap: 10px; }
  .sd-hero-btn-primary,
  .sd-hero-btn-outline { padding: 11px 20px; font-size: 13px; }
  .sd-hero-stats { gap: 16px; margin-top: 28px; }
  .sd-hero-stat-value { font-size: 18px; }

  /* Categories */
  .sd-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sd-cat-card { min-height: 88px; padding: 16px 10px; }
  .sd-cat-icon { width: 38px; height: 38px; font-size: 16px; }
  .sd-cat-name { font-size: 11px; }

  /* Products */
  .sd-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sd-product-body { padding: 10px 12px; gap: 5px; }
  .sd-product-actions { padding: 0 10px 10px; gap: 6px; }
  .sd-product-actions .btn { font-size: 11px; padding: 7px 8px; }
  .sd-price-current { font-size: 15px; }

  /* Sections */
  .sd-section { padding: 40px 0; }
  .sd-section-header { margin-bottom: 32px; }

  /* Newsletter */
  .sd-newsletter { padding: 32px 20px; }
  .sd-newsletter-form { flex-direction: column; }
  .sd-newsletter-btn { width: 100%; }

  /* Cart */
  .sd-cart-item { flex-wrap: wrap; }
  .sd-cart-thumb { width: 60px; height: 44px; }

  /* Checkout */
  .sd-checkout-card { padding: 20px; }

  /* Purchase box */
  .sd-purchase-box { padding: 18px; border-radius: var(--sd-radius-lg); }
  .sd-purchase-price { font-size: 1.6rem; }

  /* Footer */
  .sd-footer { padding: 40px 0 0; }
  .sd-footer-bottom { flex-direction: column; text-align: center; }
  .sd-footer-desc { max-width: 100%; }

  /* Admin */
  .admin-content { padding: 16px; }
  .admin-topbar { padding: 0 14px; height: 56px; }
  .admin-topbar-title { font-size: 14px; }
  .admin-stat-value { font-size: 22px; }
  .admin-stat-card { padding: 16px; }

  /* Tables always scrollable */
  .admin-table-wrap { border-radius: var(--sd-radius); }
  .table-responsive { border-radius: var(--sd-radius); }

  /* Dashboard stats: 2 cols */
  .sd-dash-stat { padding: 14px; }
  .sd-dash-stat-value { font-size: 20px; }
  .sd-dash-stat-icon { width: 40px; height: 40px; font-size: 17px; }
}

/* ---- ≤480px (small phones) ---- */
@media (max-width: 480px) {
  .sd-product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sd-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .sd-hero-actions { flex-direction: column; align-items: flex-start; }
  .sd-hero-btn-primary,
  .sd-hero-btn-outline { width: 100%; justify-content: center; }
  .sd-hero-stats { gap: 12px; }
  .sd-newsletter-form { gap: 10px; }
  .admin-content { padding: 12px; }
}
