/* ==========================================================================
   FFZONE STORE — Main Stylesheet
   Brand: orange (#ff6b00) + amber (#ffb347) on rich dark (#080808)
   3D Premium Dark Theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Brand colours — orange fire theme */
  --primary:          #ff6b00;
  --primary-dark:     #cc5500;
  --primary-light:    #ff8c3a;
  --accent:           #ffb347;
  --accent-dark:      #e09a30;
  --success:          #22c55e;
  --warning:          #f59e0b;
  --danger:           #ef4444;
  --info:             #38bdf8;

  /* Deep 3D dark surfaces */
  --dark:             #080808;
  --dark-card:        #0f0f0f;
  --dark-elevated:    #141414;
  --dark-border:      #1e1e1e;
  --dark-hover:       #181818;

  /* Light/text */
  --light:            #f8f9fa;
  --text-primary:     #f2f2f2;
  --text-secondary:   #b5b5b5;
  --text-muted:       #757575;

  /* Gradients */
  --gradient-primary:   linear-gradient(135deg, #ff6b00 0%, #ffb347 100%);
  --gradient-dark:      linear-gradient(135deg, #0f0f0f 0%, #1e1e1e 100%);
  --gradient-card:      linear-gradient(145deg, #101010 0%, #181818 100%);
  --gradient-glow:      linear-gradient(135deg, rgba(255,107,0,0.12) 0%, rgba(255,179,71,0.12) 100%);

  /* Typography */
  --font-primary:     'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:     'Rajdhani', 'Poppins', sans-serif;
  --font-mono:        'Courier New', monospace;

  /* Sizing */
  --navbar-height:    72px;
  --border-radius:    12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 20px;
  --border-radius-xl: 32px;

  /* 3D Shadows */
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.6), 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.7), 0 2px 6px rgba(0,0,0,0.4);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.8), 0 4px 12px rgba(0,0,0,0.5);
  --shadow-glow:  0 0 20px rgba(255,107,0,0.5), 0 0 40px rgba(255,107,0,0.2);
  --shadow-glow-accent: 0 0 20px rgba(255,179,71,0.45), 0 0 40px rgba(255,179,71,0.2);
  --shadow-3d:    0 8px 0 rgba(180,60,0,0.6), 0 12px 20px rgba(0,0,0,0.8);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   280ms ease;
  --transition-slow:   500ms ease;
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Animation variables */
  --anim-stagger:  0.08s;
  --float-y:       12px;
  --float-dur:     3.5s;
  --shimmer-dur:   1.6s;
  --pulse-dur:     2s;
}

/* --------------------------------------------------------------------------
   2. Global Reset & Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--dark-card);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
}

::selection {
  background: var(--primary);
  color: #fff;
}

/* --------------------------------------------------------------------------
   3. Navbar
   -------------------------------------------------------------------------- */

/* ── Site Logo ── */
.site-logo {
  height: 50px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  /* White logo on dark background — add orange fire glow */
  filter:
    drop-shadow(0 0 6px rgba(255, 107, 0, 0.8))
    drop-shadow(0 0 18px rgba(255, 107, 0, 0.4))
    drop-shadow(0 0 32px rgba(255, 179, 71, 0.2));
  transition: filter 0.3s ease, transform 0.25s ease;
}

.site-logo:hover {
  filter:
    drop-shadow(0 0 10px rgba(255, 107, 0, 1))
    drop-shadow(0 0 24px rgba(255, 107, 0, 0.6))
    drop-shadow(0 0 48px rgba(255, 179, 71, 0.4));
  transform: scale(1.03);
}

/* ── Logo in footer ── */
.footer-logo {
  height: 38px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
  filter:
    drop-shadow(0 0 5px rgba(255, 107, 0, 0.6))
    drop-shadow(0 0 14px rgba(255, 107, 0, 0.25));
}

.navbar {
  height: var(--navbar-height);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition:
    background var(--transition-base),
    backdrop-filter var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 0 1rem;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity var(--transition-fast);
}
.navbar-brand:hover {
  opacity: 0.85;
}

.navbar-toggler {
  border: 1px solid var(--dark-border);
  color: var(--text-primary);
  padding: 0.4rem 0.6rem;
  border-radius: var(--border-radius-sm);
}
.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.35);
}
.navbar-toggler-icon {
  filter: invert(1);
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.8rem !important;
  border-radius: var(--border-radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  letter-spacing: 0.3px;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-light) !important;
  background: rgba(255, 107, 0, 0.1);
}

/* Cart icon + badge */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  border: 2px solid var(--dark);
  animation: pulse-glow 2s infinite;
}

/* Body offset — now handled by announcement banner in base.html */
#page-content {
  padding-top: 0;
}

/* --------------------------------------------------------------------------
   4. Hero Section
   -------------------------------------------------------------------------- */
/* Hero background - orange tones */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 60% 50%, rgba(255, 107, 0, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(255, 179, 71, 0.08) 0%, transparent 50%),
              var(--dark);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid rgba(255, 107, 0, 0.3);
  color: var(--primary-light);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: float var(--float-dur) ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   5. Product Cards
   -------------------------------------------------------------------------- */
.product-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  border-color: rgba(255, 107, 0, 0.4);
}

.product-card-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 aspect ratio */
  overflow: hidden;
  background: var(--dark-elevated);
}

.product-card-img-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-img-wrapper img {
  transform: scale(1.06);
}

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.product-card:hover .product-card-overlay {
  opacity: 1;
}

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

.product-card-category {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary-light);
}

.product-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-card-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

.product-card-price .original-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 0.3rem;
}

.product-card-footer {
  padding: 0 1rem 1rem;
  display: flex;
  gap: 0.5rem;
}

/* Out of stock overlay badge */
.out-of-stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
  z-index: 2;
}

.featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   6. Category Cards — 3D Flip
   -------------------------------------------------------------------------- */
.categories-section {
  perspective: 1200px;
}

.category-card {
  perspective: 1200px;
  height: 220px;
  cursor: pointer;
}

.category-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: var(--border-radius);
}

.category-card:hover .category-card-inner {
  transform: rotateY(180deg);
}

.category-card-front,
.category-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.category-card-front {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: border-color var(--transition-base);
}

.category-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

.category-card-front-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.category-card-icon {
  font-size: 2.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  display: block;
}

.category-card-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.category-card-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.category-card-back {
  background: var(--gradient-primary);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.category-card-back .category-card-name {
  color: #fff;
  font-size: 1.3rem;
}

.category-card-back p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.3px;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    opacity var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}
.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.55);
  color: #fff;
}
.btn-primary:active {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

.btn-outline-primary {
  border: 1px solid var(--primary);
  color: var(--primary-light);
  background: transparent;
}
.btn-outline-primary:hover {
  background: rgba(255, 107, 0, 0.12);
  border-color: var(--primary-light);
  color: var(--primary-light);
}

.btn-accent {
  background: var(--accent);
  border: none;
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.35);
}
.btn-accent:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
  color: #fff;
}

.btn-dark {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  color: var(--text-primary);
}
.btn-dark:hover {
  background: var(--dark-hover);
  border-color: var(--primary);
  color: var(--primary-light);
}

/* Add to Cart special button */
.btn-add-cart {
  background: var(--gradient-primary);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
  transition:
    transform var(--transition-spring),
    box-shadow var(--transition-fast),
    opacity var(--transition-fast);
  width: 100%;
}
.btn-add-cart:hover {
  opacity: 0.92;
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.55);
  color: #fff;
}
.btn-add-cart:active {
  transform: scale(0.96);
}
.btn-add-cart:disabled {
  background: var(--dark-border);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   8. Forms
   -------------------------------------------------------------------------- */
.form-control,
.form-select {
  background-color: var(--dark-card);
  border: 1px solid var(--dark-border);
  color: var(--text-primary);
  border-radius: var(--border-radius-sm);
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}
.form-control:focus,
.form-select:focus {
  background-color: var(--dark-elevated);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.25);
  color: var(--text-primary);
  outline: none;
}
.form-control::placeholder {
  color: var(--text-muted);
}
.form-control:disabled,
.form-select:disabled {
  background-color: rgba(30, 30, 46, 0.5);
  opacity: 0.6;
  cursor: not-allowed;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.2px;
}

.form-text {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.invalid-feedback {
  font-size: 0.78rem;
  color: var(--danger);
}

.form-check-input {
  background-color: var(--dark-card);
  border: 1px solid var(--dark-border);
  width: 1.1em;
  height: 1.1em;
}
.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}
.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.25);
}

/* Auth card (login / register) */
.auth-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 440px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   9. Skeleton Loader
   -------------------------------------------------------------------------- */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--dark-card) 25%,
    var(--dark-elevated) 50%,
    var(--dark-card) 75%
  );
  background-size: 200% 100%;
  animation: shimmer var(--shimmer-dur) infinite linear;
  border-radius: var(--border-radius-sm);
}

.skeleton-card {
  height: 320px;
  border-radius: var(--border-radius);
}
.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
}
.skeleton-text.w-75 { width: 75%; }
.skeleton-text.w-50 { width: 50%; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --------------------------------------------------------------------------
   10. Dashboard Stats
   -------------------------------------------------------------------------- */
.stat-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.stat-card:hover::before {
  opacity: 1;
}

.stat-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.35);
}

.stat-card-icon.accent {
  background: linear-gradient(135deg, var(--accent) 0%, #ff9a6c 100%);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.35);
}
.stat-card-icon.success {
  background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.35);
}
.stat-card-icon.warning {
  background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.stat-card-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-card-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}
.stat-card-change {
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.5rem;
}
.stat-card-change.positive { color: var(--success); }
.stat-card-change.negative { color: var(--danger); }

/* Dashboard sidebar */
.dashboard-sidebar {
  background: var(--dark-card);
  border-right: 1px solid var(--dark-border);
  min-height: calc(100vh - var(--navbar-height));
  padding: 1.5rem 0;
  position: sticky;
  top: var(--navbar-height);
}

.sidebar-nav .nav-link {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.65rem 1.5rem;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}
.sidebar-nav .nav-link:hover {
  color: var(--primary-light);
  background: rgba(255, 107, 0, 0.08);
  border-left-color: var(--primary);
}
.sidebar-nav .nav-link.active {
  color: var(--primary-light);
  background: rgba(255, 107, 0, 0.12);
  border-left-color: var(--primary);
  font-weight: 600;
}
.sidebar-nav .nav-link i {
  font-size: 1rem;
  width: 20px;
  flex-shrink: 0;
}

/* Dashboard table */
.dashboard-table {
  color: var(--text-primary);
}
.dashboard-table thead th {
  background: var(--dark-elevated);
  border-color: var(--dark-border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.85rem 1rem;
}
.dashboard-table tbody td {
  border-color: var(--dark-border);
  padding: 0.85rem 1rem;
  vertical-align: middle;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.dashboard-table tbody tr {
  transition: background var(--transition-fast);
}
.dashboard-table tbody tr:hover {
  background: var(--dark-hover);
}

/* --------------------------------------------------------------------------
   11. Order Status Badges
   -------------------------------------------------------------------------- */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.badge-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.badge-status.pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-status.confirmed {
  background: rgba(56, 189, 248, 0.15);
  color: var(--info);
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.badge-status.processing {
  background: rgba(255, 107, 0, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(255, 107, 0, 0.3);
}
.badge-status.shipped {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.badge-status.delivered {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.badge-status.cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge-status.awaiting_payment {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.badge-status.paid {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* --------------------------------------------------------------------------
   12. Utility / Helper Classes
   -------------------------------------------------------------------------- */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  margin: 0.75rem 0 2rem;
}

.glass-card {
  background: rgba(18, 18, 26, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
}

.card-dark {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.card-dark:hover {
  border-color: rgba(255, 107, 0, 0.3);
  box-shadow: var(--shadow-md);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-dark-card    { background-color: var(--dark-card) !important; }
.bg-dark-elevated { background-color: var(--dark-elevated) !important; }
.border-dark-border { border-color: var(--dark-border) !important; }
.text-muted-custom { color: var(--text-muted) !important; }

/* Dividers */
hr.dark-divider {
  border-color: var(--dark-border);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   13. Cart Page
   -------------------------------------------------------------------------- */
.cart-item-row {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  padding: 1rem;
  transition: border-color var(--transition-fast);
}
.cart-item-row:hover {
  border-color: rgba(255, 107, 0, 0.3);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  flex-shrink: 0;
}

.cart-summary-box {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--navbar-height) + 1rem);
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  width: fit-content;
}
.quantity-control button {
  width: 32px;
  height: 32px;
  background: var(--dark-elevated);
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.quantity-control button:hover {
  background: var(--primary);
}
.quantity-control input {
  width: 44px;
  height: 32px;
  background: var(--dark-card);
  border: none;
  color: var(--text-primary);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
}
.quantity-control input:focus {
  outline: none;
}

/* --------------------------------------------------------------------------
   14. Product Detail Page
   -------------------------------------------------------------------------- */
.product-detail-gallery {
  position: sticky;
  top: calc(var(--navbar-height) + 1rem);
}

.product-main-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  aspect-ratio: 1;
}
.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.product-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  border: 2px solid var(--dark-border);
  cursor: pointer;
  transition: border-color var(--transition-fast);
  flex-shrink: 0;
}
.product-thumb:hover,
.product-thumb.active {
  border-color: var(--primary);
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Colour swatches */
.colour-swatch-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.colour-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--dark-border);
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  position: relative;
}
.colour-swatch:hover {
  transform: scale(1.15);
  border-color: var(--primary-light);
}
.colour-swatch.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.35);
  transform: scale(1.1);
}
.colour-swatch.out-of-stock::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
}

/* Size buttons */
.size-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.size-btn {
  min-width: 48px;
  height: 40px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
}
.size-btn:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(255, 107, 0, 0.1);
}
.size-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.size-btn.out-of-stock {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--dark-card);
  border-top: 1px solid var(--dark-border);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.6rem;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: inline-block;
}
.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--dark-elevated);
  border: 1px solid var(--dark-border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}
.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 1.5rem;
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   16. Pagination
   -------------------------------------------------------------------------- */
.pagination {
  gap: 0.3rem;
}
.page-link {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  color: var(--text-secondary);
  border-radius: var(--border-radius-sm) !important;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}
.page-link:hover {
  background: rgba(255, 107, 0, 0.12);
  border-color: var(--primary);
  color: var(--primary-light);
}
.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
}
.page-item.disabled .page-link {
  background: var(--dark-elevated);
  border-color: var(--dark-border);
  color: var(--text-muted);
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   17. Alerts / Toast Messages
   -------------------------------------------------------------------------- */
.alert {
  border-radius: var(--border-radius);
  border: 1px solid;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}
.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}
.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}
.alert-info {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

/* --------------------------------------------------------------------------
   18. Product Grid
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* Filter sidebar */
.filter-sidebar {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--navbar-height) + 1rem);
}

.filter-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--dark-border);
}

/* Price range inputs */
.price-range-inputs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.price-range-inputs .form-control {
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
}

/* --------------------------------------------------------------------------
   19. Order History / Detail
   -------------------------------------------------------------------------- */
.order-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.order-card:hover {
  border-color: rgba(255, 107, 0, 0.3);
  box-shadow: var(--shadow-md);
}

.order-card-header {
  background: var(--dark-elevated);
  border-bottom: 1px solid var(--dark-border);
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.order-number {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-light);
  letter-spacing: 0.5px;
}

.order-total {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   20. Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 107, 0, 0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(calc(-1 * var(--float-y)));
  }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --------------------------------------------------------------------------
   21. Animation Utility Classes
   -------------------------------------------------------------------------- */
.animate-fade-in-up {
  animation: fadeInUp 0.7s ease forwards;
}
.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}
.animate-float {
  animation: float var(--float-dur) ease-in-out infinite;
}
.animate-scale-in {
  animation: scale-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.stagger-1 { animation-delay: calc(var(--anim-stagger) * 1); }
.stagger-2 { animation-delay: calc(var(--anim-stagger) * 2); }
.stagger-3 { animation-delay: calc(var(--anim-stagger) * 3); }
.stagger-4 { animation-delay: calc(var(--anim-stagger) * 4); }
.stagger-5 { animation-delay: calc(var(--anim-stagger) * 5); }

/* --------------------------------------------------------------------------
   22. Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Mobile-first adjustments */
@media (max-width: 575.98px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-section {
    padding: 2rem 0;
  }

  .auth-card {
    padding: 1.75rem 1.25rem;
    border-radius: var(--border-radius);
  }

  .stat-card-value {
    font-size: 1.6rem;
  }

  .category-card {
    height: 160px;
  }

  .cart-item-img {
    width: 60px;
    height: 60px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .footer-desc {
    max-width: 100%;
  }
}

/* Small (sm: 576px+) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-card {
    height: 180px;
  }
}

/* Medium (md: 768px+) */
@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .navbar-nav .nav-link {
    font-size: 0.875rem;
  }

  .dashboard-sidebar {
    display: block;
  }
}

/* Large (lg: 992px+) */
@media (min-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
  }
}

/* Extra large (xl: 1200px+) */
@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .filter-sidebar {
    min-width: 240px;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Payment Method Cards (checkout RadioSelect styling)
   -------------------------------------------------------------------------- */
.payment-method-cards .form-check {
  padding: 0;
  margin-bottom: 0.6rem;
}

.payment-method-cards .form-check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--dark-elevated);
  border: 1.5px solid var(--dark-border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  width: 100%;
  margin: 0;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.payment-method-cards .form-check-input {
  margin-top: .25rem;
  flex-shrink: 0;
  width: 1.1em;
  height: 1.1em;
}

.payment-method-cards .form-check-input:checked + .form-check-label {
  border-color: var(--primary);
  background: rgba(255, 107, 0, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
  color: var(--text-primary);
}

.payment-method-cards .form-check-label:hover {
  border-color: rgba(255, 107, 0, 0.4);
  background: rgba(255, 107, 0, 0.05);
}

/* Sticky navbar fix — ensure nothing overlaps */
body { padding-top: 0 !important; }

/* Mobile product grid fix */
@media (max-width: 575.98px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
  }
}
