/* ============================================================
   Golden Thread - Main Stylesheet
   شركة الخيط الذهبي - ملف الأنماط الرئيسي
   Luxury White & Gold B2B Theme
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800&display=swap');

/* ============================================================
   CSS Variables / Design Tokens (Luxury White + Gold)
   ============================================================ */
:root {
  /* Primary White & Light Backgrounds */
  --background: #FFFFFF;
  --surface: #FFFFFF;
  --surface-soft: #F8F8F8;
  --surface-hover: #F8F6EF;
  --surface-card: #FFFFFF;

  /* Legacy Scale mapped to Light Theme */
  --bg-900: #FFFFFF;
  --bg-800: #FAFAFA;
  --bg-700: #FFFFFF;
  --bg-600: #F8F8F8;
  --bg-500: #F2F0EB;
  --bg-400: #E6E3DB;
  --bg-300: #D8D4CA;

  /* Gold Palette - Preserving Brand Identity */
  --primary-gold: #C9A227;
  --primary-gold-dark: #A88416;
  --primary-gold-light: #DDBB55;
  --primary-gold-soft: rgba(201, 162, 39, 0.10);

  --gold-100: #FAF6EC;
  --gold-200: #F3E9CD;
  --gold-300: #DECA8D;
  --gold-400: #C9A227;
  --gold-500: #B88E18;
  --gold-600: #A88416; /* High contrast gold for text & active */
  --gold-700: #8C6B0D;
  --gold-800: #6B5107;

  /* Typography / Text Colors (High Contrast on White) */
  --text-primary: #222222;
  --text-secondary: #555555;
  --text-muted: #777777;
  --text-heading: #1F1F1F;
  --text-gold: #A88416;

  /* Status Colors (Soft & Clear) */
  --color-success: #198754;
  --color-danger: #DC3545;
  --color-warning: #D9A441;
  --color-info: #0D6EFD;
  --success: #198754;
  --danger: #DC3545;
  --warning: #D9A441;
  --info: #0D6EFD;

  /* Clean Luxury Borders */
  --border-color: #EAEAEA;
  --border: #E5E5E5;
  --border-subtle: #F0F0F0;
  --border-gold: rgba(201, 162, 39, 0.4);

  /* Glassmorphism for Light Theme */
  --glass-bg: rgba(255, 255, 255, 0.94);
  --glass-border: rgba(201, 162, 39, 0.22);
  --glass-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);

  /* Soft Luxury Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-gold: 0 4px 20px rgba(201, 162, 39, 0.16);

  /* Typography Settings */
  --font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-size-base: 15px;
  --line-height: 1.7;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50px;

  /* Dimensions */
  --sidebar-width: 280px;
  --header-height: 70px;
  --navbar-height: 70px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  lang: ar;
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
  background-color: var(--background);
}

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

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-family);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-heading);
}

h1, .h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
h2, .h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
h3, .h3 { font-size: clamp(1.25rem, 2.5vw, 1.7rem); }
h4, .h4 { font-size: 1.3rem; }
h5, .h5 { font-size: 1.1rem; }
h6, .h6 { font-size: 1rem; }

p { color: var(--text-secondary); margin-bottom: 1rem; }

a {
  color: var(--primary-gold-dark);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover { color: var(--primary-gold); }

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

/* ============================================================
   Scrollbar
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface-soft); }
::-webkit-scrollbar-thumb { background: var(--primary-gold); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-gold-dark); }

/* ============================================================
   Selection
   ============================================================ */
::selection {
  background: rgba(201, 162, 39, 0.25);
  color: #1F1F1F;
}

/* ============================================================
   Bootstrap Overrides & Global Text Rules
   ============================================================ */
.text-gold { color: var(--primary-gold-dark) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }

/* Intelligent protection: prevent legacy text-white from causing invisible text */
.text-white:not(.btn *):not(.badge *):not(.badge):not(.btn):not(.alert *):not(.hero-slide-wrap *):not(.carousel-item *):not(.bg-success *):not(.bg-danger *):not(.bg-primary *):not(.bg-gold *) {
  color: var(--text-primary) !important;
}

.text-dark {
  color: var(--text-primary) !important;
}

/* Background utilities mapped to clean light tones */
.bg-dark-900,
.bg-dark-800,
.bg-dark-700,
.bg-dark-600 {
  background-color: var(--surface) !important;
  color: var(--text-primary) !important;
}

.bg-dark-500,
.bg-dark-400 {
  background-color: var(--surface-soft) !important;
}

.bg-gold {
  background-color: var(--primary-gold) !important;
  color: #FFFFFF !important;
}

/* ============================================================
   Bootstrap Cards Override
   ============================================================ */
.card {
  background: var(--surface) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  color: var(--text-primary);
}

.card:hover {
  border-color: var(--border-gold) !important;
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.card-header {
  background: var(--surface-soft) !important;
  border-bottom: 1px solid var(--border-color) !important;
  padding: 1rem 1.5rem;
  font-weight: 700;
  color: var(--text-heading) !important;
}

.card-body { padding: 1.5rem; }

.card-footer {
  background: var(--surface-soft) !important;
  border-top: 1px solid var(--border-color) !important;
  padding: 1rem 1.5rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  font-family: var(--font-family);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  padding: 0.55rem 1.35rem;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* Primary Gold Button */
.btn-gold {
  background: var(--primary-gold) !important;
  color: #FFFFFF !important;
  border: 1px solid var(--primary-gold) !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.2);
}

.btn-gold:hover {
  background: var(--primary-gold-dark) !important;
  border-color: var(--primary-gold-dark) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.35);
}

.btn-gold:active {
  transform: translateY(0);
}

/* Secondary Gold Button */
.btn-outline-gold {
  background: #FFFFFF !important;
  color: var(--primary-gold-dark) !important;
  border: 1px solid var(--primary-gold) !important;
  font-weight: 600;
}

.btn-outline-gold:hover {
  background: var(--primary-gold) !important;
  color: #FFFFFF !important;
  border-color: var(--primary-gold) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.25);
}

/* Outline Light / Secondary Neutral */
.btn-outline-light {
  background: #FFFFFF !important;
  border: 1px solid #DCDCDC !important;
  color: var(--text-secondary) !important;
}

.btn-outline-light:hover {
  background: var(--surface-hover) !important;
  border-color: var(--primary-gold) !important;
  color: var(--primary-gold-dark) !important;
}

/* Glass / Soft Button */
.btn-dark-glass {
  background: var(--surface) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  box-shadow: var(--shadow-sm);
}

.btn-dark-glass:hover {
  background: var(--surface-hover) !important;
  border-color: var(--primary-gold) !important;
  color: var(--primary-gold-dark) !important;
}

.btn-xs {
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  border-radius: 6px;
}

/* ============================================================
   Forms & Inputs
   ============================================================ */
.form-control, .form-select {
  background-color: #FFFFFF !important;
  border: 1px solid #DCDCDC !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-family: var(--font-family);
  transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  background-color: #FFFFFF !important;
  border-color: var(--primary-gold) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15) !important;
  outline: none;
}

.form-control::placeholder { color: #999999; }

.form-control.is-invalid {
  border-color: var(--color-danger) !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.form-label {
  color: #333333;
  font-weight: 600;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

.form-text { color: var(--text-muted); font-size: 0.8rem; }
.invalid-feedback { color: #dc3545; font-size: 0.82rem; }

.input-group-text {
  background: var(--surface-soft) !important;
  border-color: #DCDCDC !important;
  color: var(--text-secondary) !important;
}

/* ============================================================
   Tables (Light Luxury Admin & Customer)
   ============================================================ */
.table {
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
  margin-bottom: 0;
  background-color: transparent !important;
}

.table th {
  background-color: var(--surface-soft) !important;
  color: #333333 !important;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0.9rem 1rem;
  border-color: var(--border-color) !important;
  border-bottom: 2px solid var(--border-color) !important;
  white-space: nowrap;
}

.table td {
  padding: 0.9rem 1rem;
  border-color: var(--border-color) !important;
  vertical-align: middle;
  background-color: #FFFFFF !important;
  color: var(--text-primary) !important;
}

.table tbody tr {
  transition: var(--transition-fast);
}

.table tbody tr:hover td {
  background-color: var(--surface-hover) !important;
}

/* Universal override for table-dark across all existing views */
.table.table-dark,
.table-dark {
  --bs-table-bg: transparent !important;
  --bs-table-color: var(--text-primary) !important;
  --bs-table-border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
  background: transparent !important;
}

.table.table-dark th,
.table-dark th {
  background-color: var(--surface-soft) !important;
  color: #333333 !important;
  border-bottom: 2px solid var(--border-color) !important;
}

.table.table-dark td,
.table-dark td {
  background-color: #FFFFFF !important;
  color: var(--text-primary) !important;
  border-bottom: 1px solid var(--border-color) !important;
}

.table.table-dark tr:hover td,
.table-dark tr:hover td {
  background-color: var(--surface-hover) !important;
}

.table-responsive {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #FFFFFF;
}

/* ============================================================
   Badges
   ============================================================ */
.badge {
  font-family: var(--font-family);
  font-weight: 600;
  padding: 0.35em 0.7em;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.badge-gold {
  background: var(--primary-gold) !important;
  color: #FFFFFF !important;
}

.badge-soft-gold {
  background: rgba(201, 162, 39, 0.12) !important;
  color: var(--primary-gold-dark) !important;
  border: 1px solid rgba(201, 162, 39, 0.3) !important;
}

/* ============================================================
   Navigation - Public Navbar (Luxury Gold Theme & Proportional Typography)
   ============================================================ */
.navbar-gt {
  background: linear-gradient(135deg, #D4AF37 0%, #C59A27 28%, #A88416 70%, #8C6509 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-bottom: 1px solid rgba(140, 101, 9, 0.45) !important;
  box-shadow: 0 4px 20px rgba(140, 101, 9, 0.35) !important;
  min-height: var(--navbar-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar-gt.scrolled {
  background: linear-gradient(135deg, #C59A27 0%, #A87E12 50%, #825C05 100%) !important;
  box-shadow: 0 6px 26px rgba(120, 80, 5, 0.45) !important;
}

.navbar-brand-gt {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 0.4rem + 0.4vw, 0.85rem);
  text-decoration: none;
  color: #FFFFFF !important;
}

.navbar-brand-gt .brand-title {
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem) !important;
  font-weight: 900;
  line-height: 1.25;
  color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  letter-spacing: -0.2px;
}

.navbar-brand-gt .brand-subtitle {
  font-size: clamp(0.62rem, 0.58rem + 0.2vw, 0.75rem) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 1.1;
}

.navbar-brand-gt .logo-icon {
  width: clamp(38px, 34px + 0.6vw, 44px);
  height: clamp(38px, 34px + 0.6vw, 44px);
  background: #FFFFFF !important;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.15rem, 1.05rem + 0.3vw, 1.35rem);
  color: #8C6509 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.nav-link-gt {
  color: #FFFFFF !important;
  font-size: clamp(0.88rem, 0.82rem + 0.25vw, 1.02rem) !important;
  font-weight: 600;
  padding: clamp(0.45rem, 0.38rem + 0.2vw, 0.6rem) clamp(0.7rem, 0.55rem + 0.4vw, 1.15rem) !important;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
}

.nav-link-gt::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 50%;
  width: 0;
  height: 2.5px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: var(--transition);
  transform: translateX(50%);
}

.nav-link-gt:hover {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.22) !important;
}

.nav-link-gt.active {
  color: #FFFFFF !important;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.18) !important;
}

.nav-link-gt:hover::after, .nav-link-gt.active::after {
  width: 60%;
}

/* Action Buttons in Navbar */
.navbar-gt .btn-gold {
  background: #FFFFFF !important;
  color: #8C6509 !important;
  border: 1.5px solid #FFFFFF !important;
  font-size: clamp(0.82rem, 0.78rem + 0.15vw, 0.92rem) !important;
  font-weight: 800 !important;
  border-radius: 22px !important;
  padding: clamp(0.4rem, 0.32rem + 0.2vw, 0.55rem) clamp(0.9rem, 0.75rem + 0.4vw, 1.35rem) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: var(--transition-fast);
}

.navbar-gt .btn-gold:hover {
  background: #FFF9E8 !important;
  color: #6D4C04 !important;
  border-color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.navbar-gt .btn-outline-gold {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
  font-size: clamp(0.82rem, 0.78rem + 0.15vw, 0.92rem) !important;
  font-weight: 700 !important;
  border-radius: 22px !important;
  padding: clamp(0.4rem, 0.32rem + 0.2vw, 0.55rem) clamp(0.9rem, 0.75rem + 0.4vw, 1.35rem) !important;
  transition: var(--transition-fast);
}

.navbar-gt .btn-outline-gold:hover {
  background: #FFFFFF !important;
  color: #8C6509 !important;
  border-color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* Cart / Invoice & Notif Buttons */
.cart-btn, .notif-btn {
  position: relative;
  color: #FFFFFF !important;
  font-size: clamp(1.05rem, 0.98rem + 0.2vw, 1.25rem);
  transition: var(--transition-fast);
  min-width: clamp(38px, 34px + 0.5vw, 42px);
  height: clamp(38px, 34px + 0.5vw, 42px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.22) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
}

.cart-btn:hover, .notif-btn:hover {
  color: #8C6509 !important;
  border-color: #FFFFFF !important;
  background: #FFFFFF !important;
  transform: translateY(-1px);
}

.cart-count {
  position: absolute;
  top: -5px;
  left: -5px;
  background: #FFFFFF !important;
  color: #8C6509 !important;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.72rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.notif-count {
  position: absolute;
  top: -5px;
  left: -5px;
  background: #DC3545;
  color: white;
  border-radius: 50%;
  width: 19px;
  height: 19px;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Mobile Navbar Styles */
@media (max-width: 991.98px) {
  .navbar-gt .navbar-collapse {
    background: linear-gradient(145deg, #C59A27 0%, #A87E12 50%, #825C05 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 14px;
    padding: 1.25rem;
    margin-top: 0.75rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  }

  .nav-link-gt {
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
    font-size: 1rem !important;
    margin-bottom: 0.25rem;
  }

  .nav-link-gt:hover, .nav-link-gt.active {
    background: rgba(255, 255, 255, 0.2) !important;
  }

  .navbar-gt .navbar-collapse .d-flex {
    flex-direction: column;
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .navbar-gt .navbar-collapse .d-flex .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 85vh;
  overflow: hidden;
  background: #FFFFFF;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  will-change: opacity;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 10s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.75) 60%,
    rgba(248, 246, 239, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 85vh;
  padding: 4rem 2rem;
}

.hero-text { max-width: 640px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: var(--primary-gold-dark);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: #1F1F1F;
}

.hero-title .highlight {
  color: var(--primary-gold-dark);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Progress Indicators */
.hero-progress {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}

.hero-progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: var(--transition);
}

.hero-progress-dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--primary-gold);
}

/* Hero Navigation */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.hero-nav-btn:hover {
  background: var(--primary-gold);
  border-color: var(--primary-gold);
  color: #FFFFFF;
}

.hero-nav-prev { right: 1.5rem; }
.hero-nav-next { left: 1.5rem; }

/* ============================================================
   Product Cards (White Luxury Cards)
   ============================================================ */
.product-card {
  background: #FFFFFF !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
  border-color: var(--primary-gold) !important;
  box-shadow: 0 8px 25px rgba(201, 162, 39, 0.18);
  transform: translateY(-4px);
}

.product-card-img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #F9F9F9;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-badges {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
}

.badge-featured {
  background: var(--primary-gold);
  color: #FFFFFF;
  font-size: 0.7rem;
  padding: 0.25em 0.6em;
  border-radius: 4px;
}

.badge-new {
  background: #198754;
  color: white;
  font-size: 0.7rem;
  padding: 0.25em 0.6em;
  border-radius: 4px;
}

.product-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
}

.product-card-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #222222;
  line-height: 1.4;
}

.product-card-code {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  margin-top: auto;
}

.product-card-price {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--primary-gold-dark);
}

.product-card-moq {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: left;
}

/* ============================================================
   Section Titles
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-eyebrow {
  display: inline-block;
  color: var(--primary-gold-dark);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #1F1F1F;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--primary-gold);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ============================================================
   Category Cards
   ============================================================ */
.category-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img { transform: scale(1.08); }

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.05) 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  transition: var(--transition);
}

.category-card:hover .category-card-overlay {
  background: linear-gradient(to top, rgba(168,132,22,0.65) 0%, rgba(0,0,0,0.1) 80%);
}

.category-card-name {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ============================================================
   Admin Layout (White + Gold)
   ============================================================ */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
  background: #F8F8F8;
}

/* Admin Sidebar */
.admin-sidebar {
  width: var(--sidebar-width);
  background: #FFFFFF !important;
  border-left: 1px solid var(--border-color) !important;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.03);
}

.admin-sidebar::-webkit-scrollbar { width: 3px; }

.sidebar-brand {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #FFFFFF;
}

.sidebar-brand .brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #FFFFFF;
  font-weight: 900;
  flex-shrink: 0;
}

.sidebar-brand-text .brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1F1F1F;
  line-height: 1.2;
}

.sidebar-brand-text .brand-sub {
  font-size: 0.72rem;
  color: var(--primary-gold-dark);
  font-weight: 600;
}

/* Sidebar Nav Groups */
.sidebar-nav { flex: 1; padding: 1rem 0; background: #FFFFFF; }

.sidebar-group { margin-bottom: 1.25rem; }

.sidebar-group-title {
  padding: 0.3rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  color: #555555;
  transition: var(--transition-fast);
  cursor: pointer;
  border-radius: 0;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  border-right: 3px solid transparent;
}

.sidebar-item:hover {
  background: #F8F6EF !important;
  color: var(--primary-gold-dark) !important;
}

.sidebar-item.active {
  background: rgba(201, 162, 39, 0.10) !important;
  color: var(--primary-gold-dark) !important;
  font-weight: 700;
  border-right: 3px solid var(--primary-gold) !important;
}

.sidebar-item-icon {
  width: 20px;
  text-align: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  color: var(--primary-gold-dark);
}

.sidebar-item.active .sidebar-item-icon {
  color: var(--primary-gold-dark);
}

.sidebar-item-badge {
  margin-right: auto;
  background: var(--color-danger);
  color: white;
  border-radius: 10px;
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background: #FAFAFA;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-gold);
}

.sidebar-user-info .user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1F1F1F;
  line-height: 1.2;
}

.sidebar-user-info .user-role {
  font-size: 0.72rem;
  color: var(--primary-gold-dark);
  font-weight: 600;
}

/* Admin Main Content */
.admin-main {
  flex: 1;
  margin-right: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #F8F8F8;
}

.admin-header {
  background: linear-gradient(135deg, #D4AF37 0%, #C59A27 28%, #A88416 70%, #8C6509 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-bottom: 1px solid rgba(140, 101, 9, 0.45) !important;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 0.8rem + 0.8vw, 1.75rem);
  gap: clamp(0.6rem, 0.5rem + 0.4vw, 1.25rem);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 18px rgba(140, 101, 9, 0.3) !important;
  color: #FFFFFF !important;
}

.admin-header h5 {
  color: #FFFFFF !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.admin-toggle-btn {
  display: none;
  background: rgba(255, 255, 255, 0.22) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  color: #FFFFFF !important;
  width: clamp(38px, 34px + 0.5vw, 42px);
  height: clamp(38px, 34px + 0.5vw, 42px);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.admin-toggle-btn:hover {
  background: #FFFFFF !important;
  color: #8C6509 !important;
  border-color: #FFFFFF !important;
  transform: translateY(-1px);
}

.admin-breadcrumb {
  flex: 1;
}

.admin-breadcrumb .breadcrumb {
  margin: 0;
  font-size: clamp(0.82rem, 0.78rem + 0.2vw, 0.92rem);
  display: flex;
  align-items: center;
}

.admin-breadcrumb .breadcrumb-item,
.admin-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.admin-breadcrumb .breadcrumb-item a:hover {
  color: #FFFFFF !important;
  text-decoration: underline;
}

.admin-breadcrumb .breadcrumb-item.active {
  color: #FFFFFF !important;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.admin-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: '‹';
  color: rgba(255, 255, 255, 0.7) !important;
  font-weight: 700;
  padding: 0 0.4rem;
}

.admin-header .btn-outline-light {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
  color: #FFFFFF !important;
  font-size: clamp(0.78rem, 0.74rem + 0.15vw, 0.86rem) !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  padding: 0.35rem 0.85rem !important;
  transition: var(--transition-fast);
}

.admin-header .btn-outline-light:hover {
  background: #FFFFFF !important;
  color: #8C6509 !important;
  border-color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-content {
  flex: 1;
  padding: 2rem;
  overflow-x: hidden;
  background: #F8F8F8;
}

/* ============================================================
   Stats & KPI Cards
   ============================================================ */
.stat-card, .kpi-card {
  background: #FFFFFF !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.stat-card::before, .kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: var(--primary-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: width 0.3s ease;
}

.stat-card:hover::before, .kpi-card:hover::before { width: 5px; }

.stat-card:hover, .kpi-card:hover {
  border-color: var(--border-gold) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  background: rgba(201, 162, 39, 0.12);
  color: var(--primary-gold-dark);
}

.stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: #1F1F1F !important;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.88rem;
  color: #666666 !important;
  font-weight: 600;
}

.stat-trend {
  font-size: 0.78rem;
  margin-top: 0.5rem;
}

.stat-trend.up { color: var(--color-success); }
.stat-trend.down { color: var(--color-danger); }

/* ============================================================
   Glassmorphism Components
   ============================================================ */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

/* ============================================================
   Toast Notifications
   ============================================================ */
.toast-container { z-index: 9999 !important; }

.toast {
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 300px;
  background: #FFFFFF !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
}

/* ============================================================
   Modals
   ============================================================ */
.modal-content {
  background: #FFFFFF !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg);
  color: var(--text-primary) !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12) !important;
}

.modal-header {
  border-bottom: 1px solid #EEEEEE !important;
  padding: 1.25rem 1.5rem;
  background: #FFFFFF !important;
}

.modal-title { font-weight: 700; color: #1F1F1F !important; }

.modal-footer {
  border-top: 1px solid #EEEEEE !important;
  padding: 1rem 1.5rem;
  background: #FAFAFA !important;
}

.btn-close-white {
  filter: none !important;
  opacity: 0.65;
}

.btn-close-white:hover {
  opacity: 1;
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination .page-link {
  background: #FFFFFF !important;
  border-color: #DDDDDD !important;
  color: #555555 !important;
  font-family: var(--font-family);
  transition: var(--transition-fast);
}

.pagination .page-link:hover {
  background: #F8F6EF !important;
  border-color: var(--primary-gold) !important;
  color: var(--primary-gold-dark) !important;
}

.pagination .page-item.active .page-link {
  background: var(--primary-gold) !important;
  border-color: var(--primary-gold) !important;
  color: #FFFFFF !important;
  font-weight: 700;
}

.pagination .page-item.disabled .page-link {
  background: #F8F8F8 !important;
  color: #AAAAAA !important;
  border-color: #EAEAEA !important;
}

/* ============================================================
   Alerts (Soft Modern Styling)
   ============================================================ */
.alert {
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.92rem;
  font-weight: 500;
}

.alert-success {
  background: #EDF7EE !important;
  border: 1px solid #C3E6CB !important;
  color: #155724 !important;
}

.alert-danger {
  background: #FDF2F2 !important;
  border: 1px solid #F5C6CB !important;
  color: #721C24 !important;
}

.alert-warning {
  background: #FFF9E6 !important;
  border: 1px solid #FFEEBA !important;
  color: #856404 !important;
}

.alert-info {
  background: #EBF5FB !important;
  border: 1px solid #BEE5EB !important;
  color: #0C5460 !important;
}

/* ============================================================
   Dropdowns
   ============================================================ */
.dropdown-menu {
  background: #FFFFFF !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  color: #333333 !important;
}

.dropdown-item {
  color: #444444 !important;
  font-size: 0.9rem;
  padding: 0.55rem 1.15rem;
  transition: var(--transition-fast);
}

.dropdown-item:hover, .dropdown-item:focus {
  background: #F8F6EF !important;
  color: var(--primary-gold-dark) !important;
}

.dropdown-divider {
  border-color: var(--border-color) !important;
}

/* ============================================================
   Footer (Luxury Imperial Gold Theme & Proportional Typography)
   ============================================================ */
.site-footer {
  background: linear-gradient(135deg, #C59A27 0%, #B3861B 25%, #9E7412 60%, #7A5706 100%) !important;
  border-top: 4px solid #DFBE58 !important;
  box-shadow: 0 -6px 25px rgba(122, 87, 6, 0.3) !important;
  padding: clamp(3rem, 2.5rem + 2vw, 5rem) 0 2rem !important;
  color: #FFFFFF !important;
  position: relative;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 0.5rem + 0.4vw, 0.9rem);
  margin-bottom: clamp(1rem, 0.9rem + 0.5vw, 1.4rem);
}

.footer-brand .brand-icon {
  width: clamp(40px, 36px + 0.6vw, 48px);
  height: clamp(40px, 36px + 0.6vw, 48px);
  background: #FFFFFF !important;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.2rem, 1.1rem + 0.3vw, 1.45rem);
  color: #8C6509 !important;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.footer-brand .brand-name {
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem) !important;
  font-weight: 900;
  color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  line-height: 1.25;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: clamp(0.86rem, 0.82rem + 0.2vw, 0.96rem) !important;
  line-height: 1.85;
  margin-bottom: 1.25rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.footer-heading {
  font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.22rem) !important;
  font-weight: 800;
  color: #FFFFFF !important;
  margin-bottom: clamp(1rem, 0.9rem + 0.4vw, 1.35rem);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 2.5px;
  background: #FFFFFF;
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: clamp(0.5rem, 0.45rem + 0.2vw, 0.75rem);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: clamp(0.86rem, 0.82rem + 0.2vw, 0.96rem) !important;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.footer-links a:hover {
  color: #FFFFFF !important;
  transform: translateX(-5px);
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: clamp(0.86rem, 0.82rem + 0.2vw, 0.96rem) !important;
  margin-bottom: 0.85rem;
  line-height: 1.6;
}

.footer-contact-item i {
  color: #FFFFFF !important;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.15rem);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: #FFFFFF !important;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

.footer-contact-item a:hover {
  text-decoration: underline;
  color: #FFF9E8 !important;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-link {
  width: clamp(38px, 34px + 0.5vw, 42px);
  height: clamp(38px, 34px + 0.5vw, 42px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF !important;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.15rem);
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.social-link:hover {
  background: #FFFFFF !important;
  color: #8C6509 !important;
  border-color: #FFFFFF !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.footer-divider {
  border: 0 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) !important;
  margin: clamp(2rem, 1.5rem + 1.5vw, 3rem) 0 1.5rem !important;
  opacity: 1 !important;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: linear-gradient(90deg, rgba(140, 101, 9, 0.45) 0%, rgba(105, 74, 5, 0.65) 50%, rgba(140, 101, 9, 0.45) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 12px;
  padding: 1.15rem 1.6rem !important;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.15), 0 4px 15px rgba(0, 0, 0, 0.15);
}

.footer-copyright {
  color: #FFFFFF !important;
  font-size: clamp(0.82rem, 0.78rem + 0.15vw, 0.92rem) !important;
  font-weight: 600;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   Loading / Spinner
   ============================================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.loading-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.spinner-gold {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(201, 162, 39, 0.2);
  border-top-color: var(--primary-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Page Header
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, #FFFFFF 0%, #F9F8F4 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 2.5rem 0;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,162,39,0.06) 0%, transparent 70%);
  pointer-events: none !important;
}

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

/* Admin panel page-header reset */
.admin-content .page-header {
  background: transparent !important;
  border-bottom: none !important;
  padding: 0 !important;
  margin-bottom: 1.5rem !important;
  position: relative !important;
  overflow: visible !important;
  z-index: 5 !important;
}

.admin-content .page-header::before {
  display: none !important;
}

.admin-content .page-header > * {
  position: relative;
  z-index: 6;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #1F1F1F;
  margin-bottom: 0.5rem;
}

.page-header .breadcrumb { margin: 0; font-size: 0.85rem; }
.page-header .breadcrumb-item { color: var(--text-muted); }
.page-header .breadcrumb-item.active { color: var(--primary-gold-dark); font-weight: 700; }
.page-header .breadcrumb-item + .breadcrumb-item::before { content: '‹'; color: var(--text-muted); }

/* ============================================================
   Auth Pages
   ============================================================ */
.auth-wrapper {
  min-height: 100vh;
  background: #F8F8F8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.auth-bg-pattern {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(201,162,39,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(201,162,39,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 500px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 1;
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo .logo-circle {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #FFFFFF;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.auth-logo h4 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1F1F1F;
}

.auth-logo p { font-size: 0.88rem; color: #666666; margin: 0; }

/* ============================================================
   Customer Dashboard
   ============================================================ */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: #F8F8F8;
}

.dashboard-sidebar {
  width: 260px;
  background: #FFFFFF;
  border-left: 1px solid var(--border-color);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
}

.dashboard-main { flex: 1; padding: 2rem; overflow-x: hidden; background: #F8F8F8; }

/* ============================================================
   Utility Classes
   ============================================================ */
.gold-line {
  height: 2px;
  background: linear-gradient(to left, transparent, var(--primary-gold), transparent);
  margin: 1.5rem 0;
}

.gold-text { color: var(--primary-gold-dark); }
.section-py { padding-top: 5rem; padding-bottom: 5rem; }

.hover-gold { transition: var(--transition-fast); }
.hover-gold:hover { color: var(--primary-gold-dark) !important; }

.border-gold { border-color: var(--primary-gold) !important; }
.border-subtle { border-color: var(--border-color) !important; }

.overflow-hidden { overflow: hidden; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }

.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

/* ============================================================
   Empty States
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3.5rem;
  color: var(--primary-gold);
  margin-bottom: 1.25rem;
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1F1F1F;
  margin-bottom: 0.5rem;
}

.empty-state p { font-size: 0.92rem; color: #666666; }

/* ============================================================
   Filter Bar
   ============================================================ */
.filter-bar {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   Image Gallery
   ============================================================ */
.product-gallery {
  display: grid;
  gap: 0.5rem;
}

.gallery-main {
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 70px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-fast);
  background: #FFFFFF;
}

.gallery-thumb.active { border-color: var(--primary-gold); }
.gallery-thumb:hover { border-color: rgba(201, 162, 39, 0.5); }

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   Responsive Base
   ============================================================ */
@media (max-width: 991.98px) {
  .admin-sidebar {
    transform: translateX(100%);
  }

  .admin-sidebar.show {
    transform: translateX(0);
  }

  .admin-main { margin-right: 0; }
  .admin-toggle-btn { display: flex; }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 99;
    display: none;
  }

  .sidebar-overlay.show { display: block; }
  .stat-card { margin-bottom: 1rem; }
}

@media (max-width: 767.98px) {
  :root {
    --font-size-base: 14px;
  }

  .hero-section { min-height: 70vh; }
  .hero-content { min-height: 70vh; padding: 2rem 1rem; }
  .hero-title { font-size: 1.8rem; }

  .section-py { padding-top: 3rem; padding-bottom: 3rem; }
  .auth-card { padding: 2rem 1.5rem; }

  .admin-content { padding: 1rem; }
  .dashboard-main { padding: 1rem; }

  .table-responsive .table td { white-space: normal; }
  .hero-nav-btn { display: none; }
  .dashboard-sidebar { display: none; }
  .product-card-meta { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
}

@media (max-width: 575.98px) {
  .auth-card { border-radius: var(--radius-lg); padding: 1.5rem 1rem; }
  h1 { font-size: 1.6rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (min-width: 1440px) {
  .container-xxl { max-width: 1400px; }
  .admin-sidebar { width: 300px; }
  .admin-main { margin-right: 300px; }
  :root { --sidebar-width: 300px; }
}

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

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

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

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.animate-fadeIn   { animation: fadeIn 0.4s ease forwards; }
.animate-pulse    { animation: pulse 2s ease-in-out infinite; }

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* ============================================================
   Print
   ============================================================ */
@media print {
  .admin-sidebar, .admin-header, .navbar-gt, .site-footer { display: none !important; }
  .admin-main { margin-right: 0 !important; }
  body { background: white !important; color: black !important; }
  .card { border: 1px solid #ddd !important; }
}
