/* ============================================
   CARLOS F. CUYATE PASTELERÍA - MAIN CSS
   Diseño Elegante Dorado & Negro
============================================ */

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark: #A07830;
  --black: #0D0D0D;
  --dark: #1A1A1A;
  --dark2: #242424;
  --dark3: #2E2E2E;
  --white: #FFFFFF;
  --cream: #F9F5ED;
  --cream2: #F0E8D5;
  --gray: #888888;
  --gray-light: #CCCCCC;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
  --font-main: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', sans-serif;
  --shadow-gold: 0 4px 20px rgba(201,168,76,0.3);
  --shadow-dark: 0 8px 32px rgba(0,0,0,0.4);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); outline: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 { font-family: var(--font-main); line-height: 1.2; }

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--dark);
  margin-bottom: 16px;
}

.section-title span { color: var(--gold); }

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 0 auto 40px;
  border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--black);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201,168,76,0.5);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.btn-dark:hover {
  background: var(--dark2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-dark);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--black);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--dark);
}

.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ===== HEADER / NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(13,13,13,0.97);
  backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.navbar-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo img { height: 50px; width: auto; }

.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-main);
  font-size: 1.2rem;
  color: var(--gold);
  font-style: italic;
  line-height: 1;
}
.logo-sub {
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: var(--gray-light);
  text-transform: uppercase;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after { width: 70%; }
.nav-link:hover, .nav-link.active { color: var(--gold); }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.15);
}

.nav-icon-btn:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.6rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Toggle */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

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

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/uploads/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  transition: transform 0.1s;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(13,13,13,0.95) 0%,
    rgba(13,13,13,0.6) 50%,
    rgba(201,168,76,0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  padding: 120px 20px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-text { color: var(--white); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 20px;
  color: var(--white);
}

.hero-title .gold { color: var(--gold); font-style: italic; }

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray-light);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-main);
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
}
.stat-label { font-size: 0.75rem; color: var(--gray); letter-spacing: 1px; }

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark);
}

.hero-image-badge {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background: var(--dark2);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-dark);
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 2px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== FEATURES BAR ===== */
.features-bar {
  background: var(--dark);
  padding: 24px 0;
  border-top: 1px solid rgba(201,168,76,0.2);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

.features-bar-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feature-text strong { display: block; font-size: 0.85rem; margin-bottom: 2px; }
.feature-text span { font-size: 0.75rem; color: var(--gray); }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-dark { background: var(--dark); }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header { text-align: center; margin-bottom: 50px; }

/* ===== PRODUCT/COURSE CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: var(--transition);
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

.card:hover .card-image img { transform: scale(1.05); }

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.card-badge.new { background: var(--success); color: var(--white); }
.card-badge.sale { background: var(--danger); color: var(--white); }

.card-actions-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
}

.card:hover .card-actions-overlay { opacity: 1; transform: translateX(0); }

.card-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: var(--transition);
}

.card-action-btn:hover { background: var(--gold); color: var(--black); }

.card-body { padding: 20px; }

.card-category {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-main);
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--gray);
  margin-bottom: 16px;
}

.card-meta i { color: var(--gold); }

.card-stars { display: flex; gap: 2px; }
.card-stars i { color: var(--gold); font-size: 0.75rem; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.price-box { display: flex; align-items: baseline; gap: 8px; }
.price-current {
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
}
.price-original {
  font-size: 0.85rem;
  color: var(--gray);
  text-decoration: line-through;
}

/* ===== CATEGORY TABS ===== */
.category-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  justify-content: center;
}

.cat-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--white);
  border: 2px solid transparent;
  color: var(--gray);
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cat-tab i { font-size: 1.2rem; }
.cat-tab:hover, .cat-tab.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.05);
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E8E8E8;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.form-control::placeholder { color: var(--gray-light); }

/* ===== AUTH PAGES ===== */
.auth-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--black);
}

.auth-left {
  background: linear-gradient(135deg, var(--dark) 0%, var(--black) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/uploads/images/auth-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

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

.auth-right {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  overflow-y: auto;
}

.auth-box { width: 100%; max-width: 440px; }

.auth-title {
  font-family: var(--font-main);
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--gray);
  font-size: 0.82rem;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E8E8E8;
}

.social-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  border: 2px solid #E8E8E8;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  transition: var(--transition);
}

.social-btn:hover { border-color: var(--gold); }

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 100vw;
  background: var(--white);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.2);
}

.cart-sidebar.open { transform: translateX(0); }

.cart-header {
  padding: 24px;
  border-bottom: 1px solid #E8E8E8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dark);
  color: var(--white);
}

.cart-title { font-family: var(--font-main); font-size: 1.3rem; }
.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
}
.cart-close:hover { background: var(--gold); color: var(--black); }

.cart-items { flex: 1; overflow-y: auto; padding: 20px; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #F0F0F0;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.88rem; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.cart-item-type { font-size: 0.72rem; color: var(--gold); margin-bottom: 8px; }
.cart-item-price { font-weight: 700; color: var(--gold); }

.cart-item-remove {
  color: var(--gray);
  font-size: 0.8rem;
  transition: var(--transition);
  background: none;
}
.cart-item-remove:hover { color: var(--danger); }

.cart-footer {
  padding: 24px;
  border-top: 1px solid #E8E8E8;
  background: var(--cream);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-total .amount { color: var(--gold); font-family: var(--font-main); font-size: 1.4rem; }

/* ===== DASHBOARD (ADMIN) ===== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: #F5F5F5;
}

.sidebar {
  background: var(--dark);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  overflow-y: auto;
  z-index: 100;
  transition: var(--transition);
}

.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo .logo-name { font-size: 1rem; }

.sidebar-nav { padding: 20px 12px; }

.sidebar-section-title {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  padding: 8px 12px;
  margin-bottom: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
}

.sidebar-link i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  color: var(--gray);
  transition: var(--transition);
}

.sidebar-link:hover, .sidebar-link.active {
  background: rgba(201,168,76,0.12);
  color: var(--gold);
}

.sidebar-link:hover i, .sidebar-link.active i { color: var(--gold); }

.sidebar-link.active {
  border-left: 3px solid var(--gold);
  padding-left: 11px;
}

.admin-main {
  margin-left: 260px;
  padding: 24px;
  min-height: 100vh;
}

.admin-topbar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.admin-page-title {
  font-family: var(--font-main);
  font-size: 1.5rem;
  color: var(--dark);
}

/* ===== STATS CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-icon.gold { background: rgba(201,168,76,0.15); color: var(--gold); }
.stat-icon.blue { background: rgba(23,162,184,0.15); color: var(--info); }
.stat-icon.green { background: rgba(40,167,69,0.15); color: var(--success); }
.stat-icon.red { background: rgba(220,53,69,0.15); color: var(--danger); }

.stat-info {}
.stat-value {
  font-family: var(--font-main);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 0.8rem; color: var(--gray); }

/* ===== TABLES ===== */
.table-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.table-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #F0F0F0;
}

table { width: 100%; border-collapse: collapse; }
thead { background: #FAFAFA; }
th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid #F0F0F0;
}
td {
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--dark);
  border-bottom: 1px solid #F8F8F8;
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FAFAFA; }

/* ===== BADGES/PILLS ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-success { background: rgba(40,167,69,0.12); color: var(--success); }
.badge-danger { background: rgba(220,53,69,0.12); color: var(--danger); }
.badge-warning { background: rgba(255,193,7,0.12); color: #856404; }
.badge-info { background: rgba(23,162,184,0.12); color: var(--info); }
.badge-gold { background: rgba(201,168,76,0.12); color: var(--gold-dark); }

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  animation: slideInRight 0.4s ease;
  border-left: 4px solid var(--gold);
}

.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }

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

/* ===== MOBILE APP STYLES ===== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid #E8E8E8;
  z-index: 900;
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.mobile-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  color: var(--gray);
  font-size: 0.65rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.mobile-nav-item i { font-size: 1.3rem; }
.mobile-nav-item.active, .mobile-nav-item:hover { color: var(--gold); }

.mobile-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--gold);
  border-radius: 0 0 4px 4px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 70px 0 0;
  border-top: 1px solid rgba(201,168,76,0.2);
}

.footer-grid {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo-name { font-size: 1.4rem; margin-bottom: 4px; }
.footer-brand p {
  color: var(--gray);
  font-size: 0.85rem;
  margin-top: 16px;
  line-height: 1.8;
}

.footer-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  color: var(--gray);
  font-size: 0.85rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-link:hover { color: var(--gold); padding-left: 4px; }
.footer-link::before { content: '›'; color: var(--gold); }

.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-link:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }

.footer-bottom {
  margin-top: 50px;
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom p { font-size: 0.8rem; color: var(--gray); }

/* ===== LOADING ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.hidden { opacity: 0; visibility: hidden; }

.loader-ring {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(201,168,76,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid #E8E8E8;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
}

.page-btn:hover, .page-btn.active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--black);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
}

@media (max-width: 768px) {
  .navbar-menu { display: none; }
  .hamburger { display: flex; }

  .navbar-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13,13,13,0.98);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 999;
  }

  .navbar-menu.open .nav-link {
    font-size: 1.4rem;
    padding: 12px 24px;
  }

  .hero-content { grid-template-columns: 1fr; text-align: center; padding-top: 100px; }
  .hero-image { display: none; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }

  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 40px 20px; }

  .footer-grid { grid-template-columns: 1fr; }
  .features-bar-inner { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

  .mobile-nav { display: block; }
  body { padding-bottom: 70px; }

  .cart-sidebar { width: 100%; }
  .toast-container { left: 16px; right: 16px; bottom: 80px; }
  .toast { min-width: unset; }
}

@media (max-width: 480px) {
  .features-bar-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .category-tabs { gap: 6px; }
  .cat-tab { padding: 10px 14px; font-size: 0.72rem; }
}

/* ===== ANIMATIONS ===== */
.fade-in { animation: fadeIn 0.6s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ===== PWA / APP-LIKE ===== */
@media (display-mode: standalone) {
  .navbar { padding-top: env(safe-area-inset-top, 16px); }
  .mobile-nav { padding-bottom: env(safe-area-inset-bottom, 8px); }
}
