/* GLAM'S COLLECTION - Custom Styles */

:root {
  --gold: #d4af37;
  --gold-light: #f0d060;
  --dark-bg: #0d0b09;
  --dark-card: #1a1714;
  --dark-border: rgba(212, 175, 55, 0.15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1a1714; }
::-webkit-scrollbar-thumb { background: #d4af37; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #f0d060; }

/* Gold Button */
.btn-gold {
  background: linear-gradient(135deg, #d4af37 0%, #f0d060 50%, #d4af37 100%);
  color: #0d0b09;
  font-weight: 600;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.btn-gold::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.btn-gold:hover::before { left: 100%; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 25px rgba(212,175,55,0.4); }
.btn-gold:active { transform: translateY(0); }

/* Outline Gold Button */
.btn-gold-outline {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
  transition: all 0.3s;
}
.btn-gold-outline:hover { background: rgba(212,175,55,0.1); transform: translateY(-1px); }

/* Product Card */
.product-card {
  background: #1a1714;
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
}
.product-card:hover {
  border-color: rgba(212,175,55,0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(212,175,55,0.1);
}
.product-card .product-img-wrap { position: relative; overflow: hidden; }
.product-card .product-img-wrap img {
  width: 100%; height: 280px; object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-card .card-actions {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 40px 12px 12px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.product-card:hover .card-actions { transform: translateY(0); }

/* Hero */
.hero-gradient {
  background: linear-gradient(135deg, #0d0b09 0%, #1a1714 30%, #2d2318 60%, #0d0b09 100%);
}
.hero-overlay {
  background: radial-gradient(ellipse at 60% 50%, rgba(212,175,55,0.08) 0%, transparent 60%);
}

/* Sparkle animation */
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}
.sparkle { animation: sparkle 2s infinite; }
.sparkle:nth-child(2) { animation-delay: 0.5s; }
.sparkle:nth-child(3) { animation-delay: 1s; }
.sparkle:nth-child(4) { animation-delay: 1.5s; }

/* Shimmer */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
.shimmer {
  background: linear-gradient(90deg, #1a1714 25%, #2d2926 50%, #1a1714 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Badge */
.badge-promo { background: linear-gradient(135deg, #dc2626, #ef4444); color: white; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; letter-spacing: 0.05em; }
.badge-new { background: linear-gradient(135deg, #d4af37, #f0d060); color: #0d0b09; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; letter-spacing: 0.05em; }

/* Toast */
.toast {
  background: #1a1714;
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  pointer-events: all;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s;
  min-width: 280px;
}
.toast.success { border-left: 3px solid #22c55e; }
.toast.error { border-left: 3px solid #ef4444; }
.toast.info { border-left: 3px solid #d4af37; }

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

/* Form Input */
.form-input {
  background: #1a1714;
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 10px;
  color: #e5e7eb;
  padding: 12px 16px;
  width: 100%;
  transition: border-color 0.2s;
  outline: none;
  font-family: 'Montserrat', sans-serif;
}
.form-input:focus { border-color: #d4af37; box-shadow: 0 0 0 3px rgba(212,175,55,0.1); }
.form-input::placeholder { color: rgba(155,155,155,0.6); }
.form-label { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(212,175,55,0.7); margin-bottom: 6px; font-weight: 500; }

/* Section title */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #d4af37;
  text-align: center;
}
.section-subtitle { text-align: center; letter-spacing: 0.25em; font-size: 11px; text-transform: uppercase; color: rgba(212,175,55,0.5); margin-bottom: 16px; }
.section-divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  margin: 16px auto 48px;
}

/* Status badges */
.status-pending { background: rgba(251,191,36,0.15); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.status-confirmed { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.status-processing { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }
.status-shipped { background: rgba(236,72,153,0.15); color: #f472b6; border: 1px solid rgba(236,72,153,0.3); }
.status-delivered { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.status-cancelled { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }

/* Size selector */
.size-btn {
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
}
.size-btn:hover, .size-btn.active {
  border-color: #d4af37;
  color: #d4af37;
  background: rgba(212,175,55,0.1);
}

/* Color selector */
.color-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.color-btn.active, .color-btn:hover { border-color: #d4af37; transform: scale(1.15); }

/* Admin sidebar */
.admin-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-radius: 10px;
  cursor: pointer; transition: all 0.2s;
  color: #9ca3af;
  font-size: 14px;
}
.admin-nav-item:hover, .admin-nav-item.active {
  background: rgba(212,175,55,0.12);
  color: #d4af37;
}
.admin-nav-item.active { border-left: 3px solid #d4af37; }

/* Stats card */
.stat-card {
  background: #1a1714;
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s;
}
.stat-card:hover { border-color: rgba(212,175,55,0.3); transform: translateY(-2px); }

/* Gradient text */
.text-gradient { background: linear-gradient(135deg, #d4af37, #f0d060, #d4af37); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Pagination */
.page-btn {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(212,175,55,0.2);
  color: #9ca3af; cursor: pointer; transition: all 0.2s;
  font-size: 13px;
}
.page-btn:hover, .page-btn.active {
  border-color: #d4af37; color: #d4af37; background: rgba(212,175,55,0.1);
}

/* Image gallery */
.thumb-img {
  width: 64px; height: 64px; object-fit: cover;
  border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; transition: all 0.2s;
}
.thumb-img:hover, .thumb-img.active { border-color: #d4af37; }

/* Quantity input */
.qty-btn {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid rgba(212,175,55,0.2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; color: #9ca3af;
}
.qty-btn:hover { border-color: #d4af37; color: #d4af37; background: rgba(212,175,55,0.1); }

/* Loading spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { animation: spin 1s linear infinite; }

/* Country flag */
.country-flag { font-size: 20px; }

/* Hero text animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fadeInUp { animation: fadeInUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.2s; opacity: 0; }
.delay-2 { animation-delay: 0.4s; opacity: 0; }
.delay-3 { animation-delay: 0.6s; opacity: 0; }
.delay-4 { animation-delay: 0.8s; opacity: 0; }

/* Overlay gradient on hero image */
.hero-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(13,11,9,0.95) 0%, rgba(13,11,9,0.7) 50%, rgba(13,11,9,0.3) 100%);
}

/* Category card */
.category-card {
  position: relative; overflow: hidden; border-radius: 16px;
  cursor: pointer; transition: all 0.35s;
  border: 1px solid rgba(212,175,55,0.1);
}
.category-card:hover { border-color: rgba(212,175,55,0.4); transform: translateY(-4px); }
.category-card img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.5s; }
.category-card:hover img { transform: scale(1.08); }
.category-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.8) 100%);
}

/* Mobile responsive */
@media (max-width: 640px) {
  .section-title { font-size: 1.8rem; }
  .product-card .product-img-wrap img { height: 220px; }
}

/* Dropdown */
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #1a1714; border: 1px solid rgba(212,175,55,0.2);
  border-radius: 12px; padding: 8px; min-width: 160px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  z-index: 50;
}
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px;
  color: #9ca3af; font-size: 14px; cursor: pointer;
  transition: all 0.2s;
}
.dropdown-item:hover { background: rgba(212,175,55,0.1); color: #d4af37; }

/* Image upload preview */
.img-upload-preview {
  width: 80px; height: 80px; object-fit: cover;
  border-radius: 8px; border: 1px solid rgba(212,175,55,0.2);
}

/* Order timeline */
.timeline-step {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-left: 2px solid rgba(212,175,55,0.15);
  padding-left: 20px; position: relative;
}
.timeline-step::before {
  content: ''; position: absolute; left: -7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(212,175,55,0.3); border: 2px solid #d4af37;
}
.timeline-step.done::before { background: #d4af37; }
